Updated: (MODPYTHON-65) 3.2 working version will not install on Mac OS X (10.3.7)
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Updated: (MODPYTHON-65) 3.2 working version will not install on Mac OS X (10.3.7)




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Updated: (MODPYTHON-65) 3.2 working version will not install on Mac OS X (10.3.7)  
Graham Dumpleton (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-19-05 12:49 PM

[ http://issues.apache.org/jira/brows...N-65?page=3Dall ]

Graham Dumpleton updated MODPYTHON-65:
--------------------------------------

Attachment: setup.py.in-2.diff

Attached supplementary patch to only do this workaround when required,
ie., when version of Python doesn't have required option already.

Copy and paste from mailing list included below.

On 19/08/2005, at 7:57 AM, Graham Dumpleton wrote:

>
> On 19/08/2005, at 2:59 AM, Jim Gallacher wrote:
>
> 
>
> Yep, my fault. It will not build on Mac OS X 10.3.9 without that =20
> option if
> you are using the standard version of GCC shipped with the operating
> system.
>
> I'll get onto my new Tiger laptop and try it there (haven't yet), =20
> but can
> you tell me which GCC you are using? I know the GCC version shipped =20
> on the
> box with Tiger, but are you using that, or are you using one =20
> supplied with
> Fink? Was worried that the change might not apply to the Fink =20
> version of GCC.

The missing bit of information here is that Python on Tiger (10.4) is =20
correctly
putting in the config/Makefile used by distutils the required =20
options. Ie.,

LDSHARED=3D       $(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup
BLDSHARED=3D      $(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup

The duplicated definition of the -undefined option causes grief when =20
setup.py
adds it as well.

Thus, setup.py will thus need to check first whether the -undefined =20
option
already exists. Thus, setup.py should use:

if sys.platform =3D=3D "darwin":
if not '-bundle' in sysconfig.get_config_var=20
("LDSHARED").split():
sysconfig._config_vars["LDSHARED"] =3D \
string.replace(sysconfig.get_config_var=20
("LDSHARED"), \
" -bundle "," -bundle -flat_namespace -undefined =20
suppress ")
sysconfig._config_vars["BLDSHARED"] =3D \
string.replace(sysconfig.get_config_var=20
("BLDSHARED"), \
" -bundle "," -bundle -flat_namespace -undefined =20
suppress ")

In Tiger it actually uses '-undefined dynamic_lookup' instead of what =20
I had
used which is '-undefined suppress'. If though you try and use '-=20
undefined
dynamic_lookup' on Panther (10.3) or earlier you will run up against a
further problem in that '-undefined dynamic_lookup' conflicts with the
default compilation mode of being compatible with Mac OS X 10.1. Thus,
still probably best to use '-undefined suppress', but the check means =20
that
it will only be used on older versions of Mac OS X anyway, or at =20
least where
the Python config isn't correct.

I'll attach a patch to the JIRA report on the original problem shortly.

Graham

> 3.2 working version will not install on Mac OS X (10.3.7)
> ---------------------------------------------------------
>
>          Key: MODPYTHON-65
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-65
>      Project: mod_python
>         Type: Bug
>   Components: core
>     Versions: 3.2.0
>  Environment: Mac OS X (10.3.7)
>     Reporter: Graham Dumpleton
>      Fix For: 3.2.0
>  Attachments: setup.py.in-2.diff, setup.py.in.diff
>
> Something is wrong with configure or setup.py file.
> /usr/bin/python setup.py build
> running build
> running build_py
> running build_ext
> building 'mod_python_so' extension
> gcc -Wl,-F. -Wl,-F. -bundle -framework Python build/temp.darwin-7.7.0-Pow=
er_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/mod_python.o build=
/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/=
src/_apachemodule.o build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/graha=
md/Workspaces/mod_python/src/connobject.o build/temp.darwin-7.7.0-Power_Mac=
intosh-2.3/Users/grahamd/Workspaces/mod_python/src/filterobject.o build/tem=
p.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/=
hlist.o build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspace=
s/mod_python/src/hlistobject.o build/temp.darwin-7.7.0-Power_Macintosh-2.3/=
Users/grahamd/Workspaces/mod_python/src/requestobject.o build/temp.darwin-7=
.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/mod_python/src/serverobje
=
ct.o build/temp.darwin-7.7.0-Power_Macintosh-2.3/Users/grahamd/Workspaces/m=
od_python/src/tableobject.o build/temp.darwin-7.7.0-Power_Macintosh-2.3/Use=
rs/grahamd/Workspaces/mod_python/src/util.o -L -lapr-0 -laprutil-0 -o build=
/lib.darwin-7.7.0-Power_Macintosh-2.3/mod_python_so.so
> ld: -L: directory name missing
> error: command 'gcc' failed with exit status 1
> More later when I have a chance to work out what is wrong.

--=20
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:55 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register