From: Matan Ziv-Av (matan@svgalib.org)
Date: Sun 28 Jul 2002 - 09:43:15 IDT
On Sat, 27 Jul 2002, Joel Croteau wrote: > I am running lfs-3.3 with kernel version 2.4.18. When I try to build > svgalib 1.9.16, it produces the following output: > > from main.c:13: > /usr/include/linux/pagemap.h: In function `_page_hashfn': > /usr/include/linux/pagemap.h:66: sizeof applied to an incomplete type > /usr/include/linux/pagemap.h:66: sizeof applied to an incomplete type > /usr/include/linux/pagemap.h:66: sizeof applied to an incomplete type > /usr/include/linux/pagemap.h:66: sizeof applied to an incomplete type > In file included from main.c:22: > /usr/include/asm/uaccess.h: In function `verify_area': > /usr/include/asm/uaccess.h:64: dereferencing pointer to incomplete type > /usr/include/asm/uaccess.h: In function `__constant_copy_to_user': > /usr/include/asm/uaccess.h:550: dereferencing pointer to incomplete type > /usr/include/asm/uaccess.h: In function `__constant_copy_from_user': > /usr/include/asm/uaccess.h:558: dereferencing pointer to incomplete type The compiler should not look for headers in /usr/include/asm/, but in /usr/src/linux/include/asm/. Do you have the kernel source installed at the usual place (/usr/src/linux)? If not edit Makefile.cfg so that INCLUDEDIR points to the write directory. It would have been better to compile with -nostdinc, since the files in /usr/include/{linux,asm} are not meant for kernel compilation, but the kernel needs stdarg.h for some reason. -- Matan Ziv-Av. matan@svgalib.org ------------------------------------------------------------------ Unsubscribe: To: listbot@svgalib.org Body: unsubscribe linux-svgalib
This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:25 IST