Bug 7000 - Talloc build failure on Mac OS X (darwin)
Summary: Talloc build failure on Mac OS X (darwin)
Alias: None
Product: TALLOC
Classification: Unclassified
Component: libtalloc (show other bugs)
Version: 2.0.1
Hardware: Other Mac OS X
: P3 normal
Target Milestone: ---
Assignee: Simo Sorce
QA Contact: Samba QA Contact
Depends on: 10885
  Show dependency treegraph
Reported: 2009-12-18 14:54 UTC by dead mail address
Modified: 2020-10-22 03:02 UTC (History)
1 user (show)

See Also:

Patch that fixes the build problem on Mac OS X (762 bytes, patch)
2009-12-18 14:54 UTC, dead mail address
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description dead mail address 2009-12-18 14:54:03 UTC
Talloc 2.0.1 failed to build on Mac OS X 10.6.2.  I'll attach a patch that seems to solve the compile problem, and all tests pass.

The tail of the failed build looked like:

gcc -dynamiclib -Wl,-search_paths_first -undefined error -o libtalloc.dylib.2.0.1 ./talloc.o  ./libreplace/replace.o ./libreplace/snprintf.o ./libreplace/getpass.o ./libreplace/strptime.o   libtalloc.dylib.2
i686-apple-darwin10-gcc-4.2.1: libtalloc.dylib.2: No such file or directory

Finding where that command came from in the Makefile, it appears that SONAMEFLAG is being set to "#" on Darwin, and it ends up just not getting included in the command at all.

Looking at how Samba is built, it seemed that SONAMEFLAG on Mac OS X probably ought to be "-install_name ", and making that change solved the problem.
Comment 1 dead mail address 2009-12-18 14:54:32 UTC
Created attachment 5103 [details]
Patch that fixes the build problem on Mac OS X
Comment 2 Douglas Bagnall 2020-10-22 03:02:26 UTC
We have dropped the autotools build system that this patch applied to, so it is safe to say this m4 patch no longer applies.