Skip to contentSkip to conversation

compiling udev with klibc

DISCUSSION Robert Young 2 participants 2 messages Oct 18, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I have been trying to compile udev with klibc and keep getting the following problem with features.h not being found.

RobsPlace:/home/roberty/udev-039# make USE_KLIBC=true
Compiling udev_lib.c:                                                 
[ERROR]
  gcc -pipe -DUSE_SPINLOCKS -DINTEL_SPINLOCKS -DLOG -O1 -g -DDEBUG 
-D_GNU_SOURC
  E -Wall -nostdinc -mregparm=3 -DREGPARM=3 -march=i386 -Os -g 
-falign-function
  s=0 -falign-jumps=0 -falign-loops=0 -D__KLIBC__ -fno-builtin-printf 
-I/home/r
  oberty/udev-039/klibc/include 
-I/home/roberty/udev-039/klibc/include/arch/i38
  6 -I/home/roberty/udev-039/klibc/include/bits32 
-I/usr/lib/gcc-lib/i486-linux
  /3.3.5/include -I/lib/modules/2.6.9-x1/build/include 
-I/home/roberty/udev-039
  /libsysfs -c -o udev_lib.o udev_lib.c
  In file included from 
/lib/modules/2.6.9-x1/build/include/linux/posix_types.h
  :47,
                   from /home/roberty/udev-039/klibc/include/sys/types.h:15,
                   from /home/roberty/udev-039/klibc/include/unistd.h:11,
                   from /home/roberty/udev-039/klibc/include/stdio.h:11,
                   from udev_lib.c:23:
  /usr/lib/gcc-lib/i486-linux/3.3.5/include/asm/posix_types.h:13:22: 
features.h
  : No such file or directory
  /usr/lib/gcc-lib/i486-linux/3.3.5/include/asm/posix_types.h:29:36: 
warning: n
  o newline at end of file
make: *** [udev_lib.o] Error 1

Does anyone have any suggestions?

Thanks,

Rob

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 37 lines · Robert Young

Hi,

I have been trying to compile udev with klibc and keep getting the following problem with features.h not being found.

RobsPlace:/home/roberty/udev-039# make USE_KLIBC=true
Compiling udev_lib.c:                                                 
[ERROR]
 gcc -pipe -DUSE_SPINLOCKS -DINTEL_SPINLOCKS -DLOG -O1 -g -DDEBUG 
(quoted diff) +0 -6
-D_GNU_SOURC
 E -Wall -nostdinc -mregparm=3 -DREGPARM=3 -march=i386 -Os -g 
-falign-function
 s=0 -falign-jumps=0 -falign-loops=0 -D__KLIBC__ -fno-builtin-printf 
-I/home/r
 oberty/udev-039/klibc/include 
-I/home/roberty/udev-039/klibc/include/arch/i38
 6 -I/home/roberty/udev-039/klibc/include/bits32 
-I/usr/lib/gcc-lib/i486-linux
 /3.3.5/include -I/lib/modules/2.6.9-x1/build/include 
-I/home/roberty/udev-039
 /libsysfs -c -o udev_lib.o udev_lib.c
 In file included from 

/lib/modules/2.6.9-x1/build/include/linux/posix_types.h
:47,

                  from /home/roberty/udev-039/klibc/include/sys/types.h:15,
                  from /home/roberty/udev-039/klibc/include/unistd.h:11,
                  from /home/roberty/udev-039/klibc/include/stdio.h:11,
                  from udev_lib.c:23:

/usr/lib/gcc-lib/i486-linux/3.3.5/include/asm/posix_types.h:13:22:
features.h
: No such file or directory /usr/lib/gcc-lib/i486-linux/3.3.5/include/asm/posix_types.h:29:36:
warning: n
o newline at end of file
make: *** [udev_lib.o] Error 1

Quoted 1 line

Does anyone have any suggestions?

Maybe something is wrong with you kernel includes in /lib/...

You may try:
make spotless
make USE_KLIBC=true KERNEL_DIR=</clean/2.6/kernel>

Good luck,
Kay

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel