[mod_python] trouble instaling mod_python over apache 1.3.31

David Fraser davidf at sjsoft.com
Sat Jul 3 19:11:17 EDT 2004


Gerardo Rodriguez Gutierrez wrote:

> I am using FreeBSD 4.9 Release
>
> I donwload sources and build Apache/1.3.31 (Unix) PHP/4.3.6 
> mod_ssl/2.8.17 with OpenSSL/0.9.7d and this apache modules:
> mod_php4, mod_ssl, mod_setenvif, mod_so, mod_auth, mod_access, 
> mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, 
> mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, 
> mod_mime, mod_log_config, mod_env, http_core
>
> Also I download sources from python and build Python 2.3.4, the 
> mod_python version is the 2.7.10
>
>
> I hope this helps you to help me...
>
The workaround Patrick referred to is quoted below, hope it helps:

> You are so absolutely right Grisha:
>
> I had that implemented in 4.9 but upgraded to 5.2.1 and forgot about it.
> The work around is to add
>
> LD_PRELOAD=/usr/lib/libc_r.so ## or libpthread.so
> export LD_PRELOAD
>
> in /usr/local/sbin/envvars
>
> and restart apache
> This worked in 5.2.1 just now as well.
>
> Reed O'Brien
> 4.6692016090
>
> Gregory (Grisha) Trubetskoy wrote:
>
>> There is also a wrokaround, it is documented in the mod_python FreeBSD
>> port, check out /usr/ports/www/mod_python3/pkg-message
>>
>> Grisha
>>
>> On Wed, 2 Jun 2004, Reed L. O'Brien wrote:
>>
>>
>>> Compile without threads.
>>>
>>> Perica Zivkovic wrote:
>>>
>>>> Hi,
>>>>
>>>> sorry for posting this but I checked all documentation and google and
>>>> didn't find any help...
>>>>
>>>> I installed FreeBSD 4.9 and on that clean install I installed from
>>>> source (not ports) following:
>>>>
>>>> 1. apache 2.0.49
>>>> 2. python 2.3.4
>>>> 3. mod_python 3.1.3 (configured with apxs...)
>>>>
>>>> everithing was smooth and easy but...
>>>>
>>>> I included "LoadModule ..." line provided to me by mod python install
>>>> script and after I attempt to start apache I get this:
>>>>
>>>> ----------------------------
>>>> Syntax error on line 233 of /usr/local/apache2/conf/httpd.conf:
>>>> Cannot load /usr/local/apache2/modules/mod_python.so into server:
>>>> /usr/local/apache2/modules/mod_python.so: Undefined symbol
>>>> "pthread_self"
>>>> ----------------------------
>>>>
>>>> I'm not posting this after first failed attempt... I tried to 
>>>> reinstall
>>>> an do this three times but no luck...
>>>>
>>>> Please help
>>>>
>>>> grt.
>>>>
>>>> Perica
>>>



More information about the Mod_python mailing list