Re: [gentoo-user] LVM2 compile error. Clock_gettime
On Fri, 28 Jun 2013 21:44:34 -0500, Dale wrote: Other comments note that unsetting static allows it to build. Try unsetting the static flag for lvm2 in package.use, i.e... sys-fs/lvm2 -static Does that build for you? It might would but I can't recall WHY I set it to that. If I set it that way in package.use, which is rare for me, then I had to have a good reason. I need to start making notes on this stuff. ;-) You need static if you are using lvm in an initramfs. Whatever the reason, if you remove it the ebuild that told you to add it in the first place will remind you next time you update @world. -- Neil Bothwick There's too much blood in my caffeine system. signature.asc Description: PGP signature
Re: [gentoo-user] LVM2 compile error. Clock_gettime
Neil Bothwick wrote: On Fri, 28 Jun 2013 21:44:34 -0500, Dale wrote: Other comments note that unsetting static allows it to build. Try unsetting the static flag for lvm2 in package.use, i.e... sys-fs/lvm2 -static Does that build for you? It might would but I can't recall WHY I set it to that. If I set it that way in package.use, which is rare for me, then I had to have a good reason. I need to start making notes on this stuff. ;-) You need static if you are using lvm in an initramfs. Whatever the reason, if you remove it the ebuild that told you to add it in the first place will remind you next time you update @world. Now that you mention it, it may have been when the separate /usr init thingy was going on that I had to add it. That could be it. Well, if I have to upgrade before they have a fix, I'll give it a shot and see what happens. I suspect it will be fixed at some point and most likely in the next update anyway. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] LVM2 compile error. Clock_gettime
On Fri, Jun 28, 2013 at 09:44:34PM -0500, Dale wrote: Walter Dnes wrote: On Thu, Jun 27, 2013 at 07:39:39AM -0500, Dale wrote Someone else ran into the same thing and it appears they use udev. So switching wouldn't help anyway. https://bugs.gentoo.org/show_bug.cgi?id=370217 Your bug-report comment shows... sys-fs/lvm2-2.02.97-r1 USE=lvm1 readline static thin udev (-clvm) (-cman) (-selinux) -static-libs Other comments note that unsetting static allows it to build. Try unsetting the static flag for lvm2 in package.use, i.e... sys-fs/lvm2 -static Does that build for you? It might would but I can't recall WHY I set it to that. If I set it that way in package.use, which is rare for me, then I had to have a good reason. I need to start making notes on this stuff. ;-) It will likely be fixed pretty soon so as long as I don't have to upgrade, I should be OK with the one installed now. It was just a recompile from emerge -e world but I found it odd that it worked before but not the other day. If I have to tho, I'll keep that in mind. You might want to run enalyze rebuild use to get an idea of what USE flags you have which do not match the default settings. Over the course of time the defaults change, and our need for certain options change, so it's good to run this and check any USE flags for situations such as yours above, where one would say, I can't recall WHY I set it to that. If you can't find a reason then it's best to stick with the default settings most of the time. This is all that command will do on your system: mingdao@server ~ $ enalyze rebuild use -- Scanning installed packages for USE flag settings that do not match the default settings -- preparing pkgs for file entries - Saving file: /home/mingdao/package.use.test - Done Bruce -- Happy Penguin Computers ') 126 Fenco Drive ( \ Tupelo, MS 38801 ^^ supp...@happypenguincomputers.com 662-269-2706 662-205-6424 http://happypenguincomputers.com/ A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting
Re: [gentoo-user] LVM2 compile error. Clock_gettime
On Sat, Jun 29, 2013 at 04:53:47AM -0500, Dale wrote: Now that you mention it, it may have been when the separate /usr init thingy was going on that I had to add it. That could be it. Well, if I have to upgrade before they have a fix, I'll give it a shot and see what happens. I suspect it will be fixed at some point and most likely in the next update anyway. Dale You need to get over that it will be fixed at some point, and believe it when every one tells you that separate /usr without an initrd is working fine with present stable udev. Here's proof on a wee fileserver, which has neavuh had an initrd and always had a separate /usr: mingdao@server ~ $ eix sys-fs/udev [I] sys-fs/udev Available versions: 197-r8^t 200^t 204^t **^t {{acl doc +firmware-loader gudev hwdb introspection keymap +kmod +openrc selinux static-libs}} Installed versions: 204^t(02:40:22 PM 06/26/2013)(acl firmware-loader kmod openrc -doc -gudev -hwdb -introspection -keymap -selinux -static-libs) Homepage:http://www.freedesktop.org/wiki/Software/systemd Description: Linux dynamic and persistent device naming support (aka userspace devfs) [I] sys-fs/udev-init-scripts Available versions: 23^t 25^t 26^t **^t Installed versions: 26^t(02:40:36 PM 06/26/2013) Homepage:http://www.gentoo.org Description: udev startup scripts for openrc Found 2 matches. mingdao@server ~ $ df -hT Filesystem Type Size Used Avail Use% Mounted on rootfs rootfs2.0G 109M 1.9G 6% / /dev/rootxfs 2.0G 109M 1.9G 6% / devtmpfs devtmpfs 3.0G 4.0K 3.0G 1% /dev tmpfstmpfs 3.0G 592K 3.0G 1% /run shm tmpfs 3.0G 0 3.0G 0% /dev/shm /dev/mapper/system-var xfs10G 717M 9.3G 8% /var /dev/mapper/system-usr xfs10G 4.4G 5.7G 44% /usr /dev/mapper/system-home xfs 6.0G 5.8G 251M 96% /home /dev/mapper/storage-photos xfs 500G 19G 482G 4% /photos /dev/mapper/storage-backups xfs 500G 262G 239G 53% /backups /dev/mapper/storage-offload fuseblk 300G 234G 67G 78% /offload /dev/mapper/storage-peterxfs25G 1.7G 24G 7% /peter /dev/mapper/storage-jeremiah xfs10G 3.6G 6.5G 36% /jeremiah mingdao@server ~ $ ls -l /boot/ total 25156 lrwxrwxrwx 1 root root 17 Jan 10 13:26 System.map - System.map-3.4.24 -rw-r--r-- 1 root root 2205716 Jan 10 13:25 System.map-3.4.24 -rw-r--r-- 1 root root 1812882 Sep 6 2012 System.map-3.4.9-gentoo -rw-r--r-- 1 root root 1823240 Aug 9 2012 System.map-3.5.0 -rw-r--r-- 1 root root 1823619 Aug 16 2012 System.map-3.5.2 lrwxrwxrwx 1 root root 23 Dec 28 2012 System.map.old - System.map-3.4.9-gentoo -rw-r--r-- 1 root root 512 Feb 21 2012 boot.0800 -rw-r--r-- 1 root root 512 Feb 21 2012 boot.0810 -rw-r--r-- 1 root root 512 Feb 21 2012 boot.0820 -rw-r--r-- 1 root root 512 Feb 21 2012 boot.0830 lrwxrwxrwx 1 root root 13 Jan 10 13:26 config - config-3.4.24 -rw-r--r-- 1 root root 62528 Jan 10 13:25 config-3.4.24 -rw-r--r-- 1 root root 63522 Sep 6 2012 config-3.4.9-gentoo -rw-r--r-- 1 root root 64644 Aug 9 2012 config-3.5.0 -rw-r--r-- 1 root root 64644 Aug 16 2012 config-3.5.2 lrwxrwxrwx 1 root root 19 Dec 28 2012 config.old - config-3.4.9-gentoo lrwxrwxrwx 1 root root 14 Jan 10 13:25 vmlinuz - vmlinuz-3.4.24 -rw-r--r-- 1 root root 4671120 Jan 10 13:24 vmlinuz-3.4.24 -rw-r--r-- 1 root root 4349568 Sep 6 2012 vmlinuz-3.4.9-gentoo -rw-r--r-- 1 root root 4388464 Aug 9 2012 vmlinuz-3.5.0 -rw-r--r-- 1 root root 4390672 Aug 16 2012 vmlinuz-3.5.2 lrwxrwxrwx 1 root root 20 Dec 28 2012 vmlinuz.old - vmlinuz-3.4.9-gentoo mingdao@server ~ $ cat /etc/lilo.conf # Faster, but won't work on all systems: compact # Should work for most systems, and do not have the sector limit: lba32 default = Gentoo # MBR to install LILO to: boot = /dev/md0 raid-extra-boot = mbr-only map = /boot/.map install = /boot/boot-menu.b # Note that for lilo-22.5.5 or later you # do not need boot-{text,menu,bmp}.b in # /boot, as they are linked into the lilo # binary. menu-scheme=Wb prompt # If you always want to see the prompt with a 15 second timeout: timeout=50 append=panic=10 nomce dolvm domdadm rootfstype=xfs # # End LILO global section # # # Linux bootable partition config begins # image = /boot/vmlinuz root = /dev/md0 label = Gentoo read-only # Partitions should be mounted read-only for checking image = /boot/vmlinuz.old root = /dev/md0 label = Gentoo-def read-only # Partitions should be mounted read-only for checking # # Linux bootable partition config ends # mingdao@server ~ $ Get over it and go back to udev :-)
Re: [gentoo-user] LVM2 compile error. Clock_gettime
Bruce Hill wrote: On Sat, Jun 29, 2013 at 04:53:47AM -0500, Dale wrote: Now that you mention it, it may have been when the separate /usr init thingy was going on that I had to add it. That could be it. Well, if I have to upgrade before they have a fix, I'll give it a shot and see what happens. I suspect it will be fixed at some point and most likely in the next update anyway. Dale You need to get over that it will be fixed at some point, and believe it when every one tells you that separate /usr without an initrd is working fine with present stable udev. Here's proof on a wee fileserver, which has neavuh had an initrd and always had a separate /usr: mingdao@server ~ $ eix sys-fs/udev [I] sys-fs/udev Available versions: 197-r8^t 200^t 204^t **^t {{acl doc +firmware-loader gudev hwdb introspection keymap +kmod +openrc selinux static-libs}} Installed versions: 204^t(02:40:22 PM 06/26/2013)(acl firmware-loader kmod openrc -doc -gudev -hwdb -introspection -keymap -selinux -static-libs) Homepage:http://www.freedesktop.org/wiki/Software/systemd Description: Linux dynamic and persistent device naming support (aka userspace devfs) [I] sys-fs/udev-init-scripts Available versions: 23^t 25^t 26^t **^t Installed versions: 26^t(02:40:36 PM 06/26/2013) Homepage:http://www.gentoo.org Description: udev startup scripts for openrc Found 2 matches. mingdao@server ~ $ df -hT Filesystem Type Size Used Avail Use% Mounted on rootfs rootfs2.0G 109M 1.9G 6% / /dev/rootxfs 2.0G 109M 1.9G 6% / devtmpfs devtmpfs 3.0G 4.0K 3.0G 1% /dev tmpfstmpfs 3.0G 592K 3.0G 1% /run shm tmpfs 3.0G 0 3.0G 0% /dev/shm /dev/mapper/system-var xfs10G 717M 9.3G 8% /var /dev/mapper/system-usr xfs10G 4.4G 5.7G 44% /usr /dev/mapper/system-home xfs 6.0G 5.8G 251M 96% /home /dev/mapper/storage-photos xfs 500G 19G 482G 4% /photos /dev/mapper/storage-backups xfs 500G 262G 239G 53% /backups /dev/mapper/storage-offload fuseblk 300G 234G 67G 78% /offload /dev/mapper/storage-peterxfs25G 1.7G 24G 7% /peter /dev/mapper/storage-jeremiah xfs10G 3.6G 6.5G 36% /jeremiah mingdao@server ~ $ ls -l /boot/ total 25156 lrwxrwxrwx 1 root root 17 Jan 10 13:26 System.map - System.map-3.4.24 -rw-r--r-- 1 root root 2205716 Jan 10 13:25 System.map-3.4.24 -rw-r--r-- 1 root root 1812882 Sep 6 2012 System.map-3.4.9-gentoo -rw-r--r-- 1 root root 1823240 Aug 9 2012 System.map-3.5.0 -rw-r--r-- 1 root root 1823619 Aug 16 2012 System.map-3.5.2 lrwxrwxrwx 1 root root 23 Dec 28 2012 System.map.old - System.map-3.4.9-gentoo -rw-r--r-- 1 root root 512 Feb 21 2012 boot.0800 -rw-r--r-- 1 root root 512 Feb 21 2012 boot.0810 -rw-r--r-- 1 root root 512 Feb 21 2012 boot.0820 -rw-r--r-- 1 root root 512 Feb 21 2012 boot.0830 lrwxrwxrwx 1 root root 13 Jan 10 13:26 config - config-3.4.24 -rw-r--r-- 1 root root 62528 Jan 10 13:25 config-3.4.24 -rw-r--r-- 1 root root 63522 Sep 6 2012 config-3.4.9-gentoo -rw-r--r-- 1 root root 64644 Aug 9 2012 config-3.5.0 -rw-r--r-- 1 root root 64644 Aug 16 2012 config-3.5.2 lrwxrwxrwx 1 root root 19 Dec 28 2012 config.old - config-3.4.9-gentoo lrwxrwxrwx 1 root root 14 Jan 10 13:25 vmlinuz - vmlinuz-3.4.24 -rw-r--r-- 1 root root 4671120 Jan 10 13:24 vmlinuz-3.4.24 -rw-r--r-- 1 root root 4349568 Sep 6 2012 vmlinuz-3.4.9-gentoo -rw-r--r-- 1 root root 4388464 Aug 9 2012 vmlinuz-3.5.0 -rw-r--r-- 1 root root 4390672 Aug 16 2012 vmlinuz-3.5.2 lrwxrwxrwx 1 root root 20 Dec 28 2012 vmlinuz.old - vmlinuz-3.4.9-gentoo mingdao@server ~ $ cat /etc/lilo.conf # Faster, but won't work on all systems: compact # Should work for most systems, and do not have the sector limit: lba32 default = Gentoo # MBR to install LILO to: boot = /dev/md0 raid-extra-boot = mbr-only map = /boot/.map install = /boot/boot-menu.b # Note that for lilo-22.5.5 or later you # do not need boot-{text,menu,bmp}.b in # /boot, as they are linked into the lilo # binary. menu-scheme=Wb prompt # If you always want to see the prompt with a 15 second timeout: timeout=50 append=panic=10 nomce dolvm domdadm rootfstype=xfs # # End LILO global section # # # Linux bootable partition config begins # image = /boot/vmlinuz root = /dev/md0 label = Gentoo read-only # Partitions should be mounted read-only for checking image = /boot/vmlinuz.old root = /dev/md0 label = Gentoo-def read-only # Partitions should be mounted read-only for
Re: [gentoo-user] LVM2 compile error. Clock_gettime
Bruce Hill wrote: You might want to run enalyze rebuild use to get an idea of what USE flags you have which do not match the default settings. Over the course of time the defaults change, and our need for certain options change, so it's good to run this and check any USE flags for situations such as yours above, where one would say, I can't recall WHY I set it to that. If you can't find a reason then it's best to stick with the default settings most of the time. This is all that command will do on your system: mingdao@server ~ $ enalyze rebuild use -- Scanning installed packages for USE flag settings that do not match the default settings -- preparing pkgs for file entries - Saving file: /home/mingdao/package.use.test - Done Bruce Ran that and the list is actually pretty short. I go with defaults unless it is something that is specific to my setup. Such as -gnome or kde since I don't use the former but do use the later. Sometimes when I emerge something that conflicts, I have to pick one over the other and portage lets me know that. That usually goes in package.use which is also a small file. So, doesn't seem to help much here. Did find a new command tho. ;-) Thanks Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] LVM2 compile error. Clock_gettime
On Thu, Jun 27, 2013 at 07:39:39AM -0500, Dale wrote Someone else ran into the same thing and it appears they use udev. So switching wouldn't help anyway. https://bugs.gentoo.org/show_bug.cgi?id=370217 Your bug-report comment shows... sys-fs/lvm2-2.02.97-r1 USE=lvm1 readline static thin udev (-clvm) (-cman) (-selinux) -static-libs Other comments note that unsetting static allows it to build. Try unsetting the static flag for lvm2 in package.use, i.e... sys-fs/lvm2 -static Does that build for you? -- Walter Dnes waltd...@waltdnes.org I don't run desktop environments; I run useful applications
Re: [gentoo-user] LVM2 compile error. Clock_gettime
Walter Dnes wrote: On Thu, Jun 27, 2013 at 07:39:39AM -0500, Dale wrote Someone else ran into the same thing and it appears they use udev. So switching wouldn't help anyway. https://bugs.gentoo.org/show_bug.cgi?id=370217 Your bug-report comment shows... sys-fs/lvm2-2.02.97-r1 USE=lvm1 readline static thin udev (-clvm) (-cman) (-selinux) -static-libs Other comments note that unsetting static allows it to build. Try unsetting the static flag for lvm2 in package.use, i.e... sys-fs/lvm2 -static Does that build for you? It might would but I can't recall WHY I set it to that. If I set it that way in package.use, which is rare for me, then I had to have a good reason. I need to start making notes on this stuff. ;-) It will likely be fixed pretty soon so as long as I don't have to upgrade, I should be OK with the one installed now. It was just a recompile from emerge -e world but I found it odd that it worked before but not the other day. If I have to tho, I'll keep that in mind. Thanks much. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] LVM2 compile error. Clock_gettime
Samuli Suominen wrote: sys-fs/udev-197, 200, 204. --- will install to / instead of /usr so it will work with sep. /usr just like eudev does, or just like udev-171 used to basically the only thing to look out for is the network interface names, you can add extra entry to grub that boots with net.ifnames=0 kernel parameter, or create empty file /etc/udev/rules.d/80-net-name-slot.rules if you don't like the new names Someone else ran into the same thing and it appears they use udev. So switching wouldn't help anyway. https://bugs.gentoo.org/show_bug.cgi?id=370217 Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] LVM2 compile error. Clock_gettime
Samuli Suominen wrote: On 26/06/13 07:58, Dale wrote: I can't seem to get lvm2 to compile. I get this error: FILE=`echo lvchange.d | sed 's/\\//\\//g;s/\\.d//g'`; \ DEPS=`echo ../make.tmpl ../VERSION ../Makefile ../include/.symlinks_created | sed -e 's/\\//\\//g'`; \ x86_64-pc-linux-gnu-gcc -MM -I. -I../include -DLVM_SHARED_PATH=\/usr/sbin/lvm\ -DHAVE_CONFIG_H -DDM_IOCTLS -o lvchange.d lvchange.c; \ sed -i s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g lvchange.d; \ [ -s lvchange.d ] || rm -f lvchange.d /bin/mkdir -p ./; \ set -e; \ FILE=`echo formats.d | sed 's/\\//\\//g;s/\\.d//g'`; \ DEPS=`echo ../make.tmpl ../VERSION ../Makefile ../include/.symlinks_created | sed -e 's/\\//\\//g'`; \ x86_64-pc-linux-gnu-gcc -MM -I. -I../include -DLVM_SHARED_PATH=\/usr/sbin/lvm\ -DHAVE_CONFIG_H -DDM_IOCTLS -o formats.d formats.c; \ sed -i s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g formats.d; \ [ -s formats.d ] || rm -f formats.d /bin/mkdir -p ./; \ set -e; \ FILE=`echo dumpconfig.d | sed 's/\\//\\//g;s/\\.d//g'`; \ DEPS=`echo ../make.tmpl ../VERSION ../Makefile ../include/.symlinks_created | sed -e 's/\\//\\//g'`; \ x86_64-pc-linux-gnu-gcc -MM -I. -I../include -DLVM_SHARED_PATH=\/usr/sbin/lvm\ -DHAVE_CONFIG_H -DDM_IOCTLS -o dumpconfig.d dumpconfig.c; \ sed -i s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g dumpconfig.d; \ [ -s dumpconfig.d ] || rm -f dumpconfig.d make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.98/work/LVM2.2.02.98/tools' make[1]: Entering directory `/var/tmp/portage/sys-fs/lvm2-2.02.98/work/LVM2.2.02.98/tools' x86_64-pc-linux-gnu-gcc -c -I. -I../include -DLVM_SHARED_PATH=\/usr/sbin/lvm\ -DHAVE_CONFIG_H -DDM_IOCTLS -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -Wpointer-arith -march=native -O2 -pipe -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 dmsetup.c -o dmsetup.o x86_64-pc-linux-gnu-gcc -shared -Wl,-soname,libdevmapper-event.so.1.02 \ -march=native -O2 -pipe -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -Wl,-O1 -Wl,--as-needed -Wl,--version-script,.export.sym -L../../libdm -L../../lib -L../../libdaemon/client -L../../daemons/dmeventd libdevmapper-event.o -ldevmapper -o libdevmapper-event.so.1.02 rm -f libdevmapper-event.a x86_64-pc-linux-gnu-ar rs libdevmapper-event.a libdevmapper-event.o x86_64-pc-linux-gnu-ar: creating libdevmapper-event.a ln -s -f libdevmapper-event.so.1.02 libdevmapper-event.so x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -O2 -L./libdm -L./lib -L./libdaemon/client -L./daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../libdm -L../lib -L../libdaemon/client -L../daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../../libdm -L../../lib -L../../libdaemon/client -L../../daemons/dmeventd -Wl,--export-dynamic -L. -o dmeventd dmeventd.o \ -ldl -ldevmapper-event -lpthread -ldevmapper -rdynamic x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -O2 -L./libdm -L./lib -L./libdaemon/client -L./daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../libdm -L../lib -L../libdaemon/client -L../daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../../libdm -L../../lib -L../../libdaemon/client -L../../daemons/dmeventd -Wl,--export-dynamic -Wl,--no-export-dynamic -static -L. -L../../libdm/ioctl -o dmeventd.static \ dmeventd.o -ldl -ldevmapper-event -lpthread -ldevmapper -ludev dmeventd.o: In function `_register_for_event': dmeventd.c:(.text+0xfb1): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(libudev-util.o): In function `util_lookup_group': (.text+0x4d6): warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(libudev-util.o): In function `util_lookup_user': (.text+0x3a3): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(util.o): In function `now': (.text+0x148): undefined reference to `clock_gettime' collect2: ld returned 1 exit status make[2]: *** [dmeventd.static] Error 1 make[2]: Leaving directory
Re: [gentoo-user] LVM2 compile error. Clock_gettime
On 26/06/13 09:31, Dale wrote: Samuli Suominen wrote: On 26/06/13 07:58, Dale wrote: I can't seem to get lvm2 to compile. I get this error: FILE=`echo lvchange.d | sed 's/\\//\\//g;s/\\.d//g'`; \ DEPS=`echo ../make.tmpl ../VERSION ../Makefile ../include/.symlinks_created | sed -e 's/\\//\\//g'`; \ x86_64-pc-linux-gnu-gcc -MM -I. -I../include -DLVM_SHARED_PATH=\/usr/sbin/lvm\ -DHAVE_CONFIG_H -DDM_IOCTLS -o lvchange.d lvchange.c; \ sed -i s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g lvchange.d; \ [ -s lvchange.d ] || rm -f lvchange.d /bin/mkdir -p ./; \ set -e; \ FILE=`echo formats.d | sed 's/\\//\\//g;s/\\.d//g'`; \ DEPS=`echo ../make.tmpl ../VERSION ../Makefile ../include/.symlinks_created | sed -e 's/\\//\\//g'`; \ x86_64-pc-linux-gnu-gcc -MM -I. -I../include -DLVM_SHARED_PATH=\/usr/sbin/lvm\ -DHAVE_CONFIG_H -DDM_IOCTLS -o formats.d formats.c; \ sed -i s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g formats.d; \ [ -s formats.d ] || rm -f formats.d /bin/mkdir -p ./; \ set -e; \ FILE=`echo dumpconfig.d | sed 's/\\//\\//g;s/\\.d//g'`; \ DEPS=`echo ../make.tmpl ../VERSION ../Makefile ../include/.symlinks_created | sed -e 's/\\//\\//g'`; \ x86_64-pc-linux-gnu-gcc -MM -I. -I../include -DLVM_SHARED_PATH=\/usr/sbin/lvm\ -DHAVE_CONFIG_H -DDM_IOCTLS -o dumpconfig.d dumpconfig.c; \ sed -i s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g dumpconfig.d; \ [ -s dumpconfig.d ] || rm -f dumpconfig.d make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.98/work/LVM2.2.02.98/tools' make[1]: Entering directory `/var/tmp/portage/sys-fs/lvm2-2.02.98/work/LVM2.2.02.98/tools' x86_64-pc-linux-gnu-gcc -c -I. -I../include -DLVM_SHARED_PATH=\/usr/sbin/lvm\ -DHAVE_CONFIG_H -DDM_IOCTLS -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -Wpointer-arith -march=native -O2 -pipe -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 dmsetup.c -o dmsetup.o x86_64-pc-linux-gnu-gcc -shared -Wl,-soname,libdevmapper-event.so.1.02 \ -march=native -O2 -pipe -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -Wl,-O1 -Wl,--as-needed -Wl,--version-script,.export.sym -L../../libdm -L../../lib -L../../libdaemon/client -L../../daemons/dmeventd libdevmapper-event.o -ldevmapper -o libdevmapper-event.so.1.02 rm -f libdevmapper-event.a x86_64-pc-linux-gnu-ar rs libdevmapper-event.a libdevmapper-event.o x86_64-pc-linux-gnu-ar: creating libdevmapper-event.a ln -s -f libdevmapper-event.so.1.02 libdevmapper-event.so x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -O2 -L./libdm -L./lib -L./libdaemon/client -L./daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../libdm -L../lib -L../libdaemon/client -L../daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../../libdm -L../../lib -L../../libdaemon/client -L../../daemons/dmeventd -Wl,--export-dynamic -L. -o dmeventd dmeventd.o \ -ldl -ldevmapper-event -lpthread -ldevmapper -rdynamic x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -O2 -L./libdm -L./lib -L./libdaemon/client -L./daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../libdm -L../lib -L../libdaemon/client -L../daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../../libdm -L../../lib -L../../libdaemon/client -L../../daemons/dmeventd -Wl,--export-dynamic -Wl,--no-export-dynamic -static -L. -L../../libdm/ioctl -o dmeventd.static \ dmeventd.o -ldl -ldevmapper-event -lpthread -ldevmapper -ludev dmeventd.o: In function `_register_for_event': dmeventd.c:(.text+0xfb1): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(libudev-util.o): In function `util_lookup_group': (.text+0x4d6): warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(libudev-util.o): In function `util_lookup_user': (.text+0x3a3): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(util.o): In function `now': (.text+0x148): undefined reference to `clock_gettime' collect2: ld returned 1 exit status make[2]: *** [dmeventd.static] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.98/work/LVM2.2.02.98/daemons/dmeventd' make[1]: *** [dmeventd.device-mapper] Error 2
Re: [gentoo-user] LVM2 compile error. Clock_gettime
On 26/06/13 07:58, Dale wrote: I can't seem to get lvm2 to compile. I get this error: FILE=`echo lvchange.d | sed 's/\\//\\//g;s/\\.d//g'`; \ DEPS=`echo ../make.tmpl ../VERSION ../Makefile ../include/.symlinks_created | sed -e 's/\\//\\//g'`; \ x86_64-pc-linux-gnu-gcc -MM -I. -I../include -DLVM_SHARED_PATH=\/usr/sbin/lvm\ -DHAVE_CONFIG_H -DDM_IOCTLS -o lvchange.d lvchange.c; \ sed -i s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g lvchange.d; \ [ -s lvchange.d ] || rm -f lvchange.d /bin/mkdir -p ./; \ set -e; \ FILE=`echo formats.d | sed 's/\\//\\//g;s/\\.d//g'`; \ DEPS=`echo ../make.tmpl ../VERSION ../Makefile ../include/.symlinks_created | sed -e 's/\\//\\//g'`; \ x86_64-pc-linux-gnu-gcc -MM -I. -I../include -DLVM_SHARED_PATH=\/usr/sbin/lvm\ -DHAVE_CONFIG_H -DDM_IOCTLS -o formats.d formats.c; \ sed -i s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g formats.d; \ [ -s formats.d ] || rm -f formats.d /bin/mkdir -p ./; \ set -e; \ FILE=`echo dumpconfig.d | sed 's/\\//\\//g;s/\\.d//g'`; \ DEPS=`echo ../make.tmpl ../VERSION ../Makefile ../include/.symlinks_created | sed -e 's/\\//\\//g'`; \ x86_64-pc-linux-gnu-gcc -MM -I. -I../include -DLVM_SHARED_PATH=\/usr/sbin/lvm\ -DHAVE_CONFIG_H -DDM_IOCTLS -o dumpconfig.d dumpconfig.c; \ sed -i s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g dumpconfig.d; \ [ -s dumpconfig.d ] || rm -f dumpconfig.d make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.98/work/LVM2.2.02.98/tools' make[1]: Entering directory `/var/tmp/portage/sys-fs/lvm2-2.02.98/work/LVM2.2.02.98/tools' x86_64-pc-linux-gnu-gcc -c -I. -I../include -DLVM_SHARED_PATH=\/usr/sbin/lvm\ -DHAVE_CONFIG_H -DDM_IOCTLS -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -Wpointer-arith -march=native -O2 -pipe -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 dmsetup.c -o dmsetup.o x86_64-pc-linux-gnu-gcc -shared -Wl,-soname,libdevmapper-event.so.1.02 \ -march=native -O2 -pipe -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -Wl,-O1 -Wl,--as-needed -Wl,--version-script,.export.sym -L../../libdm -L../../lib -L../../libdaemon/client -L../../daemons/dmeventd libdevmapper-event.o -ldevmapper -o libdevmapper-event.so.1.02 rm -f libdevmapper-event.a x86_64-pc-linux-gnu-ar rs libdevmapper-event.a libdevmapper-event.o x86_64-pc-linux-gnu-ar: creating libdevmapper-event.a ln -s -f libdevmapper-event.so.1.02 libdevmapper-event.so x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -O2 -L./libdm -L./lib -L./libdaemon/client -L./daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../libdm -L../lib -L../libdaemon/client -L../daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../../libdm -L../../lib -L../../libdaemon/client -L../../daemons/dmeventd -Wl,--export-dynamic -L. -o dmeventd dmeventd.o \ -ldl -ldevmapper-event -lpthread -ldevmapper -rdynamic x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -march=native -O2 -pipe -fPIC -O2 -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -O2 -L./libdm -L./lib -L./libdaemon/client -L./daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../libdm -L../lib -L../libdaemon/client -L../daemons/dmeventd -Wl,-O1 -Wl,--as-needed -O2 -L../../libdm -L../../lib -L../../libdaemon/client -L../../daemons/dmeventd -Wl,--export-dynamic -Wl,--no-export-dynamic -static -L. -L../../libdm/ioctl -o dmeventd.static \ dmeventd.o -ldl -ldevmapper-event -lpthread -ldevmapper -ludev dmeventd.o: In function `_register_for_event': dmeventd.c:(.text+0xfb1): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(libudev-util.o): In function `util_lookup_group': (.text+0x4d6): warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(libudev-util.o): In function `util_lookup_user': (.text+0x3a3): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(util.o): In function `now': (.text+0x148): undefined reference to `clock_gettime' collect2: ld returned 1 exit status make[2]: *** [dmeventd.static] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.98/work/LVM2.2.02.98/daemons/dmeventd' make[1]: *** [dmeventd.device-mapper] Error 2 make[1]: Leaving directory