[Ocfs2-test-users] Errors while compiling latest git version of scfs2-test

Vit Pelcak vpelcak at suse.cz
Mon Feb 15 04:39:08 PST 2010


Hi.

I have tried to compile ocfs2-test, ran ./autogen.sh and after it passed
well I ran "make -k 2> error.log"

error.log:
Postamble.make:196: warning: overriding commands for target `dist-bye'
Makefile:66: warning: ignoring old commands for target `dist-bye'
Postamble.make:199: warning: overriding commands for target `dist-fresh'
Makefile:69: warning: ignoring old commands for target `dist-fresh'
Postamble.make:202: warning: overriding commands for target `dist'
Makefile:72: warning: ignoring old commands for target `dist'
Postamble.make:206: warning: overriding commands for target `distclean'
Makefile:76: warning: ignoring old commands for target `distclean'
/usr/bin/ar: creating libocfs2test.a
aio-stress.c: In function ‘worker’:
aio-stress.c:1175: warning: format ‘%d’ expects type ‘int’, but argument
3 has type ‘long int’
aio-stress.c: In function ‘main’:
aio-stress.c:1455: warning: format ‘%Lu’ expects type ‘long long
unsigned int’, but argument 3 has type ‘off_t’
aio-stress.c:1459: warning: format ‘%Lu’ expects type ‘long long
unsigned int’, but argument 3 has type ‘off_t’
aio-stress.c:1464: warning: format ‘%Lu’ expects type ‘long long
unsigned int’, but argument 6 has type ‘off_t’
check_file_size_limits.c: In function ‘main’:
check_file_size_limits.c:231: warning: pointer targets in passing
argument 3 of ‘parse_opts’ differ in signedness
check_file_size_limits.c:231: warning: pointer targets in passing
argument 4 of ‘parse_opts’ differ in signedness
verify.c: In function ‘Usage’:
verify.c:41: warning: implicit declaration of function ‘exit’
verify.c:41: warning: incompatible implicit declaration of built-in
function ‘exit’
verify.c: In function ‘main’:
verify.c:87: warning: implicit declaration of function ‘atoi’
extendo.c: In function ‘main’:
extendo.c:55: warning: format ‘%llu’ expects type ‘long long unsigned
int’, but argument 2 has type ‘int64_t’
extendo.c:77: warning: format ‘%lld’ expects type ‘long long int’, but
argument 2 has type ‘int64_t’
verify_holes.c: In function ‘main’:
verify_holes.c:374: warning: ‘size’ may be used uninitialized in this
function
inline-data.c: In function ‘setup’:
inline-data.c:238: warning: format ‘%d’ expects type ‘int’, but argument
4 has type ‘long unsigned int’
inline-data.c:238: warning: format ‘%d’ expects type ‘int’, but argument
5 has type ‘long unsigned int’
inline-data.c: In function ‘test_regular_file’:
inline-data.c:901: warning: label ‘bail’ defined but not used
inline-data-utils.c: In function ‘extend_pattern’:
inline-data-utils.c:112: warning: unused variable ‘i’
inline-data-utils.c: In function ‘write_at’:
inline-data-utils.c:213: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘size_t’
inline-data-utils.c: In function ‘open_ocfs2_volume’:
inline-data-utils.c:367: warning: implicit declaration of function
‘ocfs2_max_inline_data’
inline-data-utils.c: In function ‘should_inlined_or_not’:
inline-data-utils.c:436: warning: format ‘%d’ expects type ‘int’, but
argument 4 has type ‘long unsigned int’
inline-data-utils.c:445: warning: format ‘%d’ expects type ‘int’, but
argument 4 has type ‘long unsigned int’
inline-data-utils.o: In function `open_ocfs2_volume':
/root/ocfs2-test/programs/inline-data/inline-data-utils.c:367: undefined
reference to `ocfs2_max_inline_data'
collect2: ld returned 1 exit status
make[2]: *** [inline-data] Error 1
inline-dirs.c: In function ‘run_large_dir_tests’:
inline-dirs.c:313: warning: use of ‘h’ length modifier with ‘e’ type
character
inline-dirs.c:332: warning: use of ‘h’ length modifier with ‘e’ type
character
inline-dirs.c: In function ‘run_concurrent_test’:
inline-dirs.c:457: warning: unused variable ‘j’
inline-dirs.c: In function ‘run_multiple_test’:
inline-dirs.c:559: warning: unused variable ‘j’
inline-dirs.c: In function ‘setup’:
inline-dirs.c:664: warning: format ‘%d’ expects type ‘int’, but argument
4 has type ‘long unsigned int’
inline-dirs.c:664: warning: format ‘%d’ expects type ‘int’, but argument
5 has type ‘long unsigned int’
inline-dirs.c: At top level:
inline-dirs.c:447: warning: ‘del_semvalue’ defined but not used
inline-dirs-utils.c: In function ‘open_ocfs2_volume’:
inline-dirs-utils.c:506: warning: implicit declaration of function
‘ocfs2_max_inline_data’
inline-dirs-utils.c: In function ‘should_inlined_or_not’:
inline-dirs-utils.c:576: warning: format ‘%d’ expects type ‘int’, but
argument 4 has type ‘long unsigned int’
inline-dirs-utils.c:585: warning: format ‘%d’ expects type ‘int’, but
argument 4 has type ‘long unsigned int’
inline-dirs-utils.o: In function `open_ocfs2_volume':
/root/ocfs2-test/programs/inline-data/inline-dirs-utils.c:506: undefined
reference to `ocfs2_max_inline_data'
collect2: ld returned 1 exit status
make[2]: *** [inline-dirs] Error 1
inline-data-utils.o: In function `open_ocfs2_volume':
/root/ocfs2-test/programs/inline-data/inline-data-utils.c:367: undefined
reference to `ocfs2_max_inline_data'
collect2: ld returned 1 exit status
make[2]: *** [multi-inline-data] Error 1
multi-inline-dirs.o: In function `open_ocfs2_volume':
multi-inline-dirs.c:(.text+0x2385): undefined reference to
`ocfs2_max_inline_data'
collect2: ld returned 1 exit status
make[2]: *** [multi-inline-dirs] Error 1
make[2]: Target `all' not remade because of errors.
make[1]: *** [inline-data] Error 2
multi_mmap.c: In function ‘write_verify_blocks’:
multi_mmap.c:446: warning: ‘block’ is used uninitialized in this function
reserve_space.c: In function ‘main’:
reserve_space.c:48: warning: format ‘%lld’ expects type ‘long long int’,
but argument 2 has type ‘int64_t’
reserve_space.c:49: warning: format ‘%lld’ expects type ‘long long int’,
but argument 2 has type ‘int64_t’
test_truncate.c: In function ‘create_file’:
test_truncate.c:211: warning: cast from pointer to integer of different
size
xattr-test.c: In function ‘one_round_run’:
xattr-test.c:461: warning: implicit declaration of function ‘pwrite’
xattr-test.c:484: warning: ‘return’ with no value, in function returning
non-void
xattr-test.c:611: warning: ‘return’ with no value, in function returning
non-void
xattr-test.c:615: warning: format ‘%d’ expects type ‘int’, but argument
3 has type ‘long unsigned int’
xattr-test.c:675: warning: format ‘%d’ expects type ‘int’, but argument
3 has type ‘long unsigned int’
xattr-test.c:839: warning: ‘return’ with no value, in function returning
non-void
xattr-test.c:362: warning: unused variable ‘ppid’
xattr-test.c:361: warning: unused variable ‘dp’
xattr-test.c: In function ‘atexit_hook’:
xattr-test.c:345: warning: ‘process_nums’ may be used uninitialized in
this function
xattr-test.c: In function ‘sigterm_handler’:
xattr-test.c:314: warning: ‘process_nums’ may be used uninitialized in
this function
xattr-test.c:314: note: ‘process_nums’ was declared here
xattr-test.c: In function ‘sigint_handler’:
xattr-test.c:314: warning: ‘process_nums’ may be used uninitialized in
this function
xattr-test.c:314: note: ‘process_nums’ was declared here
xattr-test-utils.c: In function ‘xattr_name_generator’:
xattr-test-utils.c:83: warning: implicit declaration of function ‘time’
xattr-test-utils.c:110: warning: format ‘%06d’ expects type ‘int’, but
argument 4 has type ‘long unsigned int’
xattr-test-utils.c:110: warning: format ‘%06d’ expects type ‘int’, but
argument 4 has type ‘long unsigned int’
xattr-test-utils.c: In function ‘add_or_update_ea’:
xattr-test-utils.c:252: warning: format ‘%d’ expects type ‘int’, but
argument 8 has type ‘size_t’
xattr-test-utils.c:265: warning: format ‘%d’ expects type ‘int’, but
argument 8 has type ‘size_t’
xattr-test-utils.c:278: warning: format ‘%d’ expects type ‘int’, but
argument 8 has type ‘size_t’
xattr-test-utils.c: In function ‘remove_ea’:
xattr-test-utils.c:310: warning: format ‘%d’ expects type ‘int’, but
argument 4 has type ‘char *’
xattr-test-utils.c: In function ‘xattr_value_constructor’:
xattr-test-utils.c:353: warning: format ‘%05d’ expects type ‘int’, but
argument 4 has type ‘size_t’
xattr-test-utils.c:353: warning: format ‘%05d’ expects type ‘int’, but
argument 4 has type ‘size_t’
xattr-test-utils.c: In function ‘remove_ea’:
xattr-test-utils.c:291: warning: ‘ret’ may be used uninitialized in this
function
xattr-test-utils.c: In function ‘add_or_update_ea’:
xattr-test-utils.c:240: warning: ‘ret’ may be used uninitialized in this
function
xattr-test-utils.c: In function ‘read_ea’:
xattr-test-utils.c:196: warning: ‘ret’ may be used uninitialized in this
function
xattr-test-utils.c: In function ‘xattr_value_generator’:
xattr-test-utils.c:123: warning: ‘random_ch’ may be used uninitialized
in this function
xattr-test-utils.c: In function ‘xattr_name_generator’:
xattr-test-utils.c:57: warning: ‘random_ch’ may be used uninitialized in
this function
quota_multi_tests.c: In function ‘negative_inodes_limit_test’:
quota_multi_tests.c:535: warning: format ‘%d’ expects type ‘int’, but
argument 5 has type ‘long int’
quota_multi_tests.c:535: warning: format ‘%d’ expects type ‘int’, but
argument 5 has type ‘long int’
quota_multi_tests.c:548: warning: format ‘%d’ expects type ‘int’, but
argument 4 has type ‘long int’
quota_multi_tests.c:548: warning: format ‘%d’ expects type ‘int’, but
argument 4 has type ‘long int’
quota_multi_tests.c:560: warning: format ‘%d’ expects type ‘int’, but
argument 6 has type ‘long int’
quota_multi_tests.c:560: warning: format ‘%d’ expects type ‘int’, but
argument 6 has type ‘long int’
quota_multi_tests.c:606: warning: format ‘%d’ expects type ‘int’, but
argument 6 has type ‘long int’
quota_multi_tests.c:606: warning: format ‘%d’ expects type ‘int’, but
argument 6 has type ‘long int’
quota_multi_tests.c:629: warning: format ‘%d’ expects type ‘int’, but
argument 6 has type ‘long int’
quota_multi_tests.c:629: warning: format ‘%d’ expects type ‘int’, but
argument 6 has type ‘long int’
quota_multi_tests.c: In function ‘user_inodes_grace_time_test’:
quota_multi_tests.c:657: warning: format ‘%d’ expects type ‘int’, but
argument 5 has type ‘long int’
quota_multi_tests.c:657: warning: format ‘%d’ expects type ‘int’, but
argument 5 has type ‘long int’
quota_multi_tests.c:679: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:679: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:698: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:698: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:709: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:709: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c: In function ‘user_space_limit_test’:
quota_multi_tests.c:728: warning: unused variable ‘d_dq’
quota_multi_tests.c:725: warning: unused variable ‘i’
quota_multi_tests.c: In function ‘user_inodes_limit_test’:
quota_multi_tests.c:825: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:825: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:845: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:845: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:856: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:856: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c: In function ‘group_space_limit_test’:
quota_multi_tests.c:910: warning: format ‘%d’ expects type ‘int’, but
argument 5 has type ‘long int’
quota_multi_tests.c:910: warning: format ‘%d’ expects type ‘int’, but
argument 5 has type ‘long int’
quota_multi_tests.c:968: warning: format ‘%d’ expects type ‘int’, but
argument 5 has type ‘long int’
quota_multi_tests.c:968: warning: format ‘%d’ expects type ‘int’, but
argument 5 has type ‘long int’
quota_multi_tests.c:884: warning: unused variable ‘d_dq’
quota_multi_tests.c:882: warning: unused variable ‘j’
quota_multi_tests.c: In function ‘group_inodes_limit_test’:
quota_multi_tests.c:1013: warning: format ‘%d’ expects type ‘int’, but
argument 5 has type ‘long int’
quota_multi_tests.c:1013: warning: format ‘%d’ expects type ‘int’, but
argument 5 has type ‘long int’
quota_multi_tests.c:1034: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:1034: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:1057: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:1057: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:1074: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:1074: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:1085: warning: format ‘%d’ expects type ‘int’, but
argument 5 has type ‘long int’
quota_multi_tests.c:1085: warning: format ‘%d’ expects type ‘int’, but
argument 5 has type ‘long int’
quota_multi_tests.c:992: warning: unused variable ‘j’
quota_multi_tests.c: In function ‘quota_corrupt_test’:
quota_multi_tests.c:1120: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:1120: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:1146: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:1146: warning: format ‘%d’ expects type ‘int’, but
argument 7 has type ‘long int’
quota_multi_tests.c:1100: warning: unused variable ‘groupname’
quota_multi_tests.c:1097: warning: unused variable ‘user_index’
quota_multi_tests.c:1096: warning: unused variable ‘o_gid’
quota_multi_tests.c:1095: warning: unused variable ‘j’
quota_multi_tests.c: In function ‘concurrent_rw_test’:
quota_multi_tests.c:1173: warning: format ‘%d’ expects type ‘int’, but
argument 5 has type ‘long int’
quota_multi_tests.c:1173: warning: format ‘%d’ expects type ‘int’, but
argument 5 has type ‘long int’
quota_multi_tests.c:1187: warning: format ‘%d’ expects type ‘int’, but
argument 4 has type ‘long int’
quota_multi_tests.c:1187: warning: format ‘%d’ expects type ‘int’, but
argument 4 has type ‘long int’
quota_multi_tests.c:1225: warning: implicit declaration of function ‘pwrite’
quota_multi_tests.c:1162: warning: unused variable ‘file_index’
quota_multi_tests.c:1161: warning: unused variable ‘j’
quota_multi_tests.c: In function ‘run_tests’:
quota_multi_tests.c:1258: warning: unused variable ‘o_gid’
quota_multi_tests.c:1258: warning: unused variable ‘o_uid’
quota_multi_tests.c:1257: warning: unused variable ‘fd’
quota_multi_tests.c:1255: warning: unused variable ‘ret’
quota_multi_tests.c: In function ‘setup’:
quota_multi_tests.c:1351: warning: unused variable ‘i’
quota_multi_tests.c:1401: warning: control reaches end of non-void function
quota_multi_tests.c: In function ‘run_tests’:
quota_multi_tests.c:1347: warning: control reaches end of non-void function
quota_multi_tests.c: In function ‘name2id’:
quota_multi_tests.c:188: warning: control reaches end of non-void function
quota_multi_tests.c: In function ‘concurrent_rw_test’:
quota_multi_tests.c:1251: warning: control reaches end of non-void function
quota_multi_tests.c: In function ‘quota_corrupt_test’:
quota_multi_tests.c:1156: warning: control reaches end of non-void function
quota_multi_tests.c: In function ‘group_space_limit_test’:
quota_multi_tests.c:929: warning: ‘ret’ may be used uninitialized in
this function
quota_multi_tests.c: In function ‘negative_inodes_limit_test’:
quota_multi_tests.c:525: warning: ‘inodes_removed’ may be used
uninitialized in this function
reflink_test_utils.c: In function ‘open_ocfs2_volume’:
reflink_test_utils.c:1361: error: ‘OCFS2_FEATURE_INCOMPAT_REFCOUNT_TREE’
undeclared (first use in this function)
reflink_test_utils.c:1361: error: (Each undeclared identifier is
reported only once
reflink_test_utils.c:1361: error: for each function it appears in.)
reflink_test_utils.c:1369: warning: implicit declaration of function
‘ocfs2_max_inline_data’
reflink_test_utils.c: In function ‘open_file’:
reflink_test_utils.c:1895: warning: unused variable ‘ret’
xattr_test_utils.c: In function ‘xattr_value_generator’:
xattr_test_utils.c:129: warning: ‘random_ch’ may be used uninitialized
in this function
compat_reflink.c: In function ‘reflink’:
compat_reflink.c:39: error: storage size of ‘args’ isn’t known
compat_reflink.c:55: error: ‘OCFS2_IOC_REFLINK’ undeclared (first use in
this function)
compat_reflink.c:55: error: (Each undeclared identifier is reported only
once
compat_reflink.c:55: error: for each function it appears in.)
compat_reflink.c:39: warning: unused variable ‘args’
make[2]: *** [reflink_test] Error 1
reflink_test_utils.c: In function ‘open_ocfs2_volume’:
reflink_test_utils.c:1361: error: ‘OCFS2_FEATURE_INCOMPAT_REFCOUNT_TREE’
undeclared (first use in this function)
reflink_test_utils.c:1361: error: (Each undeclared identifier is
reported only once
reflink_test_utils.c:1361: error: for each function it appears in.)
reflink_test_utils.c:1369: warning: implicit declaration of function
‘ocfs2_max_inline_data’
reflink_test_utils.c: In function ‘open_file’:
reflink_test_utils.c:1895: warning: unused variable ‘ret’
xattr_test_utils.c: In function ‘xattr_value_generator’:
xattr_test_utils.c:129: warning: ‘random_ch’ may be used uninitialized
in this function
compat_reflink.c: In function ‘reflink’:
compat_reflink.c:39: error: storage size of ‘args’ isn’t known
compat_reflink.c:55: error: ‘OCFS2_IOC_REFLINK’ undeclared (first use in
this function)
compat_reflink.c:55: error: (Each undeclared identifier is reported only
once
compat_reflink.c:55: error: for each function it appears in.)
compat_reflink.c:39: warning: unused variable ‘args’
make[2]: *** [multi_reflink_test] Error 1
make[2]: Target `all' not remade because of errors.
make[1]: *** [reflink_tests] Error 2
make[1]: Target `all' not remade because of errors.
make: *** [programs] Error 2
make: Target `all' not remade because of errors.

Could you please fix it? Or, is it problem on my side?


ocfs2-tools-1.4.3-0.3.2
gcc-4.3-62.198
libcom_err2-1.41.9-2.1.18
libaio-0.3.109-0.1.18

Feel free to ask for further info.

Thanks for any help.



More information about the Ocfs2-test-users mailing list