Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emacs and libungif problem [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
qiuxing
n00b
n00b


Joined: 13 Nov 2004
Posts: 13
Location: Rochester, NY

PostPosted: Thu Sep 15, 2005 5:13 am    Post subject: emacs and libungif problem [Solved] Reply with quote

After updating my system yesterday, I met this problem, when I tried to run emacs, it gave this error message:

emacs: error while loading shared libraries: libungif.so.4: cannot open shared object file: No such file or directory

So I tried to emerge libungif, portage wasn't quite happy either:

emerge -pv libungif

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[blocks B ] media-libs/giflib (is blocking media-libs/libungif-4.1.3)
[ebuild N ] media-libs/libungif-4.1.3 +X +gif 429 kB

So I guess for some reason during the emerge -uavD world procedure, giflib replaced the old libungif library, thus rendered the old stuborn emacs useless.

Is there a way to get around this problem? I tried to re-merge emacs but that didn't help.

Here is my USE flag as applied to emerging emacs:

emerge -pv emacs

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] app-editors/emacs-21.4-r1 +X -Xaw3d -gnome -leim -lesstif -motif +nls -nosendmail 0 kB

Thank you!


Last edited by qiuxing on Fri Sep 16, 2005 6:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
dbasetrinity
Apprentice
Apprentice


Joined: 25 Jun 2005
Posts: 167

PostPosted: Thu Sep 15, 2005 10:05 am    Post subject: Reply with quote

ok what you can do is

you want to umerge the blocked package
Code:
emerge -C media-libs/giflib
then

Code:
emerge libungif
and that should solve your issue
Back to top
View user's profile Send private message
qiuxing
n00b
n00b


Joined: 13 Nov 2004
Posts: 13
Location: Rochester, NY

PostPosted: Thu Sep 15, 2005 3:19 pm    Post subject: Reply with quote

Thank you very much. Just a quick question: will this break any other software that depends on giflib? Is there a way to compile emacs against giflib? Thank you!
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Thu Sep 15, 2005 4:07 pm    Post subject: Reply with quote

giflib depends on libungif, so if you unmerge giflib, then emerge libungif, you should be able to emerge giflib again.
You might want to consider using revdep-rebuild.
Back to top
View user's profile Send private message
coriolan
Apprentice
Apprentice


Joined: 21 Apr 2005
Posts: 273

PostPosted: Thu Sep 15, 2005 4:12 pm    Post subject: Reply with quote

More stuff depends on giflib than on gifunlib run
Code:
equery d giflib

and see for your self. How about checking what use flags you had for emacs and remove gifunlib if that's one of them. Then remerge emacs.
Back to top
View user's profile Send private message
qiuxing
n00b
n00b


Joined: 13 Nov 2004
Posts: 13
Location: Rochester, NY

PostPosted: Fri Sep 16, 2005 6:41 pm    Post subject: Reply with quote

Yeah, I can use emacs now after:

emerge -C giflib
emerge libungif

I guess I have to wait for a while to see if other packages (for instance, mplayer) depend on giflib are broken or not. For now, I think I can mark this problem as "solved".

Thank you all very much!
Back to top
View user's profile Send private message
discostu
Guru
Guru


Joined: 01 Nov 2002
Posts: 333

PostPosted: Tue Nov 08, 2005 4:32 am    Post subject: solved-but-not-really Reply with quote

I tried lots of things, but I couldn't find anyway to keep giflib and run emacs. Somewhere, some people said do a revdep-rebuild. But that didn't work, because revdep-rebuild wanted to emerge emacs-21.3.something that didn't exist in the portage tree.

I ended up just "emerge -C emacs" followed by "emerge emacs-cvs" and it works. Hopefully, the cvs snapshot doesn't cause me any trouble. :)
_________________
"Disco Stu doesn't advertise."
Back to top
View user's profile Send private message
coriolan
Apprentice
Apprentice


Joined: 21 Apr 2005
Posts: 273

PostPosted: Tue Nov 08, 2005 5:18 am    Post subject: Re: solved-but-not-really Reply with quote

discostu wrote:
Hopefully, the cvs snapshot doesn't cause me any trouble. :)


Well, I have been running the cvs version of emacs in different platforms for over 6 months. Nothing strange has come up yet.
Back to top
View user's profile Send private message
discostu
Guru
Guru


Joined: 01 Nov 2002
Posts: 333

PostPosted: Tue Nov 08, 2005 5:32 am    Post subject: Re: solved-but-not-really Reply with quote

coriolan wrote:
discostu wrote:
Hopefully, the cvs snapshot doesn't cause me any trouble. :)


Well, I have been running the cvs version of emacs in different platforms for over 6 months. Nothing strange has come up yet.


excellent.
_________________
"Disco Stu doesn't advertise."
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4923
Location: Gothenburg, Sweden

PostPosted: Sun May 14, 2006 10:13 am    Post subject: Reply with quote

Solution deprecated, please see [SOLVED] Problem with libungif.so.4 for similar problems.

Moved from Portage & Programming to Duplicate Threads.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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