glibc-kernel-headers

Grzegorz Goławski grzegol w pld-linux.org
Wto, 30 Gru 2003, 01:53:41 CET


Cześć!
Budowanie libgtop z -r DEVEL wywala się na nagłówkach jądra:

athlon-pld-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_IN_LIBGTOP -
D_GNU_SOURCE -DGLIBTOP_NAMES -I../.. -I../.. -I../../sysdeps/linux -
I../../include -DORBIT2=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/
glib-2.0/include -I/usr/include/libgnome-2.0 -I/usr/include/orbit-2.0 -
I/usr/include/libbonobo-2.0 -I/usr/include/gconf2 -I/usr/include/gnome-
vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-
activation-2.0 -O2 -march=athlon -I/usr/X11R6/include -DGTOPLOCALEDIR=
\"/usr/share/locale\" -DLIBGTOP_VERSION=\"2.5.0\" -
DLIBGTOP_SERVER_VERSION=\"5\" -DLIBGTOP_VERSION_CODE=2005000 -
DLIBGTOP_SERVER=\"/usr/bin/libgtop_server2\" -O2 -march=athlon -MT ppp.
lo -MD -MP -MF .deps/ppp.Tpo -c ppp.c  -fPIC -DPIC -o .libs/ppp.o
In file included from /usr/include/linux/config.h:1,
                 from /usr/include/linux/timer.h:4,
                 from /usr/include/linux/isdn/fsm.h:15,
                 from /usr/include/linux/isdn.h:17,
                 from ppp.c:28:
/usr/include/linux/err_kernel_only.h:1:2: #error Kernel only header
included in userspace
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:28:
/usr/include/linux/list.h:576:2: warning: #warning "don't include kernel
headers in userspace"
In file included from /usr/include/linux/spinlock.h:1,
                 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:28:
/usr/include/linux/err_kernel_only.h:1:2: #error Kernel only header
included in userspace
In file included from /usr/include/linux/isdn/fsm.h:15,
                 from /usr/include/linux/isdn.h:17,
                 from ppp.c:28:
/usr/include/linux/timer.h:11: error: field `entry' has incomplete type
/usr/include/linux/timer.h:14: error: parse error before "spinlock_t"
/usr/include/linux/timer.h:21: error: parse error before '}' token
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:43: error: dereferencing pointer to
incomplete type
/usr/include/linux/timer.h:44: error: dereferencing pointer to
incomplete type
/usr/include/linux/timer.h:45: error: dereferencing pointer to
incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:60: error: dereferencing pointer to
incomplete type
/usr/include/linux/timer.h: In function `add_timer':
/usr/include/linux/timer.h:84: error: dereferencing pointer to
incomplete type
In file included from /usr/include/linux/isdn.h:17,
                 from ppp.c:28:
/usr/include/linux/isdn/fsm.h: At top level:
/usr/include/linux/isdn/fsm.h:44: error: field `tl' has incomplete type
make[3]: *** [ppp.lo] Błąd 1
make[3]: Opuszczenie katalogu `/home/users/grzegol/rpm/BUILD/libgtop-
2.5.0/sysdeps/linux'
make[2]: *** [all-recursive] Błąd 1
make[2]: Opuszczenie katalogu `/home/users/grzegol/rpm/BUILD/libgtop-
2.5.0/sysdeps'
make[1]: *** [all-recursive] Błąd 1
make[1]: Opuszczenie katalogu `/home/users/grzegol/rpm/BUILD/libgtop-
2.5.0'
make: *** [all] Błąd 2
błąd: Błędny status wyjścia z /var/tmp/rpm-tmp.51180 (%build)

Czy to jest błąd w glibc-kernel-headers czy w libgtop?
Mi się wydaje że to pierwsze, bo libgtop includuje tylko linux/isdn.h
(chyba można to includować w userspace (?)).

$ rpm -q glibc-kernel-headers
glibc-kernel-headers-2.6.0.2-1

-- 
Grzegorz Goławski <grzegol w pld-linux.org>



Więcej informacji o liście dyskusyjnej pld-devel-pl