Newest apache doesn't want to compile. It's very possible that it's my fault because I'm newb :> I *think* it's because I use mpm-itk? The error message included something with MPM atleast. It seems to compile okay without mpm-itk. Reproducible: Always Steps to Reproduce: 1. emerge -uavD world Actual Results: [ebuild U ] www-servers/apache-2.2.4-r11 [2.2.4-r10] USE="mpm-itk -debug -doc -ldap -mpm-event -mpm-peruser -mpm-prefork -mpm-worker -no-suexec (-selinux) -ssl -static-modules -threads" 0 kB i686-pc-linux-gnu-gcc -pthread -O2 -march=athlon-xp -pipe -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DAP_DEBUG -I. -I/var/tmp/portage/www-servers/apache-2.2.4-r11/work/httpd-2.2.4/os/unix -I/var/tmp/portage/www-servers/apache-2.2.4-r11/work/httpd-2.2.4/server/mpm/experimental/itk -I/var/tmp/portage/www-servers/apache-2.2.4-r11/work/httpd-2.2.4/modules/http -I/var/tmp/portage/www-servers/apache-2.2.4-r11/work/httpd-2.2.4/modules/filters -I/var/tmp/portage/www-servers/apache-2.2.4-r11/work/httpd-2.2.4/modules/proxy -I/var/tmp/portage/www-servers/apache-2.2.4-r11/work/httpd-2.2.4/include -I/var/tmp/portage/www-servers/apache-2.2.4-r11/work/httpd-2.2.4/modules/generators -I/var/tmp/portage/www-servers/apache-2.2.4-r11/work/httpd-2.2.4/modules/mappers -I/var/tmp/portage/www-servers/apache-2.2.4-r11/work/httpd-2.2.4/modules/database -I/usr/include/apr-1 -I/usr/include/db4.3 -I/var/tmp/portage/www-servers/apache-2.2.4-r11/work/httpd-2.2.4/modules/proxy/../generators -I/var/tmp/portage/www-servers/apache-2.2.4-r11/work/httpd-2.2.4/modules/ssl -I/var/tmp/portage/www-servers/apache-2.2.4-r11/work/httpd-2.2.4/modules/dav/main -c /var/tmp/portage/www-servers/apache-2.2.4-r11/work/httpd-2.2.4/server/buildmark.c /usr/bin/libtool --silent --mode=link i686-pc-linux-gnu-gcc -pthread -O2 -march=athlon-xp -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/itk/libitk.la os/unix/libos.la -lm -L/usr/lib -lpcre /usr/lib/libaprutil-1.la -lgdbm -ldb-4.3 -lsqlite -lexpat /usr/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl server/.libs/libmain.a(mpm_common.o): In function `reclaim_one_pid': mpm_common.c:(.text+0x1c4): undefined reference to `MPM_VALID_PID' server/.libs/libmain.a(mpm_common.o): In function `ap_mpm_safe_kill': mpm_common.c:(.text+0x64e): undefined reference to `MPM_VALID_PID' collect2: ld returned 1 exit status make[1]: *** [apache2] Error 1 make[1]: Leaving directory `/var/tmp/portage/www-servers/apache-2.2.4-r11/work/httpd-2.2.4' make: *** [all-recursive] Error 1 !!! ERROR: www-servers/apache-2.2.4-r11 failed. Call stack: ebuild.sh, line 1632: Called dyn_compile ebuild.sh, line 983: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile apache-2.2.4-r11.ebuild, line 196: 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.4-r11/temp/build.log'. Expected Results: emerged like..normal. # emerge --info Portage 2.1.2.11 (default-linux/x86/2007.0/server, gcc-3.4.6, glibc-2.5-r4, 2.6. 20-gentoo-r4CNU i686) ================================================================= System uname: 2.6.20-gentoo-r4CNU i686 AMD Athlon(tm) XP 2800+ Gentoo Base System release 1.12.9 Timestamp of tree: Thu, 02 Aug 2007 01:00:01 +0000 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php 5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/r evdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.gentoo.no/" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/di stfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 berkdb bitmap-fonts bzip2 cli cracklib crypt ctype dedicated dri en script ftp gdbm gpm iconv imap ipv6 isdnlog libg++ libwww logrotate maildir midi mudflap mysql mysqli ncurses nls nptl nptlonly openmp pam pcre perl posix pppd python readline reflection sasl session silvercity simplexml snmp sockets spl sq lite ssl tcpd tidy truetype-fonts type1-fonts unicode vchroot vhosts x86 xml xor g zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu1 0k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m ma estro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm a law asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa l float linear meter mulaw multi null plug rate route share shm softvol" ELIBC="gl ibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfo ntz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDE O_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach6 4 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGU AS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS , PORTDIR_OVERLAY
Same error here when trying to compile with mpm-event
(In reply to comment #1) > Same error here when trying to compile with mpm-event > Same here, USE=mpm-event ssl threads
I too am unable to merge with mpm-itk selected... So just using the default "prefork"
(In reply to comment #3) > I too am unable to merge with mpm-itk selected... > So just using the default "prefork" I am on AMD64, and the default is mpm-worker, not mpm-prefork. I suspect it's the same for x86 Like the others, apache doesn't compile with USE=mpm-event. Unfortunately, I changed the default at the request of another package, which I now can't determine positively. Perhaps php?
if you have USE="threads" mpm-worker is the default, prefork otherwise. you have to compile php (and any other apache modules) with USE="threads" too if you use a threaded MPM or USE="-threads" if you have a prefork based MPM (which itk is)
fixed in 2.2.4-r12