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

Bug#381791: marked as done (ntp-4.2.2 FTBFS due to BITS_PER_LONG use in <sys/timex.h>)



Your message dated Mon, 10 Sep 2007 17:28:10 +0200
with message-id <20070910152810.GC14533@wavehammer.waldi.eu.org>
and subject line linux/bitmap.h not exported
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: linux-kernel-headers
Version: 2.6.17.7-1

I presume <sys/timex.h> is supposed to be #includeable from user space.

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../include  -I/usr/include  -g -fno-strict-aliasing -O2  -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -c tickadj.c
In file included from /usr/include/linux/cpumask.h:86,
                 from /usr/include/asm-i486/processor.h:23,
                 from /usr/include/asm/processor.h:8,
                 from /usr/include/asm-i486/timex.h:10,
                 from /usr/include/asm/timex.h:8,
                 from /usr/include/sys/timex.h:60,
                 from tickadj.c:26:
/usr/include/linux/bitmap.h: In function 'bitmap_zero':
/usr/include/linux/bitmap.h:128: error: 'BITS_PER_LONG' undeclared (first use in this function)

I haven't explored the dependency chain, but wrapping the asm includes
in <sys/timex.h> appears to work:

#ifdef __KERNEL__
#include <asm/param.h>
#include <asm/timex.h>
#endif 


--- End Message ---
--- Begin Message ---
linux/bitmap.h is not exported.

Bastian

-- 
Extreme feminine beauty is always disturbing.
		-- Spock, "The Cloud Minders", stardate 5818.4


--- End Message ---

Reply to: