| View previous topic :: View next topic |
| Author |
Message |
bilbod n00b

Joined: 29 Oct 2004 Posts: 38
|
Posted: Tue Aug 14, 2007 2:22 pm Post subject: Problem with libexpat.so.0 (solved) |
|
|
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 |
|
 |
iandoug Apprentice

Joined: 11 Feb 2005 Posts: 259 Location: Cape Town, South Africa
|
Posted: Wed Aug 15, 2007 8:16 am Post subject: Re: Problem with libexpat.so.0 (solved) |
|
|
| 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 M3A78 64, X2 6000+, PX9800 GT, 4GB Ram | Asus M4A77TD PRO, X2 245, HD4350, 4GB RAM |
|
| Back to top |
|
 |
bilbod n00b

Joined: 29 Oct 2004 Posts: 38
|
Posted: Wed Aug 15, 2007 2:00 pm Post subject: Re: Problem with libexpat.so.0 (solved) |
|
|
| iandoug wrote: |
| Code: |
eix mozilla-firefox
[D] www-client/mozilla-firefox
|
|
What does the [D] mean?
Bill |
|
| Back to top |
|
 |
Arfrever Bodhisattva


Joined: 29 Apr 2006 Posts: 2462 Location: Polska / Lenkija
|
Posted: Wed Aug 15, 2007 3:16 pm Post subject: |
|
|
| bilbod wrote: | | iandoug wrote: |
| Code: |
eix mozilla-firefox
[D] www-client/mozilla-firefox
|
|
What does the [D] mean? |
Downgrade.
Perduodu linkėjimus
Arfrever |
|
| Back to top |
|
 |
iandoug Apprentice

Joined: 11 Feb 2005 Posts: 259 Location: Cape Town, South Africa
|
Posted: Wed Aug 15, 2007 3:32 pm Post subject: |
|
|
| 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 M3A78 64, X2 6000+, PX9800 GT, 4GB Ram | Asus M4A77TD PRO, X2 245, HD4350, 4GB RAM |
|
| Back to top |
|
 |
bilbod n00b

Joined: 29 Oct 2004 Posts: 38
|
Posted: Wed Aug 15, 2007 11:20 pm Post subject: |
|
|
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 |
|
 |
trakon88 Tux's lil' helper


Joined: 04 Aug 2002 Posts: 84 Location: Hamburg, Germany
|
Posted: Thu Aug 16, 2007 6:31 am Post subject: |
|
|
imediate help:
ln -s /usr/lib/libexpat.so.1 /usr/lib/libexpat.so.0
greetings from hamburg ... |
|
| Back to top |
|
 |
santaclaws Apprentice


Joined: 05 Jan 2007 Posts: 161 Location: Deeper Underground
|
Posted: Thu Aug 16, 2007 6:49 am Post subject: |
|
|
| trakon88 wrote: | imediate help:
ln -s /usr/lib/libexpat.so.1 /usr/lib/libexpat.so.0
greetings from hamburg ... |
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 |
|
 |
trakon88 Tux's lil' helper


Joined: 04 Aug 2002 Posts: 84 Location: Hamburg, Germany
|
Posted: Thu Aug 16, 2007 6:53 am Post subject: |
|
|
Hi
can you please explain this? |
|
| Back to top |
|
 |
iandoug Apprentice

Joined: 11 Feb 2005 Posts: 259 Location: Cape Town, South Africa
|
Posted: Thu Aug 16, 2007 6:55 am Post subject: |
|
|
| 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 M3A78 64, X2 6000+, PX9800 GT, 4GB Ram | Asus M4A77TD PRO, X2 245, HD4350, 4GB RAM |
|
| Back to top |
|
 |
santaclaws Apprentice


Joined: 05 Jan 2007 Posts: 161 Location: Deeper Underground
|
Posted: Thu Aug 16, 2007 7:19 am Post subject: |
|
|
| 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
| 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 |
|
 |
bilbod n00b

Joined: 29 Oct 2004 Posts: 38
|
Posted: Thu Aug 16, 2007 2:22 pm Post subject: |
|
|
| 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 |
|
 |
bashar n00b

Joined: 17 Oct 2007 Posts: 1
|
Posted: Wed Oct 17, 2007 9:44 am Post subject: |
|
|
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 |
|
 |
|