| Summary: | www-servers/apache-2.2.6 fail to build with mpm-peruser | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Michael Sun <mike> |
| Component: | New packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
*** This bug has been marked as a duplicate of bug 192025 *** |
I was unable to install www-servers/apache-2.2.6 with USE="ssl mpm-peruser". I got the error message: /usr/bin/libtool --silent --mode=link i686-pc-linux-gnu-gcc -pthread -O3 -march=pentium4 -pipe -Wl,--no-as-needed -L/usr/lib -Wl,--no-as-needed -o apache2 modules.lo buildmark.o -export-dynamic server/libmain.la modules/http/libmod_http.la modules/mappers/libmod_so.la server/mpm/experimental/peruser/libperuser.la os/unix/libos.la -lm -L/usr/lib -lpcre /usr/lib/libaprutil-1.la -ldb -lexpat /usr/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl server/.libs/libmain.a(core.o):(.rodata+0x64c): undefined reference to `ap_mpm_set_exception_hook' collect2: ld returned 1 exit status make[1]: *** [apache2] Error 1 make[1]: Leaving directory `/var/tmp/portage/www-servers/apache-2.2.6/work/httpd-2.2.6' make: *** [all-recursive] Error 1 * * ERROR: www-servers/apache-2.2.6 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * apache-2.2.6.ebuild, line 207: Called die * * emake failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/www-servers/apache-2.2.6/temp/build.log'. * After I patched the configure.in, it build successfully when I do not use 'debug' in the USE flag: --- configure.in.orig 2007-07-17 07:48:25.000000000 -0700 +++ configure.in 2007-09-16 15:31:09.000000000 -0700 @@ -456,16 +456,16 @@ [Allow IPv4 connections on IPv6 listening sockets]) fi -AC_ARG_ENABLE(exception-hook,APACHE_HELP_STRING(--enable-exception-hook,Enable fatal exception hook), -[ +AC_ARG_ENABLE(exception-hook,APACHE_HELP_STRING(--enable-exception-hook,Enable fatal exception hook)) +if test "$enable_exception_hook" = "yes"; then AC_DEFINE(AP_ENABLE_EXCEPTION_HOOK, 1, [Allow modules to run hook after a fatal exception]) -])dnl +fi -AC_ARG_ENABLE(maintainer-mode,APACHE_HELP_STRING(--enable-maintainer-mode,Turn on debugging and compile time warnings), -[ +AC_ARG_ENABLE(maintainer-mode,APACHE_HELP_STRING(--enable-maintainer-mode,Turn on debugging and compile time warnings)) +if test "$enable_maintainer_mode" = "yes"; then APR_ADDTO(CPPFLAGS, -DAP_DEBUG) -])dnl +fi dnl Conditionally enable PIE support for GNU toolchains. AC_ARG_ENABLE(pie,APACHE_HELP_STRING(--enable-pie,Build httpd as a Position Independent Executable)) Reproducible: Always