[mod_python] Compling error:

Graham Dumpleton graham.dumpleton at gmail.com
Tue Oct 7 20:17:52 EDT 2008


2008/10/8 FINKEL, PAUL D, ATTSI <finkel at att.com>:
>
> Hello - attempting to compile mod_python on Solaris 10 and get this
> series of errors at the end of the make:
>
> ************************************************************************
> *****************
>
> ld: fatal: relocations remain against allocatable but non-writable
> sections
> collect2: ld returned 1 exit status
> apxs:Error: Command failed with rc=65536
> .
> *** Error code 1
> make: Fatal error: Command failed for target `mod_python.so'
> Current working directory /users/ghochberg/pkgs/mod_python-3.3.1/src
> *** Error code 1
> make: Fatal error: Command failed for target `do_dso'
>
> ************************************************************************
> *****************
>
> I've tried a number of things including installing the GNU binutils
> tools and modifying PATH to find these files. I get the same results.
>
> The configure command line:
>
> ./configure --with-shared --with-python=/usr/local/bin/python2.5
> --prefix=$PkgDir --with-apxs=/usr/local/apache2/bin/apxs

Add -mimpure-text to existing options in LDFLAGS in src/Makefile after
having run configure.

Different Apache module, but mentioned in mod_wsgi documentation at:

  http://code.google.com/p/modwsgi/wiki/InstallationOnSolaris

Graham


More information about the Mod_python mailing list