Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481334 - sys-freebsd/freebsd-cddl-9.2_rc1 fails to emerge because of missing libavl
Summary: sys-freebsd/freebsd-cddl-9.2_rc1 fails to emerge because of missing libavl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: AMD64 FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-16 15:44 UTC by KANATSU Minoru
Modified: 2013-08-19 15:10 UTC (History)
1 user (show)

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


Attachments
build log (build.log,354.49 KB, application/octet-stream)
2013-08-16 15:44 UTC, KANATSU Minoru
Details
output of emerge --info (emerge.info,4.10 KB, application/octet-stream)
2013-08-16 15:45 UTC, KANATSU Minoru
Details
sample patch for files/freebsd-cddl-9.2-underlink.patch (481334.patch,801 bytes, patch)
2013-08-16 17:01 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description KANATSU Minoru 2013-08-16 15:44:59 UTC
Created attachment 356224 [details]
build log

emerging sys-freebsd/freebsd-cddl-9.2_rc1 results in build error
(attach build log)
Comment 1 KANATSU Minoru 2013-08-16 15:45:37 UTC
Created attachment 356226 [details]
output of emerge --info
Comment 2 Yuta SATOH 2013-08-16 17:01:38 UTC
Created attachment 356236 [details, diff]
sample patch for files/freebsd-cddl-9.2-underlink.patch

After applying this patch, compile will succeed.
However, a warning is displayed.

# cd /var/tmp/portage/sys-freebsd/freebsd-cddl-9.2_rc1/temp
# grep libavl.so.2 build.log
building shared library libavl.so.2
/usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/../../../../x86_64-gentoo-freebsd9.0/bin/ld: warning: libavl.so.2, needed by /var/tmp/portage/sys-freebsd/freebsd-cddl-9.2_rc1/work/cddl/sbin/zfs/../../lib/libzfs/libzfs.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/../../../../x86_64-gentoo-freebsd9.0/bin/ld: warning: libavl.so.2, needed by /var/tmp/portage/sys-freebsd/freebsd-cddl-9.2_rc1/work/cddl/usr.bin/zinject/../../lib/libzfs/libzfs.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/../../../../x86_64-gentoo-freebsd9.0/bin/ld: warning: libavl.so.2, needed by /var/tmp/portage/sys-freebsd/freebsd-cddl-9.2_rc1/work/cddl/usr.sbin/zdb/../../lib/libzfs/libzfs.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/../../../../x86_64-gentoo-freebsd9.0/bin/ld: warning: libavl.so.2, needed by /var/tmp/portage/sys-freebsd/freebsd-cddl-9.2_rc1/work/cddl/usr.sbin/zhack/../../lib/libzfs/libzfs.so, not found (try using -rpath or -rpath-link)


After merge, seem to have found a libavl correctly.

e.g.)
# ldd /usr/sbin/zhack
/usr/sbin/zhack:
        libgeom.so.5 => /lib/libgeom.so.5 (0x80081e000)
        libm.so.5 => /lib/libm.so.5 (0x800a24000)
        libnvpair.so.2 => /lib/libnvpair.so.2 (0x800c47000)
        libthr.so.3 => /lib/libthr.so.3 (0x800e59000)
        libumem.so.2 => /lib/libumem.so.2 (0x80107d000)
        libuutil.so.2 => /lib/libuutil.so.2 (0x80127f000)
        libzfs_core.so.2 => /lib/libzfs_core.so.2 (0x801489000)
        libzfs.so.2 => /lib/libzfs.so.2 (0x80168e000)
        libzpool.so.2 => /lib/libzpool.so.2 (0x8018d3000)
        libc.so.7 => /lib/libc.so.7 (0x801c17000)
        libexpat.so.1 => /lib/libexpat.so.1 (0x801f7b000)
        libsbuf.so.6 => /lib/libsbuf.so.6 (0x8021a5000)
        libmd.so.5 => /lib/libmd.so.5 (0x8023a8000)
        libutil.so.9 => /lib/libutil.so.9 (0x8025b9000)
        libavl.so.2 => /lib/libavl.so.2 (0x8027cd000)
        libz.so.1 => /lib/libz.so.1 (0x8029d0000)
# zhack
error: no command specified
Usage: zhack [-c cachefile] [-d dir] <subcommand> <args> ...
where <subcommand> <args> is one of the following:

    feature stat <pool>
        print information about enabled features
    feature enable [-d desc] <pool> <feature>
        add a new enabled feature to the pool
        -d <desc> sets the feature's description
    feature ref [-md] <pool> <feature>
        change the refcount on the given feature
        -d decrease instead of increase the refcount
        -m add the feature to the label if increasing refcount

    <feature> : should be a feature guid
Comment 3 KANATSU Minoru 2013-08-17 04:15:21 UTC
Thank you for fast response

I confirmed emerging succeed with that patch.
Comment 4 Alexis Ballier gentoo-dev 2013-08-19 15:10:18 UTC
applied, thanks!