[Pymilter] Install problem on 64bit CentOS

Oli Schacher pymilter at lists.wgwh.ch
Mon Feb 9 06:40:32 EST 2009


Hi List

On i386 Centos 5 machines I could just do 'yum install sendmail-devel'
and 'python setup.py install' to get pymilter running.

However, on our 64 bit servers there is a compilation error.

[root@<machine> pymilter-0.9.1]# python setup.py install
running install
running build
running build_py
running build_ext
building 'milter' extension
gcc -pthread -shared build/temp.linux-x86_64-2.4/miltermodule.o
-L/usr/lib/libmilter -lmilter -o build/lib.linux-x86_64-2.4/milter.so
/usr/bin/ld:
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libmilter.a(listener.o):
relocation R_X86_64_PC32 against `mi_opensocket' can not be used when
making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

Any hint how I could fix this?

Thanks a lot
Oli




More information about the Pymilter mailing list