Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.
I am trying to build and install E2fsprogs-1.42.3 as a part of the linux from scratch OS that I am compiling. I configured the package with this line just as the book told me to
PKG_CONFIG=/tools/bin/true LDFLAGS="-lblkid -luuid" \
../configure --prefix=/usr --with-root-prefix="" \
--enable-elf-shlibs --disable-libblkid --disable-libuuid \
Then I used make to compile all the files and all is still well, but when I run "make check" I get his error
make: Entering directory `/sources/e2fsprogs-1.42.3/build/lib/ext2fs'
/tmp/cc8WmlGN.o: In function `crc32c_be_body':
crc32c.c:(.text+0x227): undefined reference to `ext2fs_swab32'
crc32c.c:(.text+0x42e): undefined reference to `ext2fs_swab32'
collect2: ld returned 1 exit status
make: *** [tst_crc32c] Error 1
make: Leaving directory `/sources/e2fsprogs-1.42.3/build/lib/ext2fs'
make: *** [check-recursive] Error 1
I really don't have any idea how to fix this error. Any help would be appreciated
You didn't mention what architecture, OS, and C compiler you are using….
That function should have been an inline function defined in bitops.h, and there should have been a linkable version of that function in inline.o. It works for me on an x86 system. You must be using a big endian system from what I can tell, but I don't know anything else about your system. All I can tell you it's working normally for most people….