[Pymilter] Install problem on 64bit CentOS
Stuart D. Gathman
stuart at bmsi.com
Mon Feb 9 10:51:35 EST 2009
On Mon, 9 Feb 2009, Oli Schacher wrote:
> 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.
>
> relocation R_X86_64_PC32 against `mi_opensocket' can not be used when
> making a shared object; recompile with -fPIC
>
> Any hint how I could fix this?
This is a problem with the sendmail package on x86_64. It is fixed in
Fedora, however for Centos-5, you will have to get the sendmail
SRPM and fix it to compile libmilter with -fPIC. On Fedora, they
went all the way and made libmilter a shared library. However,
just adding -fPIC when compiling libmilter.a does the trick.
While you're in the SRPM, update it to sendmail-8.14.3. I'll try
to get to that for x86_64, but don't wait up for me. I've posted
an SRPM for sendmail-8.14.3 for EL4 - that will give examples of
how the patch files need to be modified when updating.
--
Stuart D. Gathman <stuart at bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
More information about the Pymilter
mailing list