Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Oct 1998 19:51:10 +0800 (SGT)
From:      Sin Key Teck <ktsin@acm.org>
To:        jon@minotaur.com, freebsd-current@FreeBSD.ORG
Cc:        ulf@Alameda.net, netchild@wurzelausix.CS.Uni-SB.DE, jerry@reillyplating.com
Subject:   RE: 19981002-BETA Apache/Mouse problems
Message-ID:  <199810141151.TAA00537@daffodil.singtel-yp.com>

next in thread | raw e-mail | index | archive | help
> I tried compiling Apache13 which seemed to work well, but when I attempted
> to run it, I ran into some module problems when trying
> /usr/local/sbin/apachectl start -- I get the following error:
> 
> Syntax error on line 26 of /usr/local/etc/apache/httpd.conf:
> Cannot load /usr/local/libexec/apache/mod_mime_magic.so into server:
> /usr/local/libexec/apache/mod_mime_magic.so: Undefined symbol
> "ap_make_sub_pool"

I believe the problem is caused by two things: dynamic loading and ELF.
Guess Apache's configuration programs are unable to handle the recent
changes to -current.

Try putting the patch below as patch-am into PORTSDIR/www/apache13/patches/
(apache-1.3.2) and rebuild. It is ugly but it solves the problem. I wonder
if anyone has come up with a more elegant solution.

-------------------------------cut here---------------------------------
--- src/Configure.orig	Sun Sep 20 23:48:57 1998
+++ src/Configure	Wed Oct 14 19:09:21 1998
@@ -889,10 +889,16 @@
             LDFLAGS_SHLIB_EXPORT="-rdynamic"
             SHLIB_SUFFIX_DEPTH=0
             ;;
-        *-freebsd*)
+        *-freebsd2*)
             CFLAGS_SHLIB="-fpic"
             LDFLAGS_SHLIB="-Bshareable"
             LDFLAGS_SHLIB_EXPORT=""
+            SHLIB_SUFFIX_DEPTH=2
+            ;;
+        *-freebsd3*)
+            CFLAGS_SHLIB="-fpic"
+            LDFLAGS_SHLIB="-Bshareable"
+            LDFLAGS_SHLIB_EXPORT="-rdynamic"
             SHLIB_SUFFIX_DEPTH=2
             ;;
         *-openbsd*)
--- src/os/unix/os.h.orig	Wed Sep 16 14:49:44 1998
+++ src/os/unix/os.h	Wed Oct 14 17:20:54 1998
@@ -121,7 +121,7 @@
 #define RTLD_GLOBAL 0
 #endif
 
-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+#if __FreeBSD__ < 3 || defined(__OpenBSD__) || defined(__NetBSD__)
 #define DLSYM_NEEDS_UNDERSCORE
 #endif
 
-------------------------------cut here---------------------------------

kt

> Doing file /usr/local/libexec/apache/mod_mime_magic.so, I get:
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810141151.TAA00537>