[mod_python] Compile error: can't find libtool

FINKEL, PAUL D, ATTSI finkel at att.com
Mon Oct 20 17:16:46 EDT 2008


I successfully built mod_python on our Solaris 9 build machine (with help from Graham)  and now wanted to try the same on  our unit test box. The environments sure seem the same.

The configure line (same again):

./configure --with-shared --with-python=/usr/local/bin/python2.5 --prefix=$PkgDir --with-apxs=/usr/local/apache2/bin/apxs

And that appears to go well.

When I run the make, it appears to NOT be able to find /usr/local/apache2/build/libtool, yet there it is, just as on my build box. I even tried forcing it by reseetting my PATH.

This must be something simple, right? :) Thanks

Full output of make:
==================================================================================

Compiling for DSO.

/usr/local/apache2/bin/apxs -I/users/finkel/pkgs/mod_python-3.3.1/src/include -I/usr/local/apache2/include -I/usr/local/include/python2.5 -c mod_python.c _apachemodule.c requestobject.c tableobject.c util.c  serverobject.c connobject.c filterobject.c hlist.c  hlistobject.c finfoobject.c -L/usr/local/lib/python2.5/config     -L/usr/local/lib -R/usr/local/lib -R/usr/lib -L/usr/lib -L/usr/openwin/lib -R/usr/openwin/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/BerkeleyDB.4.2/lib  -mimpure-text -lm  -lpython2.5   -lresolv -lsocket -lnsl -lrt -ldl  -lpthread   -lm _eprintf.o _floatdidf.o _muldi3.o
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -I/usr/local/rrdtool-1.2.19/include  -DSOLARIS2=9 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -pthreads -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/users/finkel/pkgs/mod_python-3.3.1/src/include -I/usr/local/apache2/include -I/usr/local/include/python2.5  -c -o mod_python.lo mod_python.c && touch mod_python.slo
sh: /usr/local/apache2/build/libtool: not found
apxs:Error: Command failed with rc=65536
.
*** Error code 1
make: Fatal error: Command failed for target `mod_python.so'
==================================================================================

Paul Finkel
AT&T Chief Security Office 
732.420.3105
 
 

-----Original Message-----
From: mod_python-bounces at modpython.org [mailto:mod_python-bounces at modpython.org] On Behalf Of mod_python-request at modpython.org
Sent: Monday, October 20, 2008 12:00 PM
To: mod_python at modpython.org
Subject: Mod_python Digest, Vol 67, Issue 19

Send Mod_python mailing list submissions to
	mod_python at modpython.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://mailman.modpython.org/mailman/listinfo/mod_python
or, via email, send a message with subject or body 'help' to
	mod_python-request at modpython.org

You can reach the person managing the list at
	mod_python-owner at modpython.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of Mod_python digest..."


Today's Topics:

   1. compile problem with new apr/apr-util (Andre H?bner)
   2. Re: compile problem with new apr/apr-util (Graham Dumpleton)
   3. Re: compile problem with new apr/apr-util (Andre H?bner)


----------------------------------------------------------------------

Message: 1
Date: Mon, 20 Oct 2008 13:35:20 +0200
From: Andre H?bner <andre.huebner at gmx.de>
Subject: [mod_python] compile problem with new apr/apr-util
To: <mod_python at modpython.org>
Message-ID: <1649C2AE9A7944ECA3C3E4E9F15C2DEB at nmm.local>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
	reply-type=original

Hi List,

did upgrade from apr 1.2.12 and apr-util to current versions 1.3.4/1.3.3

On Base of this apr i compiled new apache 2.2.10 + devel packages.
Configure-Line for mod_pythin is pretty simple:

 ./configure --with-apxs=/usr/sbin/apxs --with-python=/usr/bin/python --prefix=/usr

This worked and compiled for apache 2.2.9 /apr 1.2.12

Now there is Compiler-error:


/usr/lib/apr/build-1/libtool --silent --mode=compile 
c -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread 
 -I/usr/include/apache  -I/usr/include/apr-1   -I/usr/include/apr-1  -I/usr/src/mod_python/mod_python-3.3.1/src/include 
 -I/usr/include/apache -I/usr/include/python2.4  -c -o connobject.lo connobject.c && touch connobject.slo In file included from /usr/include/python2.4/Python.h:8,
                 from
/usr/src/mod_python/mod_python-3.3.1/src/include/mod_python.h:80,
                 from connobject.c:30:
/usr/include/python2.4/pyconfig.h:838:1: warning: "_POSIX_C_SOURCE" 
redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apr-1/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from
/usr/src/mod_python/mod_python-3.3.1/src/include/mod_python.h:42,
                 from connobject.c:30:
/usr/include/features.h:154:1: warning: this is the location of the previous definition
connobject.c: In function '_conn_read':
connobject.c:142: error: request for member 'next' in something not a structure or union
apxs:Error: Command failed with rc=65536 .
make[1]: *** [mod_python.so] Fehler 1
make[1]: Leaving directory `/usr/src/mod_python/mod_python-3.3.1/src'
make: *** [do_dso] Fehler 2


What to do now?

Thanks,
Andre




------------------------------

Message: 2
Date: Mon, 20 Oct 2008 22:46:19 +1100
From: "Graham Dumpleton" <graham.dumpleton at gmail.com>
Subject: Re: [mod_python] compile problem with new apr/apr-util
To: " Andre H?bner " <andre.huebner at gmx.de>
Cc: mod_python at modpython.org
Message-ID:
	<88e286470810200446s43763cbdj4f803f7553cd829c at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Already fixed in subversion trunk from memory.

  svn co https://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk

Code at that location should read:

    while ((bytes_read < len || len == 0) &&
           !(b == APR_BRIGADE_SENTINEL(bb) ||
             APR_BUCKET_IS_EOS(b) || APR_BUCKET_IS_FLUSH(b))) {

Graham

2008/10/20 Andre Hübner <andre.huebner at gmx.de>:
> Hi List,
>
> did upgrade from apr 1.2.12 and apr-util to current versions 
> 1.3.4/1.3.3
>
> On Base of this apr i compiled new apache 2.2.10 + devel packages.
> Configure-Line for mod_pythin is pretty simple:
>
> ./configure --with-apxs=/usr/sbin/apxs --with-python=/usr/bin/python 
> --prefix=/usr
>
> This worked and compiled for apache 2.2.9 /apr 1.2.12
>
> Now there is Compiler-error:
>
>
> /usr/lib/apr/build-1/libtool --silent --mode=compile c -prefer-pic
> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread
> -I/usr/include/apache  -I/usr/include/apr-1   -I/usr/include/apr-1
>  -I/usr/src/mod_python/mod_python-3.3.1/src/include 
> -I/usr/include/apache
> -I/usr/include/python2.4  -c -o connobject.lo connobject.c && touch 
> connobject.slo In file included from 
> /usr/include/python2.4/Python.h:8,
>                from
> /usr/src/mod_python/mod_python-3.3.1/src/include/mod_python.h:80,
>                from connobject.c:30:
> /usr/include/python2.4/pyconfig.h:838:1: warning: "_POSIX_C_SOURCE"
> redefined
> In file included from /usr/include/sys/types.h:27,
>                from /usr/include/apr-1/apr.h:127,
>                from /usr/include/apache/ap_config.h:25,
>                from /usr/include/apache/httpd.h:43,
>                from
> /usr/src/mod_python/mod_python-3.3.1/src/include/mod_python.h:42,
>                from connobject.c:30:
> /usr/include/features.h:154:1: warning: this is the location of the 
> previous definition
> connobject.c: In function '_conn_read':
> connobject.c:142: error: request for member 'next' in something not a 
> structure or union
> apxs:Error: Command failed with rc=65536 .
> make[1]: *** [mod_python.so] Fehler 1
> make[1]: Leaving directory `/usr/src/mod_python/mod_python-3.3.1/src'
> make: *** [do_dso] Fehler 2
>
>
> What to do now?
>
> Thanks,
> Andre
>
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>



------------------------------

Message: 3
Date: Mon, 20 Oct 2008 16:52:25 +0200
From: Andre H?bner <andre.huebner at gmx.de>
Subject: Re: [mod_python] compile problem with new apr/apr-util
To: <mod_python at modpython.org>
Cc: Graham Dumpleton <graham.dumpleton at gmail.com>
Message-ID: <F03902AF4AD74E93B13378F431287F12 at nmm.local>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
	reply-type=original

Hi,

> Already fixed in subversion trunk from memory.

>  svn co https://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk

> Code at that location should read:

>     while ((bytes_read < len || len == 0) &&
>            !(b == APR_BRIGADE_SENTINEL(bb) ||
>              APR_BUCKET_IS_EOS(b) || APR_BUCKET_IS_FLUSH(b))) {

> Graham


thx, is working...

Thanks,
Andre


------------------------------

_______________________________________________
Mod_python mailing list
Mod_python at modpython.org
http://mailman.modpython.org/mailman/listinfo/mod_python


End of Mod_python Digest, Vol 67, Issue 19
******************************************



More information about the Mod_python mailing list