Link to home
Start Free TrialLog in
Avatar of 91Change
91Change

asked on

/usr/include/linux folder missing

I am using fedora core 8  ( 2.6.26.8-57.fc8)

I have installed kernel-dev package using yum .(kernel-devel-2.6.26.8-57.fc8 ).
I  cannot find folder /usr/include/linux  .So i cannot compile so many c file which include headers using <linux/err.h>
i searched web and i   added include path as /usr/src/kernels/2.6.26.8-57.fc8-i686/include/ . But compilation is not sucssess ful .

All subdirectorioes under /usr/src/redhat/ are empty .



 
Avatar of 91Change
91Change

ASKER

[mbtc37@magma-ostg squashfs-tools]$ make
cc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2   -c -o mksquashfs.o mksquashfs.c
In file included from /usr/include/errno.h:36,
                 from mksquashfs.c:36:
/usr/include/bits/errno.h:25:26: error: linux/errno.h: No such file or directory
In file included from /usr/include/bits/posix1_lim.h:153,
                 from /usr/include/dirent.h:232,
                 from mksquashfs.c:37:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
In file included from mksquashfs.c:58:
/usr/include/sys/sysinfo.h:25:26: error: linux/kernel.h: No such file or directory
mksquashfs.c: In function old_add_exclude:
mksquashfs.c:3128: error: ENOENT undeclared (first use in this function)
mksquashfs.c:3128: error: (Each undeclared identifier is reported only once
mksquashfs.c:3128: error: for each function it appears in.)
mksquashfs.c:3128: error: ENOTDIR undeclared (first use in this function)
mksquashfs.c: In function main:
mksquashfs.c:3858: error: ENOENT undeclared (first use in this function)
make: *** [mksquashfs.o] Error 1
[mbtc37@magma-ostg squashfs-tools]$
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello

Make a folder /include inside /usr
Put the source files/folders inside /usr/include
Begin the make command inside /usr/include


Great is our GOD.
:)
rionroc
woolmilkporc ,

Done . Thanks a ton .
Welcome!
Have fun and success!
Cheers,
wmp