[cfe-dev] Problem building Samba with clang
Ralph Boehme
slow at samba.org
Wed Oct 15 03:20:15 PDT 2014
On Tue, Oct 14, 2014 at 08:17:12PM +0200, Ralph Böhme wrote:
> [3559/3706] Linking default/source3/nmbd/nmbd
> default/source3/nmbd/nmbd_sendannounce_150.o: In function
> `send_announcement':
> /usr/home/ralph/samba/test/bin/../source3/nmbd/nmbd_sendannounce.c:123:
> undefined reference to `__unsafe_string_function_usage_here_size_t__'
> default/source3/nmbd/nmbd_sendannounce_150.o: In function
> `send_lm_announcement':
> /usr/home/ralph/samba/test/bin/../source3/nmbd/nmbd_sendannounce.c:152:
> undefined reference to `__unsafe_string_function_usage_here_size_t__'
> cc: error: linker command failed with exit code 1 (use -v to see
> invocation)
> Waf: Leaving directory `/usr/home/ralph/samba/test/bin'
>
> I can't find any references for this error, I'm not even sure it's
> really clang related. What's that
> __unsafe_string_function_usage_here_size_t__ thingy? :)
>
> Thanks for any pointers!
d'oh!
I could swear I did a `git grep
__unsafe_string_function_usage_here_size_t__` and it didn't return
anything. Well, looks like I was just being stupid. It's an
optimisation used in some Samba utility code and our waf configure
check didn't correctly report whether clang supports this
optimisation.
Fix:
<https://lists.samba.org/archive/samba-technical/2014-October/103018.html>
Sorry for the noise! :)
-Ralph
More information about the cfe-dev
mailing list