From: Marc T. <ma...@dr...> - 2013-03-04 20:57:09
|
I finally figured this out. On Slackware64 14.0 (and 13.37 most likely), in order to compile dump-0.4b44, one must: export EXT2FS_LIBS="-lext2fs -lcom_err" before building. It seems that configure now relies on the output of "pkg-config --libs <package>" to get some of the flags, and in my case the com_err library is never specified. FWIW, "pkg-config --libs ext2fs" returns: "-L/lib64 -lext2fs" on this system. Kind Regards, Marc On 30/07/12 19:06, Marc Thomas wrote: > Hi All, > > I've never had a problem building dump before, but 0.4b44 doesn't > compile for me. 0.4b43 builds fine - I just rebuilt it for a sanity check. > > Distribution: > Slackware Linux 13.37.0 > > Platform: > Linux anvil 2.6.37.6 #2 SMP Sat Apr 9 13:24:51 CDT 2011 x86_64 AMD > Phenom(tm) 9850 Quad-Core Processor AuthenticAMD GNU/Linux > > GCC version: > gcc (GCC) 4.5.2 > > Configure command: > ./configure --with-binowner=root --with-bingrp=root --with-manowner=root > --with-mangrp=root --mandir=/usr/local/man --disable-transselinux > > Failure log: > marc@anvil:~/xxBuildxx/dump/dump-0.4b44$ make > for i in compat/lib compat/include common dump restore rmt; do \ > (cd $i && make all) || exit 1; \ > done > make[1]: Entering directory > `/home/marc/xxBuildxx/dump/dump-0.4b44/compat/lib' > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I../.. > -I../../compat/include -I/usr/include/ext2fs -I/usr/include/et > -I../../compat/include -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO > -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" > -D_DUMP_VERSION=\"0.4b44\" compaterr.c -o compaterr.o > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I../.. > -I../../compat/include -I/usr/include/ext2fs -I/usr/include/et > -I../../compat/include -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO > -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" > -D_DUMP_VERSION=\"0.4b44\" compatglob.c -o compatglob.o > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I../.. > -I../../compat/include -I/usr/include/ext2fs -I/usr/include/et > -I../../compat/include -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO > -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" > -D_DUMP_VERSION=\"0.4b44\" bylabel.c -o bylabel.o > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I../.. > -I../../compat/include -I/usr/include/ext2fs -I/usr/include/et > -I../../compat/include -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO > -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" > -D_DUMP_VERSION=\"0.4b44\" system.c -o system.o > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I../.. > -I../../compat/include -I/usr/include/ext2fs -I/usr/include/et > -I../../compat/include -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO > -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" > -D_DUMP_VERSION=\"0.4b44\" rmtflags.c -o rmtflags.o > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I../.. > -I../../compat/include -I/usr/include/ext2fs -I/usr/include/et > -I../../compat/include -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO > -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" > -D_DUMP_VERSION=\"0.4b44\" minilzo.c -o minilzo.o > ar r libcompat.a compaterr.o compatglob.o bylabel.o system.o rmtflags.o > minilzo.o > ar: creating libcompat.a > ranlib libcompat.a > make[1]: Leaving directory > `/home/marc/xxBuildxx/dump/dump-0.4b44/compat/lib' > make[1]: Entering directory > `/home/marc/xxBuildxx/dump/dump-0.4b44/compat/include' > make[1]: Nothing to be done for `all'. > make[1]: Leaving directory > `/home/marc/xxBuildxx/dump/dump-0.4b44/compat/include' > make[1]: Entering directory `/home/marc/xxBuildxx/dump/dump-0.4b44/common' > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I.. > -I../compat/include -I/usr/include/ext2fs -I/usr/include/et -I../dump > -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO > -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" > -D_DUMP_VERSION=\"0.4b44\" dumprmt.c -o dumprmt.o > make[1]: Leaving directory `/home/marc/xxBuildxx/dump/dump-0.4b44/common' > make[1]: Entering directory `/home/marc/xxBuildxx/dump/dump-0.4b44/dump' > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I.. > -I../compat/include -I/usr/include/ext2fs -I/usr/include/et -I../dump > -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO > -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" > -D_DUMP_VERSION=\"0.4b44\" itime.c -o itime.o > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I.. > -I../compat/include -I/usr/include/ext2fs -I/usr/include/et -I../dump > -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO > -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" > -D_DUMP_VERSION=\"0.4b44\" main.c -o main.o > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I.. > -I../compat/include -I/usr/include/ext2fs -I/usr/include/et -I../dump > -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO > -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" > -D_DUMP_VERSION=\"0.4b44\" optr.c -o optr.o > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I.. > -I../compat/include -I/usr/include/ext2fs -I/usr/include/et -I../dump > -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO > -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" > -D_DUMP_VERSION=\"0.4b44\" tape.c -o tape.o > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I.. > -I../compat/include -I/usr/include/ext2fs -I/usr/include/et -I../dump > -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO > -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" > -D_DUMP_VERSION=\"0.4b44\" traverse.c -o traverse.o > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I.. > -I../compat/include -I/usr/include/ext2fs -I/usr/include/et -I../dump > -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO > -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" > -D_DUMP_VERSION=\"0.4b44\" unctime.c -o unctime.o > gcc -o dump itime.o main.o optr.o tape.o traverse.o unctime.o > ../common/dumprmt.o -L../compat/lib -lcompat -L/lib64 -lext2fs -lz > -lbz2 -lblkid -luuid > main.o: In function `main': > /home/marc/xxBuildxx/dump/dump-0.4b44/dump/main.c:726: undefined > reference to `com_err' > /home/marc/xxBuildxx/dump/dump-0.4b44/dump/main.c:719: undefined > reference to `com_err' > tape.o: In function `doslave': > /home/marc/xxBuildxx/dump/dump-0.4b44/dump/tape.c:1197: undefined > reference to `error_message' > traverse.o: In function `dump_xattr': > /home/marc/xxBuildxx/dump/dump-0.4b44/dump/traverse.c:813: undefined > reference to `com_err' > traverse.o: In function `dumpdirino': > /home/marc/xxBuildxx/dump/dump-0.4b44/dump/traverse.c:1143: undefined > reference to `com_err' > traverse.o: In function `getino': > /home/marc/xxBuildxx/dump/dump-0.4b44/dump/traverse.c:1371: undefined > reference to `com_err' > traverse.o: In function `mapfilesfromdir': > /home/marc/xxBuildxx/dump/dump-0.4b44/dump/traverse.c:501: undefined > reference to `com_err' > traverse.o: In function `maponefile': > /home/marc/xxBuildxx/dump/dump-0.4b44/dump/traverse.c:411: undefined > reference to `com_err' > traverse.o:/home/marc/xxBuildxx/dump/dump-0.4b44/dump/traverse.c:340: > more undefined references to `com_err' follow > /lib64/libext2fs.a(ext2_err.o): In function `initialize_ext2_error_table': > ext2_err.c:(.text+0x83): undefined reference to `_et_list' > /lib64/libext2fs.a(alloc_stats.o): In function `ext2fs_inode_alloc_stats2': > alloc_stats.c:(.text+0x121): undefined reference to `com_err' > /lib64/libext2fs.a(alloc_stats.o): In function `ext2fs_block_alloc_stats': > alloc_stats.c:(.text+0x231): undefined reference to `com_err' > /lib64/libext2fs.a(gen_bitmap.o): In function `ext2fs_warn_bitmap2': > gen_bitmap.c:(.text+0x19f): undefined reference to `com_err' > gen_bitmap.c:(.text+0x1be): undefined reference to `com_err' > /lib64/libext2fs.a(bitops.o): In function `ext2fs_warn_bitmap': > bitops.c:(.text+0x9a): undefined reference to `com_err' > /lib64/libext2fs.a(bitops.o):bitops.c:(.text+0xb2): more undefined > references to `com_err' follow > collect2: ld returned 1 exit status > make[1]: *** [dump] Error 1 > make[1]: Leaving directory `/home/marc/xxBuildxx/dump/dump-0.4b44/dump' > make: *** [all] Error 1 > marc@anvil:~/xxBuildxx/dump/dump-0.4b44$ > > > Any ideas? > > TIA, > Marc > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Dump-users mailing list > Dum...@li... > https://lists.sourceforge.net/lists/listinfo/dump-users > |