[Pymilter] Adding -fPIE optoin when building sendmail srcrpm for RedHat 4
Kyle Oetken
oetkenky at hotmail.com
Mon Jan 4 21:31:16 EST 2010
List,
I've been workign with pymilter for a few weeks now and seem to have things worked out on Fedora 11. Now, I'm running into problems when trying to install pymilter-0.9.3 on Red Hat EL4 x86_64. I get the follwoing error when trying to install:
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DMAX_ML_REPLY=32 -I/usr/local/include/python2.4 -c miltermodule.c -o build/temp.linux-x86_64-2.4/miltermodule.o
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/3.4.6/../../../../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
I noticed the mailing list entry from August regaurding the issue installing on CentOS 5 but I am unable to figure out how to mofify the src rpm .spec file so that sendmail will complie with the -fPIE option. I tried to change the following lines in the .spec file as shown below:
%if "%{enable_pie}" == "yes"
%ifarch s390 s390
%define _fpie -fPIE
%else
%define _fpie -fPIE
%endif
so that _fpie is always set to -fPIE. I've also made sure that the enable_pie variable is set to "yes". Any help you can provide would be appreciated.
Thanks,
oetkenky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gathman.org/pipermail/pymilter/attachments/20100105/e1e509ad/attachment.html>
More information about the Pymilter
mailing list