Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
broken python after emerge -eav system[solved]
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
newtonian
Guru
Guru


Joined: 19 Jan 2005
Posts: 456
Location: Hokkaido Japan

PostPosted: Wed May 21, 2008 1:07 pm    Post subject: broken python after emerge -eav system[solved] Reply with quote

Hi-

I ran emerge -eav system and ended up with a broken python.

I've tried to run the following with no avail:
Code:

  python-updater
  portageq portdir
  emerge portage
  revdep-rebuild


All attempts end with python spitting back the following error message:
Code:
/usr/bin/python: symbol lookup error: /usr/lib/libpython2.4.so.1.0: undefined symbol: sem_init


Any ideas on how to go about getting python working again?

Code:
raccoon me # python-updater
/usr/bin/python: symbol lookup error: /usr/lib/libpython2.4.so.1.0: undefined symbol: sem_init
/usr/bin/python: symbol lookup error: /usr/lib/libpython2.4.so.1.0: undefined symbol: sem_init
* Unable to proceed. Can not find PORTDIR. Make sure the command:
*
*   portageq portdir
*
* returns a value. If it doesn't, make sure you have updated to
* latest portage version.
*
* Report bugs to http://bugs.gentoo.org/
raccoon me # portageq portdir
/usr/bin/python: symbol lookup error: /usr/lib/libpython2.4.so.1.0: undefined symbol: sem_init
raccoon me # emerge --sync
/usr/bin/python: symbol lookup error: /usr/lib/libpython2.4.so.1.0: undefined symbol: sem_init
raccoon me # python -v
python: symbol lookup error: /usr/lib/libpython2.4.so.1.0: undefined symbol: sem_init
raccoon me # ls -l /usr/bin/python*
lrwxrwxrwx 1 root root    9 May 20 08:02 /usr/bin/python -> python2.4
lrwxrwxrwx 1 root root   17 May 20 08:02 /usr/bin/python-config -> python-config-2.4
-rwxr-xr-x 1 root root 1624 May 20 08:00 /usr/bin/python-config-2.4
lrwxrwxrwx 1 root root    9 May 20 08:02 /usr/bin/python2 -> python2.4
-rwxr-xr-x 1 root root 5296 May 20 08:01 /usr/bin/python2.4


NOTE: I recently switched my CPU from a Celeron 1.0Ghz to a Via C7 1.5Ghz and updated my CFLAGS

Cheers,


Last edited by newtonian on Sun May 25, 2008 4:52 am; edited 1 time in total
Back to top
View user's profile Send private message
weisso5
Apprentice
Apprentice


Joined: 07 Dec 2007
Posts: 268
Location: NYC

PostPosted: Wed May 21, 2008 9:06 pm    Post subject: Reply with quote

Just to confirm a few things:

1. Can you
Code:
emerge python
?

a. If not, check this thread:
http://forums.gentoo.org/viewtopic-t-345046-highlight-python.html

2. If that re-builds, read this thread regarding toolchain updating:

http://forums.gentoo.org/viewtopic-t-663632-highlight-toolchain.html

3. If you still are having problem, post back with some updates, error logs, etc.

-weisso
Back to top
View user's profile Send private message
newtonian
Guru
Guru


Joined: 19 Jan 2005
Posts: 456
Location: Hokkaido Japan

PostPosted: Sun May 25, 2008 4:52 am    Post subject: ended up re-building python from scratch Reply with quote

Thanks for the links.

I ended up re-building python from scratch. That got rid of the undefined symbol errors.

Here's the link to the post that shows how to re-build python:

http://forums.gentoo.org/viewtopic-t-5746-postdays-0-postorder-asc-highlight-python+unmerge-start-0.html

Cheers,
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