Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487746 - =sys-fs/zfs-0.6.2-r1 - Fails to build libzfs.so: undefined reference to `blkid_dev_iterate_end'
Summary: =sys-fs/zfs-0.6.2-r1 - Fails to build libzfs.so: undefined reference to `blki...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Richard Yao (RETIRED)
URL: https://github.com/zfsonlinux/zfs/com...
Whiteboard:
Keywords: PATCH
: 488314 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-12 08:38 UTC by Peter Volkov (RETIRED)
Modified: 2013-10-18 16:53 UTC (History)
1 user (show)

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 Peter Volkov (RETIRED) gentoo-dev 2013-10-12 08:38:54 UTC
Here sys-fs/zfs-0.6.2-r1 fails to build:

/bin/sh ../../libtool  --tag=CC --silent  --mode=link x86_64-pc-linux-gnu-gcc -Wall -Wstrict-prototypes -fno-str
ict-aliasing -Wno-unused-but-set-variable -DNDEBUG -O2 -pipe -pipe -march=native -mtune=native -ggdb -pthread -l
m -lz -lrt -ldl -luuid -lblkid -Wl,--as-needed,--hash-style=gnu -o zfs zfs_iter.o zfs_main.o ../../lib/libnvpair
/libnvpair.la ../../lib/libuutil/libuutil.la ../../lib/libzpool/libzpool.la ../../lib/libzfs/libzfs.la -luuid -l
uuid -lz -lz -lz 
../../lib/libzfs/.libs/libzfs.so: undefined reference to `blkid_dev_iterate_end'
../../lib/libzfs/.libs/libzfs.so: undefined reference to `blkid_dev_devname'
../../lib/libzfs/.libs/libzfs.so: undefined reference to `blkid_dev_iterate_begin'
../../lib/libzfs/.libs/libzfs.so: undefined reference to `blkid_put_cache'
../../lib/libzfs/.libs/libzfs.so: undefined reference to `blkid_dev_next'
../../lib/libzfs/.libs/libzfs.so: undefined reference to `blkid_get_cache'
../../lib/libzfs/.libs/libzfs.so: undefined reference to `blkid_probe_all'
../../lib/libzfs/.libs/libzfs.so: undefined reference to `blkid_dev_set_search'
collect2: error: ld returned 1 exit status
make[3]: *** [zfs] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-fs/zfs-0.6.2-r1/work/zfs-zfs-0.6.2/cmd/zfs'
make[2]: *** [all-recursive] Error 1


I found similar pull request upstream https://github.com/zfsonlinux/zfs/pull/1685 that references another request https://github.com/zfsonlinux/zfs/pull/1751 that was accepted and incorporates three fixes upstream. 

As I found 
https://github.com/zfsonlinux/zfs/commit/a6ce1ea - is not necessary
https://github.com/zfsonlinux/zfs/commit/1db7b9b - is already in our patchset
https://github.com/zfsonlinux/zfs/commit/31fc193 - and this one is missed. 

I've applied patch 31fc193 and build issue gone. Please, apply patch in the tree. Thanks.
Comment 1 Richard Yao (RETIRED) gentoo-dev 2013-10-14 14:39:07 UTC
This patch should have been in -r1, but it was omitted due to an error on my part. I will include it in -r2 in a day or two. Thanks for the report. :)
Comment 2 Mike Gilbert gentoo-dev 2013-10-18 15:16:54 UTC
*** Bug 488314 has been marked as a duplicate of this bug. ***
Comment 3 Richard Yao (RETIRED) gentoo-dev 2013-10-18 16:53:05 UTC
sys-fs/zfs-0.6.2-r2 is committed with this fix.