Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#26691 closed defect (fixed)

cmus missing dependencies

Reported by: nerdling (Jeremy Lavergne) Owned by: milosh@…
Priority: Normal Milestone:
Component: ports Version: 1.9.99
Keywords: Cc:
Port: cmus

Description

cmus looks for ffmpeg, among others, at startup and fails to find them. they're not listed as dependencies:

cmus: Error: dlopen(/opt/local/lib/cmus/ip/ffmpeg.so, 2): Library not loaded: /opt/local/lib/libavformat.dylib
  Referenced from: /opt/local/lib/cmus/ip/ffmpeg.so
  Reason: image not found
cmus: Error: dlopen(/opt/local/lib/cmus/ip/modplug.so, 2): Library not loaded: /opt/local/lib/libmodplug.0.dylib
  Referenced from: /opt/local/lib/cmus/ip/modplug.so
  Reason: image not found
cmus: Error: dlopen(/opt/local/lib/cmus/ip/mpc.so, 2): Library not loaded: /opt/local/lib/libmpcdec.5.dylib
  Referenced from: /opt/local/lib/cmus/ip/mpc.so
  Reason: image not found

Change History (6)

comment:1 Changed 14 years ago by nerdling (Jeremy Lavergne)

Two of them are straightforward: libmodplug and libmpcdec. not sure where libavformat comes from but it might very well be ffmpeg like i assumed.

comment:2 Changed 14 years ago by milosh@…

Status: newassigned

Which version of cmus do you have installed and with which variants? Do you happen to have uninstalled ffmpeg, libmodplug, libmpcdec since you installed cmus? I don't have modplug nor ffmpeg and hence, no ffmpeg.so or modplug.so were built.

comment:3 Changed 14 years ago by nerdling (Jeremy Lavergne)

2.3.3, default variants.

None of those packages were installed by or before cmus, so there was nothing to uninstall :-)

comment:4 Changed 14 years ago by milosh@…

I removed autodetection in the configure phase (r72055). However, the .so should not have been built if you don't have the dependency. Anyway, is it OK now?

comment:5 Changed 14 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: assignedclosed

Okay, here's the short of what happened: I installed one of the archives I had previously built of cmus. At the time, said ports must have been installed so it built them.

Ports that magically adapt based on what you have installed are a bad thing. I had this issue working on KDE: you should never build differently depending on the environment, force the configuration instead. That is, configure should say ffmpeg/libmodplug/libmpcdec are enabled or disabled like you added in the last revision.

Those changes should address the issue! Thanks.

comment:6 Changed 14 years ago by milosh@…

So you indeed uninstalled those ports since the build of cmus. But yes, it was my fault for not seeing those new configure options for detecting libraries I don't have. Thanks for your report.

Note: See TracTickets for help on using tickets.