Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: Gentoo User <gentoo-user@l.g.o>
Subject: [gentoo-user] LVM2 compile error. Clock_gettime
Date: Wed, 26 Jun 2013 04:59:14
Message-Id: 51CA7510.6000107@gmail.com
1 I can't seem to get lvm2 to compile. I get this error:
2
3 FILE=`echo lvchange.d | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \
4 DEPS=`echo ../make.tmpl ../VERSION ../Makefile
5 ../include/.symlinks_created | sed -e 's/\\//\\\\\\//g'`; \
6 x86_64-pc-linux-gnu-gcc -MM -I. -I../include
7 -DLVM_SHARED_PATH=\"/usr/sbin/lvm\" -DHAVE_CONFIG_H -DDM_IOCTLS -o
8 lvchange.d lvchange.c; \
9 sed -i "s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g" lvchange.d; \
10 [ -s lvchange.d ] || rm -f lvchange.d
11 /bin/mkdir -p ./; \
12 set -e; \
13 FILE=`echo formats.d | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \
14 DEPS=`echo ../make.tmpl ../VERSION ../Makefile
15 ../include/.symlinks_created | sed -e 's/\\//\\\\\\//g'`; \
16 x86_64-pc-linux-gnu-gcc -MM -I. -I../include
17 -DLVM_SHARED_PATH=\"/usr/sbin/lvm\" -DHAVE_CONFIG_H -DDM_IOCTLS -o
18 formats.d formats.c; \
19 sed -i "s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g" formats.d; \
20 [ -s formats.d ] || rm -f formats.d
21 /bin/mkdir -p ./; \
22 set -e; \
23 FILE=`echo dumpconfig.d | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \
24 DEPS=`echo ../make.tmpl ../VERSION ../Makefile
25 ../include/.symlinks_created | sed -e 's/\\//\\\\\\//g'`; \
26 x86_64-pc-linux-gnu-gcc -MM -I. -I../include
27 -DLVM_SHARED_PATH=\"/usr/sbin/lvm\" -DHAVE_CONFIG_H -DDM_IOCTLS -o
28 dumpconfig.d dumpconfig.c; \
29 sed -i "s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g"
30 dumpconfig.d; \
31 [ -s dumpconfig.d ] || rm -f dumpconfig.d
32 make[1]: Leaving directory
33 `/var/tmp/portage/sys-fs/lvm2-2.02.98/work/LVM2.2.02.98/tools'
34 make[1]: Entering directory
35 `/var/tmp/portage/sys-fs/lvm2-2.02.98/work/LVM2.2.02.98/tools'
36 x86_64-pc-linux-gnu-gcc -c -I. -I../include
37 -DLVM_SHARED_PATH=\"/usr/sbin/lvm\" -DHAVE_CONFIG_H -DDM_IOCTLS -Wall
38 -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes
39 -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn
40 -Wformat-security -Wredundant-decls -Wpointer-arith -march=native -O2
41 -pipe -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC
42 -O2 dmsetup.c -o dmsetup.o
43 x86_64-pc-linux-gnu-gcc -shared -Wl,-soname,libdevmapper-event.so.1.02 \
44 -march=native -O2 -pipe -march=native -O2 -pipe -fPIC -O2
45 -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2
46 -Wl,-O1 -Wl,--as-needed -Wl,--version-script,.export.sym -L../../libdm
47 -L../../lib -L../../libdaemon/client -L../../daemons/dmeventd
48 libdevmapper-event.o -ldevmapper -o libdevmapper-event.so.1.02
49 rm -f libdevmapper-event.a
50 x86_64-pc-linux-gnu-ar rs libdevmapper-event.a libdevmapper-event.o
51 x86_64-pc-linux-gnu-ar: creating libdevmapper-event.a
52 ln -s -f libdevmapper-event.so.1.02 libdevmapper-event.so
53 x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -march=native -O2 -pipe
54 -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe
55 -fPIC -O2 -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -O2 -L./libdm
56 -L./lib -L./libdaemon/client -L./daemons/dmeventd -Wl,-O1
57 -Wl,--as-needed -O2 -L../libdm -L../lib -L../libdaemon/client
58 -L../daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../../libdm
59 -L../../lib -L../../libdaemon/client -L../../daemons/dmeventd
60 -Wl,--export-dynamic -L. -o dmeventd dmeventd.o \
61 -ldl -ldevmapper-event -lpthread -ldevmapper -rdynamic
62 x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -march=native -O2 -pipe
63 -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe
64 -fPIC -O2 -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -O2 -L./libdm
65 -L./lib -L./libdaemon/client -L./daemons/dmeventd -Wl,-O1
66 -Wl,--as-needed -O2 -L../libdm -L../lib -L../libdaemon/client
67 -L../daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../../libdm
68 -L../../lib -L../../libdaemon/client -L../../daemons/dmeventd
69 -Wl,--export-dynamic -Wl,--no-export-dynamic -static -L.
70 -L../../libdm/ioctl -o dmeventd.static \
71 dmeventd.o -ldl -ldevmapper-event -lpthread -ldevmapper -ludev
72 dmeventd.o: In function `_register_for_event':
73 dmeventd.c:(.text+0xfb1): warning: Using 'dlopen' in statically linked
74 applications requires at runtime the shared libraries from the glibc
75 version used for linking
76 /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(libudev-util.o):
77 In function `util_lookup_group':
78 (.text+0x4d6): warning: Using 'getgrnam_r' in statically linked
79 applications requires at runtime the shared libraries from the glibc
80 version used for linking
81 /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(libudev-util.o):
82 In function `util_lookup_user':
83 (.text+0x3a3): warning: Using 'getpwnam_r' in statically linked
84 applications requires at runtime the shared libraries from the glibc
85 version used for linking
86 /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(util.o):
87 In function `now':
88 (.text+0x148): undefined reference to `clock_gettime'
89 collect2: ld returned 1 exit status
90 make[2]: *** [dmeventd.static] Error 1
91 make[2]: Leaving directory
92 `/var/tmp/portage/sys-fs/lvm2-2.02.98/work/LVM2.2.02.98/daemons/dmeventd'
93 make[1]: *** [dmeventd.device-mapper] Error 2
94 make[1]: Leaving directory
95 `/var/tmp/portage/sys-fs/lvm2-2.02.98/work/LVM2.2.02.98/daemons'
96 make: *** [daemons.device-mapper] Error 2
97 make: *** Waiting for unfinished jobs....
98 x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -march=native -O2 -pipe
99 -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -Wl,-O1 -Wl,--as-needed
100 -Wl,-O1 -Wl,--as-needed -O2 -L./libdm -L./lib -L./libdaemon/client
101 -L./daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../libdm -L../lib
102 -L../libdaemon/client -L../daemons/dmeventd -L../libdm \
103 -o dmsetup dmsetup.o -ldevmapper -ludev
104 x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -march=native -O2 -pipe
105 -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -Wl,-O1 -Wl,--as-needed
106 -Wl,-O1 -Wl,--as-needed -O2 -L./libdm -L./lib -L./libdaemon/client
107 -L./daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../libdm -L../lib
108 -L../libdaemon/client -L../daemons/dmeventd -Wl,--no-export-dynamic
109 -static -L../libdm/ioctl \
110 -o dmsetup.static dmsetup.o -ldevmapper -ludev -ludev
111 /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(libudev-util.o):
112 In function `util_lookup_group':
113 (.text+0x4d6): warning: Using 'getgrnam_r' in statically linked
114 applications requires at runtime the shared libraries from the glibc
115 version used for linking
116 /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(libudev-util.o):
117 In function `util_lookup_user':
118 (.text+0x3a3): warning: Using 'getpwnam_r' in statically linked
119 applications requires at runtime the shared libraries from the glibc
120 version used for linking
121 /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(util.o):
122 In function `now':
123 (.text+0x148): undefined reference to `clock_gettime'
124 collect2: ld returned 1 exit status
125 make[1]: *** [dmsetup.static] Error 1
126 make[1]: Leaving directory
127 `/var/tmp/portage/sys-fs/lvm2-2.02.98/work/LVM2.2.02.98/tools'
128 make: *** [tools.device-mapper] Error 2
129 * ERROR: sys-fs/lvm2-2.02.98 failed (compile phase):
130 * emake failed
131
132
133 The short error is this:
134
135 (.text+0x148): undefined reference to `clock_gettime'
136
137 I googled and it seems udev is supposed to deal with this. I'm using
138 eudev. I have tried a masked version of lvm2 to see if it has a fix but
139 same error. I'm on the latest eudev except for the *9999 version. This
140 is current version of eudev:
141
142 [IP-] [ ] sys-fs/eudev-1.0:0
143
144 Current installed gcc:
145
146 [IP-] [ ] sys-devel/gcc-4.4.7:4.4.7
147 [IP-] [ ] sys-devel/gcc-4.5.4:4.5.4
148 [IP-] [ ] sys-devel/gcc-4.6.3:4.6.3
149
150 I'm set to use 4.6.3 gcc according to gcc-config. This is part of a
151 emerge -e world hoping to fix the seamonkey/firefox issue, hoping.
152 Everything else compiled except googleearth and ppp. I'm not using
153 those at the moment so I'm not worried about those. Maybe later.
154
155 Thoughts? Ideas?
156
157 Dale
158
159 :-) :-)
160
161 --
162 I am only responsible for what I said ... Not for what you understood or how you interpreted my words!

Replies

Subject Author
Re: [gentoo-user] LVM2 compile error. Clock_gettime Samuli Suominen <ssuominen@g.o>