Re: [modwsgi] Updating mod_wsgi using Xcode.app

2013-03-22 Thread Ignace Suy
on your step 1. i did that already - otherwise i would have gotten nowhere
on your step 2. make returns the same missing https.h, and running:
ignace_air:mod_wsgi-3.4 ignace$ /usr/bin/python
Python 2.7.2 (default, Jun 20 2012, 16:23:33) 
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type help, copyright, credits or license for more information.
 

:-)
-ignace



On Mar 22, 2013, at 12:24 AM, Graham Dumpleton graham.dumple...@gmail.com 
wrote:

 FWIW, for the Apache issue, it was already documented in the group discussion 
 thread you originally replied to. It said:
 
 
 Try going to:
 
 /Applications/Xcode.app/Contents/Developer/Toolchains/
 
 and do:
 
 ln -s XcodeDefault.xctoolchain OSX10.8.xctoolchain
 
 
 With this in place, the make runs fine.
 
 If using the Apple supplied Python you would then get:
 
 $ otool -L .libs/mod_wsgi.so
 .libs/mod_wsgi.so:
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
 version 169.3.0)
   /System/Library/Frameworks/Python.framework/Versions/2.7/Python 
 (compatibility version 2.7.0, current version 2.7.2)
   
 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 
 (compatibility version 150.0.0, current version 744.18.0)
 
 If you were to run tool -L on your mod_wsgi.so, I suspect you may see the 
 same, which is why what you are doing can cause problems, because it will be 
 using Python 2.7.2 framework at run time but has been compiled against Python 
 2.7.3 header files.
 
 To summarise, do the following steps:
 
 1. Add symlink for computer tool chain.
 
 cd /Applications/Xcode.app/Contents/Developer/Toolchains/
 sudo ln -s XcodeDefault.xctoolchain OSX10.8.xctoolchain
 
 2. Building using Apple Python by running mod_wsgi source code:
 
 make distclean
 ./configure --with-python=/usr/bin/python
 make
 
 If /usr/bin/python isn't saying it is 2.7.2, then you have big problems as 
 your Apple supplied Python has been overwritten in some way.
 
 Graham
 
 
 
 
 On 22 March 2013 10:11, Graham Dumpleton graham.dumple...@gmail.com wrote:
 
 
 
 On 22 March 2013 09:30, Ignace Suy ignace@gmail.com wrote:
 Hello Graham,
 
 I spend some 10 hours into building the module, got it to work properly and 
 was happy to share the info on that with others. Since you took real serious 
 effort into my message, here is more info on my challenge, maybe this helps 
 you too solve future frustrations on OSX.
 
 in a nutshell:
 
 unpack mod_wsgi 3.4
 run ./configure (no issues)
 the Makefile created states:
 CPPFLAGS =  
 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DNDEBUG
 
 lets take a look:
 ignace_air:bin ignace$ cd 
 /Library/Frameworks/Python.framework/Versions/2.7/bin
 ignace_air:bin ignace$ ./python
 Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43)
 [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
 Type help, copyright, credits or license for more information.
 
 
 there is also another 2.5, 2.6, 2.7 version of python on this system, lets 
 take a look:
 ignace_air:mod_wsgi-3.4 ignace$ cd 
 /System/Library/Frameworks/Python.framework/Versions/2.7/bin
 ignace_air:bin ignace$ ./python
 Python 2.7.2 (default, Jun 20 2012, 16:23:33)
 [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
 Type help, copyright, credits or license for more information.
  ^D
 
 On a fresh install of MacOS X and XCode there is only 
 /System/Library/Frameworks/Python.framework and it is version 2.7.2 of 
 Python. I have a brand new box here that hasn't been setup yet, so know this 
 to be. :-)
 
 The version 2.7.3 you have of Python cannot be from Apple and must have been 
 separately installed.
 
 There are a number of possibilities for how it could have got there.
 
 1. The Python software foundation MacOS X installer for Python was explicitly 
 installed.
 2. You are using MacPorts, HomeBrew or fink packaging system and have either 
 explicitly installed it or it was installed as a dependency.
  
  
 I did not install any python. I assume they came with the OS and with Xcode. 
 Cant trace that anymore. I cannot judge which one is 'the best'.
 Basically: i did not choose consciously what python to use, ./configure took 
 it.
 
 As I said, you are better off using the Apple one and using the --with-python 
 option to indicate that if necessary.
 
 The issue though is whether you system has been mucked up by the alternate 
 Python installation.
 
 I want you to run:
 
 which python
 
 what is the result of this? Does it say:
 
 /usr/bin/python
 
 or something else?
 
 When you run:
 
 /usr/bin/python
 
 and enter at the prompt:
 
 import sys
 print sys.prefix
 print sys.version_info
 
 what do you get?
 
 Then suggest in mod_sgi source code doing:
 
 make distclean
 ./configure --with-python=/usr/bin/python
 
 Then send what CPPFLAGS, LDFLAGS and LDLIBS are set to.
 
 After we sort out this much, can then look at Apache issues next.
  
 If you have 

Re: [modwsgi] Updating mod_wsgi using Xcode.app

2013-03-21 Thread Ignace Suy
Hello Graham, 

I spend some 10 hours into building the module, got it to work properly and was 
happy to share the info on that with others. Since you took real serious effort 
into my message, here is more info on my challenge, maybe this helps you too 
solve future frustrations on OSX.

in a nutshell:

unpack mod_wsgi 3.4
run ./configure (no issues)
the Makefile created states:
CPPFLAGS =  
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DNDEBUG

lets take a look:
ignace_air:bin ignace$ cd /Library/Frameworks/Python.framework/Versions/2.7/bin
ignace_air:bin ignace$ ./python
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type help, copyright, credits or license for more information.


there is also another 2.5, 2.6, 2.7 version of python on this system, lets take 
a look:
ignace_air:mod_wsgi-3.4 ignace$ cd 
/System/Library/Frameworks/Python.framework/Versions/2.7/bin
ignace_air:bin ignace$ ./python
Python 2.7.2 (default, Jun 20 2012, 16:23:33) 
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type help, copyright, credits or license for more information.
 ^D


I did not install any python. I assume they came with the OS and with Xcode. 
Cant trace that anymore. I cannot judge which one is 'the best'. 
Basically: i did not choose consciously what python to use, ./configure took it.
If you have additional questions on this, or want me run a test on this OSX, 
now or later, pls feel free.


This was NOT my problem. 


after unpacking and
./configure;make

i got:
/usr/sbin/apxs -c 
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DNDEBUG  
-Wc,'-arch x86_64' mod_wsgi.c -Wl,-F/Library/Frameworks -framework Python -u 
_PyMac_Error   -arch x86_64 -ldl  -framework CoreFoundation  
/usr/share/apr-1/build-1/libtool --silent --mode=compile 
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc
-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/local/include 
-I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1  -arch 
x86_64 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 
-DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c  touch mod_wsgi.slo
mod_wsgi.c:34:10: fatal error: 'httpd.h' file not found
#include httpd.h
 ^
1 error generated.
apxs:Error: Command failed with rc=65536


oops. where is apache?
ignace_air:mod_wsgi-3.4 ignace$ sudo find /Library -name httpd.h
ignace_air:mod_wsgi-3.4 ignace$ sudo find /usr -name httpd.h
ignace_air:mod_wsgi-3.4 ignace$ sudo find /Applications/Xcode.app/ -name httpd.h
/Applications/Xcode.app//Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/apache2/httpd.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/apache2/httpd.h

since i cannot find an option in ./configure to change the apache includes, i 
added them to the makefile (i am merely a web developer). i realize that apple 
maybe ditched the apache includes together with the hiding of apache in OSX 
10.8.2 ...

i ran into the same problems with:
apr.h
Availability.h

they are all somewhere under:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include

this solved the building process for me and i happily started using the module.
As a sidenote: this machine is too new for several python-module-combinations 
:-( , so eventually i had to install linux on this hardware.


kind regards, Ignace

-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to modwsgi+unsubscr...@googlegroups.com.
To post to this group, send email to modwsgi@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [modwsgi] Updating mod_wsgi using Xcode.app

2012-06-24 Thread Gnarlodious
OK, now I get error:

/usr/share/apr-1/build-1/libtool --silent --mode=compile 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
 
   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/local/include 
-I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1  -arch 
x86_64 
-I/usr/local/python-3.1.3/frameworks/Python.framework/Versions/3.1/include/python3.1
 
-DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c  touch mod_wsgi.slo
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1

-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/modwsgi/-/CgqxrsfIWsQJ.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.



Re: [modwsgi] Updating mod_wsgi using Xcode.app

2012-06-24 Thread Graham Dumpleton
At which point I have no idea. It is possible that 'libtool' files in:

/usr/share/libtool/config

are not setup to know about this new C compiler.

Graham

On 24 June 2012 22:17, Gnarlodious gnarlodi...@gmail.com wrote:
 OK, now I get error:

 /usr/share/apr-1/build-1/libtool --silent --mode=compile
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
    -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/local/include
 -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1  -arch
 x86_64
 -I/usr/local/python-3.1.3/frameworks/Python.framework/Versions/3.1/include/python3.1
 -DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c  touch mod_wsgi.slo
 libtool: compile: unable to infer tagged configuration
 libtool: compile: specify a tag with `--tag'
 apxs:Error: Command failed with rc=65536
 .
 make: *** [mod_wsgi.la] Error 1

 --
 You received this message because you are subscribed to the Google Groups
 modwsgi group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/modwsgi/-/CgqxrsfIWsQJ.

 To post to this group, send email to modwsgi@googlegroups.com.
 To unsubscribe from this group, send email to
 modwsgi+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/modwsgi?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.



Re: [modwsgi] Updating mod_wsgi using Xcode.app

2012-06-24 Thread Gnarlodious
I had to go into 
ftp://127.0.0.1//usr/share/apr-1/build-1/libtool

And set the path to the compiler. After that I get this error:

/usr/share/apr-1/build-1/libtool --silent --mode=compile 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
 
   -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/local/include 
-I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1  -arch 
x86_64 
-I/usr/local/python-3.1.3/frameworks/Python.framework/Versions/3.1/include/python3.1
 
-DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c  touch mod_wsgi.slo
mod_wsgi.c:34:10: fatal error: 'httpd.h' file not found
#include httpd.h
 ^
1 error generated.
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1
 
apxs line 735 does say #include httpd.h I did find a file at

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/apache2/httpd.h

Maybe that is what it wants?

-- Gnarlie

-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/modwsgi/-/zgD_7y40LUAJ.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.



Re: [modwsgi] Updating mod_wsgi using Xcode.app

2012-06-24 Thread Gnarlodious


 I had to go into
 /usr/share/apr-1/build-1/libtoolftp://127.0.0.1//usr/share/apr-1/build-1/libtool

 And set the path to the compiler. After that I get this error:

 /usr/share/apr-1/build-1/libtool --silent --mode=compile 
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
  
-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/local/include 
 -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1  -arch 
 x86_64 
 -I/usr/local/python-3.1.3/frameworks/Python.framework/Versions/3.1/include/python3.1
  
 -DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c  touch mod_wsgi.slo
 mod_wsgi.c:34:10: fatal error: 'httpd.h' file not found
 #include httpd.h
  ^
 1 error generated.
 apxs:Error: Command failed with rc=65536
 .
 make: *** [mod_wsgi.la] Error 1
  
 apxs line 735 does say #include httpd.h I did find a file at


 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/apache2/httpd.h

 Maybe that is what it wants?

 -- Gnarlie


-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/modwsgi/-/726PJ5UfRMQJ.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.



Re: [modwsgi] Updating mod_wsgi using Xcode.app

2012-06-24 Thread Gnarlodious
Is it possible that if the Makefile script was updated to point to the 
Xcode folders at the beginning all this would work as expected? That is 
what I am seeing all over, a lot of unixy stuff is now in specialized 
applications, probably part of the move toward the ios minimalist operating 
system.

If you have Gchat and want access to my Screen Sharing I can let you in 
maybe you can fix it in the wsgi installer.

-- Gnarlie

-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/modwsgi/-/JhxaxP3S90QJ.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.



Re: [modwsgi] Updating mod_wsgi using Xcode.app

2012-06-24 Thread Graham Dumpleton
Try going to:

/Applications/Xcode.app/Contents/Developer/Toolchains/

and do:

ln -s XcodeDefault.xctoolchain OSX10.8.xctoolchain

and see if that solves all the problems in one go without you needing
to change anything.

IOW, you are creating a symlink for the directory it is looking for,
to the one that actually exists.

Graham

On 24 June 2012 23:29, Gnarlodious gnarlodi...@gmail.com wrote:
 Is it possible that if the Makefile script was updated to point to the Xcode
 folders at the beginning all this would work as expected? That is what I am
 seeing all over, a lot of unixy stuff is now in specialized applications,
 probably part of the move toward the ios minimalist operating system.

 If you have Gchat and want access to my Screen Sharing I can let you in
 maybe you can fix it in the wsgi installer.

 -- Gnarlie

 --
 You received this message because you are subscribed to the Google Groups
 modwsgi group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/modwsgi/-/JhxaxP3S90QJ.

 To post to this group, send email to modwsgi@googlegroups.com.
 To unsubscribe from this group, send email to
 modwsgi+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/modwsgi?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.



Re: [modwsgi] Updating mod_wsgi using Xcode.app

2012-06-23 Thread Graham Dumpleton
On 24 June 2012 11:22, Gnarlodious gnarlodi...@gmail.com wrote:
 I don't know what all of that means, and nobody on the tester's website
 knows anything. But I need to get this thing compiled and running in daemon
 mode so when it goes public someone knows something.

 apxs -q CC
 -bash:
 /Applications/Server.app/Contents/ServerRoot/usr/libexec/apache2/mod_wsgi.so:
 cannot execute binary file

Are you saying that it outputs that error when you run 'apxs -q CC'?

When you run it, make sure you aren't in directory of mod_wsgi source.
It shouldn't matter, but just make sure.

If apxs gives that error, they have truly mucked something up.

Graham

-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.



Re: [modwsgi] Updating mod_wsgi using Xcode.app

2012-06-23 Thread Gnarlodious
Oops, that was erroneous. Here is what really happens: 

apxs -q CC 
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc

Is that the cc compiler? How do I use it to build mod_wsgi?

-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/modwsgi/-/mEB40O4Q-fwJ.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.



Re: [modwsgi] Updating mod_wsgi using Xcode.app

2012-06-23 Thread Graham Dumpleton
Do you actually have the required Xcode on the system?

If you do, where does it have 'cc' command installed?

On 24 June 2012 11:55, Gnarlodious gnarlodi...@gmail.com wrote:
 Oops, that was erroneous. Here is what really happens:

 apxs -q CC
 /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc

 Is that the cc compiler? How do I use it to build mod_wsgi?

 --
 You received this message because you are subscribed to the Google Groups
 modwsgi group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/modwsgi/-/mEB40O4Q-fwJ.

 To post to this group, send email to modwsgi@googlegroups.com.
 To unsubscribe from this group, send email to
 modwsgi+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/modwsgi?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.



Re: [modwsgi] Updating mod_wsgi using Xcode.app

2012-06-23 Thread Gnarlodious
OK, I found it at:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc

Which is symlinked to clang. So I guess that means a bug report.



On Saturday, June 23, 2012 8:49:58 PM UTC-6, Graham Dumpleton wrote:

 Do you actually have the required Xcode on the system? 

 If you do, where does it have 'cc' command installed? 

 On 24 June 2012 11:55, Gnarlodious gnarlodi...@gmail.com wrote: 
  Oops, that was erroneous. Here is what really happens: 
  
  apxs -q CC 
  
 /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc
  

  
  Is that the cc compiler? How do I use it to build mod_wsgi? 
  
  -- 
  You received this message because you are subscribed to the Google 
 Groups 
  modwsgi group. 
  To view this discussion on the web visit 
  https://groups.google.com/d/msg/modwsgi/-/mEB40O4Q-fwJ. 
  
  To post to this group, send email to modwsgi@googlegroups.com. 
  To unsubscribe from this group, send email to 
  modwsgi+unsubscr...@googlegroups.com. 
  For more options, visit this group at 
  http://groups.google.com/group/modwsgi?hl=en. 


-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/modwsgi/-/snR6TkCMEwwJ.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.



Re: [modwsgi] Updating mod_wsgi using Xcode.app

2012-06-23 Thread Graham Dumpleton
For now, edit 'apxs' and look for what it says for:

my $installbuilddir = /usr/share/httpd/build;
get_config_vars($installbuilddir/config_vars.mk,\%config_vars);

Then got edir the config_vars.mk file based on the definition. For this case:

/usr/share/httpd/build/config_vars.mk

Then in that file look for:

CC = 
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc

and change it to:

CC = 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc

Graham

On 24 June 2012 13:54, Gnarlodious gnarlodi...@gmail.com wrote:
 OK, I found it at:

 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc

 Which is symlinked to clang. So I guess that means a bug report.



 On Saturday, June 23, 2012 8:49:58 PM UTC-6, Graham Dumpleton wrote:

 Do you actually have the required Xcode on the system?

 If you do, where does it have 'cc' command installed?

 On 24 June 2012 11:55, Gnarlodious gnarlodi...@gmail.com wrote:
  Oops, that was erroneous. Here is what really happens:
 
  apxs -q CC
 
  /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc
 
  Is that the cc compiler? How do I use it to build mod_wsgi?
 
  --
  You received this message because you are subscribed to the Google
  Groups
  modwsgi group.
  To view this discussion on the web visit
  https://groups.google.com/d/msg/modwsgi/-/mEB40O4Q-fwJ.
 
  To post to this group, send email to modwsgi@googlegroups.com.
  To unsubscribe from this group, send email to
  modwsgi+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/modwsgi?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 modwsgi group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/modwsgi/-/snR6TkCMEwwJ.

 To post to this group, send email to modwsgi@googlegroups.com.
 To unsubscribe from this group, send email to
 modwsgi+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/modwsgi?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.