on 10/4/01 6:47 AM, Bill Stoddard at [EMAIL PROTECTED] wrote:

> Tagged. Please test APACHE_1_3_21 tag. Plan to roll the tarball in 24 hours.

Fails to compile on Darwin 1.4:

[monalisa:~/projects/apache-tag] sctemme% uname -a
Darwin MonaLisa 1.4 Darwin Kernel Version 1.4: Sun Sep  9 15:39:59 PDT 2001;
root:xnu/xnu-201.obj~1/RELEASE_PPC  Power Macintosh powerpc

Using config.status from my regular working copy:

./configure \
"--with-layout=Apache" \
"--prefix=/tmp/apache" \
"--enable-module=all" \
"--enable-shared=max" \
"$@"

Ends in tears:

===> src/modules/experimental
cc -c  -I../../os/unix -I../../include   -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT
-I../../lib/expat-lite `../../apaci` -DSHARED_MODULE mod_mmap_static.c && mv
mod_mmap_static.o mod_mmap_static.lo
cc  -bundle -undefined suppress -o mod_mmap_static.so mod_mmap_static.lo
/usr/bin/ld: -undefined error must be used when -twolevel_namespace is in
effect
make[4]: *** [mod_mmap_static.so] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/Users/sctemme/projects/apache-tag/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/Users/sctemme/projects/apache-tag'
make: *** [build] Error 2

Patch attached, tested on above and:

[bistromath:apache_1_3_21] sctemme$uname -a
FreeBSD bistromath.workbench.covalent.net 4.1-RELEASE FreeBSD 4.1-RELEASE
#2: Wed Apr 18 12:22:46 PDT 2001
[EMAIL PROTECTED]:/usr/src/sys/compile/BISTROMATH
i386


and:

[batmobile:sctemme] sctemme$uname -a
Darwin batmobile 1.3.7 Darwin Kernel Version 1.3.7: Sat Jun  9 11:12:48 PDT
2001; root:xnu/xnu-124.13.obj~1/RELEASE_PPC  Power Macintosh powerpc

Enjoy,

S.

-- 
Covalent Technologies                             [EMAIL PROTECTED]
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
=======================================================

Index: src/Configure
===================================================================
RCS file: /home/cvspublic/apache-1.3/src/Configure,v
retrieving revision 1.433
diff -u -r1.433 Configure
--- src/Configure       2001/10/03 12:59:03     1.433
+++ src/Configure       2001/10/04 15:47:35
@@ -1149,7 +1149,14 @@
        *-apple-rhapsody* | *-apple-darwin* )
            LD_SHLIB="cc"
            CFLAGS_SHLIB=""
-           LDFLAGS_SHLIB='$(EXTRA_LDFLAGS) -bundle -undefined suppress'
+           case "$PLAT" in
+               *-apple-darwin1.4 )
+                   LDFLAGS_SHLIB='$(EXTRA_LDFLAGS) -bundle -undefined suppress 
+-flat_namespace'
+                   ;;
+               * )
+                   LDFLAGS_SHLIB='$(EXTRA_LDFLAGS) -bundle -undefined suppress'
+                   ;;
+           esac
            LDFLAGS_MOD_SHLIB=$LDFLAGS_SHLIB
            LDFLAGS_SHLIB_EXPORT=""
            SHLIB_SUFFIX_DEPTH=0

Reply via email to