From: "Toni Mirabete i Terés" <amirabet@pie.xtec.es>
To: linux-hotplug@vger.kernel.org
Subject: Re: Error compiling udev with USE_KLIBC=true
Date: Sun, 13 Feb 2005 23:55:55 +0000 [thread overview]
Message-ID: <200502140055.55930.amirabet@pie.xtec.es> (raw)
In-Reply-To: <200502122100.41793.amirabet@pie.xtec.es>
[-- 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
prev parent reply other threads:[~2005-02-13 23:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200502140055.55930.amirabet@pie.xtec.es \
--to=amirabet@pie.xtec.es \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).