Set up autoconf to find the correct headers and compat libraries for debian squeeze, and massage the includes to ensure the right headers get included. Also fix a compile warning that was emitted now
I missed a O_WRONLY->O_RDWR dbm_open fix (forgot to refresh the patch before sending the patchbomb) in this, so it builds but doesn't run. Updated patch below. Cheers, Dave. -- Dave Chinner david@xxx
Ah, nice. I've been trying to get this working on Debian off and on again for years, but never got this far. Reviewed-by: Christoph Hellwig <hch@xxxxxx>
Spoken too soon. While this second patch at least compiles on my Debian testing system it doesn't link: /tmp/ccWcHXtY.o: In function `CleanupDbmLookup': /root/xfstests-dev/src/dbtest.c:304: undefined
I think we need to do a better job of defining what's required for this stuff--building and running. I know I had trouble the first time I set things up, and now that it works I have no recollection
Making missing stuff gracefully handled runtime helps... I also have a hacked up rpm for this, that way package dependencies take care of it all seamlessly: BuildRequires: autoconf, libtool, xfsprogs
autoconf is supposed to handle that. If you don't have a critical package, autoconf will fail and ask you to install it. For non-critical packages or libraries, it just compiles it out. The above err