Ticket #10944 (closed defect: fixed)
BUG: net/samba3 builds bad libsmbclient.dylib
|Reported by:||ecronin@…||Owned by:||mww@…|
The samba3 configure script sets up the shared lib linking stage to use -bundle instead of -dynamiclib, resulting in a libsmbclient.dylib which, at least in 10.4 ppc, the linker dislikes when compiling programs depending on samba3.
The patch attached uses -dynamiclib and the required -fno-common, producing a valid library. Unfortunately, the library thinks its bin/libsmbclient.dylib in otool -L of programs linked against it, which causes a run-time failure when it can't be located. This is where my knowledge of darwin/mach-o linking reaches its end, so I leave this as a bug and not a patch.
MPlayer 1.0rc1 with the --enable-smb flag to configure (working on an updated Portfile for it right now) is what uncovered this if you need a regression test.