zfsonlinux/zfs — Issue #499: build error with kernel 3.1.5
Author: devsk
Created: 2011-12-16 16:04:50+00:00
State: open

Does anybody know why a minor version upgrade broke the build? I would tend to believe the kernel APIs would be stable over minor changes...:( Are we using some internal APIs which are not for marked for external module consumption?

/bin/sh ../../libtool --tag=CC --silent --mode=link gcc -Wall -Wstrict-prototypes -fno-strict-aliasing -Wno-unused-but-set-variable -DNDEBUG -D_GNU_SOURCE -D__EXTENSIONS__ -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DTEXT_DOMAIN=\"zfs-linux-user\" -O2 -march=native -msse2 -msse3 -msse -msse4.1 -msse4.2 -fforce-addr -fomit-frame-pointer -pipe -ftracer -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -floop-parallelize-all -pthread -lm -lz -lrt -ldl -luuid -all-static -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--enable-new-dtags -Wl,--as-needed -o zfs zfs_iter.o zfs_main.o ../../lib/libspl/libspl.la ../../lib/libavl/libavl.la ../../lib/libefi/libefi.la ../../lib/libnvpair/libnvpair.la ../../lib/libunicode/libunicode.la ../../lib/libuutil/libuutil.la ../../lib/libzpool/libzpool.la ../../lib/libzfs/libzfs.la ../../lib/libspl/libspl.la ../../lib/libzpool/libzpool.la -luuid -luuid -lz -lz -lz
zfs_main.o: In function `zfs_do_allow_unallow_impl':
zfs_main.c:(.text+0x7fda): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
zfs_main.c:(.text+0x8d2f): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
zfs_main.c:(.text+0x8c75): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
zfs_main.c:(.text+0x804a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
../../lib/libnvpair/.libs/libnvpair.a(nvpair.o): In function `nvs_xdr_nvl_fini':
nvpair.c:(.text+0x19d): undefined reference to `xdr_int'
nvpair.c:(.text+0x1b9): undefined reference to `xdr_int'
../../lib/libnvpair/.libs/libnvpair.a(nvpair.o): In function `nvs_xdr_nvlist':
nvpair.c:(.text+0x218): undefined reference to `xdr_int'
nvpair.c:(.text+0x22d): undefined reference to `xdr_u_int'
../../lib/libnvpair/.libs/libnvpair.a(nvpair.o): In function `nvlist_common':
nvpair.c:(.text+0xf5a): undefined reference to `xdrmem_create'
nvpair.c:(.text+0x1033): undefined reference to `xdrmem_create'
../../lib/libnvpair/.libs/libnvpair.a(nvpair.o): In function `nvs_xdr_nvp_op':
nvpair.c:(.text+0x18d8): undefined reference to `xdr_string'
nvpair.c:(.text+0x1902): undefined reference to `xdr_int'
nvpair.c:(.text+0x1912): undefined reference to `xdr_int'
nvpair.c:(.text+0x1996): undefined reference to `xdr_double'
nvpair.c:(.text+0x19f4): undefined reference to `xdr_longlong_t'
nvpair.c:(.text+0x1a46): undefined reference to `xdr_string'
nvpair.c:(.text+0x1a7f): undefined reference to `xdr_u_longlong_t'
nvpair.c:(.text+0x1a9a): undefined reference to `xdr_array'
nvpair.c:(.text+0x1aa7): undefined reference to `xdr_longlong_t'
nvpair.c:(.text+0x1ab4): undefined reference to `xdr_u_int'
nvpair.c:(.text+0x1acf): undefined reference to `xdr_array'
nvpair.c:(.text+0x1adc): undefined reference to `xdr_int'
nvpair.c:(.text+0x1ae9): undefined reference to `xdr_u_short'
nvpair.c:(.text+0x1b03): undefined reference to `xdr_array'
nvpair.c:(.text+0x1b10): undefined reference to `xdr_short'
nvpair.c:(.text+0x1b21): undefined reference to `xdr_opaque'
nvpair.c:(.text+0x1b36): undefined reference to `xdr_string'
nvpair.c:(.text+0x1b46): undefined reference to `xdr_u_longlong_t'
nvpair.c:(.text+0x1b51): undefined reference to `xdr_char'
nvpair.c:(.text+0x1b6b): undefined reference to `xdr_array'
nvpair.c:(.text+0x1b7b): undefined reference to `xdr_u_int'
nvpair.c:(.text+0x1b8c): undefined reference to `xdr_int'
nvpair.c:(.text+0x1b9c): undefined reference to `xdr_u_short'
nvpair.c:(.text+0x1bac): undefined reference to `xdr_short'
nvpair.c:(.text+0x1bbc): undefined reference to `xdr_char'
../../lib/libnvpair/.libs/libnvpair.a(nvpair.o): In function `nvs_xdr_nvpair':
nvpair.c:(.text+0x1c5a): undefined reference to `xdr_int'
nvpair.c:(.text+0x1c6b): undefined reference to `xdr_int'
nvpair.c:(.text+0x1cfa): undefined reference to `xdr_int'
nvpair.c:(.text+0x1d0f): undefined reference to `xdr_int'
collect2: ld returned 1 exit status
make[3]: *** [zfs] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-fs/bzfs-0.6.0_rc7/work/zfs-0.6.0-rc7/cmd/zfs'