On 2016-07-11 15:13, Aurelien Jarno wrote: > On 2016-07-11 10:48, Craig Small wrote: > > Hi Aurelien, > > Hi, > > > It's definitely there because: > > a) I could compile procps on my kfreebsd jessie setup > > I have just tried to build procps version 2:3.3.12-1 in a kfreebsd > chroot and it fails the same way: > > | watch.c: In function 'output_header': > | watch.c:375:16: error: 'HOST_NAME_MAX' undeclared (first use in this > function) > | char hostname[HOST_NAME_MAX + 1]; > | ^ > | watch.c:375:16: note: each undeclared identifier is reported only once for > each function it appears in > > > > b) I could grep for it in the same system > > Can you tell me which file contains this definition? > > > c) > > https://sources.debian.net/src/glibc/2.22-10/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/local_lim.h/?hl=25#L25 > > Indeed, that said the following file is the one installed in the > include directory: > > https://sources.debian.net/src/glibc/2.22-10/sysdeps/unix/bsd/bsd4.4/kfreebsd/fbtl/bits/local_lim.h/ > > Now it looks like we should merge the two files.
I have done that now, it will be in the next glibc upload. Note however the following comment in <sys/syslimits.h> of a plain FreeBSD system: | /* | * We leave the following values undefined to force applications to either | * assume conservative values or call sysconf() to get the current value. | * | * HOST_NAME_MAX | * | * (We should do this for most of the values currently defined here, | * but many programs are not prepared to deal with this yet.) | */ Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurel...@aurel32.net http://www.aurel32.net