[Mono-devel-list] mod_mono on Mac OS X?

Sean A Corfield sean at corfield.org
Thu May 13 15:33:46 EDT 2004


Hi,

I installed Mono Beta 1 on my PowerBook yesterday and was very 
impressed at how smoothly that went and how fast the compiler and 
runtime are. Nice work.

I wanted to install mod_mono so I downloaded and built xsp and mod_mono 
however, the install fails for mod_mono. I emailed Gonzalo and Daniel 
about it and they suggested I post here asking for pointers.

The problem seems to be that libmod_mono.so is not built on OS X 10.3. 
libmod_mono.0.0.0.dylib is built OK - it seems that an extra step is 
needed to convert this to a "Mach-O bundled ppc" called libmod_mono.so 
- any pointers?

Here's the dialog between myself and Gonzalo that explains the problem 
and the analysis so far:

El jue, 13-05-2004 a las 06:15, Sean A Corfield escribió:
> Hi guys,
>
> I just installed Mono Beta 1 on my PowerBook and wanted to get mod_mono
> running (with Apache 1.3). The make/install of xsp went just fine. The
> make of mod_mono seemed to go fine but it didn't make
> src/.libs/libmod_mono.so so the install failed.
>
> I looked through the makefiles and couldn't see any references to
> libmod_mono.so except for the clean targets and the apxs line so it's
> not surprising that libmod_mono.so did not get built.
>
> Any idea why the configured makefiles for OS X wouldn't try to build
> libmod_mono.so?

Can you do a 'find -name \*.so' in mod_mono and tell me if it's there?

-Gonzalo

El jue, 13-05-2004 a las 06:33, Sean A Corfield escribió:
> Hi Gonzalo,
>
> Thanx for the swift response...
>
> On May 12, 2004, at 9:24 PM, Gonzalo Paniagua Javier wrote:
>> Can you do a 'find -name \*.so' in mod_mono and tell me if it's there?
>
> Nope, no .so files at all.
>
> Here's the output of make / make install for mod_mono:
>
> [Sean-Corfields-PowerBook-G4:~scorfiel/Desktop/mod_mono-0.9] root# make
> Making all in src
> source='mod_mono.c' object='mod_mono.lo' libtool=yes \
> depfile='.deps/mod_mono.Plo' tmpdepfile='.deps/mod_mono.TPlo' \
> depmode=gcc3 /bin/sh ../depcomp \
> /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../include  -DPREFIX=\"/opt/local\"    -g -O2 -I/usr/include/httpd
> -DAPACHE13 -DEAPI -c -o mod_mono.lo `test -f 'mod_mono.c' || echo
> './'`mod_mono.c
> mkdir .libs
> gcc -DHAVE_CONFIG_H -I. -I. -I../include -DPREFIX=\"/opt/local\" -g -O2
> -I/usr/include/httpd -DAPACHE13 -DEAPI -c mod_mono.c -MT mod_mono.lo
> -MD -MP -MF .deps/mod_mono.TPlo  -fno-common -DPIC -o .libs/mod_mono.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../include -DPREFIX=\"/opt/local\" -g -O2
> -I/usr/include/httpd -DAPACHE13 -DEAPI -c mod_mono.c -MT mod_mono.lo
> -MD -MP -MF .deps/mod_mono.TPlo -o mod_mono.o >/dev/null 2>&1
> mv -f .libs/mod_mono.lo mod_mono.lo
> /bin/sh ../libtool --mode=link gcc  -g -O2 -I/usr/include/httpd
> -DAPACHE13 -DEAPI   -o libmod_mono.la -rpath /opt/local/lib
> mod_mono.lo
> rm -fr .libs/libmod_mono.la .libs/libmod_mono.* .libs/libmod_mono.*
> gcc -r -keep_private_externs -nostdlib -o
> .libs/libmod_mono.0.0.0.dylib-master.o  mod_mono.lo && gcc -dynamiclib
> -flat_namespace -undefined suppress -o .libs/libmod_mono.0.0.0.dylib
> .libs/libmod_mono.0.0.0.dylib-master.o  -lc -install_name
> /opt/local/lib/libmod_mono.0.dylib -compatibility_version 1
> -current_version 1.0
> (cd .libs && rm -f libmod_mono.0.dylib && ln -s libmod_mono.0.0.0.dylib
> libmod_mono.0.dylib)
> (cd .libs && rm -f libmod_mono.dylib && ln -s libmod_mono.0.0.0.dylib
> libmod_mono.dylib)
> ar cru .libs/libmod_mono.a  mod_mono.o
> ranlib .libs/libmod_mono.a
> creating libmod_mono.la
> (cd .libs && rm -f libmod_mono.la && ln -s ../libmod_mono.la
> libmod_mono.la)
> Making all in man
> make[1]: Nothing to be done for `all'.
> make[1]: Nothing to be done for `all-am'.
> [Sean-Corfields-PowerBook-G4:~scorfiel/Desktop/mod_mono-0.9] root# make
> install
> Making install in src
> /usr/sbin/apxs -i -a -n mono .libs/libmod_mono.so
> [activating module `mono' in /private/etc/httpd/httpd.conf]
> cp .libs/libmod_mono.so /usr/libexec/httpd/libmod_mono.so
> cp: .libs/libmod_mono.so: No such file or directory
> apxs:Break: Command failed with rc=1
> make[1]: *** [install] Error 1
> make: *** [install-recursive] Error 1
> [Sean-Corfields-PowerBook-G4:~scorfiel/Desktop/mod_mono-0.9] root#

Oh, seems like it's one of those dylib files. Can you check the name of
other apache modules you have? Also send me the output of find -name
\*dylib\* in mod_mono.

Thanks.

-Gonzalo



El jue, 13-05-2004 a las 16:56, Sean A Corfield escribió:
> On May 13, 2004, at 12:30 AM, Gonzalo Paniagua Javier wrote:
>> Oh, seems like it's one of those dylib files. Can you check the name 
>> of
>> other apache modules you have? Also send me the output of find -name
>> \*dylib\* in mod_mono.
>
> That's what I thought initially but those are all of type:
>
> Mach-O dynamically linked shared library ppc
>
> whereas the Apache modules are all of type:
>
> Mach-O bundle ppc
>
> so I guess there's a missing step in the make process for Mac OS X?
>
> Here's the file information:

We need someone with PPP-fu (or at least that owns a PPC) to do smoe
magic in the makefiles. Can you post your problem to mono-devel list
telling about your findings? (or better yet: fix it if you can :).

Thanks.

-Gonzalo




More information about the Mono-devel-list mailing list