+1 > On 28 Oct 2014, at 17:50, John Pollard <[email protected]> wrote: > > Patrick's instructions on how to build worked for me, compressed for dummies > (like me) as this: > > Install XCode (6.1) > > cd /Applications/Xcode.app/Contents/Developer/Toolchains > sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain > > vi /tmp/Adaptors/Apache2.4/Makefile > and remove the arg -macosx_version_min 10.5 > > cd /tmp > svn co https://github.com/wocommunity/wonder.git/Utilities/Adaptors > cd /tmp/Adaptors > gnumake (some bits fail, but carry on) > gnumake Apache2.4 > > This creates: > mod_WebObjects.so > in /tmp/Adaptors/Apache2.4 > > I haven't tried using it yet, out of time today. If anyone has advice on > changes needed to httpd.conf for using Apache2.4 with WO, that would be of > interest. I will report back once I have tried it. > > John > >> On 28 Oct 2014, at 15:35, Gino Pacitti <[email protected]> wrote: >> >> so you have a compiled WOAdaptor? >> >> I originally had difficulty with that and so just went the simpler route and >> down versioned Apache to 2.2 >> >> >>> On 28 Oct 2014, at 15:31, Patrick Middleton <[email protected]> wrote: >>> >>> I am puzzled by this entire thread. >>> >>> The other day, at home, at my Mac running Yosemite with the newest shiniest >>> Xcode tools installed, >>> I did something like this... >>> >>> cd /tmp/ >>> svn co https://github.com/wocommunity/wonder.git/trunk/Utilities/Adaptors >>> cd /tmp/Adaptors >>> gnumake >>> gnumake Apache2.4 >>> >>> and that built me the module; copying stuff by hand was not onerous. >>> >>> There were some gotchas. On OSX, the project is set up to build the WO >>> adaptor internals (this works), the CGI adaptor (this works), the FastCGI >>> adaptor (does not work, missing headers) and the Apache2.2 adaptor (never >>> got there because of FastCGI; didn't care). The project will build the >>> Apache 2.4 adaptor, provided the WO adaptor internals have been built. >>> >>> /usr/sbin/apxs will not work as-is: it tries to use a compiler toolchain >>> that doesn't exist, referring to IIRC >>> /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/cc >>> . apxs is your friend; it's there to let you build Apache modules with >>> the same compiler and flags (especially optimisation flags) as was used to >>> build Apache. >>> >>> So we do something like (from memory) >>> >>> cd >>> /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/ >>> sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain >>> >>> and if I have that right, we can now use Xcode tools via the same filenames >>> as were used by whoever at Apple built Apache 2.4 for Yosemite. Have a >>> read of the /usr/sbin/apxs script. Even if (like me) you don't code in >>> perl, you should find yourself looking at >>> /usr/share/httpd/build/config_vars.mk next, which will have the reference >>> to >>> /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/cc >>> , and you will also see no optimisation flags listed in CFLAGS -- >>> personally, here I would remove -O2 from CFLAGS in all the Makefiles that >>> build any code loaded by Apache. >>> >>> In an ideal world, those of us interested in Apache only would rework this >>> project to avoid invoking the compiler or linker directly, we'd have apxs >>> do it for us, noting we can still get at some settings as 'apxs -q CFLAGS', >>> 'apxs -q CC' etc. >>> >>> >>> You will also likely need to remove any '-macosx_version_min 10.5' >>> compiler/linker arguments because the recent OSX C compilers don't appear >>> to support that any more. >>> >>> >>> -- Patrick >>> >>> _______________________________________________ >>> Do not post admin requests to the list. They will be ignored. >>> Webobjects-dev mailing list ([email protected]) >>> Help/Unsubscribe/Update your Subscription: >>> https://lists.apple.com/mailman/options/webobjects-dev/ginokris%40mac.com >>> >>> This email sent to [email protected] >> >> >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/john%40pollardweb.com >> >> This email sent to [email protected] > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/ginokris%40mac.com > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
