Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59035 - vmware-workstation doesn't find its libpng.so
Summary: vmware-workstation doesn't find its libpng.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
: 63446 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-31 18:26 UTC by awk
Modified: 2005-04-09 05:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch against /opt/bin/vmware which checks libgdk_pixbuf dependencies (vmware-png.diff,714 bytes, patch)
2004-07-31 18:27 UTC, awk
Details | Diff
vmware-bin.patch (vmware-bin.patch,807 bytes, patch)
2005-02-18 20:59 UTC, Georgi Georgiev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description awk 2004-07-31 18:26:40 UTC
vmware includes libpng.so.2, as far as I know it is used only to display the screenshot of a suspended machine (which is useful to me at least since I use a lot of vm's). However, it doesn't find the lib and displays errors:

** WARNING **: Unable to load module: libpixbufloader-png.so: libpng.so.2: cannot open shared object file: No such file or directory

The problem is that vmware's code to discover library dependencies doesn't check the dependencies of the new libraries it adds to the LD_LIBRARY_PATH.

As a workaround I linked /opt/vmware/lib/lib/libpng.so.2/libpng.so.2 to /usr/lib/libpng.so.2. I also come up with a somewhat nasty patch to /opt/bin/vmware that adds the right dir to LD_LIBRARY_PATH.

Reproducible: Always
Steps to Reproduce:
Comment 1 awk 2004-07-31 18:27:52 UTC
Created attachment 36543 [details, diff]
patch against /opt/bin/vmware which checks libgdk_pixbuf dependencies

The patch.
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2004-09-28 20:08:52 UTC
Sorry that this has been so long, but is this still the case with the latest vmware ebuild?
Comment 3 awk 2004-09-29 12:44:04 UTC
Yes I had to make the link in /usr/lib as above.

vmware-workstation-4.5.2.8848-r1
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2004-11-03 17:48:04 UTC
*** Bug 63446 has been marked as a duplicate of this bug. ***
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2004-11-03 17:48:20 UTC
I know the error is slightly different between the 2 bugs, but I think the problem is the same.  I am working on a new ebuild right now and hopefully iy'll fix the problem.
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2004-11-03 18:19:59 UTC
Try version 4.5.2.8848-r2 and see if this fixes your problem.
Comment 7 Norberto Bensa 2004-11-04 08:15:16 UTC
It doesn't.

$ qpkg -I -v vmware
app-emulation/vmware-workstation-4.5.2.8848-r2 *
$ vmware

** WARNING **: Unable to load module: libpixbufloader-png.so: libpng.so.2: cannot open shared object file: No such file or directory

** WARNING **: Unable to load module: libpixbufloader-png.so: libpng.so.2: cannot open shared object file: No such file or directory

** WARNING **: Unable to load module: libpixbufloader-png.so: libpng.so.2: cannot open shared object file: No such file or directory

** WARNING **: Unable to load module: libpixbufloader-png.so: libpng.so.2: cannot open shared object file: No such file or directory

** WARNING **: Unable to load module: libpixbufloader-png.so: libpng.so.2: cannot open shared object file: No such file or directory

Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2004-12-26 07:25:27 UTC
REOPEN
Comment 9 Georgi Georgiev 2005-02-18 20:59:59 UTC
Created attachment 51561 [details, diff]
vmware-bin.patch

Here is my patch that I used successfully a while ago. It should take care of
other possible awkward situations.
Comment 10 Chris Gianelloni (RETIRED) gentoo-dev 2005-04-08 11:54:50 UTC
I know that this one seems to have been ignored, but I was wondering if this is a problem with VMware 5 or not.  If this is only occurring in VMware 4, then I'll go ahead and add this patch to the latest ebuild for VMware 4, along with sending it upstream.
Comment 11 Shawn Leas 2005-04-08 21:04:29 UTC
Seems fine now.
Comment 12 Shawn Leas 2005-04-08 21:04:44 UTC
With 5.0 that is...
Comment 13 Chris Gianelloni (RETIRED) gentoo-dev 2005-04-09 05:26:59 UTC
Sweet... thanks...

I've fixed this in CVS for VMware 4.5 and revision bumped the package.  I am unsure if this is required for VMware 3.x, but if anyone still uses it and wants to test it for me, then I'll gladly apply any necessary patches.