Robert Schwebel wrote:
arm-iwmmx-linux-gnueabi-gcc -std=gnu99 -fsigned-char -g -O2 -L/somewhere/sysroot-target/lib -L/sysroot-target/usr/lib
-Wl,-rpath-link -Wl,/somewhere/sysroot-target/usr/lib
-o mount mount-mount.o mount-fstab.o mount-mount_mntent.o
mount-getusername.o mount-lomount.o mount-sundries.o mount-xmalloc.o
mount-realpath.o mount-fsprobe.o mount-fsprobe_blkid.o mount-env.o
mount-linux_version.o mount-blkdev.o mount-setproctitle.o -lblkid
/somewhere/sysroot-target/usr/lib/libblkid.a(probe.o):
In function `set_uuid':
/somewhere/build-target/e2fsprogs-1.40.8/lib/blkid/probe.c:130:
undefined reference to `uuid_is_null'
So the thing is that, when uuid support is detected, libblkid.a wants to
use it, mount wants to link against it and it is being sucked in.
I encountered the same problem when building 2.14 and 2.14-rc2
2.13 did not complain about missing uuid references.
that use it forget to link against it. Not sure if the patch below is
[...]
+mount_LDADD = $(LDADD_common) -luuid
+umount_LDADD = $(LDADD_common) -luuid
+swapon_LDADD = $(LDADD_common) -luuid
Why do you think that mount,umount and swapon use stuff from libuuid?
The libuuid is required by mkswap only.
Yup, side effect, see above. I'll invent a better patch ...
I fixed it by building like this:
# BLKID_LIBS="-lblkid -luuid" ./configure --prefix=/usr
# make -C mount mount umount
But surely there must be a better way (some autoconf/automake magic ?).
Olaf
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html