[mod_python] Compile problems - Mod_Python 3.1.4

Frank Gruman fgatwork at verizon.net
Mon May 16 11:35:03 EDT 2005


I do have those files.

toybox:~ # cd /usr/local/apache2/lib
toybox:/usr/local/apache2/lib # ls libapr*
libapr-0.a   libapr-0.so    libapr-0.so.0.9.6  libaprutil-0.la  
libaprutil-0.so.0
libapr-0.la  libapr-0.so.0  libaprutil-0.a     libaprutil-0.so  
libaprutil-0.so.0.9.6
toybox:/usr/local/apache2/lib #


My configuration started as

toybox:/sources/mod_python-3.1.4 # ./configure 
--with-apxs=/usr/local/apache2/bin/apxs

and it seems to find the APR without any troubles...

Regards,
Frank

Jim Gallacher wrote:

> Frank Gruman wrote:
>
>> OK - so I have decided I am running to many things at tip and I am 
>> not an uber programmer, so I need to cool my jets.  I have set 
>> systems back on Apache 2.0.54 with the APR/APR-Util for that version 
>> (0.9.6).
>>
>> I can successfully configure, but have found that the make is trying 
>> to find a file that does not exist.  I have searched my drives for 
>> aprutil-0, and it does not exist.  
>
>
> You should look for libaprutil-0, libapr-0. On my system (Debian 
> unstable) I have the following (some of which are symbolic links):
>
> carbon:~$ ls /usr/lib/libapr*
> /usr/lib/libapr-0.a         /usr/lib/libaprutil-0.a
> /usr/lib/libapr-0.la        /usr/lib/libaprutil-0.la
> /usr/lib/libapr-0.so        /usr/lib/libaprutil-0.so
> /usr/lib/libapr-0.so.0      /usr/lib/libaprutil-0.so.0
> /usr/lib/libapr-0.so.0.9.6  /usr/lib/libaprutil-0.so.0.9.6
> /usr/lib/libapr.so.0        /usr/lib/libaprutil.so.0
>
> Regards,
> Jim
>
>> I have done builds of both Apache 2.0.54 with APR 0.9.6 as well as 
>> Apache 2.1.5-dev with APR 1.1.2.  No such file.  There is also a note 
>> to apr-0 that does not exist.
>>
>> Here is the log at the point of failure:
>>
>> gcc -pthread -shared 
>> build/temp.linux-i686-2.4/sources/mod_python-3.1.4/src/mod_python.o 
>> build/temp.linux-i686-2.4/sources/mod_python-3.1.4/src/_apachemodule.o 
>> build/temp.linux-i686-2.4/sources/mod_python-3.1.4/src/connobject.o 
>> build/temp.linux-i686-2.4/sources/mod_python-3.1.4/src/filterobject.o 
>> build/temp.linux-i686-2.4/sources/mod_python-3.1.4/src/hlist.o 
>> build/temp.linux-i686-2.4/sources/mod_python-3.1.4/src/hlistobject.o 
>> build/temp.linux-i686-2.4/sources/mod_python-3.1.4/src/requestobject.o 
>> build/temp.linux-i686-2.4/sources/mod_python-3.1.4/src/serverobject.o 
>> build/temp.linux-i686-2.4/sources/mod_python-3.1.4/src/tableobject.o 
>> build/temp.linux-i686-2.4/sources/mod_python-3.1.4/src/util.o -L 
>> -lapr-0 -laprutil-0 -o build/lib.linux-i686-2.4/mod_python_so.so
>> /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: 
>> cannot find -laprutil-0
>> collect2: ld returned 1 exit status
>> error: command 'gcc' failed with exit status 1
>> make[1]: *** [build] Error 1
>> make[1]: Leaving directory `/sources/mod_python-3.1.4/dist'
>> make: *** [do_dso] Error 2
>> toybox:/sources/mod_python-3.1.4 # /usr/local/apache2/bin/apr-config 
>> --version
>> 0.9.6
>> toybox:/sources/mod_python-3.1.4 #
>>
>> Any more ideas?
>>
>> Regards,
>> Frank
>>
>> Jim Gallacher wrote:
>>
>>> Frank Gruman wrote:
>>>
>>>> Thanks Jim,
>>>>
>>>> That helped.  I had to add one little fix to your diff.  You are 
>>>> missing a comma after the 'libraries = libraries' line. 
>>>
>>>
>>>
>>>
>>> Doh! This is what happens when you fix, test, do one last tweak and 
>>> then post without testing again.
>>>
>>>> It led me on to the next set of errors...
>>>>
>>>> The whole MAKE looks different now than it did before.  It runs 
>>>> through a couple of tests, and then starts to build the 
>>>> mod_python.so module (woo hoo!!).  But then I see a whole bunch of 
>>>> 'error: parse error before apr_off_t'.  I have attached a copy of 
>>>> the make log from that point on.
>>>>
>>>> I have tried running with APR 0.9.6 as well as the latest 
>>>> APR/APR-Util tip (1.1.2 - pulled from the 1.1.x branch at the same 
>>>> time as Apache - Friday, 06 May, afternoon...)
>>>>
>>>> I know I have seen apr_off_t errors before, but I can't recall the 
>>>> issue.
>>>
>>>
>>>
>>>
>>> Sorry, I can't help you there.
>>>
>>> Regards,
>>> Jim
>>>
>>>
>> _______________________________________________
>> Mod_python mailing list
>> Mod_python at modpython.org
>> http://mailman.modpython.org/mailman/listinfo/mod_python
>>
>
>


More information about the Mod_python mailing list