Missing bsd lib and header checks for Ubuntu 14.04

Jelmer Vernooij jelmer at samba.org
Tue Jun 17 08:02:58 MDT 2014


On Tue, Jun 17, 2014 at 06:35:02AM -0700, Julien Kerihuel wrote:
> Hi,
> 
> While installing latest samba master on Ubuntu 14.04, I ended up with
> undefined references to rep_strlcpy at linkage time in heimdal hcrypto
> library (rand-egd.c).
> 
> I got it solved after I installed libbsd-dev package.
> 
> I suppose it should have been detected at configure time given that
> strlcpy and strlcat are only provided by libbsd-dev package on Ubuntu. I
> am unsure what the proper solution shall be but I would assume adding
> checks on bsd lib and headers in samba/lib/replace/wscript shall fix the
> issue:
> 
> conf.CHECK_LIB('bsd')
> conf.CHECK_HEADERS('bsd/string.h')

Note that libreplace is already doing these checks. Can you check why these
checks weren't working as they should?

Cheers,

Jelmer


More information about the samba-technical mailing list