=20

> -----Original Message-----
> From: Jack L. Stone [mailto:jacks@sage-american.com]=20
> Sent: Wednesday, June 13, 2007 9:29 AM
> To: Michael Scheidell; amavis-user@lists.sourceforge.net
> Cc: users@spamassassin.apache.org; jimmy@loopia.se
> Subject: Re: Freebsd Port of SA 3.2.1
>=20
> At 10:47 PM 6.12.2007 -0400, Michael Scheidell wrote:
> >If anyone wants a 'pre release' of the Freebsd sa 3.2.1=20

> portfile, you=20
> >can download it here:
> >
> >http://www.secnap.com/downloads/sa321.tgz

>=20
> I am using FBSD-6.2 amd64 and ran into this problem when running make:
> .... bunch of other stuff all okay
> stopped here:
> Manifying blib/man3/Mail::SpamAssassin::Plugin::RelayCountry.3
> make -f spamc/Makefile spamc/libspamc.so gcc=20
> -Wl,-R/usr/local/lib/perl5/5.8.8/mach/CORE spamc/libspamc.c=20
> spamc/utils.c -o spamc/libspamc.so -shared -L/usr/local/lib -lz
> /usr/bin/ld: /var/tmp//cchaPM1S.o: relocation R_X86_64_32 can=20
> not be used when making a shared object; recompile with -fPIC
> /var/tmp//cchaPM1S.o: could not read symbols: Bad value
> *** Error code 1


Give this a shot:

http://www.secnap.com/downloads/sa321.tgz

I added this to post-build: (mind the wrap)

post-build:
+ @(cd ${BUILD_WRKSRC}/spamc; ${SED} -e '/^CCDLFLAGS/s/-Wl/-DPIC
-fPIC -Wl/' Makefile > Makefile.lib)

This based on other makefile with both -DPIC and -fPIC in it, and darn
if I know why spamc/Makefile doesn't have it there.


__________________________________________________ _______________________
This email has been scanned and certified safe by SpammerTrap(tm).
For Information please see http://www.spammertrap.com
__________________________________________________ _______________________