httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sander Temme <scte...@covalent.net>
Subject Re: tarballs are up
Date Mon, 30 Jul 2001 21:00:15 GMT
on 7/29/01 4:25 PM, Cliff Woolley at cliffwoolley@yahoo.com wrote:

> I just posted the 2.0.22 tarballs at dev.apache.org/dist.  Check 'em out.

PowerPC, Apple, Mac OS X:

* I still have trouble with the various config.guesses:

[monalisa:/tmp/httpd-2_0_22] sctemme% find . -name config.guess -print -exec
sh
{} \;
./srclib/apr/build/config.guess
powerpc-apple-darwin1.3.7
./srclib/apr/shmem/unix/mm/config.guess
powerpc-apple-darwin1.3.7
./srclib/apr-util/build/config.guess                    <-- no output
./srclib/apr-util/xml/expat/conftools/config.guess      <-- no output
./srclib/pcre/config.guess                              <-- no output
[monalisa:/tmp/httpd-2_0_22] sctemme%

Any part where the local config.guess doesn't recognize my system fails to
configure. The CVS tree does not give me this problem, just the tarballs. If
I replace the three offending config.guesses with a fresh download from
<ftp://ftp.gnu.org/gnu/config/> , the configure proceeds fine.

* The build fails in the support directory:

Making all in support
/bin/sh /tmp/httpd-2_0_22/srclib/apr/libtool --silent --mode=compile cc  -g
-O2    -DDARWIN -DAP_HAVE_DESIGNATED_INITIALIZER   -I.
-I/tmp/httpd-2_0_22/os/unix -I/tmp/httpd-2_0_22/server/mpm/threaded
-I/tmp/httpd-2_0_22/modules/http -I/tmp/httpd-2_0_22/include
-I/tmp/httpd-2_0_22/srclib/apr/include
-I/tmp/httpd-2_0_22/srclib/apr-util/include -c htpasswd.c && touch
htpasswd.lo
/bin/sh /tmp/httpd-2_0_22/srclib/apr/libtool --silent --mode=link cc  -g -O2
-DDARWIN -DAP_HAVE_DESIGNATED_INITIALIZER   -I. -I/tmp/httpd-2_0_22/os/unix
-I/tmp/httpd-2_0_22/server/mpm/threaded -I/tmp/httpd-2_0_22/modules/http
-I/tmp/httpd-2_0_22/include -I/tmp/httpd-2_0_22/srclib/apr/include
-I/tmp/httpd-2_0_22/srclib/apr-util/include -export-dynamic    -o htpasswd
htpasswd.lo  /tmp/httpd-2_0_22/srclib/apr-util/libaprutil.la
/tmp/httpd-2_0_22/srclib/apr/libapr.la -lm
/tmp/httpd-2_0_22/srclib/apr-util/xml/expat/lib/libexpat.la
/usr/bin/ld: Undefined symbols:
_pthread_sigmask
make[2]: *** [htpasswd] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
[monalisa:/tmp/httpd-2_0_22] sctemme%

Darwin does not have these functions for per-thread signal masking. This
used to be a far larger problem but progress has been made in that area. If
I edit the offending source file:

[monalisa:/tmp/httpd-2_0_22] sctemme% diff -u
srclib/apr/threadproc/unix/signals
.c~ srclib/apr/threadproc/unix/signals.c
--- srclib/apr/threadproc/unix/signals.c~       Mon Jul 30 13:13:47 2001
+++ srclib/apr/threadproc/unix/signals.c        Mon Jul 30 13:11:15 2001
@@ -330,6 +330,7 @@
     /* All threads should mask signals out, according to sigwait(2) man
page */
     sigfillset(&sig_mask);
 
+#define SIGPROCMASK_SETS_THREAD_MASK 1
 #if defined(SIGPROCMASK_SETS_THREAD_MASK)
     rv = sigprocmask(SIG_SETMASK, &sig_mask, NULL);
 #else
[monalisa:/tmp/httpd-2_0_22] sctemme%

...the tree compiles but this is of course not a solution: I don't know what
Darwin does with signals to multithreaded processes.

Anyway, after this slight change the tree builds and I can run the resulting
httpd, fire a request upon it and get HTML back. This is with a bare
./configure which chooses to use the threaded MPM.

Side note: I get a slew of warnings like:

Making all in threaded
/bin/sh /tmp/httpd-2_0_22/srclib/apr/libtool --silent --mode=compile cc  -g
-O2    -DDARWIN -DAP_HAVE_DESIGNATED_INITIALIZER   -I.
-I/tmp/httpd-2_0_22/os/unix -I/tmp/httpd-2_0_22/server/mpm/threaded
-I/tmp/httpd-2_0_22/modules/http -I/tmp/httpd-2_0_22/include
-I/tmp/httpd-2_0_22/srclib/apr/include
-I/tmp/httpd-2_0_22/srclib/apr-util/include -c threaded.c && touch
threaded.lo
threaded.c:1575: illegal expression, found `.'
<..>
threaded.c:1597: illegal expression, found `.'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic
mode

I remember we used to force basic mode by putting -traditional-cpp in the
CFLAGS, we may want to bring that back. A lot of files do fly using the
(default) cpp-precomp though.

Overall, it builds with a little massaging, installs, I can run ab against
it without generating smoke and fire.

I'm happy. 

S.

-- 
Covalent Technologies                             sctemme@covalent.net
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
=======================================================


Mime
View raw message