Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge kde-3.3.2 problem linking libstdc++.la
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
soxofaan
n00b
n00b


Joined: 11 Oct 2004
Posts: 11
Location: Belgium

PostPosted: Sat Jan 15, 2005 2:02 pm    Post subject: emerge kde-3.3.2 problem linking libstdc++.la Reply with quote

Hello,
some days ago I emerged kde-3.3.2 piece by piece because I didn't had time emerging it in one long run (I need to shut my noisy computer down when I want to sleep). After the succesful emerging of some kde-packages during pas days I did an "emerge sync" which brought a new version of gcc (3.3.5). I emerged that gcc before continuing the emerge of the remaining kde-packages, and I assume that was a stupid thing to do :?
when I emerge those remaining kde packages (kdeedu-3.3.2 and kde-3.3.2), I get after the configure:
Code:
....
Good - your configure finished. Start make now

make  all-recursive
make[1]: Entering directory `/var/tmp/portage/kdeedu-3.3.2/work/kdeedu-3.3.2'
Making all in libkdeedu
make[2]: Entering directory `/var/tmp/portage/kdeedu-3.3.2/work/kdeedu-3.3.2/libkdeedu'
Making all in kdeeducore
make[3]: Entering directory `/var/tmp/portage/kdeedu-3.3.2/work/kdeedu-3.3.2/libkdeedu/kdeeducore'
Making all in .
make[4]: Entering directory `/var/tmp/portage/kdeedu-3.3.2/work/kdeedu-3.3.2/libkdeedu/kdeeducore'
/bin/sh ../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..-I/usr/kde/3.3/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=pentium3 -O3 -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o keduvocdata.lo keduvocdata.cpp
/bin/sh ../../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-g++  -Wnon-virtual-dtor -Wno-long-long-Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=pentium3 -O3 -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o libkdeeducore.la -rpath /usr/kde/3.3/lib -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.3/lib  -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -version-info 3:0:2 keduvocdata.lo -lkdecore
grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la' is not a valid libtool archive
make[4]: *** [libkdeeducore.la] Error 1
make[4]: Leaving directory `/var/tmp/portage/kdeedu-3.3.2/work/kdeedu-3.3.2/libkdeedu/kdeeducore'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdeedu-3.3.2/work/kdeedu-3.3.2/libkdeedu/kdeeducore'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdeedu-3.3.2/work/kdeedu-3.3.2/libkdeedu'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdeedu-3.3.2/work/kdeedu-3.3.2'
make: *** [all] Error 2

!!! ERROR: kde-base/kdeedu-3.3.2 failed.
!!! Function kde_src_compile, Line 142, Exitcode 2
!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, NOT this status message.

and indeed the 3.3.4/libstdc++-thing is gone:
/usr/lib/gcc-lib/i686-pc-linux-gnu only contains a directory 3.3.5:
Code:
# tree -L 2 /usr/lib/gcc-lib/i686-pc-linux-gnu
/usr/lib/gcc-lib/i686-pc-linux-gnu
`-- 3.3.5
    |-- cc1
    |-- cc1plus
    |-- collect2
    |-- crtbegin.o
    |-- crtbeginS.o
    |-- crtbeginT.o
    |-- crtend.o
    |-- crtendS.o
    |-- hardened.specs
    |-- hardenednopie.specs
    |-- hardenednossp.specs
    |-- include
    |-- install-tools
    |-- libgcc.a
    |-- libgcc_eh.a
    |-- libgcc_s.so -> libgcc_s.so.1
    |-- libgcc_s.so.1
    |-- libstdc++.a
    |-- libstdc++.la
    |-- libstdc++.so -> libstdc++.so.5.0.7
    |-- libstdc++.so.5 -> libstdc++.so.5.0.7
    |-- libstdc++.so.5.0.7
    |-- libstdc++_pic.a
    |-- libsupc++.a
    |-- libsupc++.la
    |-- specs
    `-- vanilla.specs

What do I have to do?
Back to top
View user's profile Send private message
gentoo_dude
l33t
l33t


Joined: 08 May 2004
Posts: 645
Location: Washington, DC

PostPosted: Sat Jan 15, 2005 2:19 pm    Post subject: Reply with quote

There is a library fix command which I don't remember it. I had the same problem compiling k3b. The way I went around was to create a 3.3.4 directory and create a symlink file called libstdc++.la to 3.3.5/libstdc++.la
Code:

cd /usr/lib/gcc-lib/i686-pc-linux-gnu
mkdir 3.3.4
ln -fs /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.la /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la

The last two lines are one command
You can compile it and you won't get any errors just few warnings about the libstdc++.la being moved.
Back to top
View user's profile Send private message
gentoo_dude
l33t
l33t


Joined: 08 May 2004
Posts: 645
Location: Washington, DC

PostPosted: Sat Jan 15, 2005 2:23 pm    Post subject: Reply with quote

Searched the forums. The library fix command is:
Code:
fix_libtool_files.sh 3.3.4

This should fix it. If you run this command then you don't need to create the symlink I mentioned above.
Back to top
View user's profile Send private message
soxofaan
n00b
n00b


Joined: 11 Oct 2004
Posts: 11
Location: Belgium

PostPosted: Sat Jan 15, 2005 2:37 pm    Post subject: Reply with quote

it seems to work
thank you
Back to top
View user's profile Send private message
Palhoto
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2003
Posts: 111
Location: Iberian Peninsula

PostPosted: Sat Jan 15, 2005 6:44 pm    Post subject: Reply with quote

This also worked for media-libs/sdl-sound which had the same problem. It should also fix the same problem with gtk+, which I still need to update, but have't done it yet.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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