Error beim Kompilieren von Apache unter openSuse

JensP

New Member
Hallo,

ich versuche seit Stunden auf die neuste Apache Version zu upgradem indem ich selber kompiliere. Mt der Option --with-mpm=prefork leider komme ich beim make nicht weiter:

Code:
Making all in support
make[1]: Entering directory `/usr/local/src/httpd-2.2.21/support'
make[2]: Entering directory `/usr/local/src/httpd-2.2.21/support'
make[2]: F�r das Ziel �local-all� ist nichts zu tun.
make[2]: Leaving directory `/usr/local/src/httpd-2.2.21/support'
make[1]: Leaving directory `/usr/local/src/httpd-2.2.21/support'
make[1]: Entering directory `/usr/local/src/httpd-2.2.21'
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -pthread  -march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -DSSL_EXPERIMENTAL_ENGINE -DMAX_SERVER_LIMIT=200000 -DLDAP_DEPRECATED -DMAXLINE=4096  -I. -I/usr/local/src/httpd-2.2.21/os/unix -I/usr/local/src/httpd-2.2.21/server/mpm/prefork -I/usr/local/src/httpd-2.2.21/modules/http -I/usr/local/src/httpd-2.2.21/modules/filters -I/usr/local/src/httpd-2.2.21/modules/proxy -I/usr/local/src/httpd-2.2.21/include -I/usr/local/src/httpd-2.2.21/modules/generators -I/usr/local/src/httpd-2.2.21/modules/mappers -I/usr/local/src/httpd-2.2.21/modules/database -I/usr/include/apr-1 -I/usr/local/src/httpd-2.2.21/server -I/usr/local/src/httpd-2.2.21/modules/proxy/../generators -I/usr/local/src/httpd-2.2.21/modules/ssl -I/usr/local/src/httpd-2.2.21/modules/dav/main -fPIE -prefer-non-pic -static -c modules.c && touch modules.lo
gcc -pthread  -march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -DSSL_EXPERIMENTAL_ENGINE -DMAX_SERVER_LIMIT=200000 -DLDAP_DEPRECATED -DMAXLINE=4096  -I. -I/usr/local/src/httpd-2.2.21/os/unix -I/usr/local/src/httpd-2.2.21/server/mpm/prefork -I/usr/local/src/httpd-2.2.21/modules/http -I/usr/local/src/httpd-2.2.21/modules/filters -I/usr/local/src/httpd-2.2.21/modules/proxy -I/usr/local/src/httpd-2.2.21/include -I/usr/local/src/httpd-2.2.21/modules/generators -I/usr/local/src/httpd-2.2.21/modules/mappers -I/usr/local/src/httpd-2.2.21/modules/database -I/usr/include/apr-1 -I/usr/local/src/httpd-2.2.21/server -I/usr/local/src/httpd-2.2.21/modules/proxy/../generators -I/usr/local/src/httpd-2.2.21/modules/ssl -I/usr/local/src/httpd-2.2.21/modules/dav/main -fPIE -c /usr/local/src/httpd-2.2.21/server/buildmark.c
/usr/lib/apr-1/build/libtool --silent --mode=link gcc -pthread  -march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED -pie     -o httpd2-prefork  modules.lo buildmark.o -export-dynamic server/libmain.la modules/http/libmod_http.la modules/mappers/libmod_so.la server/mpm/prefork/libprefork.la os/unix/libos.la -lm -L/usr/lib -lpcre -L/usr/lib -R/usr/lib -laprutil-1 -ldb-4.5 -lexpat -L/usr/lib -R/usr/lib -lapr-1 -lrt -lcrypt -lpthread -ldl 
server/.libs/libmain.a(exports.o):(.data.rel+0xfe8): undefined reference to `ap_mpm_pod_open'
server/.libs/libmain.a(exports.o):(.data.rel+0xfec): undefined reference to `ap_mpm_pod_check'
server/.libs/libmain.a(exports.o):(.data.rel+0xff0): undefined reference to `ap_mpm_pod_close'
server/.libs/libmain.a(exports.o):(.data.rel+0xff4): undefined reference to `ap_mpm_pod_signal'
server/.libs/libmain.a(exports.o):(.data.rel+0xff8): undefined reference to `ap_mpm_pod_killpg'
server/mpm/prefork/.libs/libprefork.a(prefork.o): In function `prefork_open_logs':
/usr/local/src/httpd-2.2.21/server/mpm/prefork/prefork.c:1288: undefined reference to `ap_mpm_pod_open'
server/mpm/prefork/.libs/libprefork.a(prefork.o): In function `clean_child_exit':
/usr/local/src/httpd-2.2.21/server/mpm/prefork/prefork.c:198: undefined reference to `ap_mpm_pod_close'
server/mpm/prefork/.libs/libprefork.a(prefork.o): In function `child_main':
/usr/local/src/httpd-2.2.21/server/mpm/prefork/prefork.c:676: undefined reference to `ap_mpm_pod_check'
server/mpm/prefork/.libs/libprefork.a(prefork.o): In function `ap_mpm_run':
/usr/local/src/httpd-2.2.21/server/mpm/prefork/prefork.c:1155: undefined reference to `ap_mpm_pod_killpg'
server/mpm/prefork/.libs/libprefork.a(prefork.o): In function `perform_idle_server_maintenance':
/usr/local/src/httpd-2.2.21/server/mpm/prefork/prefork.c:867: undefined reference to `ap_mpm_pod_signal'
server/mpm/prefork/.libs/libprefork.a(prefork.o): In function `ap_mpm_run':
/usr/local/src/httpd-2.2.21/server/mpm/prefork/prefork.c:1238: undefined reference to `ap_mpm_pod_killpg'
collect2: ld returned 1 exit status
make[1]: *** [httpd2-prefork] Fehler 1
make[1]: Leaving directory `/usr/local/src/httpd-2.2.21'
make: *** [all-recursive] Fehler 1

Vorher hatte ich aus Versehen --with-mpm=event gemacht, da lief es wunderbar durch.

Hier meine config.nice
Code:
#! /bin/sh
#
# Created by configure

CFLAGS="-march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -Wall -fno-strict-aliasing -$
CPPFLAGS="-DSSL_EXPERIMENTAL_ENGINE -DMAX_SERVER_LIMIT=200000 -DLDAP_DEPRECATED -DMAXLINE=4096"; export CPPFLAGS
"./configure" \
"--enable-layout=SuSE" \
"--with-program-name=httpd2-prefork" \
"--with-mpm=prefork" \
"--enable-exception-hook" \
"--with-pcre" \
"--enable-pie" \
"--enable-mods-shared=all" \
"--enable-ssl=shared" \
"--disable-isapi" \
"--enable-deflate" \
"--enable-echo" \
"--enable-filter" \
"--enable-ext-filter" \
"--enable-charset-lite" \
"--enable-file-cache" \
"--enable-logio" \
"--enable-dumpio" \
"--enable-bucketeer" \
"--enable-case_filter" \
"--enable-case_filter_in" \
"--with-ldap" \
"--enable-ldap" \
"--enable-authnz_ldap" \
"--enable-proxy" \
"--enable-proxy-connect" \
"--enable-proxy-ftp" \
"--enable-proxy-http" \
"--enable-cache" \
"--enable-disk-cache" \
"--enable-mem-cache" \
"--enable-version" \
"--enable-dav-lock" \
"--enable-authn-alias" \
"--enable-optional-hook-export" \
"--enable-optional-hook-import" \
"--enable-optional-fn-import" \
"--enable-optional-fn-export" \
"--enable-suexec" \
"--with-suexec-bin=/usr/sbin/suexec2" \
"--with-suexec-caller=wwwrun" \
"--with-suexec-docroot=/srv/www" \
"--with-suexec-logfile=/var/log/apache2/suexec.log" \
"--with-suexec-userdir=public_html" \
"--with-suexec-uidmin=96" \
"--with-suexec-gidmin=96" \
"--with-suexec-safepath=/usr/local/bin:/usr/bin:/bin" \
"CFLAGS=-march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -Wall -fno-strict-aliasing -$
"CPPFLAGS=-DSSL_EXPERIMENTAL_ENGINE -DMAX_SERVER_LIMIT=200000 -DLDAP_DEPRECATED -DMAXLINE=4096" \
"$@"

Hat jemand ne Idee?

Gruß
 
Ich glaube mittlerweile, dass die prefork Variante nicht will, weil eine alte Apache Version dafür sorgt, dass die falschen Files includiert werden.

Eine Worker Version gab es vorher nicht, daher lief der Compile auch durch, mit den im Download enthaltenen Libraries statt der lokalen.

Weiß jemand wie ich make beibringe die includes aus dem aktuellen Verzeichnis zu nehmen?

Gruß
 
Last edited by a moderator:
Back
Top