Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24909 - mod_php doesn't compile with apache2
Summary: mod_php doesn't compile with apache2
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 24921 25424 25433 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-20 12:16 UTC by Sune Foldager
Modified: 2003-07-28 10:13 UTC (History)
5 users (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 Sune Foldager 2003-07-20 12:16:50 UTC
After merging apache2, when trying to merge mod_php (4.3.2-r3) with
USE="apache2", I get (after some time):

grep: /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/libstdc++.la: No such file or
directory
/bin/sed: can't read /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/libstdc++.la: No
such file or directory
libtool: link: `/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/libstdc++.la' is not a
valid libtool archive
make: *** [libphp4.la] Error 1
make: *** Waiting for unfinished jobs....

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

The problem is that my host type is i686 and not i586, and the correct one also
pops up many times during this and many other package merges. The path on my
system would then be /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/, and not
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/ as is tried here. I don't know where
the wrong path comes from.

Reproducible: Always
Steps to Reproduce:
1. I merge apache2. I already have apache1 with mod_php (same version) merged.
2. I try to merge mod_php. This produces the bug.

Actual Results:  
The bug as demonstrated by the screen dump above.

Expected Results:  
It should have worked! ;-).
Comment 1 SpanKY gentoo-dev 2003-07-20 14:10:01 UTC
make sure you have latest gcc and gcc-config ... 
then run `env-update && source /etc/profile` 
 
try again and see if it works ... 
Comment 2 SpanKY gentoo-dev 2003-07-20 16:21:14 UTC
*** Bug 24921 has been marked as a duplicate of this bug. ***
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-20 23:21:00 UTC
One package you have still refers to the i586 version you had installed at some point. 
Search thru all of your libraries to find what is linked against /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/libstdc++.la, and then recompile that package.
This is not a PHP or Apache bug, it's due to not compiling everything linked against a library which was removed.
Comment 4 Sune Foldager 2003-07-22 07:04:03 UTC
Well I never had my CHOST set to i586 at any point, so I don't know how that could have 
happened. Also, the _same_ version of mod_php merged just fine before; All this only started after 
merging Apache2.

Oh and, how do you "search through all libraries and find what is linked against ..." ?  I have no 
idea how that is done.
Comment 5 Thomas Worthington 2003-07-22 07:23:00 UTC
I did

fgrep 'libstdc++.la' *

from within /usr/lib. That showed that the problem was with aspell and gtkspell. I re-emerged them and now everything is working.

I have no idea how any i586 stuff got into the system in the first place as at least one of the machines is a stage1 build and has always been i686.
Comment 6 Sune Foldager 2003-07-22 08:30:16 UTC
Same here, but only aspell for me. Aspell is not in my world file, so I don't know who installed it (I 
have USE="spell" as per default). All I know is that all this started after merging apache2 a few days 
ago.

No problems before that, so I still think there is some kinda bug somewhere ;-). After merging 
apache 2 I couldn't even re-merge mod_php or php for apache1.
Comment 7 macho america 2003-07-25 06:45:06 UTC
i had the same problem, and my libaspell.la and libpspell.la files included references to 
586.  i recompiled them and now all of the references in them are to 686.  but i'm still 
encountering the same problem at compile time.  does anyone know why this might 
be?  do i need to refresh some other key data? 
 
the bug's been discussed at http://forums.gentoo.org/viewtopic.php?t=65846 and i've 
been thinking of trying their fix but it looks way more dangerous to me.  i executed their 
command line code without the last sed command and there are piles of *.la files that 
would be modified under /usr/kde/3.1/ilb/ and one under /usr/lib/xchat/plugins/.  does 
anyone have any words of advice? 
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-25 13:59:51 UTC
I suggest grepping your entire system for i586 and seeing about re-compiling those binaries that have 'i586' in them.
Comment 9 SpanKY gentoo-dev 2003-07-25 15:16:09 UTC
their .la solution works, just do it and forget about it ;) 
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-28 08:06:22 UTC
*** Bug 25424 has been marked as a duplicate of this bug. ***
Comment 11 Martin Holzer (RETIRED) gentoo-dev 2003-07-28 10:13:02 UTC
*** Bug 25433 has been marked as a duplicate of this bug. ***
Comment 12 Martin Holzer (RETIRED) gentoo-dev 2003-07-28 10:13:33 UTC
*** Bug 25433 has been marked as a duplicate of this bug. ***