Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36014 - udev compilation error ld collect2
Summary: udev compilation error ld collect2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-17 11:55 UTC by jack_mort
Modified: 2003-12-19 15:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jack_mort 2003-12-17 11:55:07 UTC
Hi,

I wanted to take a look at udev, as devfs is now deprecated. So I typed "emerge udev", wich brought me sysfsutils-0.3.0 and udev-008. sysfsutils compiled fine, but udev failed with an ld "collect2" error which is reproduced every time I try to emerge udev :

gentoo root # emerge udev
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-fs/udev-008 to /
>>> md5 src_uri ;-) udev-008.tar.bz2
eutils
eutils
>>> Unpacking source...
>>> Unpacking udev-008.tar.bz2 to /var/tmp/portage/udev-008/work
>>> Source unpacked.
eutils
gcc -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays -pipe -Wall -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations  -fomit-frame-pointer -D_GNU_SOURCE -I   -c -o udev.o udev.c
/var/tmp/portage/udev-008/temp/ccT486Hw.o(.text+0xa3): dans la fonction 
Comment 1 jack_mort 2003-12-17 11:55:07 UTC
Hi,

I wanted to take a look at udev, as devfs is now deprecated. So I typed "emerge udev", wich brought me sysfsutils-0.3.0 and udev-008. sysfsutils compiled fine, but udev failed with an ld "collect2" error which is reproduced every time I try to emerge udev :

gentoo root # emerge udev
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-fs/udev-008 to /
>>> md5 src_uri ;-) udev-008.tar.bz2
eutils
eutils
>>> Unpacking source...
>>> Unpacking udev-008.tar.bz2 to /var/tmp/portage/udev-008/work
>>> Source unpacked.
eutils
gcc -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays -pipe -Wall -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations  -fomit-frame-pointer -D_GNU_SOURCE -I   -c -o udev.o udev.c
/var/tmp/portage/udev-008/temp/ccT486Hw.o(.text+0xa3): dans la fonction « main »:
: undefined reference to `udev_init_config'
/var/tmp/portage/udev-008/temp/ccT486Hw.o(.text+0xaf): dans la fonction « main »:
: undefined reference to `udevdb_init'
/var/tmp/portage/udev-008/temp/ccT486Hw.o(.text+0xbe): dans la fonction « main »:
: undefined reference to `namedev_init'
/var/tmp/portage/udev-008/temp/ccT486Hw.o(.text+0xfa): dans la fonction « main »:
: undefined reference to `udevdb_exit'
/var/tmp/portage/udev-008/temp/ccT486Hw.o(.text+0x111): dans la fonction « main »:
: undefined reference to `udev_remove_device'
/var/tmp/portage/udev-008/temp/ccT486Hw.o(.text+0x127): dans la fonction « main »:
: undefined reference to `udev_add_device'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [udev.o] Erreur 1
 
!!! ERROR: sys-fs/udev-008 failed.
!!! Function src_compile, Line 61, Exitcode 2
!!! (no error message)
 
Where is the problem ?

PS : I have /sys made and mounted well, and latest hotplug ebuild.

Reproducible: Always
Steps to Reproduce:
1. emerge udev
2.
3.

Actual Results:  
Unable to compile udev

Expected Results:  
Successful compilation of udev :-)

Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031212-r0,
2.6.0-test11-bk11)
=================================================================
System uname: 2.6.0-test11-bk11 i686 AMD Athlon(tm) XP 2700+
Gentoo Base System version 1.4.3.12
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr
-funroll-loops -falign-functions=4 -maccumulate-outgoing-args -ffast-math
-fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe
-fforce-addr -funroll-loops -falign-functions=4 -maccumulate-outgoing-args
-ffast-math -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache fixpackages sandbox"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo
ftp://ftp.easynet.nl/mirror/gentoo ftp://gentoo.linux.no/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm avi berkdb breakme cdr crypt cups dvd encode esd
foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg libg++ libwww lirc mad
mikmod mmx mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png
python quicktime readline samba sdl slang spell sse ssl svga tcpd truetype x86
xml2 xv zlib"
Comment 2 jack_mort 2003-12-18 01:11:11 UTC
I got udev-009 compiling fine (just modifying ebuild name to udev-009.ebuild).

I don't know where the problem is : 009 is the only version that wants to compile, all others fail.
Comment 3 SpanKY gentoo-dev 2003-12-19 14:44:19 UTC
009 is in portage now
Comment 4 jack_mort 2003-12-19 15:00:50 UTC
I also tried with the "official" ebuild from portage and it compiled fine. Good :-)