James Marquez <jamturtle <at> hotmail.com> writes:

> 
> Well I seem to have a problem getting Spamassassin 3.0.1 to compile. I am 
> running Solaris 2.5.1 with Perl 5.8.5 and gcc 3.3.2. I have been able to 
> install all the required perl modules. Now I want to finally install 
> Spamassassin and I get this error:
> " " " " " " " "
> checking for in_addr_t... no
> checking for INADDR_NONE... no
> checking for EX__MAX... yes
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating config.h
> make -f spamc/Makefile spamc/spamc
> make[1]: Entering directory `/export/new_stuff/Mail-SpamAssassin-3.0.1'
> gcc  -g -O2 spamc/spamc.c spamc/libspamc.c spamc/utils.c \
>         -o spamc/spamc   -ldl -lnsl -lsocket 
> Undefined                       first referenced
>  symbol                             in file
> snprintf                            /var/tmp//ccBlGmez.o
> vsnprintf                           /var/tmp//ccBlGmez.o
> ld: fatal: Symbol referencing errors. No output written to spamc/spamc
> collect2: ld returned 1 exit status
> make[1]: *** [spamc/spamc] Error 1
> make[1]: Leaving directory `/export/new_stuff/Mail-SpamAssassin-3.0.1'
> make: *** [spamc/spamc] Error 2
> 
> I am stuck here so if anybody knows what I might be missing I would 
appreciate 
> a hint. Maybe this is a solaris issue, I have seen postings on this list 
> suggesting downgrading gcc in order to compile. 
> Well any ideas would help.
> cheers
> 
> -James
> 
> 
> 
OK thanks to all who who tried to help me. Here is what I found and how I 
solved it. First of all also thanks to Steven M. Christensen from 
Sunfreeware.com. Yes indeed Solaris 2.5.1 does not come with snprintf, Steve 
has packaged them on his site. Go ahead and install these first [vsnprintf is 
part of the package]. Then "perl Makefile" --> "make" you will get the same 
error. Cd to spamc and edit "Makefile" [can not do this before because make has 
not set this up yet] and add the flag "-lsnprintf" to LIBS = 
then run "make" again. It should now compile correctly.
cheers

-James  





Reply via email to