I'm trying to install gearman under cygwin. One of its dependencies is libuuid so I'm now trying to build e2fsprogs.
I've set environment variables CC, CXX, CPPFLAGS, LDFLAGS, & LIBS.
I'm running ./configure -with-gnu-ld;make
The output I get is
make: Entering directory `/cygdrive/c/tmp/e2fsprogs-1.41.12/e2fsck'
unix.o: In function `main':
/cygdrive/c/tmp/e2fsprogs-1.41.12/e2fsck/unix.c:1131: undefined reference to `_ext2fs_get_device_size2'
/cygdrive/c/tmp/e2fsprogs-1.41.12/e2fsck/unix.c:1144: undefined reference to `_ext2fs_get_device_size2'
collect2: ld returned 1 exit status
make: *** Error 1
make: Leaving directory `/cygdrive/c/tmp/e2fsprogs-1.41.12/e2fsck'
make: *** Error 1
make: Leaving directory `/cygdrive/c/tmp/e2fsprogs-1.41.12'
make: *** Error 2
I think the header file should be ext2fs.h which is in ./lib/ext2fs, hence the references to ext2fs in my env variables. This doesn't make any difference and I'm not sure what else to try.
Any suggestions as to what I might have missed out would be much appreciated.
Problem resolved by building the libs tarball
I am getting the same error , please help.
Hi @Chris Brown,
I am trying to compile e2fsprogs 1.43.4 in cygwin? And facing the same error
undefined reference to `_ext2fs_get_device_size2'
Can you please share the compilation steps you followed to resolve this error?
How did you build the libs tarball? Where to get the libs tar ball?
I have built the libs tarball available in https://www.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.43.4/
And then tried building the e2fsprogs 1.43.4, but still facing the same linker issue. Can you suggest on this?
For cygwin environment ext2fs_get_device_size2() method is not defined. It is defined for non-cygwin environment.
Hence replaced ext2fs_get_device_size2() with ext2fs_get_device_size() in all files where the call was made.
Compilation was succesfull after replacing.
Log in to post a comment.