Bug#224774: FTBFS: libgtop2 build dies when including linux/isdn.h

Peter Hawkins Peter Hawkins <peter@hawkins.emu.id.au>, 224774@bugs.debian.org
Mon, 22 Dec 2003 15:55:26 +1100


Package: libgtop2
Version: 2.0.5-4
Severity: serious

Hi...

libgtop2 apparently fails to build from source, probably due to the new 
linux-kernel-headers package.

Extract from the build log:
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_IN_LIBGTOP -D_GNU_SOURCE 
-DGLIBTOP_NAMES -I../.. -I../.. -I../../sysdeps/linux -I../../include 
-DNEED_GNOMESUPPORT_H -I../../support -I../../support -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -g -O2 -I/usr/X11R6/include -DGTOPLOCALEDIR=\"/
usr/share/locale\" -DLIBGTOP_VERSION=\"2.0.5\" -DLIBGTOP_SERVER_VERSION=\"5\" 
-DLIBGTOP_VERSION_CODE=2000005 -DLIBGTOP_SERVER=\"/usr/bin/libgtop_server2\" 
-g -O2 -Wp,-MD,.deps/ppp.pp -c ppp.c  -fPIC -DPIC -o .libs/ppp.o
In file included from /usr/include/linux/timer.h:5,
                 from /usr/include/linux/isdn/fsm.h:15,
                 from /usr/include/linux/isdn.h:17,
                 from ppp.c:29:
/usr/include/linux/list.h:576:2: warning: #warning "don't include kernel 
headers in userspace"
In file included from /usr/lib/glib-2.0/include/glibconfig.h:9,
                 from /usr/include/glib-2.0/glib/gtypes.h:30,
                 from /usr/include/glib-2.0/glib/galloca.h:30,
                 from /usr/include/glib-2.0/glib.h:30,
                 from ppp.c:36:
/usr/include/glib-2.0/glib/gmacros.h:64:1: warning: "G_GNUC_NORETURN" 
redefined
In file included from ../../glibtop.h:27,
                 from ppp.c:24:
../../include/glibtop/global.h:52:1: warning: this is the location of the 
previous definition
In file included from /usr/lib/glib-2.0/include/glibconfig.h:9,
                 from /usr/include/glib-2.0/glib/gtypes.h:30,
                 from /usr/include/glib-2.0/glib/galloca.h:30,
                 from /usr/include/glib-2.0/glib.h:30,
                 from ppp.c:36:
/usr/include/glib-2.0/glib/gmacros.h:66:1: warning: "G_GNUC_CONST" redefined
In file included from ../../glibtop.h:27,
                 from ppp.c:24:
../../include/glibtop/global.h:54:1: warning: this is the location of the 
previous definition
In file included from /usr/lib/glib-2.0/include/glibconfig.h:9,
                 from /usr/include/glib-2.0/glib/gtypes.h:30,
                 from /usr/include/glib-2.0/glib/galloca.h:30,
                 from /usr/include/glib-2.0/glib.h:30,
                 from ppp.c:36:
/usr/include/glib-2.0/glib/gmacros.h:68:1: warning: "G_GNUC_UNUSED" redefined
In file included from ../../glibtop.h:27,
                 from ppp.c:24:
../../include/glibtop/global.h:56:1: warning: this is the location of the 
previous definition
In file included from /usr/include/linux/timer.h:6,
                 from /usr/include/linux/isdn/fsm.h:15,
                 from /usr/include/linux/isdn.h:17,
                 from ppp.c:29:
/usr/include/linux/spinlock.h: In function `bit_spin_lock':
/usr/include/linux/spinlock.h:413: error: invalid type argument of `->'
/usr/include/linux/spinlock.h: In function `bit_spin_trylock':
/usr/include/linux/spinlock.h:430: error: invalid type argument of `->'
/usr/include/linux/spinlock.h:433: error: invalid type argument of `->'
/usr/include/linux/spinlock.h:433: error: `TIF_NEED_RESCHED' undeclared (first 
use in this function)
/usr/include/linux/spinlock.h:433: error: (Each undeclared identifier is 
reported only once
/usr/include/linux/spinlock.h:433: error: for each function it appears in.)
In file included from /usr/include/linux/timer.h:6,
                 from /usr/include/linux/isdn/fsm.h:15,
                 from /usr/include/linux/isdn.h:17,
                 from ppp.c:29:
/usr/include/linux/spinlock.h: In function `bit_spin_unlock':
/usr/include/linux/spinlock.h:451: error: invalid type argument of `->'
/usr/include/linux/spinlock.h:451: error: `TIF_NEED_RESCHED' undeclared (first 
use in this function)
In file included from /usr/include/linux/isdn/fsm.h:15,
                 from /usr/include/linux/isdn.h:17,
                 from ppp.c:29:
/usr/include/linux/timer.h: At top level:
/usr/include/linux/timer.h:11: error: field `entry' has incomplete type
make[4]: *** [ppp.lo] Error 1
make[4]: Leaving directory `/home/peterh/debian/nmu/libgtop2-2.0.5/sysdeps/
linux'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/peterh/debian/nmu/libgtop2-2.0.5/sysdeps'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/peterh/debian/nmu/libgtop2-2.0.5'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/home/peterh/debian/nmu/libgtop2-2.0.5'
make: *** [build-stamp] Error 2
debuild: fatal error at line 763:
dpkg-buildpackage failed!

=)
Peter