Re: MacOS 10.3 (Panther) and trying moto

David Hakim <dhakim-Gkm/TONP9n1Wk0Htik3J/[email protected]> Sat, 22 May 2004 14:17:58 -0400
Newsgroups gmane.comp.lang.moto.user
Message-ID <[email protected]>
Looks like the standard dlopen, dlsym etc... functions finally got 
included in 10.3 . This means all the development pain of working 
around their absence and dealing with DYLD has now actually broken moto 
installation on 10.3! Because autoconf won't define

USE_DYLD

since dlopen now exists... funny ... I guess it had kept working for me 
because I had not ran a clean configure in ages on my 10.3 box

You can force the use of DYLD by replacing the undef USE_DYLD with

#define USE_DYLD 1

in src/moto/config.h, then just make clean; make install.

That will get rid of the undefined symbols at module load. I'm now 
investigating what this 'fix' is going to break :)

The bright side is that hopefully in the next release of moto I'll be 
able to wipe out all that nasty DYLD code on the mac version.

-Dave

On Jan 10, 2004, at 1:08 AM, Daniel Rubin wrote:

>
> I'm keen to give moto a bash and was pleasantly surprised by the
> clean compile on MacOSX. Hoping to test moto without installing it
> into the /usr/local/ hierarchy I supplied another location with the
> --prefix= option and seem to have most everything working but the
> apache integration.
>
> I've successfully interpreted a file using bin/moto but when trying
> to start the apache supplied by Apple with the necessary changes
> made in httpd.conf I get the following :
>
> ### Pre-Loading Extension 'libmx_codex_db_mysql.so' from
> '/Users/daniel/app/moto/mx/codex/db/mysql/libmx_codex_db_mysql.so'
> ### Pre-Loading Extension 'libmx_codex_http.so' from
> '/Users/daniel/app/moto/mx/codex/http/libmx_codex_http.so'
> ### Pre-Loading Extension 'libmx_codex_io.so' from
> '/Users/daniel/app/moto/mx/codex/io/libmx_codex_io.so'
> ### Pre-Loading Extension 'libmx_codex_util.so' from
> '/Users/daniel/app/moto/mx/codex/util/libmx_codex_util.so'
> ### Pre-Loading Extension 'libmx_cstdlib.so' from
> '/Users/daniel/app/moto/mx/cstdlib/libmx_cstdlib.so'
> ### Pre-Loading Extension 'libmx_moto.so' from
> '/Users/daniel/app/moto/mx/moto/libmx_moto.so'
> dyld: /usr/sbin/httpd Undefined symbols:
> _ArrayBoundsException_create
> _ArrayBoundsException_createDefault
> _IllegalArgumentException_create
> _IllegalArgumentException_createDefault
> .
> .
> .
>
> Does anyone have any ideas about what I will need to massage to have
> these symbols found correctly? Thanks.
>
>  - Daniel
>
> postscript: Being forced to stay connected to browse documentation
> is a little crummy. Any chance that the missing (but mentioned in
> README) /doc and /examples directories from the 0_20_0 source
> archive are available somewhere else?
>