[mod_python] Compling error:

FINKEL, PAUL D, ATTSI finkel at att.com
Tue Oct 7 12:24:15 EDT 2008


 
Hello - attempting to compile mod_python on Solaris 10 and get this
series of errors at the end of the make:

************************************************************************
*****************

ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
*** Error code 1
make: Fatal error: Command failed for target `mod_python.so'
Current working directory /users/ghochberg/pkgs/mod_python-3.3.1/src
*** Error code 1
make: Fatal error: Command failed for target `do_dso'

************************************************************************
*****************

I've tried a number of things including installing the GNU binutils
tools and modifying PATH to find these files. I get the same results.

The configure command line:

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

Thanks!





-----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: Tuesday, October 07, 2008 12:00 PM
To: mod_python at modpython.org
Subject: Mod_python Digest, Vol 67, Issue 4

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. on OSX Leopard: "The process has forked..." crash (Lawrence Wang)
   2. Re: on OSX Leopard: "The process has forked..." crash
      (Graham Dumpleton)


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

Message: 1
Date: Mon, 6 Oct 2008 18:51:26 -0400
From: "Lawrence Wang" <levity at gmail.com>
Subject: [mod_python] on OSX Leopard: "The process has forked..."
	crash
To: mod_python at modpython.org
Message-ID:
	<22e13a220810061551o7df618b5xca1c8db6c003453e at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi! I compiled mod_python on OSX Leopard with a simple ./configure &&
make && sudo make install, and it works just fine for almost everything.
However, certain Python operations cause Apache to crash with many of
these errors in the log:

> The process has forked and you cannot use this CoreFoundation 
> functionality safely. You MUST exec().
>
Break on
> __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTI
> ONALITY___YOU_MUST_EXEC__()
> to debug.


One example of code that causes this:

import urllib2
>
data = urllib2.urlopen('http://www.google.com').read()


I'm pretty sure this is caused by mod_python and not, say, python
itself, because I don't get the same error when I run the same script as
a CGI handler in apache.

The hardware is a MacBook with Core 2 Duo (hence 64-bit). Some googling
revealed that the same error is caused by an old PHP library[1], and
that is solvable by changing its configuration and recompiling, so I'm
hoping the same is the case here.

Any help you can offer is greatly appreciated!

Lawrence Wang

[1]:
http://iparrizar.mnstate.edu/~juan/urania/2008/09/05/forking-problems-wi
th-freetype-solved/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_pyth
on/attachments/20081006/fb4aac4e/attachment-0001.html

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

Message: 2
Date: Tue, 7 Oct 2008 12:12:06 +1100
From: "Graham Dumpleton" <graham.dumpleton at gmail.com>
Subject: Re: [mod_python] on OSX Leopard: "The process has forked..."
	crash
To: "Lawrence Wang" <levity at gmail.com>
Cc: mod_python at modpython.org
Message-ID:
	<88e286470810061812h186a0da2xec30813f69850676 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Whoops, forgot to reply to list. Can OP please ensure they reply-all to
this email and not first one.

Are you running PHP on the same server? Have you disabled PHP and then
stopped/started Apache to see if problem goes away?

There should be no problem with Python/mod_python itself, but a problem
like this in PHP can be inherited by the Python/mod_python instance
running in the same process.

In other words, not a Python/mod_python problem, instead it is being
affected by PHP hosted by same Apache instance.

Graham

2008/10/7 Lawrence Wang <levity at gmail.com>:
> Hi! I compiled mod_python on OSX Leopard with a simple ./configure && 
> make && sudo make install, and it works just fine for almost 
> everything. However, certain Python operations cause Apache to crash 
> with many of these errors in the log:
>>
>> The process has forked and you cannot use this CoreFoundation 
>> functionality safely. You MUST exec().
>>
>> Break on
>> __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCT
>> IONALITY___YOU_MUST_EXEC__()
>> to debug.
>
> One example of code that causes this:
>>
>> import urllib2
>>
>> data = urllib2.urlopen('http://www.google.com').read()
>
> I'm pretty sure this is caused by mod_python and not, say, python 
> itself, because I don't get the same error when I run the same script 
> as a CGI handler in apache.
> The hardware is a MacBook with Core 2 Duo (hence 64-bit). Some 
> googling revealed that the same error is caused by an old PHP 
> library[1], and that is solvable by changing its configuration and 
> recompiling, so I'm hoping the same is the case here.
> Any help you can offer is greatly appreciated!
> Lawrence Wang
> [1]: 
> http://iparrizar.mnstate.edu/~juan/urania/2008/09/05/forking-problems-
> with-freetype-solved/ _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>
>


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

_______________________________________________
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 4
*****************************************



More information about the Mod_python mailing list