[Greylist-users] Compilation of Sendmail::Milter 0.18 on EM64T

Martin Svensson martin at stabilt.se
Mon Nov 29 08:55:23 PST 2004


Hi all,

I know that this might be slightly OT but it's the best location I've 
found so far. (Google didn't give me much help)

I'm trying to compile Sendmail::Milter package for an installation of 
the greylisting package on a RedHat ES EL 3.0 update 3 EM64T version. 
I'm using the bundled sendmail version, and the milter libraries are 
working fine (using amavisd-new without any trouble so far).

When I'm trying to compile it, I get the following output from "make":
-------
[root at bestla Sendmail-Milter-0.18]# perl Makefile.PL 
/home/marsve/sendmail-8.12.11/ /home/marsve/sendmail-8.12.11/
Writing Makefile for Sendmail::Milter
[root at bestla Sendmail-Milter-0.18]# make
gcc -c  -I/home/marsve/sendmail-8.12.11/sendmail 
-I/home/marsve/sendmail-8.12.11/include -D_REENTRANT -D_GNU_SOURCE 
-DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/include/gdbm -O2 -g -pipe   -DVERSION=\"0.18\" 
-DXS_VERSION=\"0.18\" -fPIC 
"-I/usr/lib64/perl5/5.8.0/x86_64-linux-thread-multi/CORE"   Milter.c
Milter.xs: In function `XS_Sendmail__Milter__Context_replacebody':
Milter.xs:445: warning: passing arg 3 of `Perl_sv_2pv_flags' from 
incompatible pointer type
gcc -c  -I/home/marsve/sendmail-8.12.11/sendmail 
-I/home/marsve/sendmail-8.12.11/include -D_REENTRANT -D_GNU_SOURCE 
-DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/include/gdbm -O2 -g -pipe   -DVERSION=\"0.18\" 
-DXS_VERSION=\"0.18\" -fPIC 
"-I/usr/lib64/perl5/5.8.0/x86_64-linux-thread-multi/CORE"   intpools.c
intpools.c: In function `test_run_callback':
intpools.c:463: warning: passing arg 3 of `Perl_sv_2pv_flags' from 
incompatible pointer type
gcc -c  -I/home/marsve/sendmail-8.12.11/sendmail 
-I/home/marsve/sendmail-8.12.11/include -D_REENTRANT -D_GNU_SOURCE 
-DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/include/gdbm -O2 -g -pipe   -DVERSION=\"0.18\" 
-DXS_VERSION=\"0.18\" -fPIC 
"-I/usr/lib64/perl5/5.8.0/x86_64-linux-thread-multi/CORE"   callbacks.c
Running Mkbootstrap for Sendmail::Milter ()
chmod 644 Milter.bs
rm -f blib/arch/auto/Sendmail/Milter/Milter.so
LD_RUN_PATH="/usr/lib64:/lib64" gcc  -shared Milter.o intpools.o 
callbacks.o  -o blib/arch/auto/Sendmail/Milter/Milter.so   
-L/home/marsve/sendmail-8.12.11/libmilter 
-L/home/marsve/sendmail-8.12.11/libsmutil 
-L/home/marsve/sendmail-8.12.11/libsm -lmilter -lsmutil -lsm -lpthread -lnsl
/usr/bin/ld: 
/usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/../../../../lib64/libmilter.a(main.o): 
relocation R_X86_64_32S can not be used when making a shared object; 
recompile with -fPIC
/usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/../../../../lib64/libmilter.a: 
could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Sendmail/Milter/Milter.so] Error 1
----------

If anyone has an idea on solving this issue, please let me know.

Thanks in advance all.

Best regards,
Martin


More information about the Greylist-users mailing list