Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24362 - mod_php emerge fails during configure stage
Summary: mod_php emerge fails during configure stage
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 24376 24440 24499 24537 25103 25167 25176 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-12 16:46 UTC by Derk-Jan Hartman
Modified: 2003-12-05 13:00 UTC (History)
7 users (show)

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


Attachments
the config.log from my failed build (config.log,28.06 KB, text/plain)
2003-07-12 23:20 UTC, Matt Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Derk-Jan Hartman 2003-07-12 16:46:41 UTC
I tried to emerge the update to the new stable mod_php today, and it failed on 
the following.

checking for utime.h... yes
checking for sys/utsname.h... yes
checking for sys/ipc.h... yes
checking for fopencookie... yes
configure: error: can not run test program while cross compiling

!!! ERROR: dev-php/mod_php-4.3.2-r3 failed.
!!! Function econf, Line 304, Exitcode 1
!!! econf failed


Reproducible: Always
Steps to Reproduce:
I tried it more than once. everytime the same.
Actual Results:  
configure:13356: checking for unix.h
configure:13366: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13362:18: unix.h: No such file or directory
configure: failed program was:
#line 13361 "configure"
#include "confdefs.h"
#include <unix.h>
configure:13356: checking for utime.h
configure:13366: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13356: checking for sys/utsname.h
configure:13366: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13356: checking for sys/ipc.h
configure:13366: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:13395: checking for fopencookie
configure:13423: gcc -o conftest -march=pentium3 -O3 -pipe   conftest.c -lm  -
lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/ld: 
warning: libmysqlclient.so.10, needed by /usr/lib/gcc-lib/i686-pc-linux-
gnu/3.2.2/../../../libxmlparse.so, not found (try using -rpath or -rpath-link)
configure:13454: gcc -c -march=pentium3 -O3 -pipe  conftest.c 1>&5



Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.2.5-r2,2.3.1-r4)
=================================================================
System uname: 2.4.21 i686 Celeron (Coppermine)
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo 
http://ftp.gentoo.skynet.be/pub/gentoo/ 
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ 
http://ftp.easynet.nl/mirror/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X
11/xkb /usr/kde/3.1/share/config /usr/kde/3/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/local/portage"
USE="x86 oss 3dnow apm crypt cups encode gif imlib jpeg libg++ mad mikmod mmx 
ncurses pdflib png quicktime spell xml2 xmms zlib gdbm berkdb slang readline 
arts svga gpm tcpd pam libwww ssl perl python motif opengl mozilla cdr X alsa 
ipv6 php mysql -java qt kde -gnome gtk fluxbox maildir dvd oggvorbis xv avi 
mpeg slp truetype nls sdl aalib"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://ftp.snt.utwente.nl/gentoo-portage"
FEATURES="sandbox ccache fixpackages"
Comment 1 Derk-Jan Hartman 2003-07-12 17:07:09 UTC
I think it's because i had both apache and apache2 installed. I'm cleaning my setup now, rebuilding all the apache related packages just to be sure. I think that will solve it. I'll know when i wake up tomorrow morning.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-12 22:32:50 UTC
Look at the config.log generated by PHP.
I can say with 100% certainty your problem is caused by library setups.
Since you did the mysql upgrade, did you run revdep-rebuild as the instructions specified?

If not, please do that.
If you did run it, upgrade your gentoolkit to 0.1.30 and run it again.
Comment 3 Matt Smith 2003-07-12 22:51:42 UTC
I get the same exact error. I removed all of apache. Readded apache2. Also did revdep-rebuild and tried to emerge mod_php but I still get the same error. Also to add I do not have any version of mod_php installed. I tried todo it clean but no worky.
Comment 4 Matt Smith 2003-07-12 23:20:50 UTC
Created attachment 14428 [details]
the config.log from my failed build

Maybe this will help.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-12 23:25:20 UTC
Slipmode: 

Your problem is _exactly_ as I described to Derk-Jan.

From your config.log:
gcc -o conftest -O2 -mcpu=i686 -pipe   conftest.c -lm  -lxmlparse -lxmltok 1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/ld: warning: libmysqlclient.so.10, needed by /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../libxmlparse.so, not found (try using -rpath or -rpath-link)
configure:13454: gcc -c -O2 -mcpu=i686 -pipe  conftest.c 1>&5

Emerge gentoolkit-0.1.30 and run revdep-rebuild again, and it will go away

Make sure you have gentoolkit-0.1.30 as 0.1.28/29 don't get the order of packages correct, leading to this problem.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-12 23:28:22 UTC
As gentoolkit-0.1.30 is still masked:
ACCEPT_KEYWORDS="~x86" emerge gentoolkit
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-12 23:37:25 UTC
If this fails, just emerge libwww again as it provides libxmlparse.
Comment 8 Derk-Jan Hartman 2003-07-13 01:43:17 UTC
> Since you did the mysql upgrade, did you run revdep-rebuild as the instructions specified?

Ehmmm what instructions. I'm sorry, but when i upgrade 15 packages, i don't stay present to look at all of them while they go by on this 400Mhz machine.
It might be a good idea, to let emerge report all the warnings after everything is emerged actually. Maybe that suggestion should be made to the portage team.
Comment 9 SpanKY gentoo-dev 2003-07-13 01:54:37 UTC
that suggestion has already been made and patches created in a couple of bugs 
Comment 10 Derk-Jan Hartman 2003-07-13 07:32:56 UTC
This apparently did do the trick. however my HD just died on me, so i'm not really sure, and all work was for nothing :p
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-13 17:07:34 UTC
*** Bug 24376 has been marked as a duplicate of this bug. ***
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-14 09:46:54 UTC
*** Bug 24440 has been marked as a duplicate of this bug. ***
Comment 13 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-14 22:37:48 UTC
*** Bug 24499 has been marked as a duplicate of this bug. ***
Comment 14 Martin Holzer (RETIRED) gentoo-dev 2003-07-15 12:52:23 UTC
*** Bug 24537 has been marked as a duplicate of this bug. ***
Comment 15 Stephen Diener (RETIRED) gentoo-dev 2003-07-15 13:29:10 UTC
I do not think that gentoolkit-1.30 has the correct order yet. When I ran it revdep-rebuild, libwww was scheduled to be rebuilt after mod_php and mod_php did not merge until I emerged libwww manually before re-running revdep-rebuild.
- Steve
Comment 16 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-15 14:05:52 UTC
Everybody: Gentoolkit-0.1.30 is now in stable. (It was meant to be before the PHP/Apache2 migration was done, but it slipped thru the cracks).

Steve: could you do:
revdep-rebuild -- -p

and attach the output of:
emerge -p gentoolkit

It definetly should not be doing that, so I'll pass the bug onto the author of it.

Comment 17 Stephen Diener (RETIRED) gentoo-dev 2003-07-15 19:00:09 UTC
I believe I was using the wrong revdep-rebuild...

For some reason revdep-rebuild wasn't in my path so I did a locate revdep-rebuild and found...

/usr/portage/app-admin/gentoolkit/files/scripts/revdep-rebuild

I used the that instead of the one that was merged into /usr/bin

sorry for the confusion...
Comment 18 Jeremy Huddleston (RETIRED) gentoo-dev 2003-07-16 00:39:47 UTC
(07:34:00 Tue Jul 15 2003 root@eradicator)
~ $ revdep-rebuild -- -p

Checking reverse dependencies...
Packages containing binaries and libraries broken by any package update,
will be recompiled.

Collecting system binaries and libraries... done.
  (/root/.revdep-rebuild.1_files)

Collecting complete LD_LIBRARY_PATH... done.
  (/root/.revdep-rebuild.2_ldpath)

Checking dynamic linking consistency...
 done.
  (/root/.revdep-rebuild.3_rebuild)

Assigning files to ebuilds... done.
  (/root/.revdep-rebuild.4_ebuilds)

Evaluating package order... done.
  (/root/.revdep-rebuild.5_order)

Dynamic linking on your system is consistent... All done. 

(23:58:16 Tue Jul 15 2003 root@eradicator)
~ $ emerge -p gentoolkit

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R  ] app-admin/gentoolkit-0.1.30  

(23:58:16 Tue Jul 15 2003 root@eradicator)
~ $ emerge mod_php
...
checking for fopencookie... yes
configure: error: can not run test program while cross compiling

!!! ERROR: dev-php/mod_php-4.3.2-r3 failed.
!!! Function econf, Line 304, Exitcode 1
!!! econf failed


(00:01:27 Wed Jul 16 2003 root@eradicator)
~ $ emerge libwww mod_php
...
libwww emerged fine
mod_php seems to be emerging fine now.

Thanks.
Comment 19 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-16 00:47:18 UTC
Jeremy: Hmm that is odd. The revdep-rebuild should have forced libwww to rebuild.
Comment 20 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-23 23:34:42 UTC
*** Bug 25103 has been marked as a duplicate of this bug. ***
Comment 21 Keith Edmunds 2003-07-24 00:28:57 UTC
I reported this problem as Bug 25103 (sorry for the duplicate) on a completely new build from scratch, so revdep-rebuild should not need to be run...
Comment 22 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-24 00:34:41 UTC
As an update to the libwww issue, it seems that libwww and mysql have a circular dependancy sometimes, so libwww doesn't always get updated properly.
(like unixODBC and qt, but less severe).

Keith: run revdep-rebuild anyway, it won't hurt you.
Comment 23 Keith Edmunds 2003-07-24 01:55:12 UTC
Thanks, revdep-rebuild did indeed fix the problem. I build Gentoo systems using an automated script, which currently fails with this problem. Is it reasonable to assume that when the circular dependency problem is fixed then this will be fixed to? (And is it also reasonable to assume the circular dependency problem is being fixed?)

Thanks, Keith
Comment 24 Martin Holzer (RETIRED) gentoo-dev 2003-07-24 05:12:58 UTC
*** Bug 25176 has been marked as a duplicate of this bug. ***
Comment 25 Rainer Größlinger (RETIRED) gentoo-dev 2003-07-24 06:07:09 UTC
*** Bug 25167 has been marked as a duplicate of this bug. ***
Comment 26 SpanKY gentoo-dev 2003-12-05 11:29:31 UTC
*** Bug 35145 has been marked as a duplicate of this bug. ***
Comment 27 Rev. Jeffrey Paul 2003-12-05 12:08:16 UTC
I got this error __while__ my system was running revdep-rebuild, as I upgraded mysql and mod_php needed a rebuild.

How do I fix this?

-j

PS: I seriously disagree with the idea that this is "resolved".
Comment 28 SpanKY gentoo-dev 2003-12-05 12:29:41 UTC
this bug is resolved, end of story

perhaps yours is dieing for a different reason, lets look at it a bit more at #35145
Comment 29 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-12-05 13:00:40 UTC
as with this being resolved, it is resolved because it is NOT a problem with the package itself, but rather the state of your system.