On Tuesday, November 19, 2002, at 04:50  PM, Ken Williams wrote:

Another option: update src/Configure (in the apache distribution) to give a better hint for darwin platform, something like:

DBM_LIB="-lSystem"
Nope, that didn't work:

======== Error Output for sanity check ========
cd ..; gcc -DDARWIN -DMOD_SSL=208112 -DMOD_PERL -DUSE_PERL_SSI -I/sw/include -pipe -fno-common -no-cpp-precomp -fno-strict-aliasing -DUSE_HSREGEX -DEAPI -DUSE_APREQ -I./lib/apreq `./apaci` -I. -I/usr/local/lib/perl5/5.8.0/darwin/CORE -L/usr/local/src/openssl-0.9.6g/ -o helpers/dummy helpers/dummy.c lSystem -lssl -lcrypto -L/sw/lib -flat_namespace /usr/local/lib/perl5/5.8.0/darwin/auto/DynaLoader/DynaLoader.a -L/usr/local/lib/perl5/5.8.0/darwin/CORE -lperl -lm -lc -lexpat
gcc: lSystem: No such file or directory
make: *** [dummy] Error 1
============= End of Error Report =============

I also tried DBM_LIB="lnbdm", just for good measure, but that didn't work either:

======== Error Output for sanity check ========
cd ..; gcc -DDARWIN -DMOD_SSL=208112 -DMOD_PERL -DUSE_PERL_SSI -I/sw/include -pipe -fno-common -no-cpp-precomp -fno-strict-aliasing -DUSE_HSREGEX -DEAPI -DUSE_APREQ -I./lib/apreq `./apaci` -I. -I/usr/local/lib/perl5/5.8.0/darwin/CORE -L/usr/local/src/openssl-0.9.6g/ -o helpers/dummy helpers/dummy.c lndbm -lssl -lcrypto -L/sw/lib -flat_namespace /usr/local/lib/perl5/5.8.0/darwin/auto/DynaLoader/DynaLoader.a -L/usr/local/lib/perl5/5.8.0/darwin/CORE -lperl -lm -lc -lexpat
gcc: lndbm: No such file or directory
make: *** [dummy] Error 1
============= End of Error Report =============

On Tuesday, November 19, 2002, at 04:29 PM, Ken Williams wrote:

One workaround would probably be to make a symlink:

 % cd /usr/lib
 % ln -s libSystem.dylib libdbm.dylib
Well I'll be damned. That did the trick! Hrm, I wonder why... Not a very elegant solution, unfortunately. I wonder if there's another way to get it to work...

YES! I found it! In src/Configure, I did DBM_LIB="", and that did the trick -- gcc just finds it in libSystem, and doesn't bother trying to find libdbm or anything. Yay! Here's a diff for it that should work without affecting other platforms:

--- Configure~ Wed Jul 24 13:41:23 2002
+++ Configure Wed Nov 20 16:56:49 2002
@@ -532,11 +532,13 @@
OS='Mac OS X Server'
CFLAGS="$CFLAGS -DDARWIN -DMAC_OS_X_SERVER"
DEF_WANTHSREGEX=yes
+ DBM_LIB=""
;;
*-apple-darwin*)
OS='Darwin'
CFLAGS="$CFLAGS -DDARWIN"
DEF_WANTHSREGEX=yes
+ DBM_LIB=""
;;
*-dec-osf*)
OS='DEC OSF/1'

Note that I'm assuming that it's the same on Mac OS X Server. I think I'll send this patch off to the Apache project, too.

Thanks for the help, Ken -- your pointing me to src/Configure cinched it for me.

Regards,

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: [EMAIL PROTECTED]

Reply via email to