DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th March 2009
shaun shaun is offline
New User
 
Join Date: Mar 2009
Posts: 3
Thanked 0 Times in 0 Posts
Default re2c installation fails

Hi all,

I'm trying to upgrade my SpamAssassin installation. I've gotten as far as updating to p5-Mail-SpamAssassin-3.2.5_2 (from 3.1.1) along with its dependencies. On installation, it told me to run sa-compile. When I try to run sa-compile, here's what I get:

Code:
[root@shaunc p5-Mail-SpamAssassin]# sa-compile
[24063] info: generic: base extraction starting. this can take a while...
[24063] info: generic: extracting from rules of type body_0
100% [=========================================================================================================] 3662.83 rules/sec 00m00s DONE
100% [=========================================================================================================] 225.00 bases/sec 00m04s DONE
[24063] info: body_0: 679 base strings extracted in 4 seconds
cd /tmp/.spamassassin24063DuMmqktmp
cd Mail-SpamAssassin-CompiledRegexps-body_0
re2c -i -b -o scanner1.c scanner1.re
Can't exec "re2c": No such file or directory at /usr/local/bin/sa-compile line 287, <$fh> line 979.
command failed! at /usr/local/bin/sa-compile line 288, <$fh> line 979.
Sure enough, re2c doesn't exist on my system. So, off to /usr/ports/devel/re2c where I receive some errors:

Code:
[root@shaunc re2c]# make
[ snip configure output ]
===>  Building for re2c-0.13.5
make  all-am
source='code.cc' object='code.o' libtool=no  DEPDIR=.deps depmode=gcc /bin/sh ./depcomp  c++ -DHAVE_CONFIG_H -I.      -O -pipe -c -o code.o code.cc
In file included from globals.h:9,
                 from code.cc:11:
stream_lc.h:18: syntax error before `<'
stream_lc.h:29: syntax error before `;'
stream_lc.h:31: syntax error before `<'
stream_lc.h:42: destructors must be member functions
stream_lc.h:42: virtual outside class declaration
stream_lc.h: In function `void basic_null_stream()':
stream_lc.h:42: confused by earlier errors, bailing out
cpp0: output pipe has been closed
*** Error code 1

Stop in /usr/ports/devel/re2c/work/re2c-0.13.5.
*** Error code 1

Stop in /usr/ports/devel/re2c/work/re2c-0.13.5.
I can't figure out what the problem might be. I've searched for various permutations of the dtor and virtual errors. I found one match for the error in basic_null_stream, but the post was in Japanese and didn't have any replies, anyway.

Any idea what might be going on? This is FreeBSD 4.11, gcc 2.95.4.
Reply With Quote
  #2   (View Single Post)  
Old 25th March 2009
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Thanked 49 Times in 43 Posts
Default

Quote:
Originally Posted by shaun View Post
FreeBSD 4.11, gcc 2.95.4.
That may be the problem?
Can you post the file stream_lc.h?
Reply With Quote
  #3   (View Single Post)  
Old 25th March 2009
shaun shaun is offline
New User
 
Join Date: Mar 2009
Posts: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ephemera View Post
That may be the problem?
Can you post the file stream_lc.h?
Sure, I've attached it.
Attached Files
File Type: h stream_lc.h (7.2 KB, 16 views)
Reply With Quote
  #4   (View Single Post)  
Old 25th March 2009
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Thanked 49 Times in 43 Posts
Default

I think this code might compile with gcc 3.x compiler, give it a try.
Reply With Quote
  #5   (View Single Post)  
Old 25th March 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

A lot of new software doesn't even compile with GCC 3x anymore, let alone 2x.. I don't know much about FreeBSD 4x, but I do know that it's quite old.

Is upgrading an option for you?
Reply With Quote
  #6   (View Single Post)  
Old 26th March 2009
shaun shaun is offline
New User
 
Join Date: Mar 2009
Posts: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
A lot of new software doesn't even compile with GCC 3x anymore, let alone 2x.. I don't know much about FreeBSD 4x, but I do know that it's quite old.

Is upgrading an option for you?
As for gcc, let's find out. I'm going to try bumping gcc up to 3.4.6.

As for FreeBSD, not really, unless a critical remotely-exploitable vulnerability comes out and it's something I can't stop at the firewall. This is a dedicated server that was setup in 2006 and is grandfathered into a sweet plan that doesn't exist anymore. Its hardware is plenty sufficient, and the remote upgrade path from 4.11 to 5.x to 6.x is unappealing at best. It'll have to happen eventually, but it's not that time...yet!
Reply With Quote
  #7   (View Single Post)  
Old 26th March 2009
indiocolifa indiocolifa is offline
Real Name: Hernán Di Pietro
UnixUser
 
Join Date: Mar 2009
Location: La Plata
Posts: 17
Thanked 0 Times in 0 Posts
Default

Maybe gcc 2.95 does not fully conform to the C++ standard for the templates found on that header.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mp3fs configure fails Har_Don FreeBSD Ports and Packages 5 27th November 2009 04:18 AM
Upgrade to 7.1-RELEASE fails drl FreeBSD Installation and Upgrading 4 27th March 2009 09:39 PM
Bootonly CD Fails rtwingfield FreeBSD Installation and Upgrading 1 29th December 2008 01:25 AM
Startx fails disappearedng FreeBSD General 11 19th July 2008 09:32 AM
PC-BSD 1.5.1 fails to install archp2008 FreeBSD Installation and Upgrading 27 1st July 2008 11:47 PM


All times are GMT. The time now is 01:46 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick