Compile failure
am 09.08.2005 04:58:14 von ceverettHi,
I downloaded and unpacked mm-1.3.1, openssl-0.9.8, apache_1.3.33 and
modssl-2.8.23-1.3.33. Then I installed everything:
installed MM
------------
../configure --prefix=/usr/local
make && make test && make install
openssl-0.9.8
-------------
../config --prefix=/usr/local
make && make test && make install
apache+mod_ssl
--------------
mkdir httpd-ssl
cd httpd-ssl
cp -rl ../apache_1.3.33/ .
cp -rl ../modssl-2.8.23-1.3.33/ .
ln ../../mod_proxy_add_forward.c src/modules/extra/
cp -rl ../../gzip src/modules/
cd modssl-2.8.23-1.3.33/
../configure --with-apache=../apache_1.3.33/
cd ../apache_1.3.33/
CC="gcc" \
CFLAGS="`mm-config --cflags` -DOPENSSL_NO_KRB5" \
OPTIM="-O3 -fomit-frame-pointer -ffast-math -malign-double
-funroll-all-loops -fno-exceptions" \
EAPI_MM=../../mm-1.3.1/ \
SSL_BASE=../../openssl-0.9.8/ \
TARGET=httpd-ssl \
../configure \
"--target=httpd-ssl" \
"--enable-module=ssl" \
"--disable-rule=SSL_COMPAT" \
"--activate-module=src/modules/extra/mod_proxy_add_forward.c " \
"--enable-module=proxy_add_forward" \
"--activate-module=src/modules/gzip/mod_gzip.c" \
"--enable-module=gzip" \
"--enable-module=proxy" \
"--enable-module=alias" \
"--enable-module=rewrite" \
"--enable-module=cgi" \
"--disable-module=info" \
"--disable-module=status" \
"--disable-module=imap" \
"--disable-module=userdir" \
"--disable-module=asis" \
"--disable-module=autoindex" \
"--with-layout=medbanner"
When I make the server, everything goes aright for a while and then I get
gcc -O3 -fomit-frame-pointer -ffast-math -malign-double
-funroll-all-loops -fno-exceptions -DLINUX=22 -DTARGET=\"httpd-ssl\"
-DHAVE_SET_DUMPABLE -DNO_DBM_REWRITEMAP -DMOD_SSL=208123 -DUSE_HSREGEX
-DEAPI -DEAPI_MM -DNO_DL_NEEDED -I/usr/local/include -DOPENSSL_NO_KRB5
`./apaci` -L/usr/src/openssl-0.9.8 -L./../../../mm-1.3.1//.libs \
-o httpd-ssl buildmark.o modules.o modules/standard/libstandard.a
modules/proxy/libproxy.a modules/ssl/libssl.a modules/extra/libextra.a
modules/gzip/libgzip.a main/libmain.a ./os/unix/libos.a ap/libap.a
regex/libregex.a -lm -lcrypt -lssl -lcrypto -lmm -lexpat
modules/proxy/libproxy.a(proxy_cache.o)(.text+0x1fd4): In function
`ap_proxy_cache_update':
: warning: the use of `mktemp' is dangerous, better use `mkstemp'
/usr/src/openssl-0.9.8/libcrypto.a(dso_dlfcn.o)(.text+0x45): In function
`dlfcn_load':
: undefined reference to `dlopen'
/usr/src/openssl-0.9.8/libcrypto.a(dso_dlfcn.o)(.text+0xc4): In function
`dlfcn_load':
: undefined reference to `dlclose'
/usr/src/openssl-0.9.8/libcrypto.a(dso_dlfcn.o)(.text+0x102) : In
function `dlfcn_load':
: undefined reference to `dlerror'
/usr/src/openssl-0.9.8/libcrypto.a(dso_dlfcn.o)(.text+0x1ad) : In
function `dlfcn_bind_var':
: undefined reference to `dlsym'
/usr/src/openssl-0.9.8/libcrypto.a(dso_dlfcn.o)(.text+0x1f2) : In
function `dlfcn_bind_var':
: undefined reference to `dlerror'
/usr/src/openssl-0.9.8/libcrypto.a(dso_dlfcn.o)(.text+0x2ed) : In
function `dlfcn_bind_func':
: undefined reference to `dlsym'
/usr/src/openssl-0.9.8/libcrypto.a(dso_dlfcn.o)(.text+0x337) : In
function `dlfcn_bind_func':
: undefined reference to `dlerror'
/usr/src/openssl-0.9.8/libcrypto.a(dso_dlfcn.o)(.text+0x68a) : In
function `dlfcn_unload':
: undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/src/httpd-ssl/apache_1.3.33/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/src/httpd-ssl/apache_1.3.33'
make: *** [build] Error 2
I'm on a Debian stable box, using GCC 3.3, and although you don't see
it, there's a "-march=athlon-xp" compiler directive in there as well,
becuase I have the Debian "pentium-builder" package installed as well.
Got any clues for me?
--
Christopher L. Everett
Chief Technology Officer www.medbanner.com
MedBanner, Inc. www.physemp.com
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org