• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
building mod_WebObjects.so universal [was: Is Xcode Tools 2.4.1 missing the WebObjects adaptor source code?]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

building mod_WebObjects.so universal [was: Is Xcode Tools 2.4.1 missing the WebObjects adaptor source code?]


  • Subject: building mod_WebObjects.so universal [was: Is Xcode Tools 2.4.1 missing the WebObjects adaptor source code?]
  • From: Patrick Middleton <email@hidden>
  • Date: Tue, 20 Mar 2007 15:32:44 +0000


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@hidden England (MIME welcome)


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Key words
  • Next by Date: Re: Partially saving the object graph. How? (Jean Pierre Malrieu)
  • Previous by thread: Re: Key words
  • Next by thread: Primary Key Maximum value
  • Index(es):
    • Date
    • Thread