Hi all, So, I'm trying to get Util-Linux-NG-2.15.1 to play nicely with e2fsprogs-1.41.6.
I'm taking the following approach: 1. Build pkg-config in chapter 5 (required for point 3) 2. Build util-linux-ng with --with-fsprobe=builtin and 'make -C libs/blkid install' to have it provide libblkid for e2fsprogs to use 3. Build e2fsprogs with --disable-libblkid so that it uses Util-Linux-NG's version of libblkid, detected via pkg-config during ./configure. Eventually, we'd move to using util-linux-ng's version of libuuid as well, but that's only been migrated over in 2.16, not 2.15.1. So, here's the error I get during the build of e2fsprogs: unix.o: In function `PRS': /mnt/lfs/sources/e2fsprogs-1.41.6/build/e2fsck/../../e2fsck/unix.c:656: undefined reference to `blkid_get_cache' /mnt/lfs/sources/e2fsprogs-1.41.6/build/e2fsck/../../e2fsck/unix.c:799: undefined reference to `blkid_get_devname' e2fsck.o: In function `e2fsck_free_context': /mnt/lfs/sources/e2fsprogs-1.41.6/build/e2fsck/../../e2fsck/e2fsck.c:175: undefined reference to `blkid_put_cache' journal.o: In function `e2fsck_fix_ext3_journal_hint': /mnt/lfs/sources/e2fsprogs-1.41.6/build/e2fsck/../../e2fsck/journal.c:1043: undefined reference to `blkid_get_devname' journal.o: In function `e2fsck_get_journal': /mnt/lfs/sources/e2fsprogs-1.41.6/build/e2fsck/../../e2fsck/journal.c:347: undefined reference to `blkid_get_devname' /mnt/lfs/sources/e2fsprogs-1.41.6/build/e2fsck/../../e2fsck/journal.c:350: undefined reference to `blkid_devno_to_devname' collect2: ld returned 1 exit status make[3]: *** [e2fsck] Error 1 make[3]: Leaving directory `/mnt/lfs/sources/e2fsprogs-1.41.6/build/e2fsck' This is the relevant output from config.log: configure:4022: result: Disabling blkid debugging by default configure:4045: result: Enabling testio debugging by default configure:4105: checking for pkg-config configure:4123: found /tools/bin/pkg-config configure:4135: result: /tools/bin/pkg-config configure:4164: checking pkg-config is at least version 0.9.0 configure:4167: result: yes configure:4193: checking for blkid_get_cache in -lblkid configure:4228: cc -o conftest -g -O2 conftest.c -lblkid >&5 configure:4234: $? = 0 configure:4252: result: yes It looks like -lblkid doesn't exist in $(LIBS) Tracing this back, I believe this would be the cause (run by configure): l...@kyoto:/mnt/lfs/sources/e2fsprogs-1.41.6/build$ pkg-config --libs libblkid Package libblkid was not found in the pkg-config search path. Perhaps you should add the directory containing `libblkid.pc' to the PKG_CONFIG_PATH environment variable No package 'libblkid' found So, with this in mind, do we simply forget about Util-Linux-NG-2.15.1 and wait for 2.16 instead, which includes a copy of libuuid? Thanks, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page