Opened 5 years ago

Closed 2 years ago

#10015 closed bug (no change required)

[Haiku PM] VLC doesn't work (missing library)

Reported by: Giova84 Owned by: nobody
Priority: normal Milestone: R1
Component: Applications Version: R1/Package Management
Keywords: Haiku PM VLC doesn't work missing library Cc:
Blocked By: Blocking:
Has a Patch: no Platform: x86

Description

I have downloaded VLC from Haiku Optional Packages website

When i attempt to start VLC on Haiku PM, i get the following error: "Missing library libz.so" I can see that inside "/boot/system/lib" there are present "libz.so.1.2.8" and "libz.so.1", and if i link libz.so.1.2.8 as libz.so (but inside a lib folder under the VLC installation directory, since "/system/lib" is read-only) i am able to properly run VLC.

In the regular branch of Haiku, libz.so (linked from libz.so.1.2.7) is present under /system/lib

Change History (6)

comment:1 Changed 5 years ago by bonefish

There should never have been a "libz.so" without soname in the first place. By outsourcing libz this has been remedied. We could probably add a respective symlink to the gcc 2 zlib package for the time being.

As a work-around you can create the symlink in "/boot/home/config/non-packaged/lib".

comment:2 Changed 5 years ago by diver

Interestingly, vlc starts ok here (hrev46303) even though there's still no libz.so and vlc-0.8.6d/plugins/libxml_plugin.so (the only plugin) is linked to it.

comment:3 Changed 5 years ago by ronny

VLC version 0.8.6i isn´t working. Older versions work on Haiku.

comment:4 Changed 4 years ago by pulkomandy

Should we do something about this? I think creating a "lib" folder next to the executable and adding a symlink there for the lib works well enough. Moreover, the applications can be rebuilt anyway.

comment:5 Changed 2 years ago by Giova84

This ticket can be closed: in the meantime, VLC (although it works poorly since an ancient version "0.8.6i") no longer presents this error on Haiku.

comment:6 Changed 2 years ago by pulkomandy

Resolution: no change required
Status: newclosed

Yes, rebuilding the app was enough and there weren't this many other things linking to libz, so we can save ourselves the workaround/hack to get them working.

Note: See TracTickets for help on using tickets.