1 |
On 03/31/2011 02:25 AM, covici@××××××××××.com wrote: |
2 |
> Hi. I am trying to install a new gentoo install, its a 64-bit and I |
3 |
> have copied the world file from my old 32-bit install and I am chrooting |
4 |
> into the 64-bit install. |
5 |
> |
6 |
> Now things are not going too bad, but when I try to emerge lvm2, I get |
7 |
> the following: |
8 |
> |
9 |
> make[1]: Entering directory |
10 |
> `/var/tmp/portage/sys-fs/lvm2-2.02.84/work/LVM2.2.02.84/tools' |
11 |
> cc -c -I. -I../include -DLVM_SHARED_PATH=\"/usr/sbin/lvm\" |
12 |
> -DHAVE_CONFIG_H -DDM_IOCTLS -O2 -mtune=core2 -pipe -ggdb -O2 |
13 |
> -mtune=core2 -pipe -ggdb -fPIC -Wall -Wundef -Wshadow -Wcast-align |
14 |
> -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations |
15 |
> -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security |
16 |
> -Wredundant-decls -O2 -O2 -mtune=core2 -pipe -ggdb -fPIC -Wall -Wundef |
17 |
> -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes |
18 |
> -Wmissing-declarations -Wnested-externs |
19 |
> -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -O2 |
20 |
> dmsetup.c -o dmsetup.o |
21 |
> cc -O2 -mtune=core2 -pipe -ggdb -O2 -mtune=core2 -pipe -ggdb -fPIC -Wall |
22 |
> -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes |
23 |
> -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn |
24 |
> -Wformat-security -Wredundant-decls -O2 -O2 -mtune=core2 -pipe -ggdb |
25 |
> -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings |
26 |
> -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline |
27 |
> -Wmissing-noreturn -Wformat-security -Wredundant-decls -O2 -Wl,-O1 |
28 |
> -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic -L./libdm |
29 |
> -L./lib -L./daemons/dmeventd -Wl,-O1 -Wl,--as-needed |
30 |
> -Wl,--export-dynamic -L../libdm -L../lib -L../daemons/dmeventd |
31 |
> -L../libdm \ |
32 |
> -o dmsetup dmsetup.o -ldevmapper -ludev |
33 |
> cc -O2 -mtune=core2 -pipe -ggdb -O2 -mtune=core2 -pipe -ggdb -fPIC -Wall |
34 |
> -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes |
35 |
> -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn |
36 |
> -Wformat-security -Wredundant-decls -O2 -O2 -mtune=core2 -pipe -ggdb |
37 |
> -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings |
38 |
> -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline |
39 |
> -Wmissing-noreturn -Wformat-security -Wredundant-decls -O2 -Wl,-O1 |
40 |
> -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic -L./libdm |
41 |
> -L./lib -L./daemons/dmeventd -Wl,-O1 -Wl,--as-needed |
42 |
> -Wl,--export-dynamic -L../libdm -L../lib -L../daemons/dmeventd |
43 |
> -Wl,--no-export-dynamic -static -L../libdm/ioctl \ |
44 |
> -o dmsetup.static dmsetup.o -ldevmapper -ludev -ludev |
45 |
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/../../../../lib64/libudev.a(libudev-util.o): |
46 |
> In function `usec_monotonic': |
47 |
> (.text+0x24d): undefined reference to `clock_gettime' |
48 |
> collect2: ld returned 1 exit status |
49 |
> |
50 |
> I tried re-emerging udev, but no joy and I looked on Google, but librt |
51 |
> seems to be already there, so I wonder what is happening? |
52 |
|
53 |
That particular file is being linked -static so I'm assuming the linker |
54 |
would use /usr/lib64/librt.a instead of the dynamic one (I could be wrong). |
55 |
|
56 |
Do you actually have a /usr/lib64/librt.a? Does readelf -s librt.a show |
57 |
that clock_gettime is actually defined? I can't imagine why it wouldn't |
58 |
be, but that's all I can think of. |