[BUG 13087] [PATCH] WARNING: No automated network interface determination due to strerror_r

Andrew Bartlett abartlet at samba.org
Sat Oct 14 09:54:33 UTC 2017


While trying to chase down why we need rep_strerror_r on linux, I
noticed that we broke network interface determination (or something in
this area).

https://bugzilla.samba.org/show_bug.cgi?id=13087

The issue is that on linux, strlcpy() needs -lbsd, and that was not
being provided when including replace.c into the configure tests.

This is not the world's most elegant fix, but seems to work on linux.

I would love to have XSI strerror_r and vasprintf, but both conflict on
 having or not having_GNU_SOURCE set!

Please review!

Thanks,

Andrew Bartlett
-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-replace-Link-to-lbsd-when-building-replace.c-by-hand.patch
Type: text/x-patch
Size: 2239 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20171014/de46a85a/0001-replace-Link-to-lbsd-when-building-replace.c-by-hand.bin>


More information about the samba-technical mailing list