Hi. I'm responding to the list, so the resolution of the issue will
be publicly available. Consider it a public service announcement of
sorts. :)
On Jun 10, 2006, at 10:22 PM, "Yung-Luen Lan" <email@hidden>
wrote:
> I'm moving from Apache 1.3 to Apache 2. Searching the internet, I
> download the latest Wonder and try to build a new woadaptor for
> Apache2. Unfortunately, there are some errors occured when making the
> mod_WebObjects.so.
<snip>
> libtool: compile: unable to infer tagged configuration
> libtool: compile: specify a tag with `--tag'
> apxs:Error: Command failed with rc=65536
> .
> make: *** [mod_WebObjects.so] Error 1
>
> I find someone on the mailing-list had the same error because he
> configure it with apache 1.3 parameters. Then I check my make.config
> file over and over, but nothing obvious.
After some experimenting yesterday, I discovered that the libtool
included with Apache 2 doesn't work well with our makefile when it
receives the compiler argument as "cc" rather than "gcc". It gets
confused and complains about needing a "tag". Changing to gcc fixed
it, so I'm making that change in the MACOS section of our make.config
file.
For the record, I used MacOS X 10.4.6, gcc 4.0, and Apache 2.0.58. I
first built apache from the source with the following config args:
./configure --prefix=/usr/local/apache-2.0.58 --enable-mods-
shared=most --enable-ssl
I then built the WOAdaptor successfully both with and without SSL
support. I was able to deploy and successfully run a test
application via JavaMonitor and Apache 2 with each version of the
adaptor (with and sans ssl support). This is *not* stress testing,
but simply proof that the adaptor "talks" to both Apache and WebObjects.
Also, I'd like to mention the Apache setup I used in the hope that it
will be helpful for anyone who wants/needs to run Apache 2.0.x and
WebObjects.
To configure it, I did the following:
1) Made a symlink to the regular WebObjects directory (/Library/
WebServer/Documents/WebObjects/) in the apache2 htdocs directory.
Copying the contents would work as well.
Apache config file setup:
2) changed the user and group to www:www
3) commented out ScriptAlias /cgi-bin/ ... line
4) entered a line to map any calls to /cgi-bin/WebObjects to the
adaptor:
<Location /cgi-bin/WebObjects*>
SetHandler WebObjects
</Location>
5) Included the WebObjects configuration file (a copy) with its
WebObjectsDocumentRoot parameter set to my apache2 htdocs directory.
6) Start/restart apache2.
One caveat to note is that if you've built the WOAdaptor to support
ssl, and you haven't loaded apache's ssl module things get ugly. You
won't be able to launch apache, as the WOAdaptor module will
complain. You don't have to have the server set up to use mod_ssl or
have any sites configured to use it, but the ssl capable
mod_WebObjects will require you to load mod_ssl as well.
Finally, I'd like to mention that the WOAdaptor is not (yet)
compatible with Apache 2.2.x, which has a new, incompatible module
API. I'm not sure about 2.1.x, as I've never tried. So, for now,
please stick with the Apache 2.0.x line.
I hope this is helpful information. Sorry for the intrusion into
your regularly scheduled programming.
Travis
_______________________________________________
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