On 11 Jan 2007, at 11:48, Patrick Middleton wrote:

http://developer.apple.com/documentation/WebObjects/Deployment/ Deploying_Applications/Installation/chapter_3_section_3.html says (amonst other things) that "This section discusses building HTTP adaptors from the source code in /Developer/Examples/WebObjects/ Source/Adaptors". Reviewing the contents of packages provided installed via Xcode Tools 2.4.1, it's clear from WebObjectsExamples.pkg that /Developer/Examples/WebObjects has become /Developer/Examples/WebObjects/Source , but no package appears to include the adaptor source code any more.

We're using our own adaptor which is derived from the stock Apache 1.3.x mod_WebObjects.so. I would like to review the current makefiles so that I don't have to figure out myself how to change what I already have in order to be able to build a universal or i386-only binary on my ppc developer system.

Is the adaptor source still supplied but I haven't found it, or is it missing; and if it's missing, is this by accident or design?

The adaptor sources are still missing, and I have filed a request to have them restored. In the meantime, getting the project to build universal turned out to be easier than I thought. Sneaking some extra flags into CFLAGS and LDFLAGS for MacOSX worked well but caused apxs to trip up; wrapping the definition of my extra flags in double quotes helped, and wrapping the values passed to apxs via -Wc and -Wl in double quotes helped some more.


diff -r Adaptors/Apache/Makefile Adaptors-older/Apache/Makefile
13,14c13,14
< CFLAGS += "${OSP_ARCH}"
< LDFLAGS +=${OPENSSL_LIB_FLAGS} "${OSP_ARCH}"
---
>
> LDFLAGS +=${OPENSSL_LIB_FLAGS}
36,39d35
< ifeq "MACOS" "${OS}"
< APXSFLAGS = -c -S CC=${CC} -Wc,"${CFLAGS}" -Wl,"${LDFLAGS}"
< endif
<
diff -r Adaptors/CGI/Makefile Adaptors-older/CGI/Makefile
7,10d6
< ifeq "MACOS" "$(OS)"
< CFLAGS += "${OSP_ARCH}"
< endif
<
diff -r Adaptors/make.config Adaptors-older/make.config
8d7
< OSP_ARCH=
25d23
< OSP_ARCH="-arch ppc -arch i386 -mmacosx-version-min=10.4 -isysroot / Developer/SDKs/MacOSX10.4u.sdk"


--
Patrick Middleton
OneStep Solutions plc
351 London Road             Phone: +44 (0)1702 426400
Hadleigh                    Fax:   +44 (0)1702 556855
Essex. SS7 2BT              Email: [EMAIL PROTECTED]
England                            (MIME welcome)


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com

Reply via email to