This is a problem in the lvm package, not in xfs. The attached patch fixed
it for me. It's against the lvm in unstable/sid (0.9.1beta7-2.1), and it
looks like the woody version is older (0.8i-1) so it may not apply
cleanly, but it should be obvious what to do -- just declare "int opt_d"
in some .c file, inside an "#ifdef DEBUG" block; debug.c is the obvious
choice. I've filed a bug report about this.
Jesse
On Sat, 14 Jul 2001, Daniel Podlejski wrote:
> gcc -o mkfs.xfs xfs_mkfs.o proto.o ../libxfs/.libs/libxfs.a
> ../libdisk/.libs/libdisk.a /usr/lib/libuuid.a /lib/liblvm.a
> /lib/liblvm.a(debug.o): In function `lvm_debug':
> debug.o(.text+0x74): undefined reference to `opt_d'
> /lib/liblvm.a(debug.o): In function `lvm_debug_enter':
> debug.o(.text+0xc4): undefined reference to `opt_d'
> /lib/liblvm.a(debug.o): In function `lvm_debug_leave':
> debug.o(.text+0x104): undefined reference to `opt_d'
> collect2: ld returned 1 exit status
> make[2]: *** [mkfs.xfs] Error 1
> make[1]: *** [default] Error 2
> make[1]: Leaving directory `/arc/build/xfs/cmd/xfsprogs'
> make: *** [built] Error 2
>
> Debian Woody, LVM 0.9
>
>
lvm-patch
Description: Text document
|