[MacPorts] #44699: ffmpeg @2.3.1 libgmp version
#44699: ffmpeg @2.3.1 libgmp version -----------------------+-------------------------------- Reporter: lkelley@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Keywords: library | Port: ffmpeg -----------------------+-------------------------------- OSX 10.9.4, xcode 4.4 ffmpeg seems to install properly, but when I try to run it I get the following error: {{{ $ ffmpeg dyld: Library not loaded: /opt/local/lib/libgmp.10.dylib Referenced from: /opt/local/bin/ffmpeg Reason: Incompatible library version: ffmpeg requires version 13.0.0 or later, but libgmp.10.dylib provides version 11.0.0 Trace/BPT trap: 5 }}} It looks like gmp is an installed port: {{{ $ port contents gmp Port gmp contains: /opt/local/include/gmp.h /opt/local/include/gmpxx.h /opt/local/lib/libgmp.10.dylib /opt/local/lib/libgmp.a /opt/local/lib/libgmp.dylib /opt/local/lib/libgmpxx.4.dylib /opt/local/lib/libgmpxx.a /opt/local/lib/libgmpxx.dylib /opt/local/share/info/gmp.info /opt/local/share/info/gmp.info-1 /opt/local/share/info/gmp.info-2 }}} -- Ticket URL: <https://trac.macports.org/ticket/44699> MacPorts <http://www.macports.org/> Ports system for OS X
#44699: ffmpeg @2.3.1 libgmp version ------------------------+---------------------- Reporter: lkelley@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ffmpeg | ------------------------+---------------------- Changes (by mf2k@…): * cc: devans@… (removed) * keywords: library => * owner: macports-tickets@… => devans@… -- Ticket URL: <https://trac.macports.org/ticket/44699#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#44699: ffmpeg @2.3.1 libgmp version ------------------------+---------------------- Reporter: lkelley@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: fixed | Keywords: Port: ffmpeg | ------------------------+---------------------- Changes (by devans@…): * status: new => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/44699#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#44699: ffmpeg @2.3.1 libgmp version ------------------------+---------------------- Reporter: lkelley@… | Owner: devans@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ffmpeg | ------------------------+---------------------- Changes (by devans@…): * status: closed => reopened * resolution: fixed => Comment: Looks like your ports are out of date. Current version of ffmpeg is 2.3.3 and latest version of gmp is 6.0.0 which indeed provides /opt/local/lib/libgmp.10.dylib version 13: {{{ $ otool -L /opt/local/lib/libgmp.10.dylib /opt/local/lib/libgmp.10.dylib: /opt/local/lib/libgmp.10.dylib (compatibility version 13.0.0, current version 13.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1) }}} Please update your ports tree and try again: {{{ sudo port selfupdate sudo port clean ffmpeg sudo port install ffmpeg }}} This should install (at least) updated versions of gmp and ffmpeg for you. Also note that the current version of Xcode for Mavericks is 5.1.1 -- you should upgrade although that is not the problem here. -- Ticket URL: <https://trac.macports.org/ticket/44699#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#44699: ffmpeg @2.3.1 libgmp version ------------------------+---------------------- Reporter: lkelley@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ffmpeg | ------------------------+---------------------- Changes (by devans@…): * status: reopened => new -- Ticket URL: <https://trac.macports.org/ticket/44699#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#44699: ffmpeg @2.3.1 libgmp version ------------------------+---------------------- Reporter: lkelley@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ffmpeg | ------------------------+---------------------- Changes (by devans@…): * status: new => assigned -- Ticket URL: <https://trac.macports.org/ticket/44699#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#44699: ffmpeg @2.3.1 libgmp version ------------------------+---------------------- Reporter: lkelley@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ffmpeg | ------------------------+---------------------- Comment (by lkelley@…): I've done a complete selfupdate and update outdated, followed by a clean and reinstall of ffmpeg. I now have: ffmpeg @2.3.3 (multimedia) gmp @6.0.0 (devel, math) but I'm getting the same error {{{ ffmpeg dyld: Library not loaded: /opt/local/lib/libgmp.10.dylib Referenced from: /opt/local/bin/ffmpeg Reason: Incompatible library version: ffmpeg requires version 13.0.0 or later, but libgmp.10.dylib provides version 11.0.0 Trace/BPT trap: 5 }}} but it does look like the gmp library is actually the correct version... {{{ otool -L /opt/local/lib/libgmp.10.dylib /opt/local/lib/libgmp.10.dylib: /opt/local/lib/libgmp.10.dylib (compatibility version 13.0.0, current version 13.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1) }}} -- Ticket URL: <https://trac.macports.org/ticket/44699#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#44699: ffmpeg @2.3.1 libgmp version ------------------------+---------------------- Reporter: lkelley@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ffmpeg | ------------------------+---------------------- Comment (by lkelley@…): I found the problem. I had another version of libgmp.10.dylib installed from another program, and that directory was prepended to my DYLD_LIBRARY_PATH. I removed the version of libgmp.10.dylib and that removed the problem. The conflicting program I was using (MESA -- http://mesa.sourceforge.net/) is not very common, so this probably won't be a common issue for people.... -- Ticket URL: <https://trac.macports.org/ticket/44699#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#44699: ffmpeg @2.3.1 libgmp version ------------------------+---------------------- Reporter: lkelley@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ffmpeg | ------------------------+---------------------- Comment (by cal@…): Why do you even need `DYLD_LIBRARY_PATH`? On OS X, this variables does '''not''' behave like `LD_LIBRARY_PATH` on Linux, which often confuses people. Basically, `DYLD_LIBRARY_PATH` on OS X is only useful for developers to (temporarily) check if a binary works with a newer library version it doesn't link. If some software requires you to set `DYLD_LIBRARY_PATH` on OS X, it is almost always incorrectly linked and should be fixed. -- Ticket URL: <https://trac.macports.org/ticket/44699#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#44699: ffmpeg @2.3.1 libgmp version -------------------------+---------------------- Reporter: lkelley@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: worksforme | Keywords: Port: ffmpeg | -------------------------+---------------------- Changes (by devans@…): * status: assigned => closed * resolution: => worksforme Comment: I addition to cal's remarks in comment:8, be aware that MacPorts recommends against combining MacPorts ports with software compiled outside of MacPorts for exactly this reason. If you need to use MESA, the MacPorts version should work for you and not conflict. -- Ticket URL: <https://trac.macports.org/ticket/44699#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts