On Tue, Sep 02, 2008 at 04:37:03PM +0200, Robert Schwebel wrote: > On Tue, Sep 02, 2008 at 12:11:26PM +0200, Karel Zak wrote: > > I'm not sure, what do you want to fix. See ./configure --help and > > *_LIBS and *_LIBS_STATIC variables if you need to compile for some > > unusual system. > > Well, it doesn't change much if you use shared or static variables. I've > now changed my e2fsprogs installation to build a shared libblkid > (usually in e2fsprogs a static lib is standard if you don't > --enable-elf-shlibs manually). The error message is the same: > > ----------8<---------- > make[3]: Entering directory > `/home/rsc/svn/oselas/bsp/pengutronix/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-phyCORE-PXA270/build-target/util-linux-ng-2.14.1-rc2/mount' > arm-iwmmx-linux-gnueabi-gcc -std=gnu99 -fsigned-char -g -O2 > -L/home/rsc/svn/oselas/bsp/pengutronix/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-phyCORE-PXA270/sysroot-target/lib > -L/home/rsc/svn/oselas/bsp/pengutronix/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-phyCORE-PXA270/sysroot-target/usr/lib > -Wl,-rpath-link ^^^^^^^^^^^^^^^^^^ ? > -Wl,/home/rsc/svn/oselas/bsp/pengutronix/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-phyCORE-PXA270/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 > /home/rsc/svn/oselas/bsp/pengutronix/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-phyCORE-PXA270/sysroot-target/usr/lib/libblkid.a(probe.o): > In function `set_uuid': > /home/rsc/svn/oselas/bsp/pengutronix/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-phyCORE-PXA270/build-target/e2fsprogs-1.41.1/lib/blkid/probe.c:130: > undefined reference to `uuid_is_null' > ----------8<---------- Do you have libuuid on place which is accessible for linker? (/etc/ld.so.conf, /lib, LD_LIBRARY_PATH, -rpath-link <dir>, ...) > Now mount wants to link aganst the shared libblkid.so which pulls in the > same dependencies. The problem here is not so unusual: you say "link > against libblkdev" but forget to add possible dependencies. You needn't to specify all possible dependencies on gcc command line... see my previous e-mail. It works. The -lblkid is enough if your linker is able to evaluate dependencies and found all .so libs. Don't forget that libblkid includes all necessary information: $ objdump -x /lib/libblkid.so.1 | grep NEEDED NEEDED libuuid.so.1 NEEDED libdevmapper.so.1.02 NEEDED libc.so.6 > We could use pkg-config to get the dependend libs for libblkid, but I'm > not sure if all possible e2fsprogs versions are pkgconfigized. Right. Please, read also Stepan's excellent post about pkg-config: http://article.gmane.org/gmane.linux.utilities.util-linux-ng/953 Karel -- Karel Zak <kzak@xxxxxxxxxx> -- 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