You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by di...@covalent.net on 2002/07/10 16:43:33 UTC

MacOS X 10.1.2 libtool

Any one seen this error, on a pristine MacOS X 10.1.2 machine with a
freshly cut 2.0.39:

	cd httpd-2.0.39
		./configure --prefix=/foo
		make && make install
	cd ../test
	apxs -c mod_foo.c
	....
and then just before then end one gets:

	/foo/runtime/build/libtool --silent --mode=link cc -o
		mod_auth_pam.la -rpath /Users/dirkx/ORA/runtime/modules -module
		-avoid-version -I/usr/local/include  -L/usr/local/lib  mod_auth_pam.lo
		-lpam
	/foo/runtime/build/libtool: parse error: condition expected: xyes = [3183]
	/foo/runtime/mod_auth_pam-1.1/apache-2.0/.libs
	SH_LIBTOOL='/foo/runtime/build/libtool' mod_auth_pam.la
	...

But.. this does result in a functional module.

To add to the insult: running apxs or buildtool with 'sh -x script' in an
attempt to trace this error makes the error vanish in thin air.

Dw



Re: MacOS X 10.1.2 libtool

Posted by Sander Temme <sc...@covalent.net>.
> /foo/runtime/build/libtool: parse error: condition expected: xyes = [3183]

> But.. this does result in a functional module.

This is an issue with stock GNU libtool 1.4.2 on this platform. It affects
the binary file type of the linked module which would cause runtime breakage
on darwin until, I believe, the following commit to apr/dso/unix/dso.c:

> revision 1.49
> date: 2002/03/20 19:45:02;  author: rbb;  state: Exp;  lines: +25 -11
> Load libraries if they not MH_BUNDLE, but if they are not, it
> just attempts to link them as shared libs.  This is required to get
> the JVM loaded through APR.
> 
> Submitted by:   Pier Fumagalli <pi...@betaversion.org>
> Reviewed by:    Ryan Bloom

That's where we started to deal with both bundles and dylibs.

S.

-- 
Covalent Technologies                             sctemme@covalent.net
Engineering group                                Voice: (415) 536 5214
645 Howard St.                                     Fax: (415) 536 5210
San Francisco CA 94105

   PGP Fingerprint: 1E74 4E58 DFAC 2CF5 6A03  5531 AFB1 96AF B584 0AB1

=======================================================
This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message
=======================================================


Re: MacOS X 10.1.2 libtool

Posted by Pier Fumagalli <pi...@betaversion.org>.
"dirkx@covalent.net" <di...@covalent.net> wrote:

> 
> Any one seen this error, on a pristine MacOS X 10.1.2 machine with a
> freshly cut 2.0.39:
> 
> cd httpd-2.0.39
> ./configure --prefix=/foo
> make && make install
> cd ../test
> apxs -c mod_foo.c
> ....
> and then just before then end one gets:
> 
> /foo/runtime/build/libtool --silent --mode=link cc -o
> mod_auth_pam.la -rpath /Users/dirkx/ORA/runtime/modules -module
> -avoid-version -I/usr/local/include  -L/usr/local/lib  mod_auth_pam.lo
> -lpam
> /foo/runtime/build/libtool: parse error: condition expected: xyes = [3183]
> /foo/runtime/mod_auth_pam-1.1/apache-2.0/.libs
> SH_LIBTOOL='/foo/runtime/build/libtool' mod_auth_pam.la
> ...
> 
> But.. this does result in a functional module.
> 
> To add to the insult: running apxs or buildtool with 'sh -x script' in an
> attempt to trace this error makes the error vanish in thin air.

Libtool shipped with MAC doesn't actually produce a MH_BUNDLE dylib... Use
mine http://www.apache.org/~pier/macosx/

    Pier