Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35974 - [[ headers ]] libgtop fails to compile against 2.6.0-test11 headers
Summary: [[ headers ]] libgtop fails to compile against 2.6.0-test11 headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-16 21:47 UTC by Derk W te Bokkel
Modified: 2003-12-24 04:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
2.6.0-test11-win4lin kernel build (win4lin-sources-2.6.0_pre11.ebuild,1.09 KB, text/plain)
2003-12-20 02:06 UTC, Derk W te Bokkel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Derk W te Bokkel 2003-12-16 21:47:07 UTC
fragment of output:

-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 -mcpu=athlon-xp -O3 -pipe -I/usr/X11R6/include -DGTOPLOCALEDIR=\"/usr/share/locale\" -DLIBGTOP_VERSION=\"2.0.7\" -DLIBGTOP_SERVER_VERSION=\"5\" -DLIBGTOP_VERSION_CODE=2000007 -DLIBGTOP_SERVER=\"/usr/bin/libgtop_server2\" -mcpu=athlon-xp -O3 -pipe -c siglist.c -o siglist.o >/dev/null 2>&1
rm: cannot remove `': Invalid argument
 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 -mcpu=athlon-xp -O3 -pipe -I/usr/X11R6/include -DGTOPLOCALEDIR=\"/usr/share/locale\" -DLIBGTOP_VERSION=\"2.0.7\" -DLIBGTOP_SERVER_VERSION=\"5\" -DLIBGTOP_VERSION_CODE=2000007 -DLIBGTOP_SERVER=\"/usr/bin/libgtop_server2\" -mcpu=athlon-xp -O3 -pipe -c procmap.c -o procmap.o >/dev/null 2>&1
/bin/sh ../../libtool --mode=compile 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   -mcpu=athlon-xp -O3 -pipe  -I/usr/X11R6/include  -DGTOPLOCALEDIR=\"/usr/share/locale\" -DLIBGTOP_VERSION=\"2.0.7\" -DLIBGTOP_SERVER_VERSION=\"5\" -DLIBGTOP_VERSION_CODE=2000007 -DLIBGTOP_SERVER=\"/usr/bin/libgtop_server2\"    -mcpu=athlon-xp -O3 -pipe -c netload.c
/bin/sh ../../libtool --mode=compile 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   -mcpu=athlon-xp -O3 -pipe  -I/usr/X11R6/include  -DGTOPLOCALEDIR=\"/usr/share/locale\" -DLIBGTOP_VERSION=\"2.0.7\" -DLIBGTOP_SERVER_VERSION=\"5\" -DLIBGTOP_VERSION_CODE=2000007 -DLIBGTOP_SERVER=\"/usr/bin/libgtop_server2\"    -mcpu=athlon-xp -O3 -pipe -c ppp.c
rm: cannot remove `': Invalid argument
 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 -mcpu=athlon-xp -O3 -pipe -I/usr/X11R6/include -DGTOPLOCALEDIR=\"/usr/share/locale\" -DLIBGTOP_VERSION=\"2.0.7\" -DLIBGTOP_SERVER_VERSION=\"5\" -DLIBGTOP_VERSION_CODE=2000007 -DLIBGTOP_SERVER=\"/usr/bin/libgtop_server2\" -mcpu=athlon-xp -O3 -pipe -c sysinfo.c  -fPIC -DPIC -o .libs/sysinfo.o
rm: cannot remove `': Invalid argument
 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 -mcpu=athlon-xp -O3 -pipe -I/usr/X11R6/include -DGTOPLOCALEDIR=\"/usr/share/locale\" -DLIBGTOP_VERSION=\"2.0.7\" -DLIBGTOP_SERVER_VERSION=\"5\" -DLIBGTOP_VERSION_CODE=2000007 -DLIBGTOP_SERVER=\"/usr/bin/libgtop_server2\" -mcpu=athlon-xp -O3 -pipe -c ppp.c  -fPIC -DPIC -o .libs/ppp.o
rm: cannot remove `': Invalid argument
 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 -mcpu=athlon-xp -O3 -pipe -I/usr/X11R6/include -DGTOPLOCALEDIR=\"/usr/share/locale\" -DLIBGTOP_VERSION=\"2.0.7\" -DLIBGTOP_SERVER_VERSION=\"5\" -DLIBGTOP_VERSION_CODE=2000007 -DLIBGTOP_SERVER=\"/usr/bin/libgtop_server2\" -mcpu=athlon-xp -O3 -pipe -c netload.c  -fPIC -DPIC -o .libs/netload.o
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 ../../include/glibtop/sysinfo.h:31,
                 from sysinfo.c:26:
/usr/include/glib-2.0/glib/gmacros.h:64:1: warning: "G_GNUC_NORETURN" redefined
In file included from ../../glibtop.h:27,
                 from ../../include/glibtop/cpu.h:27,
                 from sysinfo.c:25:
../../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 ../../include/glibtop/sysinfo.h:31,
                 from sysinfo.c:26:
/usr/include/glib-2.0/glib/gmacros.h:66:1: warning: "G_GNUC_CONST" redefined
In file included from ../../glibtop.h:27,
                 from ../../include/glibtop/cpu.h:27,
                 from sysinfo.c:25:
../../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 ../../include/glibtop/sysinfo.h:31,
                 from sysinfo.c:26:
/usr/include/glib-2.0/glib/gmacros.h:68:1: warning: "G_GNUC_UNUSED" redefined
In file included from ../../glibtop.h:27,
                 from ../../include/glibtop/cpu.h:27,
                 from sysinfo.c:25:
../../include/glibtop/global.h:56:1: warning: this is the location of the previous definition
rm: cannot remove `': Invalid argument
 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 -mcpu=athlon-xp -O3 -pipe -I/usr/X11R6/include -DGTOPLOCALEDIR=\"/usr/share/locale\" -DLIBGTOP_VERSION=\"2.0.7\" -DLIBGTOP_SERVER_VERSION=\"5\" -DLIBGTOP_VERSION_CODE=2000007 -DLIBGTOP_SERVER=\"/usr/bin/libgtop_server2\" -mcpu=athlon-xp -O3 -pipe -c sysinfo.c -o sysinfo.o >/dev/null 2>&1
rm: cannot remove `': Invalid argument
 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 -mcpu=athlon-xp -O3 -pipe -I/usr/X11R6/include -DGTOPLOCALEDIR=\"/usr/share/locale\" -DLIBGTOP_VERSION=\"2.0.7\" -DLIBGTOP_SERVER_VERSION=\"5\" -DLIBGTOP_VERSION_CODE=2000007 -DLIBGTOP_SERVER=\"/usr/bin/libgtop_server2\" -mcpu=athlon-xp -O3 -pipe -c netload.c -o netload.o >/dev/null 2>&1
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/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.)
/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
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
make[3]: *** [ppp.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/mnt/bigdisk1/tmp/portage/libgtop-2.0.7/work/libgtop-2.0.7/sysdeps/linux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/bigdisk1/tmp/portage/libgtop-2.0.7/work/libgtop-2.0.7/sysdeps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/bigdisk1/tmp/portage/libgtop-2.0.7/work/libgtop-2.0.7'
make: *** [all-recursive-am] Error 2

!!! ERROR: gnome-base/libgtop-2.0.7 failed.
!!! Function gnome2_src_compile, Line 39, Exitcode 2
!!! compile failure

Same errors as for sash, iputils .. too much included by call to kernel headers

earlier bugs :25459 (iputils) ,35784 (sash)

probably requires assignment to kernel-headers-2.6.0 team
Comment 1 SpanKY gentoo-dev 2003-12-17 08:18:00 UTC
i think this is another example where the headers need to be cleaned up
Comment 2 Derk W te Bokkel 2003-12-20 02:06:26 UTC
Created attachment 22461 [details]
2.6.0-test11-win4lin kernel build
Comment 3 Derk W te Bokkel 2003-12-20 02:08:35 UTC
Comment on attachment 22461 [details]
2.6.0-test11-win4lin kernel build

oops wrong bug
Comment 4 Derk W te Bokkel 2003-12-20 12:00:30 UTC
emerge info ---

Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031212-r0, 2.6.0-test11-mm1)
=================================================================
System uname: 2.6.0-test11-mm1 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/bigdisk1/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi acpi4linux alsa apm arts avi berkdb bonobo cdr crypt cups dvd dvdr encode esd foomaticdb gb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imagemagick imlib jack java javascript jpeg kde libg++ libgda libwww mad mikmod motif mozilla mpeg ncurses nls ofx oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline scanner sdl slang spell ssl svga tcpd transcode truetype usb v4l x86 xinerama xml xml2 xmms xv zlib"

Comment 5 SpanKY gentoo-dev 2003-12-23 11:45:40 UTC
linux/isdn/fsm.h contains a lot of kernel only stuff ... in fact, nothing in
linux/isdn.h uses fsm stuff ... i'm pretty sure it's there only so that when
in kernel space, the isdn drivers just have to do <linux/isdn.h> and not also
<linux/isdn/fsm.h> ...

so the fix here would be to ifdef out that include in linux/isdn.h:
#ifdef __KERNEL__
#include <linux/isdn/fsm.h>
#endif

doing so allows me to build libgtop just fine
Comment 6 Derk W te Bokkel 2003-12-23 13:56:05 UTC
yes that works perfectly .. to ensure it worked I patched both the kernel source and the headers .. I'm not sure the kernel sources matters.. 
Comment 7 SpanKY gentoo-dev 2003-12-23 15:25:57 UTC
no, we're only looking to 'fix' the headers (files in /usr/include)
Comment 8 Tim Yamin (RETIRED) gentoo-dev 2003-12-24 04:15:17 UTC
Fixed in linux-headers-2.6.0.