Menu

#3 compile is failing on ioapi.c

open
nobody
None
5
2012-05-22
2012-05-22
No

gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT ioapi.o -MD -MP -MF .deps/ioapi.Tpo -c -o ioapi.o ioapi.c
In file included from ioapi.c:17:0:
ioapi.h:127:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.h:128:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.h:129:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.h:130:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.h:131:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.h:133:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.h:134:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.h:140:5: error: unknown type name ‘open_file_func’
ioapi.h:141:5: error: unknown type name ‘read_file_func’
ioapi.h:142:5: error: unknown type name ‘write_file_func’
ioapi.h:143:5: error: unknown type name ‘tell_file_func’
ioapi.h:144:5: error: unknown type name ‘seek_file_func’
ioapi.h:145:5: error: unknown type name ‘close_file_func’
ioapi.h:146:5: error: unknown type name ‘testerror_file_func’
ioapi.h:150:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.h:151:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.h:152:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.h:156:5: error: unknown type name ‘open64_file_func’
ioapi.h:157:5: error: unknown type name ‘read_file_func’
ioapi.h:158:5: error: unknown type name ‘write_file_func’
ioapi.h:159:5: error: unknown type name ‘tell64_file_func’
ioapi.h:160:5: error: unknown type name ‘seek64_file_func’
ioapi.h:161:5: error: unknown type name ‘close_file_func’
ioapi.h:162:5: error: unknown type name ‘testerror_file_func’
ioapi.h:166:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.h:167:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.h:173:5: error: unknown type name ‘open_file_func’
ioapi.h:174:5: error: unknown type name ‘tell_file_func’
ioapi.h:175:5: error: unknown type name ‘seek_file_func’
ioapi.h:186:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.h:187:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.h:188:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.c: In function ‘call_zopen64’:
ioapi.c:21:46: warning: comparison between pointer and integer [enabled by default]
ioapi.c:22:17: error: invalid type argument of unary ‘*’ (have ‘int’)
ioapi.c:25:17: error: invalid type argument of unary ‘*’ (have ‘int’)
ioapi.c: In function ‘call_zseek64’:
ioapi.c:31:46: warning: comparison between pointer and integer [enabled by default]
ioapi.c:32:17: error: invalid type argument of unary ‘*’ (have ‘int’)
ioapi.c:39:21: error: invalid type argument of unary ‘*’ (have ‘int’)
ioapi.c: In function ‘call_ztell64’:
ioapi.c:45:46: warning: comparison between pointer and integer [enabled by default]
ioapi.c:46:17: error: invalid type argument of unary ‘*’ (have ‘int’)
ioapi.c:49:29: error: invalid type argument of unary ‘*’ (have ‘int’)
ioapi.c: In function ‘fill_zlib_filefunc64_32_def_from_filefunc32’:
ioapi.c:59:48: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:64:48: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:65:48: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c: At top level:
ioapi.c:75:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.c:76:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.c:77:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.c:78:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.c:79:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.c:80:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.c:81:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
ioapi.c: In function ‘fill_fopen_filefunc’:
ioapi.c:215:36: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:216:36: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:217:37: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:218:36: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:219:36: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:220:37: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:221:37: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c: In function ‘fill_fopen64_filefunc’:
ioapi.c:227:38: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:228:36: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:229:37: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:230:38: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:231:38: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:232:37: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:233:37: warning: assignment makes integer from pointer without a cast [enabled by default]
make[2]: *** [ioapi.o] Error 1

adding #define OF(x) x to ioapi.h solved that problem. Please add it to the tree

Discussion


Log in to post a comment.