[uClibc]e2fsprogs compile problem again

Serban Udrea S.Udrea at gsi.de
Thu Mar 14 14:14:23 UTC 2002


Hello,

I sent some time ago a message about compile problems with e2fsprogs v. 1.26 using
uClibc v. 0.9.9. In the meantime I atempted to compile v. 1.25 and also the newer
v. 1.27 without success. With 1.27 there are just (?) the same problems as with
1.26 (it first stops compilation at tune2fs because of function strptime()). When
compiling v. 1.25 the build stops with:

chattr.o: In function `change_attributes':
/usr/i386-linux-uclibc/include/sys/stat.h:383: undefined reference to `__lxstat64'
collect2: ld returned 1 exit status

Which is similar to some errors I mentioned in the first mail about v. 1.26.

I searched the archives (hopefully carefully enough) up to december 2001 and
couldn't find any reference to compile problems for e2fsprogs, and at least v. 1.25
is mentioned on the list of code which compiles with uClibc v. 0.9.9.

For convenience I attach the initial message.

Help is highly appreciated!

Regards,

Serban

>>>>>>>>>> INITIAL MESSAGE <<<<<<<<<<<

Date: Fri, 8 Mar 2002 16:47:16 -0100
From: Serban Udrea <serban at pppc24.gsi.de>
To: uclibc at uclibc.org
Subject: compile problem with e2fsprogs v. 1.26 and uClibc 0.9.9

Hello,

Sorry if this mail is too long, showing my very reduced experience with compile
problems :-/

I just attempted to build the last version of e2fsprogs (i.e. 1.26) with uClibc
0.9.9 and it doesn't complete properly. It first stopps at tune2fs with the
following error:

tune2fs.o: In function `parse_time':
/e2fsprogs-1.26/build/misc/../../misc/tune2fs.c:431: undefined reference to `strptime'
collect2: ld returned 1 exit status
make[2]: *** [tune2fs] Error 1
make[2]: Leaving directory `/home/serban/download/Build/e2fsprogs-1.26/build/misc'
make[1]: *** [all-progs-recursive] Error 1
make[1]: Leaving directory `/home/serban/download/Build/e2fsprogs-1.26/build'
make: *** [all] Error 2

Anyway, the compile worked for: e2fsck, debugfs, badblocks and mke2fs.

I edited the Makefile under misc by hand and removed all references to tune2fs then
started the build once more. This time an error occured in chattr.o (related to 
sys/stat.h) as follows:

chattr.o: In function `change_attributes':
/usr/i386-linux-uclibc/include/sys/stat.h:383: undefined reference to `__lxstat64'
collect2: ld returned 1 exit status
make[2]: *** [chattr] Error 1
make[2]: Leaving directory `/home/serban/download/Build/e2fsprogs-1.26/build/misc'
make[1]: *** [all-progs-recursive] Error 1
make[1]: Leaving directory `/home/serban/download/Build/e2fsprogs-1.26/build'
make: *** [all] Error 2

On the other hand, some other tools got compiled (besides the allready mentioned): 
dumpe2fs, e2image and fsck.

I removed also chattr from the Makefile under misc and give it another try. A
similar error like before occured now with lsattr:

lsattr.o: In function `lsattr_args':
/usr/i386-linux-uclibc/include/sys/stat.h:383: undefined reference to `__lxstat64'
lsattr.o: In function `lsattr_dir_proc':
/usr/i386-linux-uclibc/include/sys/stat.h:383: undefined reference to `__lxstat64'
collect2: ld returned 1 exit status
make[2]: *** [lsattr] Error 1
make[2]: Leaving directory `/home/serban/download/Build/e2fsprogs-1.26/build/misc'
make[1]: *** [all-progs-recursive] Error 1
make[1]: Leaving directory `/home/serban/download/Build/e2fsprogs-1.26/build'
make: *** [all] Error 2

Went further and removed also lsattr from the Makefile. Now there was no compile
error anymore and all other tools got compiled.

Then I run 'make check' and there where 7 tests which failed and seem to be related 
just to e2fsck:

f_bbfile: bad blocks in files: failed
f_dup: blocks claimed by two different files: failed
f_dup2: blocks claimed by three different files: failed
f_dup3: blocks claimed by one file multiple times: failed
f_dupfsblks: blocks claimed by a file and bitmaps or inode tables: failed
f_dupsuper: blocks claimed by a file and superblock or group descriptors: failed
f_swapfs: checking the e2fsck swapfs functionality: failed

Compiling e2fsprog v. 1.26 with glibc 2.1.2 (as installed on my system) gave no
problems, nevertheless one test failed:

f_baddir: corrupted directory entries: failed

Which is different from the ones which failed after compiling with uClibc 0.9.9.

Regards,

Serban

>>>>>>>>> END OF INITIAL MESSAGE <<<<<<<<<<<<


-- 

#<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>#
# "Human beings, like all other life forms, are parts of an inseparable      #
# organic whole. Their intelligence, therefore, implies that, the whole too  #
# is intelligent"                                                            #
#<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>#

Serban Udrea
S.Udrea at gsi.de
GSI - Plasma Physics Department
Darmstadt, Germany



More information about the uClibc mailing list