On Tue, Mar 12, 2002 at 10:20:08PM -0500, Greg Ward wrote:
> On 12 March 2002, Clayton A. Burnham said:
> > I get the following error while "making" SpamAssassin:
> > 
> > gcc -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE 
>-D_FILE_OFFSET_BITS=64  -O spamd/spamc.c \
> >                 -o spamd/spamc -L/usr/local/lib  -lsocket -lnsl -lgdbm -ldb -ldl 
>-lm -lc
> > ld: fatal: library -ldb: not found
> > ld: fatal: File processing errors. No output written to spamd/spamc
> > collect2: ld returned 1 exit status
> > make: *** [spamd/spamc] Error 1
> 
> Hmmm, second one today.  The problem is apparently that Perl was built
> with a library that is no longer available on your system.  Or, more
> accurately, Perl's Configure script deemed that the "db" library is
> necessary to build Perl extensions on your system; the build
> instructions for spamc use Perl's idea of what libraries are needed for
> Perl extensions, even though spamc is a standalone C program and not a
> Perl extension.
> 
> It should be safe to edit your Makefile and remove the "-ldb" reference,
> although this is a kludge.  There's something wrong either with your
> Perl build or with SA's Makefile.PL.
> 

It's not the Perl build. Nothing ever says that you MUST build perl on the
same machine you use it in (thats what distributions are for!) It is normal
for you to not have all the libraries that were required to build perl.

I really think that we can get rid of those extra libraries. On Debian,
spamc builds with just libc.

-- 
Duncan Findlay

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to