Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49217 - mod_php doesn't start gives: undefined symbol: strsep_copy
Summary: mod_php doesn't start gives: undefined symbol: strsep_copy
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-27 15:41 UTC by Shay Sevet
Modified: 2005-02-07 10:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shay Sevet 2004-04-27 15:41:23 UTC
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.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-04-27 17:10:02 UTC
please post 'emerge info' output
Comment 2 Shay Sevet 2004-04-28 01:05:46 UTC
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?
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-04-28 02:30:20 UTC
could you try to append "-imap" to your original USE flags, and see if the emerge mod_php works ?
Comment 4 Shay Sevet 2004-04-28 03:30:14 UTC
well using: USE="-imap" emerge mod_php

the module works. 
for what exactlly do i need IMAP competibility in the mod_php?
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-04-28 08:59:05 UTC
emerge c-client again (or uw-imap if you use that)
Comment 6 Shay Sevet 2004-04-29 13:09:00 UTC
well re emerge c-client then emerge mod_php
and apache failed to load....


Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-03 19:37:25 UTC
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
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-27 16:46:12 UTC
no response from user.
Comment 9 Peter Canada 2005-02-07 10:46:56 UTC
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