Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with libexpat.so.0 (solved)
View unanswered posts
View posts from last 24 hours

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


Joined: 28 Oct 2004
Posts: 38

PostPosted: Tue Aug 14, 2007 9:22 am    Post subject: Problem with libexpat.so.0 (solved) Reply with quote

Upgrading on Sunday (emerge -avuD world), failed with can't find libexpat.so.0 error (I forget which package it failed on).

Also many of my frequently used, installed programs stopped working (firefox, thunderbird, etc.). I ran

revdep-rebuild

It failed with the same error part way through.

I emerged expat. When it finished, it had a message on the screen saying a library filename had changed and to run

revdep-rebuild -X --library=libexpat.so.0

I ran that but it failed with the same error.

This was taking a long time so to be able to use my system, I made a link:

/usr/lib64/libexpat.so.0 -> /usr/lib64/libexpat.so.1.5.2

My installed programs worked again.

I decided to run (I was thing that maybe some of the programs used by revdep-rebuild required the missing library)

revdep-rebuild -X --library=libexpat.so.0

with the link in place and it worked. I removed the link and ran

revdep-rebuild -X --library=libexpat.so.0

everything was OK.

I ran revdep-rebuild and it found a few more problems and fixed them.

Bill
Back to top
View user's profile Send private message
iandoug
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2005
Posts: 93
Location: Cape Town, South Africa

PostPosted: Wed Aug 15, 2007 3:16 am    Post subject: Re: Problem with libexpat.so.0 (solved) Reply with quote

bilbod wrote:
Upgrading on Sunday (emerge -avuD world), failed with can't find libexpat.so.0 error (I forget which package it failed on).

Also many of my frequently used, installed programs stopped working (firefox, thunderbird, etc.). I ran

This was taking a long time so to be able to use my system, I made a link:

/usr/lib64/libexpat.so.0 -> /usr/lib64/libexpat.so.1.5.2

revdep-rebuild -X --library=libexpat.so.0

with the link in place and it worked. I removed the link and ran

revdep-rebuild -X --library=libexpat.so.0

everything was OK.

I ran revdep-rebuild and it found a few more problems and fixed them.

Bill


Thanks for this, I have been battling with the libexpat mess since the weekend.

Your process got me most of the way to a usable system. However still have a problem with firefox.

Just in case anyone else reads this, here is what I did (plus some issues)

Code:

ln /usr/lib64/libexpat.so.1.5.2 /usr/lib64/libexpat.so.0     
revdep-rebuild -X --library=libexpat.so.0   


I'm on AMD64 hence lib64.

at this point, I had this in /usr/lib64:
Code:

gentoo lib64 # ls -l libexpat*
-rw-r--r-- 1 root root 253644 Aug 14 02:25 libexpat.a
-rw-r--r-- 1 root root    795 Aug 14 02:25 libexpat.la
lrwxrwxrwx 1 root root     17 Aug 14 02:25 libexpat.so -> libexpat.so.1.5.2
-rwxr-xr-x 2 root root 143224 Aug 14 02:25 libexpat.so.0
lrwxrwxrwx 1 root root     17 Aug 14 02:25 libexpat.so.1 -> libexpat.so.1.5.2
-rwxr-xr-x 2 root root 143224 Aug 14 02:25 libexpat.so.1.5.2


so libexpat.so.0 now appears to be the same as libexpat.so.1.5.2 .... and is no longer a link.
So rather than removing it, I renamed it...

Code:

gentoo lib64 # mv libexpat.so.0 libexpat-not.so.0

gentoo lib64 # ls -l libexpat*
-rwxr-xr-x 2 root root 143224 Aug 14 02:25 libexpat-not.so.0
-rw-r--r-- 1 root root 253644 Aug 14 02:25 libexpat.a
-rw-r--r-- 1 root root    795 Aug 14 02:25 libexpat.la
lrwxrwxrwx 1 root root     17 Aug 14 02:25 libexpat.so -> libexpat.so.1.5.2
lrwxrwxrwx 1 root root     17 Aug 14 02:25 libexpat.so.1 -> libexpat.so.1.5.2
-rwxr-xr-x 2 root root 143224 Aug 14 02:25 libexpat.so.1.5.2


I then ran
Code:

revdep-rebuild -X --library=libexpat.so.0 
revdep-rebuild -X


which did a few more things and took bloody ages. Trying the last line again wanted to redo the same packages so I stopped it.

Anyway, KDE seems to be behaving itself, Kmail works, the sound works again, OOffice works, Adobe works, gimp works, in fact all the stuff I use regularly seems to be okay, EXCEPT for firefox.... (2.0.0.6).

Running from command line produces:

Code:

~ $ firefox
No running windows found
firefox-bin exited with non-zero status (1)


Code:

eix mozilla-firefox
[D] www-client/mozilla-firefox
     Available versions:  1.5.0.7 1.5.0.10 1.5.0.12 2.0.0.2 2.0.0.3 2.0.0.4 2.0.0.5
     Installed versions:  2.0.0.6(16:36:06 08/13/07)(-bindist -debug -filepicker gnome ipv6 java -linguas_af -linguas_ar -linguas_be -linguas_bg -linguas_ca -linguas_cs -linguas_da -linguas_de -linguas_el linguas_en_GB -linguas_es -linguas_es_AR -linguas_es_ES -linguas_eu -linguas_fi -linguas_fr -linguas_fy -linguas_fy_NL -linguas_ga -linguas_ga_IE -linguas_gu -linguas_gu_IN -linguas_he -linguas_hu -linguas_it -linguas_ja -linguas_ka -linguas_ko -linguas_ku -linguas_lt -linguas_mk -linguas_mn -linguas_nb -linguas_nb_NO -linguas_nl -linguas_nn -linguas_nn_NO -linguas_pa -linguas_pa_IN -linguas_pl -linguas_pt -linguas_pt_BR -linguas_pt_PT -linguas_ro -linguas_ru -linguas_sk -linguas_sl -linguas_sv -linguas_sv_SE -linguas_tr -linguas_zh -linguas_zh_CN -linguas_zh_TW mozdevelop -moznopango -restrict-javascript -xforms -xinerama -xprint)
     Homepage:            http://www.mozilla.org/projects/firefox/
     Description:         Firefox Web Browser

* www-client/mozilla-firefox-bin
     Available versions:  2.0.0.5
     Homepage:            http://www.mozilla.com/firefox
     Description:         Firefox Web Browser


Does anyone know how to fix this?

Thanks, Ian
_________________
Asus A8N-SLI, AMD64 3200+, MSI RX600, 2GB RAM
Back to top
View user's profile Send private message
bilbod
n00b
n00b


Joined: 28 Oct 2004
Posts: 38

PostPosted: Wed Aug 15, 2007 9:00 am    Post subject: Re: Problem with libexpat.so.0 (solved) Reply with quote

iandoug wrote:

Code:

eix mozilla-firefox
[D] www-client/mozilla-firefox


What does the [D] mean?

Bill
Back to top
View user's profile Send private message
Arfrever
Moderator
Moderator


Joined: 29 Apr 2006
Posts: 2165
Location: Polska / Lenkija

PostPosted: Wed Aug 15, 2007 10:16 am    Post subject: Reply with quote

bilbod wrote:
iandoug wrote:

Code:

eix mozilla-firefox
[D] www-client/mozilla-firefox


What does the [D] mean?


Downgrade.

Perduodu linkėjimus
Arfrever
_________________
No to Russian occupation of Georgian territories!
Back to top
View user's profile Send private message
iandoug
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2005
Posts: 93
Location: Cape Town, South Africa

PostPosted: Wed Aug 15, 2007 10:32 am    Post subject: Reply with quote

Arfrever wrote:

Downgrade.



Um, does that mean I should downgrade Firefox? Was considering doing that...

However after re-compiling it, eix now says:

Code:
gentoo ~ # eix firefox
[I] www-client/mozilla-firefox
     Available versions:  [M]1.5.0.7 [M]1.5.0.10 [M]1.5.0.12 2.0.0.2 2.0.0.4 2.0.0.6 {bindist debug filepicker gnome ipv6 java linguas_af linguas_ar linguas_be linguas_bg linguas_ca linguas_cs linguas_da linguas_de linguas_el linguas_en_GB linguas_es linguas_es_AR linguas_es_ES linguas_eu linguas_fi linguas_fr linguas_fy linguas_fy_NL linguas_ga linguas_ga_IE linguas_gu linguas_gu_IN linguas_he linguas_hu linguas_it linguas_ja linguas_ka linguas_ko linguas_ku linguas_lt linguas_mk linguas_mn linguas_nb linguas_nb_NO linguas_nl linguas_nn linguas_nn_NO linguas_pa linguas_pa_IN linguas_pl linguas_pt linguas_pt_BR linguas_pt_PT linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv linguas_sv_SE linguas_tr linguas_zh linguas_zh_CN linguas_zh_TW mozdevelop moznopango restrict-javascript xforms xinerama xprint}
     Installed versions:  2.0.0.6(12:49:30 08/15/07)(-bindist -debug -filepicker gnome ipv6 java -linguas_af -linguas_ar -linguas_be -linguas_bg -linguas_ca -linguas_cs -linguas_da -linguas_de -linguas_el linguas_en_GB -linguas_es -linguas_es_AR -linguas_es_ES -linguas_eu -linguas_fi -linguas_fr -linguas_fy -linguas_fy_NL -linguas_ga -linguas_ga_IE -linguas_gu -linguas_gu_IN -linguas_he -linguas_hu -linguas_it -linguas_ja -linguas_ka -linguas_ko -linguas_ku -linguas_lt -linguas_mk -linguas_mn -linguas_nb -linguas_nb_NO -linguas_nl -linguas_nn -linguas_nn_NO -linguas_pa -linguas_pa_IN -linguas_pl -linguas_pt -linguas_pt_BR -linguas_pt_PT -linguas_ro -linguas_ru -linguas_sk -linguas_sl -linguas_sv -linguas_sv_SE -linguas_tr -linguas_zh -linguas_zh_CN -linguas_zh_TW mozdevelop -moznopango -restrict-javascript -xforms -xinerama -xprint)
     Homepage:            http://www.mozilla.org/projects/firefox/
     Description:         Firefox Web Browser



But it still doesn't work. (neither does the .djvu viewer djview3, even after upgrade, which seems to lose the executable. But that's another topic I suppose).

If anyone can advise how to get firefox working, they'll be my second hero of the week, after bilbod :-)

thanks, Ian
_________________
Asus A8N-SLI, AMD64 3200+, MSI RX600, 2GB RAM
Back to top
View user's profile Send private message
bilbod
n00b
n00b


Joined: 28 Oct 2004
Posts: 38

PostPosted: Wed Aug 15, 2007 6:20 pm    Post subject: Reply with quote

firefox has a couple of command line options that might help.

firefox -safe-mode

and

firefox -jsconsole

forefox -h

for more.

Bill
Back to top
View user's profile Send private message
trakon88
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2002
Posts: 83
Location: Hamburg, Germany

PostPosted: Thu Aug 16, 2007 1:31 am    Post subject: Reply with quote

imediate help:

ln -s /usr/lib/libexpat.so.1 /usr/lib/libexpat.so.0

greetings from hamburg ...
Back to top
View user's profile Send private message
santaclaws
Apprentice
Apprentice


Joined: 05 Jan 2007
Posts: 161
Location: Deeper Underground

PostPosted: Thu Aug 16, 2007 1:49 am    Post subject: Reply with quote

trakon88 wrote:
imediate help:

ln -s /usr/lib/libexpat.so.1 /usr/lib/libexpat.so.0

greetings from hamburg ...



8O Don't do that. It will sooner or later brake things.
_________________
Software is like sex. It is better when ist is free.
Back to top
View user's profile Send private message
trakon88
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2002
Posts: 83
Location: Hamburg, Germany

PostPosted: Thu Aug 16, 2007 1:53 am    Post subject: Reply with quote

Hi

can you please explain this?
Back to top
View user's profile Send private message
iandoug
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2005
Posts: 93
Location: Cape Town, South Africa

PostPosted: Thu Aug 16, 2007 1:55 am    Post subject: Reply with quote

trakon88 wrote:
imediate help:

ln -s /usr/lib/libexpat.so.1 /usr/lib/libexpat.so.0

greetings from hamburg ...


Um, does not seem to work (tho I used lib64 not lib):

[code]
gentoo lib64 # ln -s /usr/lib64/libexpat.so.1 /usr/lib64/libexpat.so.0
gentoo lib64 # ls -l libexpa*
-rwxr-xr-x 2 root root 143224 Aug 14 02:25 libexpat-not.so.0
-rw-r--r-- 1 root root 253644 Aug 14 02:25 libexpat.a
-rw-r--r-- 1 root root 795 Aug 14 02:25 libexpat.la
lrwxrwxrwx 1 root root 17 Aug 14 02:25 libexpat.so -> libexpat.so.1.5.2
lrwxrwxrwx 1 root root 24 Aug 16 08:40 libexpat.so.0 -> /usr/lib64/libexpat.so.1
lrwxrwxrwx 1 root root 17 Aug 14 02:25 libexpat.so.1 -> libexpat.so.1.5.2
-rwxr-xr-x 2 root root 143224 Aug 14 02:25 libexpat.so.1.5.2
-rw-r--r-- 1 root root 285882 Aug 16 08:38 libexpat.zip
gentoo lib64 # firefox
No running windows found
firefox-bin exited with non-zero status (1)

Have deleted the link....

thanks, Ian
_________________
Asus A8N-SLI, AMD64 3200+, MSI RX600, 2GB RAM
Back to top
View user's profile Send private message
santaclaws
Apprentice
Apprentice


Joined: 05 Jan 2007
Posts: 161
Location: Deeper Underground

PostPosted: Thu Aug 16, 2007 2:19 am    Post subject: Reply with quote

trakon88 wrote:
Hi

can you please explain this?


You might want to read this: http://forums.gentoo.org/viewtopic-p-4184711.html?sid=9cf9d1045d49499d6aa10da9c86cff36#4184711

:wink:

Code:

In the case you cite, libexpat.so.0 is used as an alternate name for libexpat.so.0.5.0, which is acceptable since they are created by the same package and programs linking to either one expect the same ABI.

Carlo was responding to your comment where you created a symlink from libexpat.so.0 to libexpat.so.1.5.2.

While it may work in this case, arbitrarily symlinking one name to another is not correct, since there is no guarantee that the two have compatible ABIs.

At best, incompatible programs will fail to start with an undefined symbol error. You might get unlucky and get the program to start, but crash or suffer memory corruption due to the mismatched ABI.

_________________
Software is like sex. It is better when ist is free.
Back to top
View user's profile Send private message
bilbod
n00b
n00b


Joined: 28 Oct 2004
Posts: 38

PostPosted: Thu Aug 16, 2007 9:22 am    Post subject: Reply with quote

trakon88 wrote:
imediate help:

ln -s /usr/lib/libexpat.so.1 /usr/lib/libexpat.so.0

greetings from hamburg ...


I think the libexpat problem was fixed. The current firefox and djview3 problem seems unrelated.

Unfortunately firefox is giving no useful diagnostic info (exit status=1)

Another suggestion is to recompile firefox with the debug flag to see if it gives more useful info when it fails.

Bill
Back to top
View user's profile Send private message
bashar
n00b
n00b


Joined: 17 Oct 2007
Posts: 1

PostPosted: Wed Oct 17, 2007 4:44 am    Post subject: Reply with quote

thanks a lot, bilbod.. this:
Code:
ln -s /usr/lib/libexpat.so /usr/lib/libexpat.so.0
..worked well for me.
thanks, again.
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 - 5 Hours
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