[mod_python] Mod_python & apache on Solaris 8 compile problems

Marcelo M. Sobral sobral at sj.univali.br
Mon Apr 22 14:27:35 EST 2002


On Mon, 22 Apr 2002, Chris Meyer wrote:

> I've been trying to build mod_python 2.7.5 into apache 1.3.23 on a 
> Solaris 8 system for several days now, and whenever I issue "make" to 
> apache after a "./configure 
> --activate-module=src/modules/python/libpython.a" I keep on getting the 
> same compile errors:
> 
> .
> .
> .
> <=== src/modules
> gcc -c  -I./os/unix -I./include   -DSOLARIS2=280 -DUSE_EXPAT 
> -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` modules.c
> gcc -c  -I./os/unix -I./include   -DSOLARIS2=280 -DUSE_EXPAT 
> -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` buildmark.c
> gcc  -DSOLARIS2=280 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED 
> `./apaci`    \
>        -o httpd buildmark.o modules.o  modules/python/libpython.a 
> modules/standard/libstandard.a  main/libmain.a  ./os/unix/libos.a 
> ap/libap.a  lib/expat-lite\
> libexpat.a  -lsocket -lnsl
> Undefined                       first referenced
>   symbol                             in file
> PySequence_Index                    modules/python/libpython.a(mod_python.o)
> Py_InitModule4 
> modules/python/libpython.a(_apachemodule.o)
> PyString_FromStringAndSize 
> modules/python/libpython.a(_apachemodule.o)
> PyExc_TypeError 
> modules/python/libpython.a(tableobject.o)
> .
> .   about fifty or so undefined symbols later

   Hi.

   Your libpython.a was compiled without PIC (position independent code). 
Try to recompile it with option -fpic passed to gcc (libpython.a is in the 
Python source code).

   Good luck.

  -----------------------------
  Prof. Marcelo Maia Sobral
  Administrador de Redes
  Nucleo de Informatica
  Univali - Campus São José
  Fone: (0xx48) 281-1595
  -----------------------------


-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

mQGiBDwiFZQRBACpWV7f+1b1H2Efm9WHM5LnQxQcXEBz/SHff9B909IL5kl5zAL1
F4+mABr4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tFntVEFGvg4HorWNM
vLOVCwOITAQYEQIADAUCPCIVnAUJAO1OAAAKCRDq81IhSLuK7HNxAJ9UxQo0vu/O
NEEsJhrHJoDgpdc2PwCg1c9acqzo9jCig+Y9xWpgJyQpOZQ=
=99B8
-----END PGP PUBLIC KEY BLOCK-----




More information about the Mod_python mailing list