Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#14135 closed defect (fixed)

dyld: Library not loaded: libdlna.dylib.0.2.3

Reported by: herouxb@… Owned by: sfiera@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: ushare dyld Cc:
Port:

Description

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.

Change History (15)

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Milestone: Port Bugs
Owner: changed from macports-tickets@… to sfiera@…
Priority: HighNormal

Assigning to maintainer of ushare.

comment:2 Changed 16 years ago by sfiera@…

Status: newassigned

What is in your environment? Please post the result of:

% env | grep DYLD

comment:3 Changed 16 years ago by herouxb@…

hi,

here's:

bash-3.2# env | grep DYLD bash-3.2# echo $DYLD_LIBRARY_PATH /opt/local/lib:/opt/local/include

comment:4 Changed 16 years ago by sfiera@…

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

comment:5 Changed 16 years ago by herouxb@…

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

comment:6 Changed 16 years ago by sfiera@…

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.

comment:7 Changed 16 years ago by herouxb@…

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)

comment:8 Changed 16 years ago by herouxb@…

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.

comment:9 Changed 16 years ago by sfiera@…

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.

comment:10 Changed 16 years ago by g@…

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?

comment:11 Changed 16 years ago by sfiera@…

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.

comment:12 Changed 16 years ago by g@…

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.

comment:13 Changed 16 years ago by reiffert@…

Which translates to that he were using the latest changesets for libdlna and ffmpeg, so confirming that those changes work for building ushare.

comment:14 Changed 16 years ago by sfiera@…

Resolution: fixed
Status: assignedclosed

Assuming this is fixed.

comment:15 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.