Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #10944 (closed defect: fixed)

Opened 2 years ago

Last modified 18 months ago

BUG: net/samba3 builds bad libsmbclient.dylib

Reported by: ecronin@… Owned by: mww@…
Priority: Low Milestone: Port Bugs
Component: ports Version: 1.3.2
Keywords: Cc:
Port:

Description

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.

Attachments

Portfile.diff (0.7 KB) - added by ecronin@… 2 years ago.
Portfile_b.diff (0.6 KB) - added by ecronin@… 18 months ago.

Change History

Changed 2 years ago by ecronin@…

Changed 2 years ago by ecronin@…

Also, this is pretty clearly a bug with samba and not mports/dports, but if we could give them a complete patch instead of just a bugreport I think it'll get fixed upstream faster...

Changed 21 months ago by pipping@…

  • milestone set to Port Bugs

Changed 18 months ago by ecronin@…

Portfileb.diff is a second patch (requires the first) which fixes the unresolved references to e.g. 'bin/libsmbclient.dylib' for libraries in /opt/local/lib/samba3, but libraries in /opt/local/lib/samba3/somedir are still broken (I had to manually specify the install directory at link time, and the samba Makefile does not provide any distinction based on where libs end up).

Changed 18 months ago by ecronin@…

Changed 18 months ago by markd@…

  • status changed from new to closed
  • resolution set to fixed

Fixed (and updated) in r25758.

Note: See TracTickets for help on using tickets.