Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23200 - mod_php/php ebuild fails using uw-imap or new net-libs/c-client
Summary: mod_php/php ebuild fails using uw-imap or new net-libs/c-client
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-20 16:01 UTC by Mike Roest
Modified: 2003-09-26 17:12 UTC (History)
1 user (show)

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


Attachments
Compile output for report (php-imap.log,208.69 KB, text/plain)
2003-06-20 16:02 UTC, Mike Roest
Details
c-client compile log (cclient.log,10.40 KB, text/plain)
2003-06-21 07:58 UTC, Mike Roest
Details
php compile log (php-imap.log,256.02 KB, text/plain)
2003-06-21 08:00 UTC, Mike Roest
Details
output of nm /usr/lib/libc-client.a (out.log,56.49 KB, text/plain)
2003-06-21 13:28 UTC, Mike Roest
Details
config.log with imap flag (config-imap.log,127.11 KB, text/plain)
2003-06-23 20:08 UTC, Mike Roest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Roest 2003-06-20 16:01:08 UTC
When attempting to emerge php or mod_php with the imap flag activated the
following link error always occurs:
ext/imap/php_imap.o(.text+0x343): In function `zm_startup_imap':
: undefined reference to `ssl_onceonlyinit'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

!!! ERROR: dev-php/php-4.3.2 failed.
!!! Function php_src_compile, Line 345, Exitcode 2
!!! compile problem


Reproducible: Always
Steps to Reproduce:
1.USE="gd-bundled imap xml xml2 -nls -java" emerge (php || mod_php)
2. wait for linking
3. Error will then present it self

Actual Results:  
ext/imap/php_imap.o(.text+0x343): In function `zm_startup_imap':
: undefined reference to `ssl_onceonlyinit'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

!!! ERROR: dev-php/php-4.3.2 failed.
!!! Function php_src_compile, Line 345, Exitcode 2
!!! compile problem



# emerge info
Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20 i686 AMD Duron(tm) Processor
GENTOO_MIRRORS="ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/
http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/portage-mine"
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg gnome libg++ mikmod mmx
mpeg ncurses nls pdflib png quicktime spell truetype xmms xv zlib gdbm berkdb
slang readline arts svga java guile mysql X sdl gpm tcpd pam libwww ssl perl
python esd imlib oggvorbis gtk qt kde motif opengl ldap snmp -ipv6 -imap xml xml2"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O3 -pipe -funroll-loops -fforce-addr -frerun-loop-opt
-frerun-cse-after-loop"
CXXFLAGS="-march=athlon -O3 -pipe -funroll-loops -fforce-addr -frerun-loop-opt
-frerun-cse-after-loop"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage/"
FEATURES="sandbox ccache"
Comment 1 Mike Roest 2003-06-20 16:02:25 UTC
Created attachment 13618 [details]
Compile output for report
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-21 03:12:10 UTC
could you please do:
1. emerge unmerge uw-imap
2. make sure ALL c-client stuff in /usr/include}/imap and /usr/lib/libc-client.a is gone, if not delete it
3. USE="ssl imap" emerge c-client 
4. USE="ssl imap gd xml2" emerge (mod_php || php)

gd-bundled is deprecated, it was mistakenly added
'gd' means the bundled copy
and 'gd-external' means the external one instead.
'xml' stuff is now explictly included in PHP as PEAR needs it.
java stuff with PHP works or at the very least doesn't break the compile.
Comment 3 Mike Roest 2003-06-21 07:57:15 UTC
I've followed your procedure and still gives the same error.

I will attach the c-client compile log and the php compile log.

BTW.  The reason I have java disabled is it was failing at load time not compile time.
Comment 4 Mike Roest 2003-06-21 07:58:41 UTC
Created attachment 13648 [details]
c-client compile log

c-client compile log with following emerge command
USE="ssl imap" emerge net-libs/c-client
Comment 5 Mike Roest 2003-06-21 08:00:29 UTC
Created attachment 13649 [details]
php compile log

compile output with following emerge command after c-client emerge.
USE="ssl imap gd xml2" emerge php

BTW: 
uw-imap was removed prior to original report.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-21 12:08:40 UTC
Could you please attach the output of 'nm /usr/lib/libc-client.a'
It seems that your c-client is building without ssl.
Comment 7 Mike Roest 2003-06-21 13:28:45 UTC
Created attachment 13664 [details]
output of nm /usr/lib/libc-client.a

Here you go output of nm /usr/lib/libc-client.a as per request.
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-23 19:31:49 UTC
I don't see any reason this should be happened. In that command, 

The end of the command that fails is (trimmed some):
/bin/sh /var/tmp/portage/php-4.3.2/work/php-4.3.2/libtool --silent --preserve-dup-deps --mode=link gcc -export-dynamic ${CFLAGS} ${LIBDIRS} ${PHP_*.lo_files}
 -lcrypt -lc-client -lssl -lcrypto -lsablot -lexpat -lexpat -lhistory -lreadline -lncurses -lqt -lpspell -lpdf -lz -lpng -ljpeg -lmysqlclient -lmhash -lmcrypt -lltdl -lldap -llber -lcrypt -lpam -lxsltbreakpoint -lxml2 -lxslt -lz -lndbm -lgdbm -lcrack -lbz2 -lz -lssl -lcrypto -lresolv -lm -lxmlparse -lxmltok -lxml2 -lz -lm -lnetsnmp -lcrypto -lelf -lm -lcrypt  -o sapi/cli/php
ext/imap/php_imap.o(.text+0x343): In function `zm_startup_imap':
: undefined reference to `ssl_onceonlyinit'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Could you please run 'emerge php'
then attach
/var/tmp/portage/php-4.3.2/work/php-4.3.2/config.log ?
Comment 9 Mike Roest 2003-06-23 20:05:53 UTC
Running emerge php compiles and installs properly.  If I include USE="imap" and run the same command it fails as before. I will add the attachments next.
Comment 10 Mike Roest 2003-06-23 20:08:06 UTC
Created attachment 13746 [details]
config.log with imap flag
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-24 00:47:48 UTC
Hmm, looking at that output, this is a possible idea now.
emerge app-admin/gentoolkit
and run revdep-rebuld
Comment 12 Mike Roest 2003-06-24 07:11:14 UTC
I ran the revdep-rebuild.
It emerged OpenMotif and blackdown jdk 1.4.1 and the sunjdk1.4.1-gcc3.2.
That's all it seemed to rebuild.  I tried re-emerging php with the imap and ssl flags with the same results.
Comment 13 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-24 15:24:16 UTC
Argh
I don't see why this is happening.
The c-client lib contains the ssl_onceonlyinit symbol
and the ssl lib contains it as well!

last ditch effort:
'USE="imap" emerge ssl c-client php'
Comment 14 Mike Roest 2003-06-24 16:30:47 UTC
Well the last ditch method has failed.  It still dies with the same error. ANy more ideas?

BTW.
I'm assuming you meant USE="imap" emerge openssl c-client php
                                          |_was ssl.
Comment 15 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-24 16:38:01 UTC
Yeah, I meant openssl.
I don't get why this is happening at all.


Since you have a reasonably fast machine, if you have 12 hours or so to leave it going, would you mind running 'emerge -eD world'.

I'm still not convinced this is a php bug, I think it still may be something with the libraries on your system.
Comment 16 Mike Roest 2003-06-24 16:40:06 UTC
I'm willing, is there a chance the emerge -eD world will hoop up my system?
Comment 17 Mike Roest 2003-06-24 16:44:45 UTC
I actually just had a thought.  I'm going to completely clean out my ccache cache and try doing the last resort again.  Maybe it's causing issues.
Comment 18 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-24 16:58:23 UTC
If you mean 'damage' by 'hoop up', then it is practically non-existant (except if you use openssl0.9.7, which is hardmasked anyway, along with a very specific order of things)

if you mean 'speed up' by 'hoop up', then it is possible that it may improve your system if you had packages that weren't built with your CFLAGS before.
As such, right before running the 'emerge -eD world' is a good time to update your cflags if you want.
Comment 19 Mike Roest 2003-06-24 19:32:22 UTC
I have started the emerge -eD world, as the clearing of the ccache cache made no difference.  I will update after the emerge is finished.
Comment 20 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-26 11:49:44 UTC
Any update on this?
Comment 21 Mike Roest 2003-06-26 13:48:21 UTC
The -eD has faild twice.  Once cause it was missing the sun-jdk download that emerge can't get automatically and the second time cause it hit php and faild on the imap error.  I'm going to do a use -imap and restart the -eD and then remerge php with the imap flag after.
Comment 22 Mike Roest 2003-06-28 09:15:29 UTC
Well the -eD world has finished and I've tried re-emerging php and still no dice.  The exact same error is coming into play.  Tried remerging c-client again and then php still no dice.

I've successfully gotten imap to compile in by setting 
USE="imap -ssl" emerge c-client php

Not a great solution but it get's my imap support that I was looking for.
Comment 23 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-17 11:30:01 UTC
I still don't see why c-client built without SSL support. Could you please look at it and make some inquries there.
Comment 24 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-11 10:01:15 UTC
Any progress on this?
Comment 25 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-27 22:54:01 UTC
no response from user, closing.
Comment 26 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-09-26 17:12:30 UTC
closing old bugs.