Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with mysql in Gentoo 1.4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pishita
n00b
n00b


Joined: 24 Sep 2002
Posts: 24

PostPosted: Tue Sep 24, 2002 6:59 am    Post subject: Problems with mysql in Gentoo 1.4 Reply with quote

I've upgraded gentoo from 1.2 to 1.4. Now I have some problems recompiling mysql. This is the output of "emerge mysql".

.......
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make[2]: *** [mysqladmin] Error 1
make[2]: Leaving directory `/var/tmp/portage/mysql-3.23.52/work/mysql-3.23.52/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mysql-3.23.52/work/mysql-3.23.52'
make: *** [all-recursive-am] Error 2
.......

It seems to fail because cannot find "lstdc++". ¿Whats wrong?. ¿In wich e-build is lstdc++?. ¿How can I search for it?

Thanks.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Sep 24, 2002 7:14 am    Post subject: Reply with quote

What method did you use to do your upgrade? It sounds like you have some mixed-up C++ libraries in your compilation environment, and the problem is likely not localized to MySQL. Moving from Installing to OTG, by the way, because it's past the scope of an initial installation.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
pishita
n00b
n00b


Joined: 24 Sep 2002
Posts: 24

PostPosted: Tue Sep 24, 2002 7:28 am    Post subject: Reply with quote

I've used the 4 scripts of the Guide. It seemed all was ok. ¿?.

At the end of te 4th script appeared a message saying mysql couldn't be compiled.

Can I fix it?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Sep 24, 2002 7:37 am    Post subject: Reply with quote

I upgraded differently (for these purposes it should probably be considered a clean install), so let's see how our compilation environments differ. Can you repeat the following commands and compare the output?
Code:
$ pushd /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/
$ ls -al libstdc++*
-rw-r--r--    1 root     root      7698496 Sep 10 18:42 libstdc++.a
-rwxr-xr-x    1 root     root          963 Sep 10 18:42 libstdc++.la
lrwxrwxrwx    1 root     root           18 Sep 10 18:42 libstdc++.so -> libstdc++.so.5.0.0
lrwxrwxrwx    1 root     root           18 Sep 10 18:42 libstdc++.so.5 -> libstdc++.so.5.0.0
-rwxr-xr-x    1 root     root      1059291 Sep 10 18:42 libstdc++.so.5.0.0

_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
pishita
n00b
n00b


Joined: 24 Sep 2002
Posts: 24

PostPosted: Tue Sep 24, 2002 7:42 am    Post subject: Reply with quote

It sounds so bad -->

gentoo # pushd /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2 ~/gentoo
gentoo # ls -al libstdc++*
ls: libstdc++*: No such file or directory
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Sep 24, 2002 7:49 am    Post subject: Reply with quote

Can you try "emerge gcc" and see if that fixes things? See this thread for some background and more details.

EDIT: completely replaced my hurried original post that got IRQed by an urgent work issue
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
pishita
n00b
n00b


Joined: 24 Sep 2002
Posts: 24

PostPosted: Tue Sep 24, 2002 1:54 pm    Post subject: Reply with quote

emerge gcc -->..... 2 hours later:

Quote:

../i686-pc-linux-gnu/lib -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../.. -lgcc_s -lc -lgcc_s /var/tmp/portage/gcc-3.2-r1/work/build/g
cc/crtendS.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../crtn.o -Wl,-soname -Wl,libgcj.so.3 -o .libs/libgcj.so.3.0.0
collect2: ld terminated with signal 15 [Terminated], core dumped
make[3]: *** [libgcj.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-3.2-r1/work/build/i686-pc-linux-gnu/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.2-r1/work/build/i686-pc-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.2-r1/work/build'
make: *** [bootstrap-lean] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 81, Exitcode 2
!!! (no error message)


any idea?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Sep 24, 2002 6:38 pm    Post subject: Reply with quote

pishita wrote:
emerge gcc -->..... 2 hours later:

Quote:

collect2: ld terminated with signal 15 [Terminated], core dumped

any idea?

Ick. I hate to ask you to spend another 2 hours in what may be a pointless exercise, but I'm trying to see if it's more likely that hardware or software is the problem. Can you try it again and see if it fails in the exact same place or not? If it does, maybe there's a software solution. If not, then maybe you've uncovered a subtle hardware problem.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
pishita
n00b
n00b


Joined: 24 Sep 2002
Posts: 24

PostPosted: Wed Sep 25, 2002 6:39 am    Post subject: Reply with quote

I've tried again "emerge gcc". The result is the same:

Quote:

../i686-pc-linux-gnu/lib -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../.. -lgcc_s -lc -lgcc_s /var/tmp/portage/gcc-3.2-r1/work/build/g
cc/crtendS.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../crtn.o -Wl,-soname -Wl,libgcj.so.3 -o .libs/libgcj.so.3.0.0
collect2: ld terminated with signal 15 [Terminated], core dumped
make[3]: *** [libgcj.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-3.2-r1/work/build/i686-pc-linux-gnu/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.2-r1/work/build/i686-pc-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.2-r1/work/build'
make: *** [bootstrap-lean] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 81, Exitcode 2
!!! (no error message)
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Sep 25, 2002 7:33 am    Post subject: Reply with quote

Exact same place, eh? Well, that makes hardware pretty unlikely, but I can't tell if that's really a good or a bad thing. Do you have a binary backup package of gcc and binutils that you can reinstall to get your toolchain into a known good state? You may have to do a substantial part of the upgrade process over. If you have a free disk partition, you might want to consider this upgrade procedure as an alternative to the in-place method you were using, if that seems like it might be more fun than what you're doing now. Sorry you're experiencing so much downtime. :(

Maybe a 1.x -> 1.4 upgrade fairy more knowledgeable than I about the process will come along and sprinkle magic dust on this thread, solving your problem with one easy step.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
pishita
n00b
n00b


Joined: 24 Sep 2002
Posts: 24

PostPosted: Wed Sep 25, 2002 7:46 am    Post subject: Reply with quote

if I used script1 I have a backup no?. how can I recover from this backup?.

When I had restored the bins from this backup can I restart the upgrade with the scripts again?

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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