apxs:Error: Command failed with rc=65536

1,199 views
Skip to first unread message

sreenath CSE

unread,
Jun 7, 2016, 2:54:00 AM6/7/16
to modwsgi
I'm using centos 6.3 python 2.7
installing mod_wgi is failing

/configure --enable-shared

make

/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o mod_wsgi.la  -rpath /usr/lib64/httpd/modules -module -avoid-version    mod_wsgi.lo -L/usr/local/lib -L/usr/local/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm
/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython2.7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1
[user@contentserver mod_wsgi-3.4]#

I tried everything on this group for this error still not able solve.

Thanks in advance.

Graham Dumpleton

unread,
Jun 7, 2016, 2:56:48 AM6/7/16
to mod...@googlegroups.com
On 7 Jun 2016, at 4:52 PM, sreenath CSE <sirimala...@gmail.com> wrote:

I'm using centos 6.3 python 2.7
installing mod_wgi is failing

/configure --enable-shared

The --enable-shared option is a an option to the ‘configure’ script of Python when installing it, not to the ‘configure’ script for mod_wsgi.

You thus need to reinstall your Python installation from fresh source code.

For details about Python installation see:


Ignore that it says for Docker, all still relevant. It mentions about shared libraries in it.

Graham

make

/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o mod_wsgi.la  -rpath /usr/lib64/httpd/modules -module -avoid-version    mod_wsgi.lo -L/usr/local/lib -L/usr/local/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm
/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython2.7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1
[user@contentserver mod_wsgi-3.4]#

I tried everything on this group for this error still not able solve.

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Graham Dumpleton

unread,
Jun 7, 2016, 3:04:34 AM6/7/16
to mod...@googlegroups.com
BTW, mod_wsgi 3.4 is ancient. You should not be using such an old version. It is no longer unsupported. The most up to date versions are available from:

Reply all
Reply to author
Forward
0 new messages