[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#830734: procps: FTBFS[!linux]: 'HOST_NAME_MAX' undeclared



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.

Aurelien


> It seems very odd it comes and goes, perhaps it is there but something is
> not including local_lim.h?
> 
> On Mon, Jul 11, 2016 at 8:26 PM Aurelien Jarno <aurelien@aurel32.net> wrote:
> 
> > On 2016-07-10 18:50, Aaron M. Ucko wrote:
> > > Craig Small <csmall@debian.org> writes:
> > >
> > > > local_lim.h is part of libc6-dev version 2.19-18+deb8u4
> > > > So what version are you using and why did the definition go away?
> > >
> > > unstable has 2.23-1, which dropped this definition on hurd-i386 and
> > > kfreebsd-*.  It's not clear why it went away, or whether the change was
> > > even intentional; copying debian-glibc for clarification.
> >
> > TTBOMK local_lim.h on kfreebsd or hurd has never contained such a
> > definition (even in 2.19-18+deb8u4), so it hasn't been dropped.
> >
> > Now we might want to add such a definition. It seems to be 256 on
> > FreeBSD. I have no idea for Hurd, but I guess it might actually be
> > dynamic.
> >
> > Aurelien
> >
> > --
> > Aurelien Jarno                          GPG: 4096R/1DDD8C9B
> > aurelien@aurel32.net                 http://www.aurel32.net
> >

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: