[mod_python] Building Problems on OS X (intel macbook core2duo)

Graham Dumpleton grahamd at dscpl.com.au
Wed Jan 10 23:28:32 EST 2007


Whoops. My web mail used the wrong email when I clicked reply on it. :-(

Lets reply to the correct email.

Edit 'src/Makefile' and look for LDFLAGS definition similar to:

LDFLAGS= -Wl,-framework,Python  -u __dummy -u _PyMac_Error -framework System $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
-framework CoreServices -framework Foundation   -Wl,-F. -Wl,-F.

Edit this like to remove:

  $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)

Then try a make again.

Graham

michael starke wrote ..
> Well,
> 
> i upgraded the Xtools and now got the built 5367 of the gcc compiler, 
> but still i get the same error while building mod_python.
> Any suggestions? Help would be appreciatiated :)
> 
> greetings,
> michael
> 
> On 08.01.2007, at 18:39, michael starke wrote:
> 
> > Hi sorry, for the messup with the mailings... am new to this =(
> >
> > Here's the output form gcc -v
> >
> > Using built-in specs.
> > Target: i686-apple-darwin8
> > Configured with: /private/var/tmp/gcc/gcc-5363.obj~28/src/configure 
> > --disable-checking -enable-werror --prefix=/usr --mandir=/share/man 
> > --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^ 
> > [cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 -- 
> > with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with- 
> > arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-
> > darwin8 --target=i686-apple-darwin8
> > Thread model: posix
> > gcc version 4.0.1 (Apple Computer, Inc. build 5363)
> >
> > I startde downloading the 2.4.1 developer tools, to take a look at  
> > the buildversion of it's gcc and i'll try it with this version then 
> > again.
> >
> >
> > On 08.01.2007, at 10:39, Graham Dumpleton wrote:
> >
> >> Run:
> >>
> >>   gcc -v
> >>
> >> and post the result here. You might be hitting this problem:
> >>
> >>   http://issues.apache.org/jira/browse/MODPYTHON-186
> >>
> >> Only seems to affect certain versions of compiler tool chain.
> >>
> >> BTW.  Please keep followups on the mailing list.
> >>
> >> On 08/01/2007, at 6:45 PM, michael starke wrote:
> >>
> >>> I'll try that, but i used a pre-built python version to work  
> >>> parallel
> >>> so i don't know why the error is present there
> >>>
> >>> And i need python 2.4 (if i recall correctly) for some python  
> >>> packages to work.
> >>>
> >>> Michael
> >>>
> >>> On 08.01.2007, at 05:42, Graham Dumpleton wrote:
> >>>
> >>>> Can you try with the operating system supplied version of Python 
> >>>> (2.3.5)
> >>>> instead of your own compiled Python 2.4 as the build configuration
> >>>> associated with your 2.4 version doesn't look right.
> >>>>
> >>>> BTW, did you compiled your Python 2.4 from scratch? You might be 
> >>>> better
> >>>> off using one of the prebuilt dmg versions of Python instead as  
> >>>> they tend
> >>>> to be setup correctly and work in parallel to the OS version  
> >>>> better.
> >>>>
> >>>> Graham
> >>>>
> >>>> michael starke wrote ..
> >>>>> Hello there,
> >>>>>
> >>>>> i have a big problem and since i'm not to experinced witht the  
> >>>>> whole
> >>>>> built from source way i want to ask you, if you know where the
> >>>>> problem lies.
> >>>>>
> >>>>> I have apache2 installed (built and running) in  /usr/local/ 
> >>>>> apache2/...
> >>>>> I have python2.4 installed and running smoothly
> >>>>> I downloaded mod_python 3.2.10 and configured it with
> >>>>>
> >>>>> 	--with-apxs=/usr/local/apache2/bin/apxs
> >>>>> 	--with-python=/usr/local/bin/python2.4
> >>>>>
> >>>>> so the configure seems to work, but when i run make/make  
> >>>>> install at
> >>>>> the end i get the error, that the build mod_python.so is not  
> >>>>> found,
> >>>>> there is a symlink in the /src/ folder and it points to a .built/
> >>>>> directory, but that is not there...
> >>>>>
> >>>>> Having no clue what to do i'm asking for your help. The same  
> >>>>> routine
> >>>>> (with apache 2.0.x) and differnent install locations worked  
> >>>>> fine on
> >>>>> my powermac a year before but the installation on the macbook  
> >>>>> is not
> >>>>> working the way it should be..obviously.
> >>>>>
> >>>>> I can give you a logpart form make install, but i guess it's not
> >>>>> really helping.
> >>>>>
> >>>>> ----------make install output------------
> >>>>>
> >>>>> /usr/local/apache2/build/libtool --silent --mode=compile gcc - 
> >>>>> prefer-
> >>>>> pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp - 
> >>>>> g -O2 -
> >>>>> I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/ 
> >>>>> usr/
> >>>>> local/apache2/include  -I/Users/michael/Desktop/ 
> >>>>> mod_python-3.2.10/src/
> >>>>> include -I/usr/local/apache2/include -I/Library/Frameworks/
> >>>>> Python.framework/Versions/2.4/include/python2.4  -c -o  
> >>>>> mod_python.lo
> >>>>> mod_python.c && touch mod_python.slo
> >>>>> mod_python.c: In function 'python_cleanup':
> >>>>> mod_python.c:313: warning: passing argument 1 of 'free' discards
> >>>>> qualifiers from pointer target type
> >>>>> mod_python.c: In function 'init_mutexes':
> >>>>> mod_python.c:427: warning: assignment discards qualifiers from
> >>>>> pointer target type
> >>>>> mod_python.c:458: warning: assignment discards qualifiers from
> >>>>> pointer target type
> >>>>> mod_python.c: In function 'reinit_mutexes':
> >>>>> mod_python.c:540: warning: assignment discards qualifiers from
> >>>>> pointer target type
> >>>>> /usr/local/apache2/build/libtool --silent --mode=compile gcc - 
> >>>>> prefer-
> >>>>> pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp - 
> >>>>> g -O2 -
> >>>>> I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/ 
> >>>>> usr/
> >>>>> local/apache2/include  -I/Users/michael/Desktop/ 
> >>>>> mod_python-3.2.10/src/
> >>>>> include -I/usr/local/apache2/include -I/Library/Frameworks/
> >>>>> Python.framework/Versions/2.4/include/python2.4  -c -o
> >>>>> _apachemodule.lo _apachemodule.c && touch _apachemodule.slo
> >>>>> /usr/local/apache2/build/libtool --silent --mode=compile gcc - 
> >>>>> prefer-
> >>>>> pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp - 
> >>>>> g -O2 -
> >>>>> I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/ 
> >>>>> usr/
> >>>>> local/apache2/include  -I/Users/michael/Desktop/ 
> >>>>> mod_python-3.2.10/src/
> >>>>> include -I/usr/local/apache2/include -I/Library/Frameworks/
> >>>>> Python.framework/Versions/2.4/include/python2.4  -c -o
> >>>>> requestobject.lo requestobject.c && touch requestobject.slo
> >>>>> requestobject.c: In function 'req_get_options':
> >>>>> requestobject.c:426: warning: initialization discards  
> >>>>> qualifiers from
> >>>>> pointer target type
> >>>>> requestobject.c:427: warning: initialization from incompatible
> >>>>> pointer type
> >>>>> requestobject.c: In function 'getmakeobj':
> >>>>> requestobject.c:1447: warning: assignment from incompatible  
> >>>>> pointer type
> >>>>> requestobject.c:1454: warning: assignment from incompatible  
> >>>>> pointer type
> >>>>> requestobject.c: In function 'request_tp_clear':
> >>>>> requestobject.c:1569: warning: assignment from incompatible  
> >>>>> pointer type
> >>>>> /usr/local/apache2/build/libtool --silent --mode=compile gcc - 
> >>>>> prefer-
> >>>>> pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp - 
> >>>>> g -O2 -
> >>>>> I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/ 
> >>>>> usr/
> >>>>> local/apache2/include  -I/Users/michael/Desktop/ 
> >>>>> mod_python-3.2.10/src/
> >>>>> include -I/usr/local/apache2/include -I/Library/Frameworks/
> >>>>> Python.framework/Versions/2.4/include/python2.4  -c -o  
> >>>>> tableobject.lo
> >>>>> tableobject.c && touch tableobject.slo
> >>>>> tableobject.c:1057: warning: initialization from incompatible  
> >>>>> pointer
> >>>>> type
> >>>>> /usr/local/apache2/build/libtool --silent --mode=compile gcc - 
> >>>>> prefer-
> >>>>> pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp - 
> >>>>> g -O2 -
> >>>>> I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/ 
> >>>>> usr/
> >>>>> local/apache2/include  -I/Users/michael/Desktop/ 
> >>>>> mod_python-3.2.10/src/
> >>>>> include -I/usr/local/apache2/include -I/Library/Frameworks/
> >>>>> Python.framework/Versions/2.4/include/python2.4  -c -o util.lo  
> >>>>> util.c
> >>>>> && touch util.slo
> >>>>> /usr/local/apache2/build/libtool --silent --mode=compile gcc - 
> >>>>> prefer-
> >>>>> pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp - 
> >>>>> g -O2 -
> >>>>> I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/ 
> >>>>> usr/
> >>>>> local/apache2/include  -I/Users/michael/Desktop/ 
> >>>>> mod_python-3.2.10/src/
> >>>>> include -I/usr/local/apache2/include -I/Library/Frameworks/
> >>>>> Python.framework/Versions/2.4/include/python2.4  -c -o
> >>>>> serverobject.lo serverobject.c && touch serverobject.slo
> >>>>> serverobject.c:351: warning: initialization from incompatible  
> >>>>> pointer
> >>>>> type
> >>>>> /usr/local/apache2/build/libtool --silent --mode=compile gcc - 
> >>>>> prefer-
> >>>>> pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp - 
> >>>>> g -O2 -
> >>>>> I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/ 
> >>>>> usr/
> >>>>> local/apache2/include  -I/Users/michael/Desktop/ 
> >>>>> mod_python-3.2.10/src/
> >>>>> include -I/usr/local/apache2/include -I/Library/Frameworks/
> >>>>> Python.framework/Versions/2.4/include/python2.4  -c -o  
> >>>>> connobject.lo
> >>>>> connobject.c && touch connobject.slo
> >>>>> /usr/local/apache2/build/libtool --silent --mode=compile gcc - 
> >>>>> prefer-
> >>>>> pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp - 
> >>>>> g -O2 -
> >>>>> I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/ 
> >>>>> usr/
> >>>>> local/apache2/include  -I/Users/michael/Desktop/ 
> >>>>> mod_python-3.2.10/src/
> >>>>> include -I/usr/local/apache2/include -I/Library/Frameworks/
> >>>>> Python.framework/Versions/2.4/include/python2.4  -c -o
> >>>>> filterobject.lo filterobject.c && touch filterobject.slo
> >>>>> /usr/local/apache2/build/libtool --silent --mode=compile gcc - 
> >>>>> prefer-
> >>>>> pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp - 
> >>>>> g -O2 -
> >>>>> I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/ 
> >>>>> usr/
> >>>>> local/apache2/include  -I/Users/michael/Desktop/ 
> >>>>> mod_python-3.2.10/src/
> >>>>> include -I/usr/local/apache2/include -I/Library/Frameworks/
> >>>>> Python.framework/Versions/2.4/include/python2.4  -c -o hlist.lo
> >>>>> hlist.c && touch hlist.slo
> >>>>> /usr/local/apache2/build/libtool --silent --mode=compile gcc - 
> >>>>> prefer-
> >>>>> pic   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp - 
> >>>>> g -O2 -
> >>>>> I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/ 
> >>>>> usr/
> >>>>> local/apache2/include  -I/Users/michael/Desktop/ 
> >>>>> mod_python-3.2.10/src/
> >>>>> include -I/usr/local/apache2/include -I/Library/Frameworks/
> >>>>> Python.framework/Versions/2.4/include/python2.4  -c -o  
> >>>>> hlistobject.lo
> >>>>> hlistobject.c && touch hlistobject.slo
> >>>>> /usr/local/apache2/build/libtool --silent --mode=link gcc -o
> >>>>> mod_python.la  -rpath /usr/local/apache2/modules -module -avoid-
> >>>>> version    hlistobject.lo hlist.lo filterobject.lo connobject.lo
> >>>>> serverobject.lo util.lo tableobject.lo requestobject.lo
> >>>>> _apachemodule.lo mod_python.lo -Wl,-framework,Python -u  
> >>>>> _PyMac_Error /
> >>>>> Versions// -arch i386 -arch ppc -isysroot /Developer/SDKs/
> >>>>> MacOSX10.4u.sdk -g -lm -framework Python -ldl
> >>>>> install: src/mod_python.so: No such file or directory
> >>>>> make[1]: *** [install_dso] Error 71
> >>>>>
> >>>>> ---------------end make install output-------------------
> >>>>> _______________________________________________
> >>>>> 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


More information about the Mod_python mailing list