linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Error compiling udev with USE_KLIBC=true
@ 2005-02-12 19:58 Toni Mirabete i Terés
  2005-02-12 20:18 ` Kay Sievers
  2005-02-13 23:55 ` Toni Mirabete i Terés
  0 siblings, 2 replies; 3+ messages in thread
From: Toni Mirabete i Terés @ 2005-02-12 19:58 UTC (permalink / raw)
  To: linux-hotplug

Hello

I can't compile udev with USE_KLIBC=true. 
I use gcc 3.4.3 from Debian.
This are commands I use, and what happens. ( ... means plenty of lines 
succesfully compiled ).


catix:/home/catix# tar xvfj udev-051.tar.bz2
catix:/home/catix# cd udev-051   
catix:/home/catix/udev-051# make USE_KLIBC=true USE_LOGúlse DEBUGúlse

...


gcc -g -O  -o sha1hash sha1hash.c
nm libc.so | \
        egrep '^[0-9a-fA-F]+ [ADRTW] ' | sort | ./sha1hash > libc.so.hash
cp -f libc.so klibc.so
strip --strip-all -R .comment -R .note klibc.so
rm -f klibc-??????????????????????.so
ln -f klibc.so klibc-`cat libc.so.hash`.so
gcc -Wp,-MT,interp.o,-MD,./.interp.o.d -mregparm=3 -DREGPARM=3 -march=i386 -Os 
-g -falign-functions=0 -falign-jumps=0 -falign-loops=0  -nostdinc 
-iwithprefix include -D__KLIBC__ -DBITSIZE2 -I../include/arch/i386 
-I../include/bits32 -I../include -I../linux/include -I../linux/include2 
-I../linux/include -DWITH_ERRLIST -W -Wall -Wpointer-arith -Wwrite-strings 
-Wstrict-prototypes -Winline -D__ASSEMBLY__ -DLIBDIR=\"/lib\" \
-DSOHASH=\"`cat libc.so.hash`\" \
        -c -o interp.o interp.S
make[2]: Leaving directory `/home/catix/udev-051/klibc/klibc'
make[1]: Leaving directory `/home/catix/udev-051/klibc'
Creating udev_version.h
Building ccdv
Precompiling udev.c:                                                  [ERROR]
  gcc -pipe -Os -fomit-frame-pointer -D_GNU_SOURCE -Wall -nostdinc -mregparm=3
  -DREGPARM=3 -march=i386 -Os -g -falign-functions=0 -falign-jumps=0 
-falign-lo
  ops=0 -D__KLIBC__ -fno-builtin-printf -I/home/catix/udev-051/klibc_fixups 
-in
  clude /home/catix/udev-051/klibc_fixups/klibc_fixups.h 
-I/home/catix/udev-051
  /klibc/include -I/home/catix/udev-051/klibc/include/arch/i386 
-I/home/catix/u
  dev-051/klibc/include/bits32 -I/usr/lib/gcc/i486-linux/3.4.4/include 
-I/lib/m
  odules/2.6.10-i386-ToniMirabete/build/include 
-I/home/catix/udev-051/libsysfs
  /sysfs -I/home/catix/udev-051/libsysfs -c -o udev.o udev.c
  En el fitxer inclos des 
de /lib/modules/2.6.10-i386-ToniMirabete/build/include/linux/posix_types.h:47,
                   des de /home/catix/udev-051/klibc/include/sys/types.h:15,
                   des de /home/catix/udev-051/klibc/include/unistd.h:11,
                   des de /home/catix/udev-051/klibc_fixups/klibc_fixups.h:7,
                   des de <command line>:4:
  /usr/lib/gcc/i486-linux/3.4.4/include/asm/posix_types.h:13:22: features.h: 
El fitxer o directori no existeix
  /usr/lib/gcc/i486-linux/3.4.4/include/asm/posix_types.h:29:36: avis: no 
newline at end of file
make: *** [udev.o] Error 1
catix:/home/catix/udev-051#              



Thanks

Toni


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error compiling udev with USE_KLIBC=true
  2005-02-12 19:58 Error compiling udev with USE_KLIBC=true Toni Mirabete i Terés
@ 2005-02-12 20:18 ` Kay Sievers
  2005-02-13 23:55 ` Toni Mirabete i Terés
  1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2005-02-12 20:18 UTC (permalink / raw)
  To: linux-hotplug

On Sat, 2005-02-12 at 21:00 +0100, Toni Mirabete i Terés wrote:
>Hello
>
>I can't compile udev with USE_KLIBC=true. 
>I use gcc 3.4.3 from Debian.
>This are commands I use, and what happens. ( ... means plenty of lines 
>succesfully compiled ).

>catix:/home/catix/udev-051# make USE_KLIBC=true USE_LOGúlse DEBUGúlse

>de /lib/modules/2.6.10-i386-ToniMirabete/build/include/linux/posix_types.h:47,

Try passing the absolute path to a kernel tree, which is known to compile:
  KERNEL_DIR=<>

Your installed kernel headers may not work.

Kay



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&opÌk
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error compiling udev with USE_KLIBC=true
  2005-02-12 19:58 Error compiling udev with USE_KLIBC=true Toni Mirabete i Terés
  2005-02-12 20:18 ` Kay Sievers
@ 2005-02-13 23:55 ` Toni Mirabete i Terés
  1 sibling, 0 replies; 3+ messages in thread
From: Toni Mirabete i Terés @ 2005-02-13 23:55 UTC (permalink / raw)
  To: linux-hotplug

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 5244 bytes --]

Hello

With gcc 3.4.4 and option KERNEL_DIR=/usr/src/linux-2.6.10 on a Debian SID 
installation (CATix 1.1 alfa2), complains with same error (features.h) 

With SuSE 9.2 (gcc 3.3.4) and next command:

make USE_KLIBC=true USE_LOGúlse DEBUGúlse 
KERNEL_DIR=/usr/src/linux-2.6.8-24.11

the error was:

gcc -g -O  -o sha1hash sha1hash.c
nm libc.so | \
        egrep '^[0-9a-fA-F]+ [ADRTW] ' | sort | ./sha1hash > libc.so.hash
cp -f libc.so klibc.so
strip --strip-all -R .comment -R .note klibc.so
rm -f klibc-??????????????????????.so
ln -f klibc.so klibc-`cat libc.so.hash`.so
gcc -Wp,-MT,interp.o,-MD,./.interp.o.d -Os -fno-asynchronous-unwind-tables 
-fomit-frame-pointer -falign-functions=0 -falign-jumps=0 -falign-loops=0 -m64 
-nostdinc -iwithprefix include -D__KLIBC__ -DBITSIZEd 
-I../include/arch/x86_64 -I../include/bits64 -I../include -I../linux/include 
-I../linux/include2 -I../linux/include -DWITH_ERRLIST -W -Wall 
-Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline -D__ASSEMBLY__ 
-DLIBDIR=\"/lib\" \
-DSOHASH=\"`cat libc.so.hash`\" \
        -c -o interp.o interp.S
make[2]: Leaving directory `/home/toni/udev-053/klibc/klibc'
make[1]: Leaving directory `/home/toni/udev-053/klibc'
Creating udev_version.h
Building ccdv
Precompiling udev.c:                                                  [OK]
Precompiling udev_utils.c:                                            [OK]
Precompiling udev_config.c:                                           [OK]
Precompiling udev_add.c:                                              [OK]
Precompiling udev_remove.c:                                           [OK]
Precompiling udev_start.c:                                            [OK]
Precompiling udev_sysfs.c:                                            [OK]
Precompiling udev_db.c:                                               [OK]
Precompiling udev_multiplex.c:                                        [OK]
Precompiling namedev.c:                                               [OK]
Precompiling namedev_parse.c:                                         [OK]
rm -f udev.a
Creating library udev.a:                                              [OK]
Running ranlib:                                                       [OK]
Precompiling sysfs_bus.c:                                             [OK]
Precompiling sysfs_class.c:                                           [OK]
Precompiling sysfs_device.c:                                          [OK]
Precompiling sysfs_dir.c:                                             [OK]
Precompiling sysfs_driver.c:                                          [OK]
Precompiling sysfs_utils.c:                                           [OK]
Precompiling dlist.c:                                                 [OK]
rm -f libsysfs/sysfs.a
Creating library sysfs.a:                                             [OK]
Running ranlib:                                                       [OK]
Precompiling klibc_fixups.c:                                          [OK]
rm -f klibc_fixups/klibc_fixups.a
Creating library klibc_fixups.a:                                      [OK]
Running ranlib:                                                       [OK]
sed -e "s:@udevdir@:/udev:" < udev.8.in > udev.8
Linking udev:                                                         [OK]
Running strip:                                                        [OK]
Precompiling udevsend.c:                                              [OK]
Linking udevsend:                                                     [OK]
Running strip:                                                        [OK]
Precompiling udevd.c:                                                 [OK]
  udevd.c: In function `main':
  udevd.c:729: warning: implicit declaration of function `__FD_ZERO'
  udevd.c:730: warning: implicit declaration of function `__FD_SET'
  udevd.c:745: warning: implicit declaration of function `__FD_ISSET'
Linking udevd:                                                        [ERROR]
  gcc --static --nostdlib -nostartfiles -nodefaultlibs -o 
udevd /home/toni/udev
  -053/klibc/klibc/crt0.o udevd.o udev.a libsysfs/sysfs.a 
klibc_fixups/klibc_fi
  xups.a /home/toni/udev-053/klibc/klibc/libc.a
  udevd.o(.text+0x3f8): En la función `main':
  : undefined reference to `__FD_ZERO'
  udevd.o(.text+0x408): En la función `main':
  : undefined reference to `__FD_SET'
  udevd.o(.text+0x418): En la función `main':
  : undefined reference to `__FD_SET'
  udevd.o(.text+0x46f): En la función `main':
  : undefined reference to `__FD_ISSET'
  udevd.o(.text+0x76e): En la función `main':
  : undefined reference to `__FD_ISSET'
  collect2: ld returned 1 exit status
make: *** [udevd] Error 1


Thanks Kay



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&opÌk
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-02-13 23:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-12 19:58 Error compiling udev with USE_KLIBC=true Toni Mirabete i Terés
2005-02-12 20:18 ` Kay Sievers
2005-02-13 23:55 ` Toni Mirabete i Terés

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).