[mod_python] mod_python.so: No such file: No such file or directory

Ron Reisor ron at udel.edu
Fri Feb 24 09:19:13 EST 2006

On Fri, 24 Feb 2006 Anders.Strandberg at tietoenator.com wrote:

> Hi,
> I have problems building mod_python 3.2.7 on SLES 9 ( Solaris 8 and
> Solaris 9 is OK) with apache-2.0.54+ Python-version is 2.3.3. The make
> does not produce mod_python.so , there is no trace of it. Found in the
> FAQ a somewhat related issue which stated  that this could be a
> libtool-problem (old libtool-version supplied with apache-2.043) see
> http://www.modpython.org/FAQ/faqw.py?req=show&file=faq04.001.htp, but
> our libtool is 1.4.3 which is > 1.4.2. In fact, in my case  the make
> does not come to completion at all.
> However there are complaints about _POSIX_C_SOURCE redefined, but I
> don't know if that is related to this  at all.

I don't have the answer, but maybe some words of encouragement...

I have mod_python built as a shared library on Solaris 10 Sparc. The file 
ends up in the httpd modules directory. Maybe you're running into a 
conflict between multiple libtool files. You're seeing libtool version 
1.4.3 at one point, but the log below refers to a libtool directory 
1.5.18. I don't know what that means exactly, but I think you should be 
seeing a newer libtool than 1.4.3.

When building httpd-2.0.55, it creates libtool 1.5.20 in the build 
directory. I specified '--enable-so' to make sure the httpd will support 
shared libraries, and the libtool will support the creation of shared 
modules. My guess is, httpd-2.0.55 built a slightly older version of 
libtool, maybe 1.5.18, which you should be using instead of 1.4.3. When 
you configure mod_python, make sure you specify the apxs that goes with 
the httpd server you're using and the right libtool should be found. Using 
the proper libtool is key to getting the shared library built properly.


> /app/apr/0.9.5/share/build/libtool --silent --mode=link
> i686-pc-linux-gnu-gcc -o mod_python.la  -rpath
> /app/apache/2.0.54/modules -module -avoid-version    hlistobject.lo
> hlist.lo filterobject.lo connobject.lo serverobject.lo util.lo
> tableobject.lo requestobject.lo _apachemodule.lo mod_python.lo
> -L/app/gcc/3.3.4/lib -L/app/libtool/1.5.18/lib -L/app/libiconv/1.9.1/lib
> -L/app/gettext/ -L/app/flex/2.5.4a/lib
> -L/app/expat/1.95.8/lib -L/app/apr-util/0.9.5/lib -L/app/apr/0.9.5/lib
> -L/usr/X11R6/lib
> -Wl,--rpath=/app/apache/modules/2.0/mod_python/3.2.7/lib:/app/gcc/3.3.4/
> lib:/app/libtool/1.5.18/lib:/app/libiconv/1.9.1/lib:/app/gettext/0.12.1.
> 1/lib:/app/flex/2.5.4a/lib:/app/expat/1.95.8/lib:/app/apr-util/0.9.5/lib
> :/app/apr/0.9.5/lib:/usr/X11R6/lib
> -L/app/Python/2.3.3/lib/python2.3/config -Xlinker -export-dynamic
> -L/app/gcc/3.3.4/lib -L/app/zlib/1.2.1/lib -L/app/tk/8.4.5/lib
> -L/app/tcl/8.4.5/lib -L/app/readline/4.3/lib -L/app/openssl/0.9.7c/lib
> -L/app/ncurses/5.2/lib -L/app/gmp/4.1.2/lib -L/app/gdbm/1.8.3/lib
> -L/app/expect/5.39.0/lib -L/app/expat/1.95.5/lib -L/app/db/3.3.11/lib
> -L/usr/X11R6/lib -Wl,--rpath -lm -lpython2.3 -lpthread -ldl -lutil -lm
> /usr/bin/ld: mod_python.so: No such file: No such file or directory
> collect2: ld returned 1 exit status
> apxs:Error: Command failed with rc=65536
> .
> make[1]: *** [mod_python.so] Error 1
> make[1]: Leaving directory `/var/tmp/BUILD/mod_python-3.2.7/src'
> make: *** [do_dso] Error 2
> error: Bad exit status from /var/tmp/rpmbuild.13200/rpm-tmp.94484
> (%build)
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python

Ron Reisor <ron at udel.edu> (RWR3)
University of Delaware Information Technologies/Network and Systems Services
Computing Center/192 South Chapel Street/Newark DE, 19716
pgp finger print: 0D 73 06 6F D3 6A 99 D3  F5 D5 6E FF 3B B9 7C 2C

More information about the Mod_python mailing list