Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with libstdc++ when emerging php: ebuild error?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
jorgeSallum
Apprentice
Apprentice


Joined: 15 Dec 2004
Posts: 161
Location: São Paulo/Brazil

PostPosted: Mon Mar 06, 2006 8:42 pm    Post subject: problem with libstdc++ when emerging php: ebuild error? Reply with quote

I tried to emerge dev-lang/php (USE="cli apache2"), but it stops when doens't find a gcc-lib. Here is the message:

Code:

libtool: link: cannot find the library `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.la'or unhandled [b]argument `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.la'[/b]
make: *** [sapi/cli/php] Error 1
!!! ERROR: dev-lang/php-5.0.5-r5 failed.


I reemerged gcc-3.4.4, successfully, but apparently it looked for gcc-lib in ../gcc-lib/i686-pc-linux-gnu/3.3.2/l.
So, I created a link (ln -s 3.3.6 3.3.2) and it works properly. The question is: the problem was inside ebuild?

Thanks, J.
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Mon Mar 06, 2006 9:30 pm    Post subject: Reply with quote

Have you switched to your current compiler?
Code:

$ gcc-config <NUMBER>

Where <NUMBER> is the number of your gcc-3.4.4 as showed by "gcc-config -l".
BTW if you currently upgraded from gcc-3.3.X to gcc-3.4.X, you should follow the instructions of the offical gentoo-gcc-upgrade-guide.
If you already have successfully upgraded from gcc-3.3.X to gcc-3.4.X (followed the instructions of the mentioned upgrade guide) try the following:
Code:

$ fix_libtool_files.sh 3.3.2


If you haven't followed the upgrad guide, but just switched to the new gcc, I recomment the following steps:

1. Emerge the "libstdc++-v3" package
Code:

$ emerge libstdc++-v3


2. Switch to the current gcc
Code:

$ gcc-config <NUMBER>

(Where number is the number of gcc-3.4.X as outputed by "gcc-config -l")

3. Rebuild your toolchain
Code:

$ emerge glibc binutils && emerge gcc glibc binutils


4. Emerge world to make sure your programs are linked aginst the latesd libraries
Code:

$ emerge -e world


Regards,

Sino
_________________
Help to answer the unanswered
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon Mar 06, 2006 10:40 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads in favour of this FAQ: Emerge fails after upgrading gcc. libstdc++.la missing.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum