Hello, I've just installed gentoo on a machine and inside my make.conf i uncommented the ACCEPT_KEYWORDS="~x86" so my entire system was compiles with some unstable packages. When I installed mod_php added the -D PHP4 to apache2 and tried to start apache2 (which works without the php modules) i get: Syntax error on line 5 of /usr/lib/apache2/conf/modules.d/70_mod_php.conf: Cannot load /usr/lib/apache2/extramodules/libphp4.so into server: /usr/lib/apache2/extramodules/libphp4.so: undefined symbol: strsep_copy I searched alot before coming here and also revertet some packeges to the stable ones, like ssl, apache, perl php and mod_php but still i get that error, hope you can help. Thanks: Shay.
please post 'emerge info' output
I i removed the USE="..." entirelly from the make.conf and the remerged the mod_php and it worked, here is what my 'emerge info' looked like before: Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.26_pre6-gentoo) ================================================================= System uname: 2.4.26_pre6-gentoo i686 AMD Athlon(TM) XP 1700+ Gentoo Base System version 1.4.9 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/ http://212.219.247.12/sites/www.ibiblio.org/gentoo/ http://212.219.247.18/sites/www.ibiblio.org/gentoo/ http://212.219.247.15/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib acl acpi aim alsa apache2 apm arts audiofile avi berkdb bidi caps crypt cups dga encode ethereal firebird foomaticdb gd gdbm gif gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml icq imagemagick imap imlib java jpeg kde kerberos krb4 ldap lesstif libg++ libwww mad maildir matrox mbox mikmod mmx motif mozilla mpeg msn mysql ncurses nls nocd oggvorbis opengl oscar oss pam pdflib perl png postgres pwdb python qt quicktime readline samba sasl scanner sdl slang slp snmp speex spell sse ssl svga tcltk tcpd theora tiff truetype unicode usb vhosts video_cards_matrox x86 xinerama xml xml2 xmms xv yahoo zlib" here is the relevant output of the emerge when i use my USE flags: * Apache2 only detected xml >>> Unpacking php-4.3.6RC2.tar.bz2 to /var/tmp/portage/mod_php-4.3.6_rc2/work * Applying php-4.3.6-pcrealloc.patch... [ ok ] * Applying mod_php-4.3.5-apache1security.diff... [ ok ] >>> Source unpacked. * Apache2 MPM: prefork java !alpha * JDK version: 1.4.2_04 berkdb * Enabling NBDM * Enabling DB4 x86 x86 x86 !alpha snmp X gmp pdflib gd gd png jpeg tiff mysql truetype mysql imap ssl * Building IMAP with SSL support. and here is the output without my USE flags: * You have the xml USE flag turned off. Previously this * disabled XML support in PHP. However PEAR has a hard * dependancy on it, so they are now enabled. >>> Unpacking php-4.3.6RC2.tar.bz2 to /var/tmp/portage/mod_php-4.3.6_rc2/work * Applying php-4.3.6-pcrealloc.patch... [ ok ] * Applying mod_php-4.3.5-apache1security.diff... [ ok ] >>> Source unpacked. * Apache2 MPM: prefork java !alpha * JDK version: 1.4.2_04 berkdb * Enabling NBDM * Enabling DB4 x86 x86 x86 !alpha X pdflib png jpeg mysql truetype mysql I think the only difference is the IMAP with SSL support, could that be the problem?
could you try to append "-imap" to your original USE flags, and see if the emerge mod_php works ?
well using: USE="-imap" emerge mod_php the module works. for what exactlly do i need IMAP competibility in the mod_php?
emerge c-client again (or uw-imap if you use that)
well re emerge c-client then emerge mod_php and apache failed to load....
could you please: turn on logging in make.conf 'emerge mod_php' and attach the full logfile from the emerge, along with config.log from the build directory. also, i'd like the output of: ldd /usr/lib/apache2/extramodules/libphp4.so
no response from user.
any idea what changed that cuased this? Camisen peter # /etc/init.d/apache2 start * Apache2 has detected a syntax error in your configuration files: Syntax error on line 6 of /usr/lib/apache2/conf/modules.d/70_mod_php.conf: Cannot load /usr/lib/apache2/extramodules/libphp4.so into server: /usr/lib/apache2/extramodules/libphp4.so: undefined symbol: usmAES192PrivProtocol