I've built tomcat 3.2.1 on FreeBSD 4.1 and got it running, as well as apache
1.3.19.  But.  To get mod_jk to load, I had to add -Wl,-lc_r to the APXS
command to get the pthread library.  Now apache cores in a way very
consistent with what I thought would happen when mixing -lc and -lc_r:

(gdb) where
#0  0x2827c242 in isatty () from /usr/lib/libc.so.4
#1  0x2827c4e1 in isatty () from /usr/lib/libc.so.4
#2  0x2827cbf1 in malloc () from /usr/lib/libc.so.4
#3  0x2848a517 in _thread_fd_table_init () from /usr/lib/libc_r.so.4
#4  0x2848b379 in _thread_fd_lock_debug () from /usr/lib/libc_r.so.4
#5  0x28489b42 in fstat () from /usr/lib/libc_r.so.4
#6  0x2827d99a in .cerror () from /usr/lib/libc.so.4
#7  0x2848b379 in _thread_fd_lock_debug () from /usr/lib/libc_r.so.4
#8  0x28489b42 in fstat () from /usr/lib/libc_r.so.4
#9  0x2827d99a in .cerror () from /usr/lib/libc.so.4
#10 0x2848b379 in _thread_fd_lock_debug () from /usr/lib/libc_r.so.4
#11 0x28489b42 in fstat () from /usr/lib/libc_r.so.4
#12 0x2827d99a in .cerror () from /usr/lib/libc.so.4
#13 0x2848b379 in _thread_fd_lock_debug () from /usr/lib/libc_r.so.4
#14 0x28489b42 in fstat () from /usr/lib/libc_r.so.4
#15 0x2827d99a in .cerror () from /usr/lib/libc.so.4
#16 0x2848b379 in _thread_fd_lock_debug () from /usr/lib/libc_r.so.4
#17 0x28489b42 in fstat () from /usr/lib/libc_r.so.4
#18 0x2827d99a in .cerror () from /usr/lib/libc.so.4
#19 0x2848b379 in _thread_fd_lock_debug () from /usr/lib/libc_r.so.4
#20 0x28489b42 in fstat () from /usr/lib/libc_r.so.4
#21 0x2827d99a in .cerror () from /usr/lib/libc.so.4
#22 0x2848b379 in _thread_fd_lock_debug () from /usr/lib/libc_r.so.4
#23 0x28489b42 in fstat () from /usr/lib/libc_r.so.4
...ad nauseum

If I'm lucky building apache with libc_r will work, but I'm suspicious.
Is this version designed to work with apache 2 perchance (which supposedly
adds thread support)?

-- 
Alan Batie                   ______    www.rdrop.com/users/alan      Me
[EMAIL PROTECTED]               \    /    www.qrd.org         The Triangle
PGPFP DE 3C 29 17 C0 49 7A    \  /     www.pgpi.com   The Weird Numbers
27 40 A5 3C 37 4A DA 52 B9     \/      www.anti-spam.net       NO SPAM!

Reply via email to