[MacPorts] #14135: dyld: Library not loaded: libdlna.dylib.0.2.3
#14135: dyld: Library not loaded: libdlna.dylib.0.2.3 -------------------------------+-------------------------------------------- Reporter: herouxb@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 1.6.0 Keywords: ushare dyld | -------------------------------+-------------------------------------------- Hi, when i installed ushare i have this error: ----- bash-3.2# /opt/local/bin/ushare dyld: Library not loaded: libdlna.dylib.0.2.3 Referenced from: /opt/local/bin/ushare Reason: image not found Trace/BPT trap ------ So it won't run. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14135> MacPorts </projects/macports> Ports system for Mac OS
#14135: dyld: Library not loaded: libdlna.dylib.0.2.3 --------------------------------+------------------------------------------- Reporter: herouxb@gmail.com | Owner: sfiera@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ushare dyld --------------------------------+------------------------------------------- Changes (by ryandesign@macports.org): * owner: macports-tickets@lists.macosforge.org => sfiera@macports.org * priority: High => Normal * milestone: => Port Bugs Comment: Assigning to maintainer of ushare. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14135#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#14135: dyld: Library not loaded: libdlna.dylib.0.2.3 --------------------------------+------------------------------------------- Reporter: herouxb@gmail.com | Owner: sfiera@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ushare dyld --------------------------------+------------------------------------------- Changes (by sfiera@macports.org): * status: new => assigned Comment: What is in your environment? Please post the result of: {{{ % env | grep DYLD }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14135#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#14135: dyld: Library not loaded: libdlna.dylib.0.2.3 --------------------------------+------------------------------------------- Reporter: herouxb@gmail.com | Owner: sfiera@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ushare dyld --------------------------------+------------------------------------------- Comment (by herouxb@gmail.com): hi, here's: bash-3.2# env | grep DYLD bash-3.2# echo $DYLD_LIBRARY_PATH /opt/local/lib:/opt/local/include -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14135#comment:3> MacPorts </projects/macports> Ports system for Mac OS
#14135: dyld: Library not loaded: libdlna.dylib.0.2.3 --------------------------------+------------------------------------------- Reporter: herouxb@gmail.com | Owner: sfiera@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ushare dyld --------------------------------+------------------------------------------- Comment (by sfiera@macports.org): Incidentally, I don't think `/opt/local/include` needs to be in there, but the important thing is that `/opt/local/lib` is. What about the following commands? {{{ % otool -L /opt/local/bin/ushare }}} {{{ % port contents libdlna }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14135#comment:4> MacPorts </projects/macports> Ports system for Mac OS
#14135: dyld: Library not loaded: libdlna.dylib.0.2.3 --------------------------------+------------------------------------------- Reporter: herouxb@gmail.com | Owner: sfiera@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ushare dyld --------------------------------+------------------------------------------- Comment (by herouxb@gmail.com): Sure he it is: {{{ bash-3.2# otool -L /opt/local/bin/ushare /opt/local/bin/ushare: /opt/local/lib/libintl.8.dylib (compatibility version 9.0.0, current version 9.2.0) /opt/local/lib/libixml.2.dylib (compatibility version 3.0.0, current version 3.4.0) /opt/local/lib/libthreadutil.2.dylib (compatibility version 5.0.0, current version 5.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0) /opt/local/lib/libupnp.3.dylib (compatibility version 4.0.0, current version 4.2.0) libdlna.dylib.0.2.3 (compatibility version 0.0.0, current version 0.0.0) /opt/local/lib/libavformat.dylib (compatibility version 51.1.0, current version 51.1.0) /opt/local/lib/libavcodec.dylib (compatibility version 51.1.0, current version 51.1.0) /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /opt/local/lib/libavutil.dylib (compatibility version 51.1.0, current version 51.1.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) }}} {{{ bash-3.2# /opt/local/bin/port contents libdlna Port libdlna contains: /opt/local/include/dlna.h /opt/local/lib/libdlna.a /opt/local/lib/libdlna.dylib /opt/local/lib/libdlna.dylib.0 /opt/local/lib/libdlna.dylib.0.2.3 /opt/local/lib/pkgconfig/libdlna.pc }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14135#comment:5> MacPorts </projects/macports> Ports system for Mac OS
#14135: dyld: Library not loaded: libdlna.dylib.0.2.3 --------------------------------+------------------------------------------- Reporter: herouxb@gmail.com | Owner: sfiera@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ushare dyld --------------------------------+------------------------------------------- Comment (by sfiera@macports.org): Again, that all matches up with my system (where ushare works). The last thing to try would be: {{{ % otool -L /opt/local/lib/libdlna.dylib.0.2.3 }}} I had to patch libdlna to get it to build at all on OS X, and I'm not sure what could be causing it to fail on your system but not on mine. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14135#comment:6> MacPorts </projects/macports> Ports system for Mac OS
#14135: dyld: Library not loaded: libdlna.dylib.0.2.3 --------------------------------+------------------------------------------- Reporter: herouxb@gmail.com | Owner: sfiera@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ushare dyld --------------------------------+------------------------------------------- Comment (by herouxb@gmail.com): Hi, i hope it will help you: {{{ bash-3.2# otool -L /opt/local/lib/libdlna.dylib.0.2.3 /opt/local/lib/libdlna.dylib.0.2.3: libdlna.dylib.0.2.3 (compatibility version 0.0.0, current version 0.0.0) /opt/local/lib/libavformat.dylib (compatibility version 51.1.0, current version 51.1.0) /opt/local/lib/libavcodec.dylib (compatibility version 51.1.0, current version 51.1.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0) }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14135#comment:7> MacPorts </projects/macports> Ports system for Mac OS
#14135: dyld: Library not loaded: libdlna.dylib.0.2.3 --------------------------------+------------------------------------------- Reporter: herouxb@gmail.com | Owner: sfiera@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ushare dyld --------------------------------+------------------------------------------- Comment (by herouxb@gmail.com): Is it normal that i have this: "libdlna.dylib.0.2.3 (compatibility version 0.0.0, current version 0.0.0)" version 0.0.0 !? isn't weird? do you have the same output ? Also, why do i always have to add this line: '''DYLD_LIBRARY_PATH=/opt/local/lib''' manually, unless i do that the variable DYLD_LIBRARY_PATH will be empty! I have updated to OSX 10.5.2 and i have the same problem. thanks. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14135#comment:8> MacPorts </projects/macports> Ports system for Mac OS
#14135: dyld: Library not loaded: libdlna.dylib.0.2.3 --------------------------------+------------------------------------------- Reporter: herouxb@gmail.com | Owner: sfiera@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ushare dyld --------------------------------+------------------------------------------- Comment (by sfiera@macports.org):
Is it normal that i have this: "libdlna.dylib.0.2.3 (compatibility version 0.0.0, current version 0.0.0)"
Probably not. This may be an artefact of my having forced it to build the dylib on OS X. It builds a Linux .so by default and my patch may have left out useful command-line options.
Also, why do i always have to add this line: DYLD_LIBRARY_PATH=/opt/local/lib manually, unless i do that the variable DYLD_LIBRARY_PATH will be empty!
An empty `DYLD_LIBRARY_PATH` is expected, and probably desired. It means "use the OS X default." MacPorts asks users to set `DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib`. That's the sort of thing that should be in one's `.profile`.
I have updated to OSX 10.5.2 and i have the same problem. thanks.
I'm still in the dark as to how to fix it, unfortunately. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14135#comment:9> MacPorts </projects/macports> Ports system for Mac OS
#14135: dyld: Library not loaded: libdlna.dylib.0.2.3 --------------------------------+------------------------------------------- Reporter: herouxb@gmail.com | Owner: sfiera@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ushare dyld --------------------------------+------------------------------------------- Comment (by g@rgoyle.com): I have the same problem. I also had to add DYLD_LIBRARY_PATH to my ~/.profile, and my otool output is the same:- {{{ macpro:lib paul$ otool -L /opt/local/bin/ushare /opt/local/bin/ushare: /opt/local/lib/libintl.8.dylib (compatibility version 9.0.0, current version 9.2.0) /opt/local/lib/libixml.2.dylib (compatibility version 3.0.0, current version 3.4.0) /opt/local/lib/libthreadutil.2.dylib (compatibility version 5.0.0, current version 5.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0) /opt/local/lib/libupnp.3.dylib (compatibility version 4.0.0, current version 4.2.0) libdlna.dylib.0.2.3 (compatibility version 0.0.0, current version 0.0.0) /opt/local/lib/libavformat.dylib (compatibility version 51.1.0, current version 51.1.0) /opt/local/lib/libavcodec.dylib (compatibility version 51.1.0, current version 51.1.0) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /opt/local/lib/liba52.0.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/lib/libfaac.0.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/lib/libfaad.0.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/lib/libmp3lame.0.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/lib/libavutil.dylib (compatibility version 51.1.0, current version 51.1.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) }}} However, I did get ushare to work by running it from within /opt/local/lib. Is this because libdlna is the only one in the list that does not have an absolute reference path? -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14135#comment:10> MacPorts </projects/macports> Ports system for Mac OS
#14135: dyld: Library not loaded: libdlna.dylib.0.2.3 --------------------------------+------------------------------------------- Reporter: herouxb@gmail.com | Owner: sfiera@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ushare dyld --------------------------------+------------------------------------------- Comment (by sfiera@macports.org): Yes. I've pushed out a revision to libdlna which I think will fix these problems. I'd appreciate it if you could update to it and have a go. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14135#comment:11> MacPorts </projects/macports> Ports system for Mac OS
#14135: dyld: Library not loaded: libdlna.dylib.0.2.3 --------------------------------+------------------------------------------- Reporter: herouxb@gmail.com | Owner: sfiera@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ushare dyld --------------------------------+------------------------------------------- Comment (by g@rgoyle.com): I just installed a clean version of mac ports and installed ushare without errors using the following commands (I'm new to ports, so not sure if they were all necessary, and I had svn mounted using OSX webDav):- {{{ cd /opt/local/var/macports/sources/rsync.macports.org/release/ports/multimedia sudo rm -rf ffmpeg sudo cp -R /Volumes/macports/trunk/dports/multimedia/ffmpeg ./ffmpeg sudo chmod -R 755 ffmpeg cd /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel sudo rm -rf libdlna sudo cp -R /Volumes/macports/trunk/dports/devel/libdlna libdlna sudo chmod -R 755 libdlna sudo port install ushare }}} All worked without errors. Hope this helps. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14135#comment:12> MacPorts </projects/macports> Ports system for Mac OS
#14135: dyld: Library not loaded: libdlna.dylib.0.2.3 --------------------------------+------------------------------------------- Reporter: herouxb@gmail.com | Owner: sfiera@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ushare dyld --------------------------------+------------------------------------------- Comment (by reiffert@macports.org): Which translates to that he were using the latest changesets for libdlna and ffmpeg, so confirming that those changes work for building ushare. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14135#comment:13> MacPorts </projects/macports> Ports system for Mac OS
#14135: dyld: Library not loaded: libdlna.dylib.0.2.3 --------------------------------+------------------------------------------- Reporter: herouxb@gmail.com | Owner: sfiera@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: ushare dyld --------------------------------+------------------------------------------- Changes (by sfiera@macports.org): * status: assigned => closed * resolution: => fixed Comment: Assuming this is fixed. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14135#comment:14> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts