missing -I in makefile

Search this archive.

From: Karel Kulhavy (clock@atrey.karlin.mff.cuni.cz)
Date: Sun 04 Aug 2002 - 19:28:44 IDT


I have been compilin 1.9.16 on a Redhat with 2.4.18.-3 kernel and
it complained this:

[root@cyrix svgalib_helper]# make
cc -D__KERNEL__ -DMODULE -Wall -O2  -I/usr/src/linux/include
-DSVGALIB_HELPER_MAJOR=209 -M *.c > .depend
In file included from /usr/include/linux/timex.h:152,
                 from /usr/include/linux/sched.h:14,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/locks.h:5,
                 from /usr/include/linux/devfs_fs_kernel.h:6,
                 from main.c:13:
/usr/include/asm/timex.h:10:21: asm/msr.h: No such file or directory
In file included from /usr/include/linux/pagemap.h:15,
                 from /usr/include/linux/locks.h:8,
                 from /usr/include/linux/devfs_fs_kernel.h:6,
                 from main.c:13:
/usr/include/asm/pgtable.h:17:24: asm/fixmap.h: No such file or
directory
In file included from /usr/include/linux/highmem.h:5,
                 from /usr/include/linux/pagemap.h:16,
                 from /usr/include/linux/locks.h:8,
                 from /usr/include/linux/devfs_fs_kernel.h:6,
                 from main.c:13:
/usr/include/asm/pgalloc.h:6:24: asm/fixmap.h: No such file or directory
main.c:22:25: asm/uaccess.h: No such file or directory
make: *** [.depend] Error 1


I determined that when entering kernel/svgalib_helper and issuing
CPPFLAGS="-I /usr/src/linux-2.4.18-3/include/", the things went the
right way.

I guess the -I must be forgotten in the Makefile or what.

Clock


------------------------------------------------------------------
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