You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Tim Faircloth <tp...@canes.gsw.edu> on 2004/08/03 15:41:24 UTC

Compile errors with version 2.63

spamassassin version: 2.63
make version: GNU 3.80
gcc version: 3.3
OS: Solaris 5.8, release 12/02

I'm having problems compiling Spamassasin...  below is the output I get, 
I've also included my "env" output.  Can someone help?

----- output of make -----
make -f spamd/binaries.mk spamd/spamc
make[1]: Entering directory `/download/spamassasin/Mail-SpamAssassin-2.63'
gcc -B/usr/ccs/bin/  -ansi -pedantic -Wall -O2 spamd/spamc.c 
spamd/libspamc.c spamd/utils.c \
         -o spamd/spamc   -ldl -lnsl -lsocket
spamd/spamc.c: In function `read_args':
spamd/spamc.c:96: warning: implicit declaration of function `getopt'
spamd/spamc.c:108: error: `optarg' undeclared (first use in this function)
spamd/spamc.c:108: error: (Each undeclared identifier is reported only once
spamd/spamc.c:108: error: for each function it appears in.)
spamd/spamc.c:144: error: `optind' undeclared (first use in this function)
spamd/spamc.c:146: warning: value computed is not used
spamd/libspamc.c: In function `_handle_spamd_header
spamd/libspamc.c:927: warning: implicit declaration of function `strcasecmp'
spamd/libspamc.c:930: warning: implicit declaration of function `snprintf'
spamd/libspamc.c: In function `message_filter
spamd/libspamc.c:966: warning: `ssl' might be used uninitialized in this 
function
spamd/utils.c: In function `sig_catch':
spamd/utils.c:33: error: storage size of `act' isn't known
spamd/utils.c:33: error: storage size of `oact' isn't known
spamd/utils.c:36: warning: implicit declaration of function `sigemptyset'
spamd/utils.c:37: warning: implicit declaration of function `sigaction'
spamd/utils.c:33: warning: unused variable `act'
spamd/utils.c:33: warning: unused variable `oact'
make[1]: *** [spamd/spamc] Error 1
make[1]: Leaving directory `/download/spamassasin/Mail-SpamAssassin-2.63'
make: *** [spamd/spamc] Error 2
----- output of make -----

----- additional output from cpan install -----
<stuff from above, then this:>
   /usr/ccs/bin/make  -- NOT OK
Running make test
   Can't test without successful make
Running make install
   make had returned bad status, install seems impossible
----- aditional output from cpan install -----

----- environment -----
PWD=/download/spamassasin/Mail-SpamAssassin-2.63
TZ=US/Eastern
HOSTNAME=radar
MANPATH=/usr/share/man:/usr/local/man:/usr/man:/usr/sfw/share/man/
CC=gcc
PS1=\[\033[1;31m\][\[\033[0;36m\]\u@\h\[\033[1;31m\]:\[\033[0;36m\]\w\[\033[1;31m\]]\[\033[0;36m\]\$ 
\[\033[0;32m\]
USER=nova20
MACHTYPE=sparc-sun-solaris
SSH2_SFTP_LOG_FACILITY=12
MAIL=/usr/mail/nova20
SSH2_CLIENT=<ip addresses, oh my!>
EDITOR=/usr/bin/vi
LOGNAME=nova20
SHLVL=2
SHELL=/bin/bash
HOSTTYPE=sparc
OSTYPE=solaris
HOME=/home/nova20
TERM=xterm
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/ssl/bin:/usr/local/bin:/usr/bin:/bin:/usr/ccs/bin
CFLAGS=-ansi -pedantic -Wall -O2
_=/usr/bin/env
OLDPWD=/home/nova20
----- environment -----

/tim
-- 
Tim Faircloth, System Administrator
GSW OIIT
Office: (229) 931-5076	Beeper: (229) 928-1458


Re: Compile errors with version 2.63

Posted by Alex S Moore <as...@edge.net>.
On Tue, 03 Aug 2004 09:41:24 -0400
Tim Faircloth <tp...@canes.gsw.edu> wrote:

> spamassassin version: 2.63
> make version: GNU 3.80
> gcc version: 3.3
> OS: Solaris 5.8, release 12/02
> 
> I'm having problems compiling Spamassasin...  below is the output I
> get, I've also included my "env" output.  Can someone help?

Sorry, I do not build SA with gcc, so I cannot be of much help.

But, if you desire, you can get a SA package from blastwave.org (CSW). 
If you go this route, follow the instructions on the web to setup for
installs and run `pkg-get -i textutils gnupg`.  Then you can import the
gpg keys to verify signatures.

Alex

Re: Compile errors with version 2.63

Posted by Albert Whale <ae...@ABS-CompTech.com>.

Tim Faircloth wrote:

> At 04:20 PM 8/3/2004, you wrote:
>
>> Now I just have to get it to play nice with MailScanner :-)
>
>
> Crap.  This is harder than it looks.  is there any chance that anyone 
> out there has gotten spamassassin to work with mailscanner?  If not, 
> have any of you had any experience with setting up automatic 
> system-wide SA scans?
>
> /tim

www.no-JunkMail.com  - www.Spam-Zapper.com

Done, Tested, Maintained and/or installed.

-- 
Albert E. Whale, CISSP - Sr. Security, Network, and Systems Consultant
--------------------------------------------------------------------------------
http://www.abs-comptech.com & http://www.No-JunkMail.com 
ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
SPAM ZapperTM - No-JunkMail.com - Spam-Zapper.com - SPAM Stops Here.
President of the Pittsburgh InfraGard



Re: Compile errors with version 2.63

Posted by Tim Faircloth <tp...@canes.gsw.edu>.
At 04:20 PM 8/3/2004, you wrote:
>Now I just have to get it to play nice with MailScanner :-)

Crap.  This is harder than it looks.  is there any chance that anyone out 
there has gotten spamassassin to work with mailscanner?  If not, have any 
of you had any experience with setting up automatic system-wide SA scans?

/tim
-- 
Tim Faircloth, System Administrator
GSW OIIT
Office: (229) 931-5076	Beeper: (229) 928-1458


Re: Compile errors with version 2.63

Posted by Tim Faircloth <tp...@canes.gsw.edu>.
At 12:37 PM 8/3/2004, you wrote:
>It looks like your gcc install is a bit hosed.  It doesn't know about very
>standard things like getopt (unistd), snprintf (stdio), and strcasecmp
>(strings).

Thanks.  I downgraded to gcc v2.95 and it compiled just fine.

Now I just have to get it to play nice with MailScanner :-)

/tim
-- 
Tim Faircloth, System Administrator
GSW OIIT
Office: (229) 931-5076	Beeper: (229) 928-1458


Re: Compile errors with version 2.63

Posted by Theo Van Dinter <fe...@kluge.net>.
On Tue, Aug 03, 2004 at 09:41:24AM -0400, Tim Faircloth wrote:
> I'm having problems compiling Spamassasin...  below is the output I get, 
> I've also included my "env" output.  Can someone help?
> 
> spamd/spamc.c:96: warning: implicit declaration of function `getopt'
> spamd/spamc.c:108: error: `optarg' undeclared (first use in this function)
> spamd/spamc.c:144: error: `optind' undeclared (first use in this function)
> spamd/libspamc.c:927: warning: implicit declaration of function `strcasecmp'
> spamd/libspamc.c:930: warning: implicit declaration of function `snprintf'

It looks like your gcc install is a bit hosed.  It doesn't know about very
standard things like getopt (unistd), snprintf (stdio), and strcasecmp
(strings).

-- 
Randomly Generated Tagline:
It's easy to solve the halting problem with a shotgun.   :-)
              -- Larry Wall in <19...@wall.org>