logo       

Re: Compiling on OS X: msg#00040

web.lighttpd

Subject: Re: Compiling on OS X


On woensdag, sep 15, 2004, at 15:25 Europe/Amsterdam, David Leadbeater wrote:

I'm having some libtool issues (I think). I'm getting the following
error from make..

/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -W -Wshadow -pedantic -o mod_cgi.la -rpath /usr/local/lib -module -export-dynamic -avoid-version -no-undefined cgi.lo
gcc -o .libs/mod_cgi.so -bundle .libs/cgi.o
ld: Undefined symbols:
_array_free
_array_get_unused_element
[..]

I'm not sure how OS X normally does things like this.. It looks like
something has added underscores in front of the symbol names..

Thanks in advance for any help.


Try'd it myself (on 10.2.8), but I have encourterd several errors.. first of all the error you describe :

If you run gcc with gcc -v ( cd src && gcc -v -o .libs/mod_cgi.so -bundle .libs/cgi.o )
you'll see it's really a ld linking error. Run the ld command but add the ' -t ' option
to see what is causing the error. You'll see it can't resolv the symbols which are defined
in src/array.h. This mean's they should be in src/.libs/array.o but that file is not yet there.
This is probebly a dependency error in the autoconf / automake / configure or any of the files
generated by it. Since it totaly dislike autoconf/automake and know it will take me a couple of days to
find out where the problem is (I like to spend my time programming instead of fooling around with
autoconf/automake/etc all the time :( )

You could download the leatest version of autoconf, en generate a new configure.in file. You can't
use the default autoconf with fink, because it's to old.. It will die a horrible dead if you try to
do so anyway.

Another problem is that some other thing go wrong with the network_write.c because it there's no
sendfile() support on Mac OS X. Try'd several sendfile() directive's in config.h to no avail.

You might wan't to try to use the FreeBSD port collection to compile lighttpd .. might work.

I'll try harder to port it to Mac OS X when I have some time.

=paulv




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise