Powered by /dev/zero. Your IP: 18.97.14.91 | lha 5dc11a48-24a4-4eab-a5cf-2f3c5f598045Toc:- mkbuilddir
Executing(%mkbuilddir): /bin/sh -e /tmp/B.pi54ls2a/BUILD/tmp/rpm-tmp.qkZGko
- prep
Executing(%prep): /bin/sh -e /tmp/B.pi54ls2a/BUILD/tmp/rpm-tmp.gALs72
- build
Executing(%build): /bin/sh -e /tmp/B.pi54ls2a/BUILD/tmp/rpm-tmp.Ar29As
- error 1
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 2
lhlist.c:60:21: error: too many arguments to function ‘localtime’; expected 0, have 1
- error 3
lhlist.c:65:13: error: too many arguments to function ‘localtime’; expected 0, have 1
- error 4
lhlist.c:307:17: error: too many arguments to function ‘error’; expected 0, have 2
- error 5
lhlist.c:308:17: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
- error 6
lhlist.c:310:13: error: too many arguments to function ‘archive_is_msdos_sfx1’; expected 0, have 1
- error 7
lhlist.c:311:17: error: too many arguments to function ‘skip_msdos_sfx1_code’; expected 0, have 1
- error 8
lhlist.c:318:16: error: too many arguments to function ‘get_header’; expected 0, have 2
- error 9
lhlist.c:319:21: error: too many arguments to function ‘need_file’; expected 0, have 1
- error 10
make[1]: *** [<builtin>: lhlist.o] Error 1
- error 11
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 12
maketbl.c:17:1: error: number of arguments doesn’t match prototype
- error 13
lha.h:288:17: error: prototype declaration
- error 14
maketbl.c:45:17: error: too many arguments to function ‘error’; expected 0, have 2
- error 15
make[1]: *** [<builtin>: maketbl.o] Error 1
- error 16
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 17
extract.c:19:1: error: number of arguments doesn’t match prototype
- error 18
lha.h:277:17: error: prototype declaration
- error 19
extract.c:30:17: error: too many arguments to function ‘start_indicator’; expected 0, have 4
- error 20
extract.c:32:17: error: too many arguments to function ‘copyfile’; expected 0, have 4
- error 21
extract.c:36:17: error: too many arguments to function ‘start_indicator’; expected 0, have 4
- error 22
extract.c:39:17: error: too many arguments to function ‘decode’; expected 0, have 1
- error 23
extract.c:45:17: error: too many arguments to function ‘start_indicator’; expected 0, have 4
- error 24
extract.c:48:17: error: too many arguments to function ‘decode’; expected 0, have 1
- error 25
extract.c:57:17: error: too many arguments to function ‘start_indicator’; expected 0, have 4
- error 26
extract.c:60:17: error: too many arguments to function ‘decode’; expected 0, have 1
- error 27
extract.c:62:9: error: too many arguments to function ‘finish_indicator’; expected 0, have 2
- error 28
make[1]: *** [<builtin>: extract.o] Error 1
- error 29
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 30
dhuf.c:259:25: error: too many arguments to function ‘putcode’; expected 0, have 2
- error 31
dhuf.c:263:9: error: too many arguments to function ‘putcode’; expected 0, have 2
- error 32
dhuf.c:265:17: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 33
dhuf.c:283:25: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 34
dhuf.c:288:9: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 35
dhuf.c:292:22: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 36
dhuf.c:315:25: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 37
dhuf.c:320:9: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 38
dhuf.c:324:27: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 39
dhuf.c:332:1: error: number of arguments doesn’t match prototype
- error 40
lha.h:274:17: error: prototype declaration
- error 41
dhuf.c:335:17: error: too many arguments to function ‘encode_p_st0’; expected 0, have 1
- error 42
dhuf.c:343:9: error: too many arguments to function ‘putcode’; expected 0, have 2
- error 43
make[1]: *** [<builtin>: dhuf.o] Error 1
- error 44
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 45
maketree.c:22:1: error: number of arguments doesn’t match prototype
- error 46
lha.h:296:25: error: prototype declaration
- error 47
maketree.c:129:1: error: number of arguments doesn’t match prototype
- error 48
lha.h:297:17: error: prototype declaration
- error 49
maketree.c:168:9: error: too many arguments to function ‘make_code’; expected 0, have 3
- error 50
make[1]: *** [<builtin>: maketree.o] Error 1
- error 51
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 52
larc.c:17:13: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 53
larc.c:18:24: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 54
larc.c:21:28: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 55
larc.c:22:24: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 56
make[1]: *** [<builtin>: larc.o] Error 1
- error 57
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 58
crcio.c:57:1: error: number of arguments doesn’t match prototype
- error 59
lha.h:312:39: error: prototype declaration
- error 60
crcio.c:71:1: error: number of arguments doesn’t match prototype
- error 61
lha.h:303:41: error: prototype declaration
- error 62
crcio.c:92:1: error: number of arguments doesn’t match prototype
- error 63
lha.h:304:25: error: prototype declaration
- error 64
crcio.c:96:9: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 65
crcio.c:105:1: error: number of arguments doesn’t match prototype
- error 66
lha.h:305:41: error: prototype declaration
- error 67
crcio.c:113:29: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 68
crcio.c:132:1: error: number of arguments doesn’t match prototype
- error 69
lha.h:306:41: error: prototype declaration
- error 70
crcio.c:141:29: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 71
crcio.c:161:1: error: number of arguments doesn’t match prototype
- error 72
lha.h:307:41: error: prototype declaration
- error 73
crcio.c:163:21: error: implicit declaration of function ‘fread_txt’; did you mean ‘fread_crc’? [-Wimplicit-function-declaration]
- error 74
crcio.c:167:9: error: too many arguments to function ‘calccrc’; expected 0, have 2
- error 75
crcio.c:177:1: error: number of arguments doesn’t match prototype
- error 76
lha.h:308:41: error: prototype declaration
- error 77
crcio.c:178:9: error: too many arguments to function ‘calccrc’; expected 0, have 2
- error 78
crcio.c:184:29: error: implicit declaration of function ‘fwrite_txt’; did you mean ‘fwrite_crc’? [-Wimplicit-function-declaration]
- error 79
crcio.c:185:33: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 80
crcio.c:189:33: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 81
crcio.c:210:9: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 82
make[1]: *** [<builtin>: crcio.o] Error 1
- error 83
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 84
shuf.c:43:1: error: number of arguments doesn’t match prototype
- error 85
lha.h:263:17: error: prototype declaration
- error 86
shuf.c:47:9: error: too many arguments to function ‘putcode’; expected 0, have 2
- error 87
shuf.c:48:9: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 88
shuf.c:96:21: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 89
shuf.c:97:36: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 90
shuf.c:101:29: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 91
shuf.c:109:9: error: too many arguments to function ‘make_table’; expected 0, have 4
- error 92
shuf.c:120:29: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 93
shuf.c:123:29: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 94
shuf.c:146:9: error: too many arguments to function ‘make_table’; expected 0, have 4
- error 95
shuf.c:157:29: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 96
shuf.c:159:21: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 97
shuf.c:165:17: error: too many arguments to function ‘make_table’; expected 0, have 4
- error 98
shuf.c:170:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 99
shuf.c:172:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 100
shuf.c:181:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 101
shuf.c:184:22: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 102
shuf.c:196:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 103
shuf.c:199:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 104
shuf.c:208:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 105
shuf.c:210:27: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 106
make[1]: *** [<builtin>: shuf.o] Error 1
- error 107
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 108
lhadd.c:33:9: error: too many arguments to function ‘write_header’; expected 0, have 2
- error 109
lhadd.c:51:20: error: too many arguments to function ‘encode_lzhuf’; expected 0, have 7
- error 110
lhadd.c:60:28: error: too many arguments to function ‘encode_stored_crc’; expected 0, have 5
- error 111
lhadd.c:65:17: error: implicit declaration of function ‘ftruncate’; did you mean ‘strncat’? [-Wimplicit-function-declaration]
- error 112
lhadd.c:72:9: error: too many arguments to function ‘write_header’; expected 0, have 2
- error 113
lhadd.c:95:17: error: too many arguments to function ‘error’; expected 0, have 2
- error 114
lhadd.c:105:9: error: too many arguments to function ‘init_header’; expected 0, have 3
- error 115
lhadd.c:111:30: error: too many arguments to function ‘xfopen’; expected 0, have 2
- error 116
lhadd.c:118:22: error: too many arguments to function ‘get_header’; expected 0, have 2
- error 117
lhadd.c:127:31: error: implicit declaration of function ‘strcmp_filename’ [-Wimplicit-function-declaration]
- error 118
lhadd.c:132:41: error: too many arguments to function ‘copy_old_one’; expected 0, have 3
- error 119
lhadd.c:159:33: error: too many arguments to function ‘copy_old_one’; expected 0, have 3
- error 120
lhadd.c:184:21: error: too many arguments to function ‘find_files’; expected 0, have 3
- error 121
lhadd.c:187:25: error: too many arguments to function ‘free_files’; expected 0, have 2
- error 122
lhadd.c:207:9: error: too many arguments to function ‘init_sp’; expected 0, have 1
- error 123
lhadd.c:208:16: error: too many arguments to function ‘get_header’; expected 0, have 2
- error 124
lhadd.c:211:33: error: too many arguments to function ‘add_sp’; expected 0, have 3
- error 125
lhadd.c:219:33: error: too many arguments to function ‘add_sp’; expected 0, have 3
- error 126
lhadd.c:226:9: error: too many arguments to function ‘finish_sp’; expected 0, have 3
- error 127
lhadd.c:239:16: error: too many arguments to function ‘get_header’; expected 0, have 2
- error 128
lhadd.c:243:21: error: too many arguments to function ‘need_file’; expected 0, have 1
- error 129
lhadd.c:257:33: error: too many arguments to function ‘copy_old_one’; expected 0, have 3
- error 130
lhadd.c:275:24: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
- error 131
lhadd.c:276:24: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
- error 132
lhadd.c:279:15: error: too many arguments to function ‘xfopen’; expected 0, have 2
- error 133
lhadd.c:292:9: error: implicit declaration of function ‘build_backup_name’; did you mean ‘build_backup_file’? [-Wimplicit-function-declaration]
- error 134
lhadd.c:297:25: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 135
lhadd.c:299:32: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
- error 136
lhadd.c:300:32: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
- error 137
lhadd.c:322:16: error: too many arguments to function ‘xfopen’; expected 0, have 2
- error 138
lhadd.c:328:24: error: too many arguments to function ‘xfopen’; expected 0, have 2
- error 139
lhadd.c:332:9: error: too many arguments to function ‘copyfile’; expected 0, have 4
- error 140
lhadd.c:338:9: error: implicit declaration of function ‘unlink’ [-Wimplicit-function-declaration]
- error 141
lhadd.c:371:17: error: implicit declaration of function ‘chown’ [-Wimplicit-function-declaration]
- error 142
lhadd.c:371:41: error: implicit declaration of function ‘getuid’ [-Wimplicit-function-declaration]
- error 143
lhadd.c:388:17: error: too many arguments to function ‘warning’; expected 0, have 2
- error 144
lhadd.c:391:21: error: too many arguments to function ‘find_files’; expected 0, have 3
- error 145
lhadd.c:392:25: error: too many arguments to function ‘remove_files’; expected 0, have 2
- error 146
lhadd.c:393:25: error: too many arguments to function ‘free_files’; expected 0, have 2
- error 147
lhadd.c:396:25: error: too many arguments to function ‘warning’; expected 0, have 2
- error 148
lhadd.c:400:26: error: implicit declaration of function ‘rmdir’ [-Wimplicit-function-declaration]
- error 149
lhadd.c:401:25: error: too many arguments to function ‘warning’; expected 0, have 2
- error 150
lhadd.c:409:25: error: too many arguments to function ‘warning’; expected 0, have 2
- error 151
lhadd.c:418:25: error: too many arguments to function ‘warning’; expected 0, have 2
- error 152
lhadd.c:424:17: error: too many arguments to function ‘error’; expected 0, have 2
- error 153
lhadd.c:454:17: error: too many arguments to function ‘error’; expected 0, have 2
- error 154
lhadd.c:465:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 155
lhadd.c:474:21: error: too many arguments to function ‘archive_is_msdos_sfx1’; expected 0, have 1
- error 156
lhadd.c:475:17: error: too many arguments to function ‘skip_msdos_sfx1_code’; expected 0, have 1
- error 157
lhadd.c:476:17: error: too many arguments to function ‘build_standard_archive_name’; expected 0, have 2
- error 158
lhadd.c:493:9: error: too many arguments to function ‘cleaning_files’; expected 0, have 2
- error 159
lhadd.c:506:24: error: too many arguments to function ‘get_header’; expected 0, have 2
- error 160
lhadd.c:511:33: error: too many arguments to function ‘copy_old_one’; expected 0, have 3
- error 161
lhadd.c:518:17: error: too many arguments to function ‘write_archive_tail’; expected 0, have 1
- error 162
lhadd.c:539:17: error: too many arguments to function ‘remove_files’; expected 0, have 2
- error 163
lhadd.c:553:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 164
lhadd.c:559:17: error: too many arguments to function ‘warning’; expected 0, have 2
- error 165
lhadd.c:563:13: error: too many arguments to function ‘archive_is_msdos_sfx1’; expected 0, have 1
- error 166
lhadd.c:564:17: error: too many arguments to function ‘skip_msdos_sfx1_code’; expected 0, have 1
- error 167
lhadd.c:565:17: error: too many arguments to function ‘build_standard_archive_name’; expected 0, have 2
- error 168
lhadd.c:581:17: error: too many arguments to function ‘write_archive_tail’; expected 0, have 1
- error 169
make[1]: *** [<builtin>: lhadd.o] Error 1
- error 170
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 171
lharc.c:180:9: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
- error 172
lharc.c:198:23: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
- error 173
lharc.c:199:25: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 174
lharc.c:202:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 175
lharc.c:382:22: error: implicit declaration of function ‘isatty’ [-Wimplicit-function-declaration]
- error 176
lharc.c:395:25: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 177
lharc.c:409:55: error: implicit declaration of function ‘realloc’ [-Wimplicit-function-declaration]
- error 178
lharc.c:412:41: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 179
lharc.c:418:33: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 180
lharc.c:484:1: error: number of arguments doesn’t match prototype
- error 181
lha.h:200:25: error: prototype declaration
- error 182
lharc.c:492:1: error: number of arguments doesn’t match prototype
- error 183
lha.h:201:25: error: prototype declaration
- error 184
lharc.c:500:1: error: number of arguments doesn’t match prototype
- error 185
lha.h:202:25: error: prototype declaration
- error 186
lharc.c:508:1: error: number of arguments doesn’t match prototype
- error 187
lha.h:203:25: error: prototype declaration
- error 188
lharc.c:512:17: error: implicit declaration of function ‘unlink’ [-Wimplicit-function-declaration]
- error 189
lharc.c:521:9: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 190
lharc.c:528:9: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 191
lharc.c:535:1: error: number of arguments doesn’t match prototype
- error 192
lha.h:198:25: error: prototype declaration
- error 193
lharc.c:537:9: error: too many arguments to function ‘message’; expected 0, have 2
- error 194
lharc.c:546:17: error: too many arguments to function ‘message’; expected 0, have 2
- error 195
lharc.c:551:14: error: implicit declaration of function ‘getpid’ [-Wimplicit-function-declaration]
- error 196
lharc.c:591:17: error: implicit declaration of function ‘qsort’ [-Wimplicit-function-declaration]
- error 197
lharc.c:601:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 198
lharc.c:613:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 199
lharc.c:639:1: error: number of arguments doesn’t match prototype
- error 200
lha.h:212:25: error: prototype declaration
- error 201
lharc.c:652:1: error: number of arguments doesn’t match prototype
- error 202
lha.h:213:25: error: prototype declaration
- error 203
lharc.c:668:1: error: number of arguments doesn’t match prototype
- error 204
lha.h:214:25: error: prototype declaration
- error 205
lharc.c:689:1: error: number of arguments doesn’t match prototype
- error 206
lha.h:215:25: error: prototype declaration
- error 207
lharc.c:691:9: error: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
- error 208
lharc.c:715:1: error: number of arguments doesn’t match prototype
- error 209
lha.h:216:25: error: prototype declaration
- error 210
lharc.c:825:1: error: number of arguments doesn’t match prototype
- error 211
lha.h:209:17: error: prototype declaration
- error 212
lharc.c:843:9: error: too many arguments to function ‘init_sp’; expected 0, have 1
- error 213
lharc.c:877:25: error: too many arguments to function ‘add_sp’; expected 0, have 3
- error 214
lharc.c:882:9: error: too many arguments to function ‘finish_sp’; expected 0, have 3
- error 215
lharc.c:885:9: error: too many arguments to function ‘cleaning_files’; expected 0, have 2
- error 216
lharc.c:895:1: error: number of arguments doesn’t match prototype
- error 217
lha.h:210:25: error: prototype declaration
- error 218
lharc.c:896:9: error: too many arguments to function ‘free_sp’; expected 0, have 1
- error 219
lharc.c:916:9: error: implicit declaration of function ‘mkstemp’ [-Wimplicit-function-declaration]
- error 220
lharc.c:979:1: error: number of arguments doesn’t match prototype
- error 221
lha.h:220:25: error: prototype declaration
- error 222
lharc.c:990:1: error: number of arguments doesn’t match prototype
- error 223
lha.h:205:17: error: prototype declaration
- error 224
lharc.c:997:21: error: too many arguments to function ‘patmatch’; expected 0, have 3
- error 225
lharc.c:1007:1: error: number of arguments doesn’t match prototype
- error 226
lha.h:207:26: error: prototype declaration
- error 227
lharc.c:1011:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 228
lharc.c:1055:21: error: implicit declaration of function ‘strucmp’; did you mean ‘strncmp’? [-Wimplicit-function-declaration]
- error 229
lharc.c:1106:1: error: number of arguments doesn’t match prototype
- error 230
lha.h:206:25: error: prototype declaration
- error 231
lharc.c:1127:1: error: number of arguments doesn’t match prototype
- error 232
lha.h:228:25: error: prototype declaration
- error 233
lharc.c:1136:1: error: number of arguments doesn’t match prototype
- error 234
lha.h:229:25: error: prototype declaration
- error 235
lharc.c:1144:25: error: too many arguments to function ‘copyfile’; expected 0, have 4
- error 236
lharc.c:1147:25: error: too many arguments to function ‘copyfile’; expected 0, have 4
- error 237
make[1]: *** [<builtin>: lharc.o] Error 1
- error 238
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 239
util.c:29:1: error: number of arguments doesn’t match prototype
- error 240
lha.h:231:25: error: prototype declaration
- error 241
util.c:34:29: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
- error 242
util.c:35:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 243
util.c:38:17: error: implicit declaration of function ‘init_code_cache’ [-Wimplicit-function-declaration]
- error 244
util.c:42:33: error: implicit declaration of function ‘fread_txt’; did you mean ‘fread_crc’? [-Wimplicit-function-declaration]
- error 245
util.c:46:33: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 246
util.c:52:33: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 247
util.c:58:37: error: implicit declaration of function ‘fwrite_txt’; did you mean ‘fwrite_crc’? [-Wimplicit-function-declaration]
- error 248
util.c:59:41: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 249
util.c:64:41: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 250
util.c:70:25: error: too many arguments to function ‘calccrc’; expected 0, have 2
- error 251
util.c:76:9: error: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
- error 252
util.c:87:1: error: number of arguments doesn’t match prototype
- error 253
lha.h:316:17: error: prototype declaration
- error 254
util.c:92:16: error: too many arguments to function ‘copyfile’; expected 0, have 4
- error 255
util.c:106:1: error: number of arguments doesn’t match prototype
- error 256
lha.h:230:23: error: prototype declaration
- error 257
util.c:137:1: error: number of arguments doesn’t match prototype
- error 258
lha.h:225:17: error: prototype declaration
- error 259
util.c:141:18: error: implicit declaration of function ‘strucmp’; did you mean ‘strncmp’? [-Wimplicit-function-declaration]
- error 260
util.c:152:1: error: number of arguments doesn’t match prototype
- error 261
lha.h:226:17: error: prototype declaration
- error 262
util.c:165:62: error: implicit declaration of function ‘calc_sum’ [-Wimplicit-function-declaration]
- error 263
make[1]: *** [<builtin>: util.o] Error 1
- error 264
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 265
slide.c:117:1: error: number of arguments doesn’t match prototype
- error 266
lha.h:243:25: error: prototype declaration
- error 267
slide.c:138:34: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
- error 268
slide.c:140:31: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
- error 269
slide.c:188:13: error: too many arguments to function ‘fread_crc’; expected 0, have 3
- error 270
slide.c:294:1: error: number of arguments doesn’t match prototype
- error 271
lha.h:244:25: error: prototype declaration
- error 272
slide.c:318:21: error: too many arguments to function ‘fread_crc’; expected 0, have 3
- error 273
slide.c:335:25: error: too many arguments to function ‘encode_set.output’; expected 0, have 2
- error 274
slide.c:342:25: error: too many arguments to function ‘encode_set.output’; expected 0, have 2
- error 275
slide.c:380:1: error: number of arguments doesn’t match prototype
- error 276
lha.h:245:25: error: prototype declaration
- error 277
slide.c:419:33: error: too many arguments to function ‘fwrite_crc’; expected 0, have 3
- error 278
slide.c:439:41: error: too many arguments to function ‘fwrite_crc’; expected 0, have 3
- error 279
slide.c:449:17: error: too many arguments to function ‘fwrite_crc’; expected 0, have 3
- error 280
slide.c:452:9: error: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
- error 281
make[1]: *** [<builtin>: slide.o] Error 1
- error 282
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 283
header.c:384:30: error: too many arguments to function ‘localtime’; expected 0, have 1
- error 284
header.c:401:1: error: number of arguments doesn’t match prototype
- error 285
lha.h:224:17: error: prototype declaration
- error 286
header.c:421:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 287
header.c:428:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 288
header.c:433:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 289
header.c:454:25: error: too many arguments to function ‘warning’; expected 0, have 2
- error 290
header.c:477:33: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 291
header.c:527:33: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 292
header.c:543:35: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
- error 293
header.c:561:33: error: too many arguments to function ‘convdelim’; expected 0, have 2
- error 294
header.c:682:1: error: number of arguments doesn’t match prototype
- error 295
lha.h:223:25: error: prototype declaration
- error 296
header.c:727:23: error: implicit declaration of function ‘readlink’ [-Wimplicit-function-declaration]
- error 297
header.c:742:1: error: number of arguments doesn’t match prototype
- error 298
lha.h:227:25: error: prototype declaration
- error 299
header.c:772:9: error: too many arguments to function ‘convdelim’; expected 0, have 2
- error 300
header.c:877:24: error: implicit declaration of function ‘calc_header_crc’ [-Wimplicit-function-declaration]
- error 301
header.c:883:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 302
header.c:885:9: error: too many arguments to function ‘convdelim’; expected 0, have 2
- error 303
make[1]: *** [<builtin>: header.o] Error 1
- error 304
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 305
/usr/include/stdlib.h:795:14: error: conflicting types for ‘getenv’; have ‘char *(const char *)’
- error 306
huf.c:80:9: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 307
huf.c:85:25: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 308
huf.c:87:25: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 309
huf.c:91:25: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 310
huf.c:105:9: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 311
huf.c:117:41: error: too many arguments to function ‘putcode’; expected 0, have 2
- error 312
huf.c:120:33: error: too many arguments to function ‘putcode’; expected 0, have 2
- error 313
huf.c:121:33: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 314
huf.c:124:33: error: too many arguments to function ‘putcode’; expected 0, have 2
- error 315
huf.c:125:33: error: too many arguments to function ‘putcode’; expected 0, have 2
- error 316
huf.c:126:33: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 317
huf.c:129:33: error: too many arguments to function ‘putcode’; expected 0, have 2
- error 318
huf.c:130:33: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 319
huf.c:134:25: error: too many arguments to function ‘putcode’; expected 0, have 2
- error 320
huf.c:143:9: error: too many arguments to function ‘putcode’; expected 0, have 2
- error 321
huf.c:159:9: error: too many arguments to function ‘putcode’; expected 0, have 2
- error 322
huf.c:161:17: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 323
huf.c:171:16: error: too many arguments to function ‘make_tree’; expected 0, have 4
- error 324
huf.c:173:9: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 325
huf.c:176:24: error: too many arguments to function ‘make_tree’; expected 0, have 4
- error 326
huf.c:180:25: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 327
huf.c:181:25: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 328
huf.c:185:17: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 329
huf.c:186:17: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 330
huf.c:187:17: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 331
huf.c:188:17: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 332
huf.c:190:16: error: too many arguments to function ‘make_tree’; expected 0, have 4
- error 333
huf.c:195:17: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 334
huf.c:196:17: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 335
huf.c:225:1: error: number of arguments doesn’t match prototype
- error 336
lha.h:253:17: error: prototype declaration
- error 337
huf.c:310:17: error: too many arguments to function ‘putbits’; expected 0, have 2
- error 338
huf.c:325:13: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 339
huf.c:327:21: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 340
huf.c:344:25: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 341
huf.c:347:37: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 342
huf.c:354:17: error: too many arguments to function ‘make_table’; expected 0, have 4
- error 343
huf.c:364:13: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 344
huf.c:366:21: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 345
huf.c:385:25: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 346
huf.c:390:45: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 347
huf.c:392:45: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 348
huf.c:401:17: error: too many arguments to function ‘make_table’; expected 0, have 4
- error 349
huf.c:412:29: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 350
huf.c:420:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 351
huf.c:422:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 352
huf.c:431:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 353
huf.c:444:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 354
huf.c:446:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 355
huf.c:455:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
- error 356
huf.c:458:38: error: too many arguments to function ‘getbits’; expected 0, have 1
- error 357
make[1]: *** [<builtin>: huf.o] Error 1
- error 358
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 359
append.c:22:1: error: number of arguments doesn’t match prototype
- error 360
lha.h:315:25: error: prototype declaration
- error 361
append.c:28:34: error: too many arguments to function ‘encode_alloc’; expected 0, have 1
- error 362
append.c:37:17: error: too many arguments to function ‘start_indicator’; expected 0, have 4
- error 363
append.c:38:17: error: too many arguments to function ‘encode’; expected 0, have 1
- error 364
append.c:42:17: error: too many arguments to function ‘copyfile’; expected 0, have 4
- error 365
append.c:48:9: error: too many arguments to function ‘finish_indicator2’; expected 0, have 3
- error 366
append.c:59:1: error: number of arguments doesn’t match prototype
- error 367
lha.h:248:17: error: prototype declaration
- error 368
append.c:104:1: error: number of arguments doesn’t match prototype
- error 369
lha.h:250:17: error: prototype declaration
- error 370
append.c:122:1: error: number of arguments doesn’t match prototype
- error 371
lha.h:249:17: error: prototype declaration
- error 372
make[1]: *** [<builtin>: append.o] Error 1
- error 373
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
- error 374
lhext.c:38:25: error: too many arguments to function ‘error’; expected 0, have 2
- error 375
lhext.c:47:30: error: implicit declaration of function ‘isatty’ [-Wimplicit-function-declaration]
- error 376
lhext.c:50:33: error: too many arguments to function ‘inquire’; expected 0, have 3
- error 377
lhext.c:94:17: error: too many arguments to function ‘message’; expected 0, have 2
- error 378
lhext.c:101:17: error: too many arguments to function ‘error’; expected 0, have 2
- error 379
lhext.c:117:17: error: too many arguments to function ‘message’; expected 0, have 2
- error 380
lhext.c:135:25: error: too many arguments to function ‘error’; expected 0, have 2
- error 381
lhext.c:153:17: error: implicit declaration of function ‘utime’; did you mean ‘utimes’? [-Wimplicit-function-declaration]
- error 382
lhext.c:164:22: error: implicit declaration of function ‘getuid’ [-Wimplicit-function-declaration]
- error 383
lhext.c:167:33: error: implicit declaration of function ‘lchown’ [-Wimplicit-function-declaration]
- error 384
lhext.c:170:33: error: implicit declaration of function ‘chown’ [-Wimplicit-function-declaration]
- error 385
lhext.c:194:21: error: implicit declaration of function ‘is_directory_traversal’ [-Wimplicit-function-declaration]
- error 386
lhext.c:196:19: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
- error 387
lhext.c:227:25: error: too many arguments to function ‘error’; expected 0, have 2
- error 388
lhext.c:272:31: error: too many arguments to function ‘decode_lzhuf’; expected 0, have 6
- error 389
lhext.c:303:40: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
- error 390
lhext.c:304:40: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
- error 391
lhext.c:306:25: error: implicit declaration of function ‘unlink’ [-Wimplicit-function-declaration]
- error 392
lhext.c:311:39: error: too many arguments to function ‘decode_lzhuf’; expected 0, have 6
- error 393
lhext.c:325:25: error: too many arguments to function ‘error’; expected 0, have 2
- error 394
lhext.c:364:42: error: implicit declaration of function ‘symlink’; did you mean ‘is_symlink’? [-Wimplicit-function-declaration]
- error 395
lhext.c:367:49: error: too many arguments to function ‘warning’; expected 0, have 1
- error 396
lhext.c:386:17: error: too many arguments to function ‘error’; expected 0, have 2
- error 397
lhext.c:405:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
- error 398
lhext.c:407:13: error: too many arguments to function ‘archive_is_msdos_sfx1’; expected 0, have 1
- error 399
lhext.c:408:17: error: too many arguments to function ‘skip_msdos_sfx1_code’; expected 0, have 1
- error 400
lhext.c:411:16: error: too many arguments to function ‘get_header’; expected 0, have 2
- error 401
lhext.c:412:21: error: too many arguments to function ‘need_file’; expected 0, have 1
- error 402
make[1]: *** [<builtin>: lhext.o] Error 1
- install
Executing(%install): /bin/sh -e /tmp/B.pi54ls2a/BUILD/tmp/rpm-tmp.zgzpNt
- error 403
error: Bad exit status from /tmp/B.pi54ls2a/BUILD/tmp/rpm-tmp.zgzpNt (%install)
- error 404
RPM build errors:
- error 405
error: No files produced.
Content:request from: arekm2
checking if we should skip the build
started at: Tue Mar 3 00:15:41 2026
killing old processes on a builder
sending signal 9 to pid -1
cleaning up /tmp
fetching https://srcbuilder.pld-linux.org/th//srpms/5dc11a48-24a4-4eab-a5cf-2f3c5f598045/lha-1.14i-18.src.rpm
fetched 91067 bytes, 377.7 K/s
installing srpm: lha-1.14i-18.src.rpm
+ install -d /tmp/B.pi54ls2a/BUILD /tmp/B.pi54ls2a/RPMS
+ LC_ALL=en_US.UTF-8
+ rpm -qp --changelog lha-1.14i-18.src.rpm
* Tue Mar 03 2026 PLD Linux Team <feedback@pld-linux.org>
- For complete changelog see: http://git.pld-linux.org/?p=packages/lha.git;a=log;h=master
* Tue Mar 03 2026 Arkadiusz Miśkiewicz <arekm@maven.pl> c498f49 - Release 18 (by relup.sh)
* Tue Jul 15 2025 Arkadiusz Miśkiewicz <arekm@maven.pl> 6d1092f - Fix applying patches.
* Tue Feb 24 2015 Jan Rękorajski <baggins@pld-linux.org> 97b4846 - x32 rebuild
- release 17 (by relup.sh)
* Sat Jan 29 2011 sparky <sparky@pld-linux.org> 298c05c - dropped pre-cvs changelog
* Wed May 28 2008 Elan Ruusamäe <glen@pld-linux.org> 2e51192 - release 16
* Wed May 28 2008 Elan Ruusamäe <glen@pld-linux.org> 261d4b6 - release 15 (upgrade from fc2)
* Tue Feb 13 2007 Elan Ruusamäe <glen@pld-linux.org> ab57713 - tabs in preamble
* Mon Feb 12 2007 Jan Rękorajski <baggins@pld-linux.org> e28548d - converted to UTF-8
* Sun Jun 04 2006 Adam Gołębiowski <adamg@pld-linux.org> d734ca1 - working url
* Sat Apr 22 2006 Jan Rękorajski <baggins@pld-linux.org> 2d3f18d - orphaned, outdated
* Sat Feb 25 2006 sparky <sparky@pld-linux.org> c8918e7 - pass CC
* Wed Nov 09 2005 Jakub Bogusz <qboosh@pld-linux.org> b22f65f - fixed C desc; release 4
* Mon Dec 13 2004 hawk <hawk@pld-linux.org> e2730cf - security fixes taken from RHEL3, fixes CAN-2004-0694, CAN-2004-0745
CAN-2004-0769, CAN-2004-0771
- release 3, STBR
* Mon Dec 13 2004 hawk <hawk@pld-linux.org> 74f0c8a - security patches for lha, taken from RHEL3, fixes CAN-2004-0694,
CAN-2004-0745, CAN-2004-0769, CAN-2004-0771
* Thu Nov 25 2004 Jakub Bogusz <qboosh@pld-linux.org> a23070d - security note
* Thu May 06 2004 twittner <twittner@pld-linux.org> c7ab86c - rel. 2 for Ac - CAN-2004-0234, CAN-2004-0235
(patches are taken from RH by blues)
* Thu May 06 2004 twittner <twittner@pld-linux.org> e9de96d - builds (fixed quotation marks - please, check it)
- rel. 0.2
* Tue May 04 2004 Paweł Gołaszewski <blues@pld-linux.org> 9a9e213 - 1.14i - sec update, does not build on my system, don't have time to
finish it
* Tue May 04 2004 Paweł Gołaszewski <blues@pld-linux.org> 8bbc4a4 - 2 patches from RH, one security...
* Tue Nov 18 2003 undefine <undefine@pld-linux.org> 31e2d54 - bump release to 3 to rebuild with ac
+ rpm -Uhv --nodeps --define '_topdir /tmp/B.pi54ls2a' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' lha-1.14i-18.src.rpm
Updating / installing...
lha-1.14i-18 ########################################
+ rm -f lha-1.14i-18.src.rpm
+ install -m 700 -d /tmp/B.pi54ls2a/BUILD/tmp
+ TMPDIR=/tmp/B.pi54ls2a/BUILD/tmp
+ exec nice -n 0 rpmbuild -bp --short-circuit --nodeps --define '_topdir /tmp/B.pi54ls2a' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x32-pld-linux --define 'prep exit 0' /tmp/B.pi54ls2a/lha.spec
Building target platforms: x32-pld-linux
Building for target x32-pld-linux
checking BuildConflict-ing packages
rpm: Building target platforms: x32-pld-linux
rpm: Building for target x32-pld-linux
no BuildConflicts found
checking BR
rpm: Building target platforms: x32-pld-linux
rpm: Building for target x32-pld-linux
no BR needed
building RPM using: set -ex; : build-id: 5dc11a48-24a4-4eab-a5cf-2f3c5f598045; TMPDIR=/tmp/B.pi54ls2a/BUILD/tmp exec nice -n 0 rpmbuild -bb --define '__jobs 28' --define '_smp_mflags -j28' --define '_make_opts -Otarget' --define '_pld_builder 1' --define '_topdir /tmp/B.pi54ls2a' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x32-pld-linux /tmp/B.pi54ls2a/lha.spec
+ : build-id: 5dc11a48-24a4-4eab-a5cf-2f3c5f598045
+ TMPDIR=/tmp/B.pi54ls2a/BUILD/tmp
+ exec nice -n 0 rpmbuild -bb --define '__jobs 28' --define '_smp_mflags -j28' --define '_make_opts -Otarget' --define '_pld_builder 1' --define '_topdir /tmp/B.pi54ls2a' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x32-pld-linux /tmp/B.pi54ls2a/lha.spec
Building target platforms: x32-pld-linux
Building for target x32-pld-linux
Executing(%mkbuilddir): /bin/sh -e /tmp/B.pi54ls2a/BUILD/tmp/rpm-tmp.qkZGko
Executing(%prep): /bin/sh -e /tmp/B.pi54ls2a/BUILD/tmp/rpm-tmp.gALs72
+ umask 022
+ cd /tmp/B.pi54ls2a/BUILD/lha-1.14i-build
+ cd /tmp/B.pi54ls2a/BUILD/lha-1.14i-build
+ rm -rf lha-114i
+ /usr/lib/rpm/rpmuncompress -x /tmp/B.pi54ls2a/lha-114i.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd lha-114i
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (lha-ext.patch):'
Patch #0 (lha-ext.patch):
+ </tmp/B.pi54ls2a/lha-ext.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ echo 'Patch #1 (lha-time.patch):'
Patch #1 (lha-time.patch):
+ </tmp/B.pi54ls2a/lha-time.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ echo 'Patch #2 (lha-sec.patch):'
Patch #2 (lha-sec.patch):
+ </tmp/B.pi54ls2a/lha-sec.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ echo 'Patch #3 (lha-symlink.patch):'
Patch #3 (lha-symlink.patch):
+ </tmp/B.pi54ls2a/lha-symlink.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ echo 'Patch #4 (lha-dir_length_bounds_check.patch):'
Patch #4 (lha-dir_length_bounds_check.patch):
+ </tmp/B.pi54ls2a/lha-dir_length_bounds_check.patch
+ /usr/bin/patch -s -f -p0 '--fuzz=0'
+ echo 'Patch #5 (lha-security_fixes.patch):'
Patch #5 (lha-security_fixes.patch):
+ </tmp/B.pi54ls2a/lha-security_fixes.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ RPM_EC=0
+ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /tmp/B.pi54ls2a/BUILD/tmp/rpm-tmp.Ar29As
HOME=/home/users/builder
PATH=/home/users/builder/GNUstep/Tools:/bin:/usr/bin:/usr/local/bin
TMPDIR=/tmp/B.pi54ls2a/BUILD/tmp
+ umask 022
+ cd /tmp/B.pi54ls2a/BUILD/lha-1.14i-build
+ cd lha-114i
+ /usr/bin/make -Otarget -j28 'CC=/usr/bin/x86_64-pld-linux-gnux32-gcc' 'OPTIMIZE=-O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP' 'MACHINE=-DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7' 'BINDIR=/usr/bin' 'MANDIR=/usr/share/man' 'MANSECT=1'
make all in src...
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: warning: -j28 forced in submake: resetting jobserver mode.
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o lhlist.o lhlist.c
In file included from lha.h:23,
from lhlist.c:15:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
lhlist.c: In function ‘print_size’:
lhlist.c:27:1: warning: old-style function definition [-Wold-style-definition]
27 | print_size(packed_size, original_size)
| ^~~~~~~~~~
lhlist.c:31:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
31 | printf("%7d ", packed_size);
| ~~^ ~~~~~~~~~~~
| | |
| int long int
| %7ld
lhlist.c:33:19: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
33 | printf("%7d ", original_size);
| ~~^ ~~~~~~~~~~~~~
| | |
| int long int
| %7ld
lhlist.c: In function ‘print_stamp’:
lhlist.c:44:1: warning: old-style function definition [-Wold-style-definition]
44 | print_stamp(t)
| ^~~~~~~~~~~
lhlist.c:60:21: error: too many arguments to function ‘localtime’; expected 0, have 1
60 | p = localtime(&now);
| ^~~~~~~~~ ~~~~
lha_macro.h:60:19: note: declared here
60 | extern struct tm *localtime();
| ^~~~~~~~~
lhlist.c:65:13: error: too many arguments to function ‘localtime’; expected 0, have 1
65 | p = localtime(&t);
| ^~~~~~~~~ ~~
lha_macro.h:60:19: note: declared here
60 | extern struct tm *localtime();
| ^~~~~~~~~
lhlist.c: In function ‘list_one’:
lhlist.c:132:1: warning: old-style function definition [-Wold-style-definition]
132 | list_one(hdr)
| ^~~~~~~~
lhlist.c: In function ‘cmd_list’:
lhlist.c:307:17: error: too many arguments to function ‘error’; expected 0, have 2
307 | error(archive_name, "");
| ^~~~~ ~~~~~~~~~~~~
lha.h:202:25: note: declared here
202 | extern void error();
| ^~~~~
lhlist.c:308:17: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
308 | exit(1);
| ^~~~
lhlist.c:16:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
15 | #include "lha.h"
+++ |+#include <stdlib.h>
16 |
lhlist.c:308:17: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
308 | exit(1);
| ^~~~
lhlist.c:308:17: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
lhlist.c:310:13: error: too many arguments to function ‘archive_is_msdos_sfx1’; expected 0, have 1
310 | if (archive_is_msdos_sfx1(archive_name))
| ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
lha.h:225:17: note: declared here
225 | extern boolean archive_is_msdos_sfx1();
| ^~~~~~~~~~~~~~~~~~~~~
lhlist.c:311:17: error: too many arguments to function ‘skip_msdos_sfx1_code’; expected 0, have 1
311 | skip_msdos_sfx1_code(afp);
| ^~~~~~~~~~~~~~~~~~~~ ~~~
lha.h:226:17: note: declared here
226 | extern boolean skip_msdos_sfx1_code();
| ^~~~~~~~~~~~~~~~~~~~
lhlist.c:318:16: error: too many arguments to function ‘get_header’; expected 0, have 2
318 | while (get_header(afp, &hdr)) {
| ^~~~~~~~~~ ~~~
lha.h:224:17: note: declared here
224 | extern boolean get_header();
| ^~~~~~~~~~
lhlist.c:319:21: error: too many arguments to function ‘need_file’; expected 0, have 1
319 | if (need_file(hdr.name)) {
| ^~~~~~~~~ ~~~~~~~~
lha.h:205:17: note: declared here
205 | extern boolean need_file();
| ^~~~~~~~~
make[1]: *** [<builtin>: lhlist.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: *** Waiting for unfinished jobs....
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o maketbl.o maketbl.c
In file included from lha.h:23,
from maketbl.c:9:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
maketbl.c: In function ‘make_table’:
maketbl.c:12:1: warning: old-style function definition [-Wold-style-definition]
12 | make_table(nchar, bitlen, tablebits, table)
| ^~~~~~~~~~
maketbl.c:17:1: error: number of arguments doesn’t match prototype
17 | {
| ^
lha.h:288:17: error: prototype declaration
288 | extern void make_table( /* int nchar, uchar bitlen[], int tablebits,
| ^~~~~~~~~~
maketbl.c:45:17: error: too many arguments to function ‘error’; expected 0, have 2
45 | error("make_table()", "Bad table (5)\n");
| ^~~~~ ~~~~~~~~~~~~~~
lha.h:202:25: note: declared here
202 | extern void error();
| ^~~~~
make[1]: *** [<builtin>: maketbl.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o extract.o extract.c
In file included from lha.h:23,
from extract.c:9:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
extract.c: In function ‘decode_lzhuf’:
extract.c:12:1: warning: old-style function definition [-Wold-style-definition]
12 | decode_lzhuf(infp, outfp, original_size, packed_size, name, method)
| ^~~~~~~~~~~~
extract.c:19:1: error: number of arguments doesn’t match prototype
19 | {
| ^
lha.h:277:17: error: prototype declaration
277 | extern int decode_lzhuf();
| ^~~~~~~~~~~~
extract.c:30:17: error: too many arguments to function ‘start_indicator’; expected 0, have 4
30 | start_indicator(name, original_size
| ^~~~~~~~~~~~~~~ ~~~~
lha.h:248:17: note: declared here
248 | extern void start_indicator();
| ^~~~~~~~~~~~~~~
extract.c:32:17: error: too many arguments to function ‘copyfile’; expected 0, have 4
32 | copyfile(infp, (verify_mode ? NULL : outfp), original_size, 2);
| ^~~~~~~~ ~~~~
lha.h:231:25: note: declared here
231 | extern long copyfile();
| ^~~~~~~~
extract.c:36:17: error: too many arguments to function ‘start_indicator’; expected 0, have 4
36 | start_indicator(name, original_size
| ^~~~~~~~~~~~~~~ ~~~~
lha.h:248:17: note: declared here
248 | extern void start_indicator();
| ^~~~~~~~~~~~~~~
extract.c:39:17: error: too many arguments to function ‘decode’; expected 0, have 1
39 | decode(&interface);
| ^~~~~~ ~~~~~~~~~~
lha.h:245:25: note: declared here
245 | extern void decode();
| ^~~~~~
extract.c:45:17: error: too many arguments to function ‘start_indicator’; expected 0, have 4
45 | start_indicator(name, original_size
| ^~~~~~~~~~~~~~~ ~~~~
lha.h:248:17: note: declared here
248 | extern void start_indicator();
| ^~~~~~~~~~~~~~~
extract.c:48:17: error: too many arguments to function ‘decode’; expected 0, have 1
48 | decode(&interface);
| ^~~~~~ ~~~~~~~~~~
lha.h:245:25: note: declared here
245 | extern void decode();
| ^~~~~~
extract.c:57:17: error: too many arguments to function ‘start_indicator’; expected 0, have 4
57 | start_indicator(name, original_size
| ^~~~~~~~~~~~~~~ ~~~~
lha.h:248:17: note: declared here
248 | extern void start_indicator();
| ^~~~~~~~~~~~~~~
extract.c:60:17: error: too many arguments to function ‘decode’; expected 0, have 1
60 | decode(&interface);
| ^~~~~~ ~~~~~~~~~~
lha.h:245:25: note: declared here
245 | extern void decode();
| ^~~~~~
extract.c:62:9: error: too many arguments to function ‘finish_indicator’; expected 0, have 2
62 | finish_indicator(name, verify_mode ? "Tested " : "Melted ");
| ^~~~~~~~~~~~~~~~ ~~~~
lha.h:249:17: note: declared here
249 | extern void finish_indicator();
| ^~~~~~~~~~~~~~~~
make[1]: *** [<builtin>: extract.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o dhuf.o dhuf.c
In file included from lha.h:23,
from dhuf.c:9:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
dhuf.c: In function ‘reconst’:
dhuf.c:84:1: warning: old-style function definition [-Wold-style-definition]
84 | reconst(start, end)
| ^~~~~~~
dhuf.c: In function ‘swap_inc’:
dhuf.c:140:1: warning: old-style function definition [-Wold-style-definition]
140 | swap_inc(p)
| ^~~~~~~~
dhuf.c: In function ‘update_c’:
dhuf.c:181:1: warning: old-style function definition [-Wold-style-definition]
181 | update_c(p)
| ^~~~~~~~
dhuf.c: In function ‘update_p’:
dhuf.c:198:1: warning: old-style function definition [-Wold-style-definition]
198 | update_p(p)
| ^~~~~~~~
dhuf.c: In function ‘make_new_node’:
dhuf.c:217:1: warning: old-style function definition [-Wold-style-definition]
217 | make_new_node(p)
| ^~~~~~~~~~~~~
dhuf.c: In function ‘encode_c_dyn’:
dhuf.c:241:1: warning: old-style function definition [-Wold-style-definition]
241 | encode_c_dyn(c)
| ^~~~~~~~~~~~
dhuf.c:259:25: error: too many arguments to function ‘putcode’; expected 0, have 2
259 | putcode(16, bits);
| ^~~~~~~ ~~
lha.h:305:41: note: declared here
305 | extern void putcode( /* uchar n, ushort x */ );
| ^~~~~~~
dhuf.c:263:9: error: too many arguments to function ‘putcode’; expected 0, have 2
263 | putcode(cnt, bits);
| ^~~~~~~ ~~~
lha.h:305:41: note: declared here
305 | extern void putcode( /* uchar n, ushort x */ );
| ^~~~~~~
dhuf.c:265:17: error: too many arguments to function ‘putbits’; expected 0, have 2
265 | putbits(8, d);
| ^~~~~~~ ~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
dhuf.c: In function ‘decode_c_dyn’:
dhuf.c:283:25: error: too many arguments to function ‘fillbuf’; expected 0, have 1
283 | fillbuf(16);
| ^~~~~~~ ~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
dhuf.c:288:9: error: too many arguments to function ‘fillbuf’; expected 0, have 1
288 | fillbuf(cnt);
| ^~~~~~~ ~~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
dhuf.c:292:22: error: too many arguments to function ‘getbits’; expected 0, have 1
292 | c += getbits(8);
| ^~~~~~~ ~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
dhuf.c: In function ‘decode_p_dyn’:
dhuf.c:315:25: error: too many arguments to function ‘fillbuf’; expected 0, have 1
315 | fillbuf(16);
| ^~~~~~~ ~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
dhuf.c:320:9: error: too many arguments to function ‘fillbuf’; expected 0, have 1
320 | fillbuf(cnt);
| ^~~~~~~ ~~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
dhuf.c:324:27: error: too many arguments to function ‘getbits’; expected 0, have 1
324 | return (c << 6) + getbits(6);
| ^~~~~~~ ~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
dhuf.c: In function ‘output_dyn’:
dhuf.c:329:1: warning: old-style function definition [-Wold-style-definition]
329 | output_dyn(code, pos)
| ^~~~~~~~~~
dhuf.c:332:1: error: number of arguments doesn’t match prototype
332 | {
| ^
lha.h:274:17: error: prototype declaration
274 | extern void output_dyn( /* int code, unsigned int pos */ );
| ^~~~~~~~~~
dhuf.c:335:17: error: too many arguments to function ‘encode_p_st0’; expected 0, have 1
335 | encode_p_st0(pos);
| ^~~~~~~~~~~~ ~~~
lha.h:263:17: note: declared here
263 | extern void encode_p_st0( /* unsigned short j */ );
| ^~~~~~~~~~~~
dhuf.c: In function ‘encode_end_dyn’:
dhuf.c:343:9: error: too many arguments to function ‘putcode’; expected 0, have 2
343 | putcode(7, 0);
| ^~~~~~~ ~
lha.h:305:41: note: declared here
305 | extern void putcode( /* uchar n, ushort x */ );
| ^~~~~~~
make[1]: *** [<builtin>: dhuf.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o maketree.o maketree.c
In file included from lha.h:23,
from maketree.c:9:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
maketree.c: In function ‘make_code’:
maketree.c:18:1: warning: old-style function definition [-Wold-style-definition]
18 | make_code(n, len, code)
| ^~~~~~~~~
maketree.c:22:1: error: number of arguments doesn’t match prototype
22 | {
| ^
lha.h:296:25: error: prototype declaration
296 | extern void make_code( /* int n, uchar len[], ushort code[] */ );
| ^~~~~~~~~
maketree.c: In function ‘count_len’:
maketree.c:44:1: warning: old-style function definition [-Wold-style-definition]
44 | count_len(i) /* call with i = root */
| ^~~~~~~~~
maketree.c: In function ‘make_len’:
maketree.c:61:1: warning: old-style function definition [-Wold-style-definition]
61 | make_len(root)
| ^~~~~~~~
maketree.c: In function ‘downheap’:
maketree.c:103:1: warning: old-style function definition [-Wold-style-definition]
103 | downheap(i)
| ^~~~~~~~
maketree.c: In function ‘make_tree’:
maketree.c:123:1: warning: old-style function definition [-Wold-style-definition]
123 | make_tree(nparm, freqparm, lenparm, codeparm)
| ^~~~~~~~~
maketree.c:129:1: error: number of arguments doesn’t match prototype
129 | {
| ^
lha.h:297:17: error: prototype declaration
297 | extern short make_tree( /* int nparm, ushort freqparm[], uchar lenparm[],
| ^~~~~~~~~
maketree.c:168:9: error: too many arguments to function ‘make_code’; expected 0, have 3
168 | make_code(nparm, lenparm, codeparm);
| ^~~~~~~~~ ~~~~~
maketree.c:18:1: note: declared here
18 | make_code(n, len, code)
| ^~~~~~~~~
make[1]: *** [<builtin>: maketree.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o larc.o larc.c
In file included from lha.h:23,
from larc.c:9:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
larc.c: In function ‘decode_c_lzs’:
larc.c:17:13: error: too many arguments to function ‘getbits’; expected 0, have 1
17 | if (getbits(1)) {
| ^~~~~~~ ~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
larc.c:18:24: error: too many arguments to function ‘getbits’; expected 0, have 1
18 | return getbits(8);
| ^~~~~~~ ~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
larc.c:21:28: error: too many arguments to function ‘getbits’; expected 0, have 1
21 | matchpos = getbits(11);
| ^~~~~~~ ~~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
larc.c:22:24: error: too many arguments to function ‘getbits’; expected 0, have 1
22 | return getbits(4) + 0x100;
| ^~~~~~~ ~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
make[1]: *** [<builtin>: larc.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o crcio.o crcio.c
In file included from lha.h:23,
from crcio.c:9:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
crcio.c: In function ‘put_indicator’:
crcio.c:39:1: warning: old-style function definition [-Wold-style-definition]
39 | put_indicator(count)
| ^~~~~~~~~~~~~
crcio.c: In function ‘calccrc’:
crcio.c:54:1: warning: old-style function definition [-Wold-style-definition]
54 | calccrc(p, n)
| ^~~~~~~
crcio.c:57:1: error: number of arguments doesn’t match prototype
57 | {
| ^
lha.h:312:39: error: prototype declaration
312 | extern unsigned short calccrc();
| ^~~~~~~
crcio.c: In function ‘fillbuf’:
crcio.c:69:1: warning: old-style function definition [-Wold-style-definition]
69 | fillbuf(n) /* Shift bitbuf n bits left, read n bits */
| ^~~~~~~
crcio.c:71:1: error: number of arguments doesn’t match prototype
71 | {
| ^
lha.h:303:41: error: prototype declaration
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
crcio.c: In function ‘getbits’:
crcio.c:90:1: warning: old-style function definition [-Wold-style-definition]
90 | getbits(n)
| ^~~~~~~
crcio.c:92:1: error: number of arguments doesn’t match prototype
92 | {
| ^
lha.h:304:25: error: prototype declaration
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
crcio.c:96:9: error: too many arguments to function ‘fillbuf’; expected 0, have 1
96 | fillbuf(n);
| ^~~~~~~ ~
crcio.c:69:1: note: declared here
69 | fillbuf(n) /* Shift bitbuf n bits left, read n bits */
| ^~~~~~~
crcio.c: In function ‘putcode’:
crcio.c:102:1: warning: old-style function definition [-Wold-style-definition]
102 | putcode(n, x) /* Write rightmost n bits of x */
| ^~~~~~~
crcio.c:105:1: error: number of arguments doesn’t match prototype
105 | {
| ^
lha.h:305:41: error: prototype declaration
305 | extern void putcode( /* uchar n, ushort x */ );
| ^~~~~~~
crcio.c:113:29: error: too many arguments to function ‘fatal_error’; expected 0, have 1
113 | fatal_error("Write error in crcio.c(putcode)\n");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
crcio.c: In function ‘putbits’:
crcio.c:129:1: warning: old-style function definition [-Wold-style-definition]
129 | putbits(n, x) /* Write rightmost n bits of x */
| ^~~~~~~
crcio.c:132:1: error: number of arguments doesn’t match prototype
132 | {
| ^
lha.h:306:41: error: prototype declaration
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
crcio.c:141:29: error: too many arguments to function ‘fatal_error’; expected 0, have 1
141 | fatal_error("Write error in crcio.c(putbits)\n");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
crcio.c: In function ‘fread_crc’:
crcio.c:157:1: warning: old-style function definition [-Wold-style-definition]
157 | fread_crc(p, n, fp)
| ^~~~~~~~~
crcio.c:161:1: error: number of arguments doesn’t match prototype
161 | {
| ^
lha.h:307:41: error: prototype declaration
307 | extern int fread_crc( /* uchar *p, int n, FILE *f */ );
| ^~~~~~~~~
crcio.c:163:21: error: implicit declaration of function ‘fread_txt’; did you mean ‘fread_crc’? [-Wimplicit-function-declaration]
163 | n = fread_txt(p, n, fp);
| ^~~~~~~~~
| fread_crc
crcio.c:167:9: error: too many arguments to function ‘calccrc’; expected 0, have 2
167 | calccrc(p, n);
| ^~~~~~~ ~
crcio.c:54:1: note: declared here
54 | calccrc(p, n)
| ^~~~~~~
crcio.c: In function ‘fwrite_crc’:
crcio.c:173:1: warning: old-style function definition [-Wold-style-definition]
173 | fwrite_crc(p, n, fp)
| ^~~~~~~~~~
crcio.c:177:1: error: number of arguments doesn’t match prototype
177 | {
| ^
lha.h:308:41: error: prototype declaration
308 | extern void fwrite_crc( /* uchar *p, int n, FILE *f */ );
| ^~~~~~~~~~
crcio.c:178:9: error: too many arguments to function ‘calccrc’; expected 0, have 2
178 | calccrc(p, n);
| ^~~~~~~ ~
crcio.c:54:1: note: declared here
54 | calccrc(p, n)
| ^~~~~~~
crcio.c:184:29: error: implicit declaration of function ‘fwrite_txt’; did you mean ‘fwrite_crc’? [-Wimplicit-function-declaration]
184 | if (fwrite_txt(p, n, fp))
| ^~~~~~~~~~
| fwrite_crc
crcio.c:185:33: error: too many arguments to function ‘fatal_error’; expected 0, have 1
185 | fatal_error("File write error\n");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
crcio.c:189:33: error: too many arguments to function ‘fatal_error’; expected 0, have 1
189 | fatal_error("File write error\n");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
crcio.c: In function ‘init_getbits’:
crcio.c:210:9: error: too many arguments to function ‘fillbuf’; expected 0, have 1
210 | fillbuf(2 * CHAR_BIT);
| ^~~~~~~
crcio.c:69:1: note: declared here
69 | fillbuf(n) /* Shift bitbuf n bits left, read n bits */
| ^~~~~~~
crcio.c: In function ‘putc_euc’:
crcio.c:228:1: warning: old-style function definition [-Wold-style-definition]
228 | putc_euc(c, fd)
| ^~~~~~~~
crcio.c: In function ‘fwrite_txt’:
crcio.c:268:1: warning: old-style function definition [-Wold-style-definition]
268 | fwrite_txt(p, n, fp)
| ^~~~~~~~~~
crcio.c: In function ‘fread_txt’:
crcio.c:289:1: warning: old-style function definition [-Wold-style-definition]
289 | fread_txt(p, n, fp)
| ^~~~~~~~~
crcio.c: In function ‘calc_header_crc’:
crcio.c:350:1: warning: old-style function definition [-Wold-style-definition]
350 | calc_header_crc(p, n) /* Thanks T.Okamoto */
| ^~~~~~~~~~~~~~~
make[1]: *** [<builtin>: crcio.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o shuf.o shuf.c
In file included from lha.h:23,
from shuf.c:9:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
shuf.c: In function ‘encode_p_st0’:
shuf.c:41:1: warning: old-style function definition [-Wold-style-definition]
41 | encode_p_st0(j)
| ^~~~~~~~~~~~
shuf.c:43:1: error: number of arguments doesn’t match prototype
43 | {
| ^
lha.h:263:17: error: prototype declaration
263 | extern void encode_p_st0( /* unsigned short j */ );
| ^~~~~~~~~~~~
shuf.c:47:9: error: too many arguments to function ‘putcode’; expected 0, have 2
47 | putcode(pt_len[i], pt_code[i]);
| ^~~~~~~ ~~~~~~~~~
lha.h:305:41: note: declared here
305 | extern void putcode( /* uchar n, ushort x */ );
| ^~~~~~~
shuf.c:48:9: error: too many arguments to function ‘putbits’; expected 0, have 2
48 | putbits(6, j & 0x3f);
| ^~~~~~~ ~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
shuf.c: In function ‘ready_made’:
shuf.c:53:1: warning: old-style function definition [-Wold-style-definition]
53 | ready_made(method)
| ^~~~~~~~~~
shuf.c: In function ‘read_tree_c’:
shuf.c:96:21: error: too many arguments to function ‘getbits’; expected 0, have 1
96 | if (getbits(1))
| ^~~~~~~ ~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
shuf.c:97:36: error: too many arguments to function ‘getbits’; expected 0, have 1
97 | c_len[i] = getbits(LENFIELD) + 1;
| ^~~~~~~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
shuf.c:101:29: error: too many arguments to function ‘getbits’; expected 0, have 1
101 | c = getbits(CBIT);
| ^~~~~~~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
shuf.c:109:9: error: too many arguments to function ‘make_table’; expected 0, have 4
109 | make_table(N1, c_len, 12, c_table);
| ^~~~~~~~~~
lha.h:288:17: note: declared here
288 | extern void make_table( /* int nchar, uchar bitlen[], int tablebits,
| ^~~~~~~~~~
shuf.c: In function ‘read_tree_p’:
shuf.c:120:29: error: too many arguments to function ‘getbits’; expected 0, have 1
120 | pt_len[i] = getbits(LENFIELD);
| ^~~~~~~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
shuf.c:123:29: error: too many arguments to function ‘getbits’; expected 0, have 1
123 | c = getbits(MAX_DICBIT - 7);
| ^~~~~~~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
shuf.c: In function ‘decode_start_fix’:
shuf.c:146:9: error: too many arguments to function ‘make_table’; expected 0, have 4
146 | make_table(np, pt_len, 8, pt_table);
| ^~~~~~~~~~ ~~
lha.h:288:17: note: declared here
288 | extern void make_table( /* int nchar, uchar bitlen[], int tablebits,
| ^~~~~~~~~~
shuf.c: In function ‘decode_c_st0’:
shuf.c:157:29: error: too many arguments to function ‘getbits’; expected 0, have 1
157 | blocksize = getbits(BUFBITS); /* read block blocksize */
| ^~~~~~~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
shuf.c:159:21: error: too many arguments to function ‘getbits’; expected 0, have 1
159 | if (getbits(1)) {
| ^~~~~~~ ~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
shuf.c:165:17: error: too many arguments to function ‘make_table’; expected 0, have 4
165 | make_table(NP, pt_len, 8, pt_table);
| ^~~~~~~~~~
lha.h:288:17: note: declared here
288 | extern void make_table( /* int nchar, uchar bitlen[], int tablebits,
| ^~~~~~~~~~
shuf.c:170:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
170 | fillbuf(c_len[j]);
| ^~~~~~~ ~~~~~~~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
shuf.c:172:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
172 | fillbuf(12);
| ^~~~~~~ ~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
shuf.c:181:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
181 | fillbuf(c_len[j] - 12);
| ^~~~~~~ ~~~~~~~~~~~~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
shuf.c:184:22: error: too many arguments to function ‘getbits’; expected 0, have 1
184 | j += getbits(EXTRABITS);
| ^~~~~~~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
shuf.c: In function ‘decode_p_st0’:
shuf.c:196:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
196 | fillbuf(pt_len[j]);
| ^~~~~~~ ~~~~~~~~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
shuf.c:199:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
199 | fillbuf(8);
| ^~~~~~~ ~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
shuf.c:208:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
208 | fillbuf(pt_len[j] - 8);
| ^~~~~~~ ~~~~~~~~~~~~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
shuf.c:210:27: error: too many arguments to function ‘getbits’; expected 0, have 1
210 | return (j << 6) + getbits(6);
| ^~~~~~~ ~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
make[1]: *** [<builtin>: shuf.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o lhadd.o lhadd.c
In file included from lha.h:23,
from lhadd.c:10:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
lhadd.c: In function ‘add_one’:
lhadd.c:18:1: warning: old-style function definition [-Wold-style-definition]
18 | add_one(fp, nafp, hdr)
| ^~~~~~~
lhadd.c:33:9: error: too many arguments to function ‘write_header’; expected 0, have 2
33 | write_header(nafp, hdr);/* DUMMY */
| ^~~~~~~~~~~~ ~~~~
lha.h:227:25: note: declared here
227 | extern void write_header();
| ^~~~~~~~~~~~
lhadd.c:51:20: error: too many arguments to function ‘encode_lzhuf’; expected 0, have 7
51 | hdr->crc = encode_lzhuf(fp, nafp, hdr->original_size,
| ^~~~~~~~~~~~ ~~
lha.h:315:25: note: declared here
315 | extern int encode_lzhuf();
| ^~~~~~~~~~~~
lhadd.c:60:28: error: too many arguments to function ‘encode_stored_crc’; expected 0, have 5
60 | hdr->crc = encode_stored_crc(fp, nafp, hdr->original_size,
| ^~~~~~~~~~~~~~~~~ ~~
lha.h:316:17: note: declared here
316 | extern int encode_stored_crc();
| ^~~~~~~~~~~~~~~~~
lhadd.c:65:17: error: implicit declaration of function ‘ftruncate’; did you mean ‘strncat’? [-Wimplicit-function-declaration]
65 | ftruncate(fileno(nafp), next_pos);
| ^~~~~~~~~
| strncat
lhadd.c:72:9: error: too many arguments to function ‘write_header’; expected 0, have 2
72 | write_header(nafp, hdr);
| ^~~~~~~~~~~~ ~~~~
lha.h:227:25: note: declared here
227 | extern void write_header();
| ^~~~~~~~~~~~
lhadd.c: In function ‘append_it’:
lhadd.c:79:1: warning: old-style function definition [-Wold-style-definition]
79 | append_it(name, oafp, nafp)
| ^~~~~~~~~
lhadd.c:95:17: error: too many arguments to function ‘error’; expected 0, have 2
95 | error("Cannot access", name); /* See cleaning_files, Why? */
| ^~~~~ ~~~~~~~~~~~~~~~
lha.h:202:25: note: declared here
202 | extern void error();
| ^~~~~
lhadd.c:105:9: error: too many arguments to function ‘init_header’; expected 0, have 3
105 | init_header(name, &stbuf, &hdr);
| ^~~~~~~~~~~ ~~~~
lha.h:223:25: note: declared here
223 | extern void init_header();
| ^~~~~~~~~~~
lhadd.c:111:30: error: too many arguments to function ‘xfopen’; expected 0, have 2
111 | fp = xfopen(name, READ_BINARY);
| ^~~~~~ ~~~~
lha.h:207:26: note: declared here
207 | extern FILE *xfopen();
| ^~~~~~
lhadd.c:118:22: error: too many arguments to function ‘get_header’; expected 0, have 2
118 | if (!get_header(oafp, &ahdr)) {
| ^~~~~~~~~~ ~~~~
lha.h:224:17: note: declared here
224 | extern boolean get_header();
| ^~~~~~~~~~
lhadd.c:127:31: error: implicit declaration of function ‘strcmp_filename’ [-Wimplicit-function-declaration]
127 | cmp = strcmp_filename(ahdr.name, hdr.name);
| ^~~~~~~~~~~~~~~
lhadd.c:132:41: error: too many arguments to function ‘copy_old_one’; expected 0, have 3
132 | copy_old_one(oafp, nafp, &ahdr);
| ^~~~~~~~~~~~ ~~~~
lha.h:229:25: note: declared here
229 | extern void copy_old_one();
| ^~~~~~~~~~~~
lhadd.c:159:33: error: too many arguments to function ‘copy_old_one’; expected 0, have 3
159 | copy_old_one(oafp, nafp, &ahdr);
| ^~~~~~~~~~~~ ~~~~
lha.h:229:25: note: declared here
229 | extern void copy_old_one();
| ^~~~~~~~~~~~
lhadd.c:184:21: error: too many arguments to function ‘find_files’; expected 0, have 3
184 | if (find_files(name, &filec, &filev)) {
| ^~~~~~~~~~ ~~~~
lha.h:209:17: note: declared here
209 | extern boolean find_files();
| ^~~~~~~~~~
lhadd.c:187:25: error: too many arguments to function ‘free_files’; expected 0, have 2
187 | free_files(filec, filev);
| ^~~~~~~~~~ ~~~~~
lha.h:210:25: note: declared here
210 | extern void free_files();
| ^~~~~~~~~~
lhadd.c: In function ‘find_update_files’:
lhadd.c:195:1: warning: old-style function definition [-Wold-style-definition]
195 | find_update_files(oafp)
| ^~~~~~~~~~~~~~~~~
lhadd.c:207:9: error: too many arguments to function ‘init_sp’; expected 0, have 1
207 | init_sp(&sp);
| ^~~~~~~ ~~~
lha.h:212:25: note: declared here
212 | extern void init_sp();
| ^~~~~~~
lhadd.c:208:16: error: too many arguments to function ‘get_header’; expected 0, have 2
208 | while (get_header(oafp, &hdr)) {
| ^~~~~~~~~~ ~~~~
lha.h:224:17: note: declared here
224 | extern boolean get_header();
| ^~~~~~~~~~
lhadd.c:211:33: error: too many arguments to function ‘add_sp’; expected 0, have 3
211 | add_sp(&sp, hdr.name, strlen(hdr.name) + 1);
| ^~~~~~ ~~~
lha.h:213:25: note: declared here
213 | extern void add_sp();
| ^~~~~~
lhadd.c:219:33: error: too many arguments to function ‘add_sp’; expected 0, have 3
219 | add_sp(&sp, name, len + 1);
| ^~~~~~ ~~~
lha.h:213:25: note: declared here
213 | extern void add_sp();
| ^~~~~~
lhadd.c:226:9: error: too many arguments to function ‘finish_sp’; expected 0, have 3
226 | finish_sp(&sp, &cmd_filec, &cmd_filev);
| ^~~~~~~~~ ~~~
lha.h:214:25: note: declared here
214 | extern void finish_sp();
| ^~~~~~~~~
lhadd.c: In function ‘delete’:
lhadd.c:231:1: warning: old-style function definition [-Wold-style-definition]
231 | delete(oafp, nafp)
| ^~~~~~
lhadd.c:239:16: error: too many arguments to function ‘get_header’; expected 0, have 2
239 | while (get_header(oafp, &ahdr)) {
| ^~~~~~~~~~ ~~~~
lha.h:224:17: note: declared here
224 | extern boolean get_header();
| ^~~~~~~~~~
lhadd.c:243:21: error: too many arguments to function ‘need_file’; expected 0, have 1
243 | if (need_file(b1)) { /* skip */
| ^~~~~~~~~ ~~
lha.h:205:17: note: declared here
205 | extern boolean need_file();
| ^~~~~~~~~
lhadd.c:257:33: error: too many arguments to function ‘copy_old_one’; expected 0, have 3
257 | copy_old_one(oafp, nafp, &ahdr);
| ^~~~~~~~~~~~ ~~~~
lha.h:229:25: note: declared here
229 | extern void copy_old_one();
| ^~~~~~~~~~~~
lhadd.c: In function ‘build_temporary_file’:
lhadd.c:275:24: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
275 | signal(SIGINT, interrupt);
| ^~~~~~~~~
| |
| void (*)(void)
In file included from lha.h:21:
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~
lha.h:198:25: note: ‘interrupt’ declared here
198 | extern void interrupt();
| ^~~~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
lhadd.c:276:24: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
276 | signal(SIGHUP, interrupt);
| ^~~~~~~~~
| |
| void (*)(void)
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~
lha.h:198:25: note: ‘interrupt’ declared here
198 | extern void interrupt();
| ^~~~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
lhadd.c:279:15: error: too many arguments to function ‘xfopen’; expected 0, have 2
279 | afp = xfopen(temporary_name, WRITE_BINARY);
| ^~~~~~ ~~~~~~~~~~~~~~
lha.h:207:26: note: declared here
207 | extern FILE *xfopen();
| ^~~~~~
lhadd.c: In function ‘build_backup_file’:
lhadd.c:292:9: error: implicit declaration of function ‘build_backup_name’; did you mean ‘build_backup_file’? [-Wimplicit-function-declaration]
292 | build_backup_name(backup_archive_name, archive_name);
| ^~~~~~~~~~~~~~~~~
| build_backup_file
lhadd.c:297:25: error: too many arguments to function ‘fatal_error’; expected 0, have 1
297 | fatal_error(archive_name);
| ^~~~~~~~~~~ ~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
lhadd.c:299:32: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
299 | signal(SIGINT, interrupt);
| ^~~~~~~~~
| |
| void (*)(void)
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~
lha.h:198:25: note: ‘interrupt’ declared here
198 | extern void interrupt();
| ^~~~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
lhadd.c:300:32: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
300 | signal(SIGHUP, interrupt);
| ^~~~~~~~~
| |
| void (*)(void)
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~
lha.h:198:25: note: ‘interrupt’ declared here
198 | extern void interrupt();
| ^~~~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
lhadd.c: In function ‘temporary_to_new_archive_file’:
lhadd.c:317:1: warning: old-style function definition [-Wold-style-definition]
317 | temporary_to_new_archive_file(new_archive_size)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lhadd.c:322:16: error: too many arguments to function ‘xfopen’; expected 0, have 2
322 | oafp = xfopen(temporary_name, READ_BINARY);
| ^~~~~~ ~~~~~~~~~~~~~~
lha.h:207:26: note: declared here
207 | extern FILE *xfopen();
| ^~~~~~
lhadd.c:328:24: error: too many arguments to function ‘xfopen’; expected 0, have 2
328 | nafp = xfopen(new_archive_name, WRITE_BINARY);
| ^~~~~~ ~~~~~~~~~~~~~~~~
lha.h:207:26: note: declared here
207 | extern FILE *xfopen();
| ^~~~~~
lhadd.c:332:9: error: too many arguments to function ‘copyfile’; expected 0, have 4
332 | copyfile(oafp, nafp, new_archive_size, 0);
| ^~~~~~~~ ~~~~
lha.h:231:25: note: declared here
231 | extern long copyfile();
| ^~~~~~~~
lhadd.c:338:9: error: implicit declaration of function ‘unlink’ [-Wimplicit-function-declaration]
338 | unlink(temporary_name);
| ^~~~~~
lhadd.c: In function ‘set_archive_file_mode’:
lhadd.c:371:17: error: implicit declaration of function ‘chown’ [-Wimplicit-function-declaration]
371 | chown(new_archive_name, getuid(), archive_file_gid);
| ^~~~~
lhadd.c:371:41: error: implicit declaration of function ‘getuid’ [-Wimplicit-function-declaration]
371 | chown(new_archive_name, getuid(), archive_file_gid);
| ^~~~~~
lhadd.c: In function ‘remove_one’:
lhadd.c:380:1: warning: old-style function definition [-Wold-style-definition]
380 | remove_one(name)
| ^~~~~~~~~~
lhadd.c:388:17: error: too many arguments to function ‘warning’; expected 0, have 2
388 | warning("Cannot access", name);
| ^~~~~~~ ~~~~~~~~~~~~~~~
lha.h:201:25: note: declared here
201 | extern void warning();
| ^~~~~~~
lhadd.c:391:21: error: too many arguments to function ‘find_files’; expected 0, have 3
391 | if (find_files(name, &filec, &filev)) {
| ^~~~~~~~~~ ~~~~
lha.h:209:17: note: declared here
209 | extern boolean find_files();
| ^~~~~~~~~~
lhadd.c:392:25: error: too many arguments to function ‘remove_files’; expected 0, have 2
392 | remove_files(filec, filev);
| ^~~~~~~~~~~~ ~~~~~
lhadd.c:12:17: note: declared here
12 | static void remove_files();
| ^~~~~~~~~~~~
lhadd.c:393:25: error: too many arguments to function ‘free_files’; expected 0, have 2
393 | free_files(filec, filev);
| ^~~~~~~~~~ ~~~~~
lha.h:210:25: note: declared here
210 | extern void free_files();
| ^~~~~~~~~~
lhadd.c:396:25: error: too many arguments to function ‘warning’; expected 0, have 2
396 | warning("Cannot open directory", name);
| ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
lha.h:201:25: note: declared here
201 | extern void warning();
| ^~~~~~~
lhadd.c:400:26: error: implicit declaration of function ‘rmdir’ [-Wimplicit-function-declaration]
400 | else if (rmdir(name) < 0)
| ^~~~~
lhadd.c:401:25: error: too many arguments to function ‘warning’; expected 0, have 2
401 | warning("Cannot remove directory", name);
| ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:201:25: note: declared here
201 | extern void warning();
| ^~~~~~~
lhadd.c:409:25: error: too many arguments to function ‘warning’; expected 0, have 2
409 | warning("Cannot remove", name);
| ^~~~~~~ ~~~~~~~~~~~~~~~
lha.h:201:25: note: declared here
201 | extern void warning();
| ^~~~~~~
lhadd.c:418:25: error: too many arguments to function ‘warning’; expected 0, have 2
418 | warning("Cannot remove", name);
| ^~~~~~~ ~~~~~~~~~~~~~~~
lha.h:201:25: note: declared here
201 | extern void warning();
| ^~~~~~~
lhadd.c:424:17: error: too many arguments to function ‘error’; expected 0, have 2
424 | error("Cannot remove (not a file or directory)", name);
| ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:202:25: note: declared here
202 | extern void error();
| ^~~~~
lhadd.c: In function ‘remove_files’:
lhadd.c:429:1: warning: old-style function definition [-Wold-style-definition]
429 | remove_files(filec, filev)
| ^~~~~~~~~~~~
lhadd.c: In function ‘cmd_add’:
lhadd.c:454:17: error: too many arguments to function ‘error’; expected 0, have 2
454 | error("No files given in argument, do nothing.", "");
| ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:202:25: note: declared here
202 | extern void error();
| ^~~~~
lhadd.c:465:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
465 | fatal_error(archive_name); /* exit if cannot execute
| ^~~~~~~~~~~ ~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
lhadd.c:474:21: error: too many arguments to function ‘archive_is_msdos_sfx1’; expected 0, have 1
474 | if (oafp && archive_is_msdos_sfx1(archive_name)) {
| ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
lha.h:225:17: note: declared here
225 | extern boolean archive_is_msdos_sfx1();
| ^~~~~~~~~~~~~~~~~~~~~
lhadd.c:475:17: error: too many arguments to function ‘skip_msdos_sfx1_code’; expected 0, have 1
475 | skip_msdos_sfx1_code(oafp);
| ^~~~~~~~~~~~~~~~~~~~ ~~~~
lha.h:226:17: note: declared here
226 | extern boolean skip_msdos_sfx1_code();
| ^~~~~~~~~~~~~~~~~~~~
lhadd.c:476:17: error: too many arguments to function ‘build_standard_archive_name’; expected 0, have 2
476 | build_standard_archive_name(new_archive_name_buffer, archive_name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
lha.h:220:25: note: declared here
220 | extern void build_standard_archive_name();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
lhadd.c:493:9: error: too many arguments to function ‘cleaning_files’; expected 0, have 2
493 | cleaning_files(&cmd_filec, &cmd_filev);
| ^~~~~~~~~~~~~~ ~~~~~~~~~~
lha.h:216:25: note: declared here
216 | extern void cleaning_files();
| ^~~~~~~~~~~~~~
lhadd.c:506:24: error: too many arguments to function ‘get_header’; expected 0, have 2
506 | while (get_header(oafp, &ahdr)) {
| ^~~~~~~~~~ ~~~~
lha.h:224:17: note: declared here
224 | extern boolean get_header();
| ^~~~~~~~~~
lhadd.c:511:33: error: too many arguments to function ‘copy_old_one’; expected 0, have 3
511 | copy_old_one(oafp, nafp, &ahdr);
| ^~~~~~~~~~~~ ~~~~
lha.h:229:25: note: declared here
229 | extern void copy_old_one();
| ^~~~~~~~~~~~
lhadd.c:518:17: error: too many arguments to function ‘write_archive_tail’; expected 0, have 1
518 | write_archive_tail(nafp);
| ^~~~~~~~~~~~~~~~~~ ~~~~
lha.h:228:25: note: declared here
228 | extern void write_archive_tail();
| ^~~~~~~~~~~~~~~~~~
lhadd.c:539:17: error: too many arguments to function ‘remove_files’; expected 0, have 2
539 | remove_files(cmd_filec, cmd_filev);
| ^~~~~~~~~~~~ ~~~~~~~~~
lhadd.c:429:1: note: declared here
429 | remove_files(filec, filev)
| ^~~~~~~~~~~~
lhadd.c: In function ‘cmd_delete’:
lhadd.c:553:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
553 | fatal_error(archive_name);
| ^~~~~~~~~~~ ~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
lhadd.c:559:17: error: too many arguments to function ‘warning’; expected 0, have 2
559 | warning("No files given in argument, do nothing.", "");
| ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:201:25: note: declared here
201 | extern void warning();
| ^~~~~~~
lhadd.c:563:13: error: too many arguments to function ‘archive_is_msdos_sfx1’; expected 0, have 1
563 | if (archive_is_msdos_sfx1(archive_name)) {
| ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
lha.h:225:17: note: declared here
225 | extern boolean archive_is_msdos_sfx1();
| ^~~~~~~~~~~~~~~~~~~~~
lhadd.c:564:17: error: too many arguments to function ‘skip_msdos_sfx1_code’; expected 0, have 1
564 | skip_msdos_sfx1_code(oafp);
| ^~~~~~~~~~~~~~~~~~~~ ~~~~
lha.h:226:17: note: declared here
226 | extern boolean skip_msdos_sfx1_code();
| ^~~~~~~~~~~~~~~~~~~~
lhadd.c:565:17: error: too many arguments to function ‘build_standard_archive_name’; expected 0, have 2
565 | build_standard_archive_name(new_archive_name_buffer, archive_name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
lha.h:220:25: note: declared here
220 | extern void build_standard_archive_name();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
lhadd.c:581:17: error: too many arguments to function ‘write_archive_tail’; expected 0, have 1
581 | write_archive_tail(nafp);
| ^~~~~~~~~~~~~~~~~~ ~~~~
lha.h:228:25: note: declared here
228 | extern void write_archive_tail();
| ^~~~~~~~~~~~~~~~~~
lhadd.c: In function ‘strcmp_filename’:
lhadd.c:609:5: warning: old-style function definition [-Wold-style-definition]
609 | int strcmp_filename( str1, str2 )
| ^~~~~~~~~~~~~~~
make[1]: *** [<builtin>: lhadd.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o lharc.o lharc.c
In file included from lha.h:23,
from lharc.c:45:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
lharc.c: In function ‘print_tiny_usage_and_exit’:
lharc.c:180:9: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
180 | exit(1);
| ^~~~
lharc.c:46:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
45 | #include "lha.h"
+++ |+#include <stdlib.h>
46 |
lharc.c:180:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
180 | exit(1);
| ^~~~
lharc.c:180:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
lharc.c: In function ‘main’:
lharc.c:185:1: warning: old-style function definition [-Wold-style-definition]
185 | main(argc, argv)
| ^~~~
lharc.c:198:23: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
198 | av = (char **)malloc( sizeof(char*)*argc );
| ^~~~~~
lharc.c:198:23: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
lharc.c:198:23: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
lharc.c:198:23: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
lharc.c:199:25: error: too many arguments to function ‘fatal_error’; expected 0, have 1
199 | if (av == NULL) fatal_error("not enough memory\n");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
lharc.c:202:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
202 | fatal_error("not enough memory\n");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
lharc.c:210:17: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
210 | exit(1);
| ^~~~
lharc.c:210:17: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
lharc.c:346:33: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
346 | exit(1);
| ^~~~
lharc.c:346:33: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
lharc.c:373:25: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
373 | exit(1);
| ^~~~
lharc.c:373:25: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
lharc.c:382:22: error: implicit declaration of function ‘isatty’ [-Wimplicit-function-declaration]
382 | if (!isatty(1) && cmd == CMD_ADD)
| ^~~~~~
lharc.c:395:25: error: too many arguments to function ‘fatal_error’; expected 0, have 1
395 | fatal_error("Virtual memory exhausted\n");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
lharc.c:409:55: error: implicit declaration of function ‘realloc’ [-Wimplicit-function-declaration]
409 | cmd_filev = (char **) realloc(xfilev,
| ^~~~~~~
lharc.c:409:55: note: include ‘<stdlib.h>’ or provide a declaration of ‘realloc’
lharc.c:409:55: warning: incompatible implicit declaration of built-in function ‘realloc’ [-Wbuiltin-declaration-mismatch]
lharc.c:409:55: note: include ‘<stdlib.h>’ or provide a declaration of ‘realloc’
lharc.c:412:41: error: too many arguments to function ‘fatal_error’; expected 0, have 1
412 | fatal_error("Virtual memory exhausted\n");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
lharc.c:418:33: error: too many arguments to function ‘fatal_error’; expected 0, have 1
418 | fatal_error("Virtual memory exhausted\n");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
lharc.c: In function ‘message_1’:
lharc.c:468:1: warning: old-style function definition [-Wold-style-definition]
468 | message_1(title, subject, name)
| ^~~~~~~~~
lharc.c: In function ‘message’:
lharc.c:482:1: warning: old-style function definition [-Wold-style-definition]
482 | message(subject, name)
| ^~~~~~~
lharc.c:484:1: error: number of arguments doesn’t match prototype
484 | {
| ^
lha.h:200:25: error: prototype declaration
200 | extern void message();
| ^~~~~~~
lharc.c: In function ‘warning’:
lharc.c:490:1: warning: old-style function definition [-Wold-style-definition]
490 | warning(subject, name)
| ^~~~~~~
lharc.c:492:1: error: number of arguments doesn’t match prototype
492 | {
| ^
lha.h:201:25: error: prototype declaration
201 | extern void warning();
| ^~~~~~~
lharc.c: In function ‘error’:
lharc.c:498:1: warning: old-style function definition [-Wold-style-definition]
498 | error(subject, msg)
| ^~~~~
lharc.c:500:1: error: number of arguments doesn’t match prototype
500 | {
| ^
lha.h:202:25: error: prototype declaration
202 | extern void error();
| ^~~~~
lharc.c: In function ‘fatal_error’:
lharc.c:506:1: warning: old-style function definition [-Wold-style-definition]
506 | fatal_error(msg)
| ^~~~~~~~~~~
lharc.c:508:1: error: number of arguments doesn’t match prototype
508 | {
| ^
lha.h:203:25: error: prototype declaration
203 | extern void fatal_error();
| ^~~~~~~~~~~
lharc.c:512:17: error: implicit declaration of function ‘unlink’ [-Wimplicit-function-declaration]
512 | unlink(temporary_name);
| ^~~~~~
lharc.c:514:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
514 | exit(1);
| ^~~~
lharc.c:514:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
lharc.c: In function ‘write_error’:
lharc.c:521:9: error: too many arguments to function ‘fatal_error’; expected 0, have 1
521 | fatal_error(writting_filename);
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
lharc.c:506:1: note: declared here
506 | fatal_error(msg)
| ^~~~~~~~~~~
lharc.c: In function ‘read_error’:
lharc.c:528:9: error: too many arguments to function ‘fatal_error’; expected 0, have 1
528 | fatal_error(reading_filename);
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~
lharc.c:506:1: note: declared here
506 | fatal_error(msg)
| ^~~~~~~~~~~
lharc.c: In function ‘interrupt’:
lharc.c:533:1: warning: old-style function definition [-Wold-style-definition]
533 | interrupt(signo)
| ^~~~~~~~~
lharc.c:535:1: error: number of arguments doesn’t match prototype
535 | {
| ^
lha.h:198:25: error: prototype declaration
198 | extern void interrupt();
| ^~~~~~~~~
lharc.c:537:9: error: too many arguments to function ‘message’; expected 0, have 2
537 | message("Interrupted\n", "");
| ^~~~~~~ ~~~~~~~~~~~~~~~
lharc.c:482:1: note: declared here
482 | message(subject, name)
| ^~~~~~~
lharc.c:546:17: error: too many arguments to function ‘message’; expected 0, have 2
546 | message("Removing", writting_filename);
| ^~~~~~~ ~~~~~~~~~~
lharc.c:482:1: note: declared here
482 | message(subject, name)
| ^~~~~~~
lharc.c:551:14: error: implicit declaration of function ‘getpid’ [-Wimplicit-function-declaration]
551 | kill(getpid(), signo);
| ^~~~~~
lharc.c: In function ‘sort_by_ascii’:
lharc.c:558:1: warning: old-style function definition [-Wold-style-definition]
558 | sort_by_ascii(a, b)
| ^~~~~~~~~~~~~
lharc.c: In function ‘sort_files’:
lharc.c:591:17: error: implicit declaration of function ‘qsort’ [-Wimplicit-function-declaration]
591 | qsort(cmd_filev, cmd_filec, sizeof(char *), sort_by_ascii);
| ^~~~~
lharc.c: In function ‘xmalloc’:
lharc.c:596:1: warning: old-style function definition [-Wold-style-definition]
596 | xmalloc(size)
| ^~~~~~~
lharc.c:599:38: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
599 | char *p = (char *) malloc(size);
| ^~~~~~
lharc.c:599:38: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
lharc.c:601:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
601 | fatal_error("Not enough memory");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
lharc.c:506:1: note: declared here
506 | fatal_error(msg)
| ^~~~~~~~~~~
lharc.c: In function ‘xrealloc’:
lharc.c:607:1: warning: old-style function definition [-Wold-style-definition]
607 | xrealloc(old, size)
| ^~~~~~~~
lharc.c:611:38: warning: incompatible implicit declaration of built-in function ‘realloc’ [-Wbuiltin-declaration-mismatch]
611 | char *p = (char *) realloc(old, size);
| ^~~~~~~
lharc.c:611:38: note: include ‘<stdlib.h>’ or provide a declaration of ‘realloc’
lharc.c:613:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
613 | fatal_error("Not enough memory");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
lharc.c:506:1: note: declared here
506 | fatal_error(msg)
| ^~~~~~~~~~~
lharc.c: In function ‘init_sp’:
lharc.c:637:1: warning: old-style function definition [-Wold-style-definition]
637 | init_sp(sp)
| ^~~~~~~
lharc.c:639:1: error: number of arguments doesn’t match prototype
639 | {
| ^
lha.h:212:25: error: prototype declaration
212 | extern void init_sp();
| ^~~~~~~
lharc.c: In function ‘add_sp’:
lharc.c:648:1: warning: old-style function definition [-Wold-style-definition]
648 | add_sp(sp, name, len)
| ^~~~~~
lharc.c:652:1: error: number of arguments doesn’t match prototype
652 | {
| ^
lha.h:213:25: error: prototype declaration
213 | extern void add_sp();
| ^~~~~~
lharc.c: In function ‘finish_sp’:
lharc.c:664:1: warning: old-style function definition [-Wold-style-definition]
664 | finish_sp(sp, v_count, v_vector)
| ^~~~~~~~~
lharc.c:668:1: error: number of arguments doesn’t match prototype
668 | {
| ^
lha.h:214:25: error: prototype declaration
214 | extern void finish_sp();
| ^~~~~~~~~
lharc.c: In function ‘free_sp’:
lharc.c:687:1: warning: old-style function definition [-Wold-style-definition]
687 | free_sp(vector)
| ^~~~~~~
lharc.c:689:1: error: number of arguments doesn’t match prototype
689 | {
| ^
lha.h:215:25: error: prototype declaration
215 | extern void free_sp();
| ^~~~~~~
lharc.c:691:9: error: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
691 | free(*vector); /* free string pool */
| ^~~~
lharc.c:691:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
lharc.c:691:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
lharc.c:691:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
lharc.c: In function ‘include_path_p’:
lharc.c:700:1: warning: old-style function definition [-Wold-style-definition]
700 | include_path_p(path, name)
| ^~~~~~~~~~~~~~
lharc.c: In function ‘cleaning_files’:
lharc.c:712:1: warning: old-style function definition [-Wold-style-definition]
712 | cleaning_files(v_filec, v_filev)
| ^~~~~~~~~~~~~~
lharc.c:715:1: error: number of arguments doesn’t match prototype
715 | {
| ^
lha.h:216:25: error: prototype declaration
216 | extern void cleaning_files();
| ^~~~~~~~~~~~~~
lharc.c:795:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
795 | free(flags);
| ^~~~
lharc.c:795:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
lharc.c: In function ‘find_files’:
lharc.c:821:1: warning: old-style function definition [-Wold-style-definition]
821 | find_files(name, v_filec, v_filev)
| ^~~~~~~~~~
lharc.c:825:1: error: number of arguments doesn’t match prototype
825 | {
| ^
lha.h:209:17: error: prototype declaration
209 | extern boolean find_files();
| ^~~~~~~~~~
lharc.c:843:9: error: too many arguments to function ‘init_sp’; expected 0, have 1
843 | init_sp(&sp);
| ^~~~~~~ ~~~
lharc.c:637:1: note: declared here
637 | init_sp(sp)
| ^~~~~~~
lharc.c:877:25: error: too many arguments to function ‘add_sp’; expected 0, have 3
877 | add_sp(&sp, newname, len + n + 1);
| ^~~~~~ ~~~
lharc.c:648:1: note: declared here
648 | add_sp(sp, name, len)
| ^~~~~~
lharc.c:882:9: error: too many arguments to function ‘finish_sp’; expected 0, have 3
882 | finish_sp(&sp, v_filec, v_filev);
| ^~~~~~~~~ ~~~
lharc.c:664:1: note: declared here
664 | finish_sp(sp, v_count, v_vector)
| ^~~~~~~~~
lharc.c:885:9: error: too many arguments to function ‘cleaning_files’; expected 0, have 2
885 | cleaning_files(v_filec, v_filev);
| ^~~~~~~~~~~~~~ ~~~~~~~
lharc.c:712:1: note: declared here
712 | cleaning_files(v_filec, v_filev)
| ^~~~~~~~~~~~~~
lharc.c: In function ‘free_files’:
lharc.c:892:1: warning: old-style function definition [-Wold-style-definition]
892 | free_files(filec, filev)
| ^~~~~~~~~~
lharc.c:895:1: error: number of arguments doesn’t match prototype
895 | {
| ^
lha.h:210:25: error: prototype declaration
210 | extern void free_files();
| ^~~~~~~~~~
lharc.c:896:9: error: too many arguments to function ‘free_sp’; expected 0, have 1
896 | free_sp(filev);
| ^~~~~~~ ~~~~~
lharc.c:687:1: note: declared here
687 | free_sp(vector)
| ^~~~~~~
lharc.c: In function ‘build_temporary_name’:
lharc.c:916:9: error: implicit declaration of function ‘mkstemp’ [-Wimplicit-function-declaration]
916 | mkstemp(temporary_name);
| ^~~~~~~
lharc.c: In function ‘modify_filename_extention’:
lharc.c:944:1: warning: old-style function definition [-Wold-style-definition]
944 | modify_filename_extention(buffer, ext)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
lharc.c: In function ‘build_backup_name’:
lharc.c:966:1: warning: old-style function definition [-Wold-style-definition]
966 | build_backup_name(buffer, original)
| ^~~~~~~~~~~~~~~~~
lharc.c: In function ‘build_standard_archive_name’:
lharc.c:976:1: warning: old-style function definition [-Wold-style-definition]
976 | build_standard_archive_name(buffer, orginal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
lharc.c:979:1: error: number of arguments doesn’t match prototype
979 | {
| ^
lha.h:220:25: error: prototype declaration
220 | extern void build_standard_archive_name();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
lharc.c: In function ‘need_file’:
lharc.c:988:1: warning: old-style function definition [-Wold-style-definition]
988 | need_file(name)
| ^~~~~~~~~
lharc.c:990:1: error: number of arguments doesn’t match prototype
990 | {
| ^
lha.h:205:17: error: prototype declaration
205 | extern boolean need_file();
| ^~~~~~~~~
lharc.c:997:21: error: too many arguments to function ‘patmatch’; expected 0, have 3
997 | if (patmatch(cmd_filev[i], name, 0))
| ^~~~~~~~ ~~~~~~~~~~~~
lha.h:196:25: note: declared here
196 | extern int patmatch();
| ^~~~~~~~
lharc.c: In function ‘xfopen’:
lharc.c:1005:1: warning: old-style function definition [-Wold-style-definition]
1005 | xfopen(name, mode)
| ^~~~~~
lharc.c:1007:1: error: number of arguments doesn’t match prototype
1007 | {
| ^
lha.h:207:26: error: prototype declaration
207 | extern FILE *xfopen();
| ^~~~~~
lharc.c:1011:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
1011 | fatal_error(name);
| ^~~~~~~~~~~ ~~~~
lharc.c:506:1: note: declared here
506 | fatal_error(msg)
| ^~~~~~~~~~~
lharc.c: In function ‘open_old_archive_1’:
lharc.c:1020:1: warning: old-style function definition [-Wold-style-definition]
1020 | open_old_archive_1(name, v_fp)
| ^~~~~~~~~~~~~~~~~~
lharc.c: In function ‘open_old_archive’:
lharc.c:1055:21: error: implicit declaration of function ‘strucmp’; did you mean ‘strncmp’? [-Wimplicit-function-declaration]
1055 | if (strucmp(".LZH", p) == 0
| ^~~~~~~
| strncmp
lharc.c: In function ‘inquire’:
lharc.c:1104:1: warning: old-style function definition [-Wold-style-definition]
1104 | inquire(msg, name, selective)
| ^~~~~~~
lharc.c:1106:1: error: number of arguments doesn’t match prototype
1106 | {
| ^
lha.h:206:25: error: prototype declaration
206 | extern int inquire();
| ^~~~~~~
lharc.c: In function ‘write_archive_tail’:
lharc.c:1125:1: warning: old-style function definition [-Wold-style-definition]
1125 | write_archive_tail(nafp)
| ^~~~~~~~~~~~~~~~~~
lharc.c:1127:1: error: number of arguments doesn’t match prototype
1127 | {
| ^
lha.h:228:25: error: prototype declaration
228 | extern void write_archive_tail();
| ^~~~~~~~~~~~~~~~~~
lharc.c: In function ‘copy_old_one’:
lharc.c:1133:1: warning: old-style function definition [-Wold-style-definition]
1133 | copy_old_one(oafp, nafp, hdr)
| ^~~~~~~~~~~~
lharc.c:1136:1: error: number of arguments doesn’t match prototype
1136 | {
| ^
lha.h:229:25: error: prototype declaration
229 | extern void copy_old_one();
| ^~~~~~~~~~~~
lharc.c:1144:25: error: too many arguments to function ‘copyfile’; expected 0, have 4
1144 | copyfile(oafp, nafp,
| ^~~~~~~~ ~~~~
lha.h:231:25: note: declared here
231 | extern long copyfile();
| ^~~~~~~~
lharc.c:1147:25: error: too many arguments to function ‘copyfile’; expected 0, have 4
1147 | copyfile(oafp, nafp,
| ^~~~~~~~ ~~~~
lha.h:231:25: note: declared here
231 | extern long copyfile();
| ^~~~~~~~
lharc.c: In function ‘inquire’:
lharc.c:1114:17: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1114 | fgets(buffer, 1024, stdin);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [<builtin>: lharc.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o util.o util.c
In file included from lha.h:23,
from util.c:10:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
util.c: In function ‘copyfile’:
util.c:23:1: warning: old-style function definition [-Wold-style-definition]
23 | copyfile(f1, f2, size, crc_flg) /* return: size of source file */
| ^~~~~~~~
util.c:29:1: error: number of arguments doesn’t match prototype
29 | {
| ^
lha.h:231:25: error: prototype declaration
231 | extern long copyfile();
| ^~~~~~~~
util.c:34:29: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
34 | if ((buf = (char *) malloc(BUFFERSIZE)) == NULL)
| ^~~~~~
util.c:11:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
10 | #include "lha.h"
+++ |+#include <stdlib.h>
11 | /*
util.c:34:29: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
34 | if ((buf = (char *) malloc(BUFFERSIZE)) == NULL)
| ^~~~~~
util.c:34:29: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
util.c:35:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
35 | fatal_error("virtual memory exhausted.\n");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
util.c:38:17: error: implicit declaration of function ‘init_code_cache’ [-Wimplicit-function-declaration]
38 | init_code_cache();
| ^~~~~~~~~~~~~~~
util.c:42:33: error: implicit declaration of function ‘fread_txt’; did you mean ‘fread_crc’? [-Wimplicit-function-declaration]
42 | xsize = fread_txt(buf, BUFFERSIZE, f1);
| ^~~~~~~~~
| fread_crc
util.c:46:33: error: too many arguments to function ‘fatal_error’; expected 0, have 1
46 | fatal_error("file read error\n");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
util.c:52:33: error: too many arguments to function ‘fatal_error’; expected 0, have 1
52 | fatal_error("file read error\n");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
util.c:58:37: error: implicit declaration of function ‘fwrite_txt’; did you mean ‘fwrite_crc’? [-Wimplicit-function-declaration]
58 | if (fwrite_txt(buf, xsize, f2)) {
| ^~~~~~~~~~
| fwrite_crc
util.c:59:41: error: too many arguments to function ‘fatal_error’; expected 0, have 1
59 | fatal_error("file write error\n");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
util.c:64:41: error: too many arguments to function ‘fatal_error’; expected 0, have 1
64 | fatal_error("file write error\n");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
util.c:70:25: error: too many arguments to function ‘calccrc’; expected 0, have 2
70 | calccrc(buf, xsize);
| ^~~~~~~ ~~~
lha.h:312:39: note: declared here
312 | extern unsigned short calccrc();
| ^~~~~~~
util.c:76:9: error: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
76 | free(buf);
| ^~~~
util.c:76:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
util.c:76:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
util.c:76:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
util.c: In function ‘encode_stored_crc’:
util.c:82:1: warning: old-style function definition [-Wold-style-definition]
82 | encode_stored_crc(ifp, ofp, size, original_size_var, write_size_var)
| ^~~~~~~~~~~~~~~~~
util.c:87:1: error: number of arguments doesn’t match prototype
87 | {
| ^
lha.h:316:17: error: prototype declaration
316 | extern int encode_stored_crc();
| ^~~~~~~~~~~~~~~~~
util.c:92:16: error: too many arguments to function ‘copyfile’; expected 0, have 4
92 | size = copyfile(ifp, ofp, size, 3);
| ^~~~~~~~ ~~~
util.c:23:1: note: declared here
23 | copyfile(f1, f2, size, crc_flg) /* return: size of source file */
| ^~~~~~~~
util.c: In function ‘convdelim’:
util.c:103:1: warning: old-style function definition [-Wold-style-definition]
103 | convdelim(path, delim)
| ^~~~~~~~~
util.c:106:1: error: number of arguments doesn’t match prototype
106 | {
| ^
lha.h:230:23: error: prototype declaration
230 | extern unsigned char *convdelim();
| ^~~~~~~~~
util.c: In function ‘archive_is_msdos_sfx1’:
util.c:135:1: warning: old-style function definition [-Wold-style-definition]
135 | archive_is_msdos_sfx1(name)
| ^~~~~~~~~~~~~~~~~~~~~
util.c:137:1: error: number of arguments doesn’t match prototype
137 | {
| ^
lha.h:225:17: error: prototype declaration
225 | extern boolean archive_is_msdos_sfx1();
| ^~~~~~~~~~~~~~~~~~~~~
util.c:141:18: error: implicit declaration of function ‘strucmp’; did you mean ‘strncmp’? [-Wimplicit-function-declaration]
141 | (strucmp(".COM", name + len - 4) == 0 ||
| ^~~~~~~
| strncmp
util.c: In function ‘skip_msdos_sfx1_code’:
util.c:150:1: warning: old-style function definition [-Wold-style-definition]
150 | skip_msdos_sfx1_code(fp)
| ^~~~~~~~~~~~~~~~~~~~
util.c:152:1: error: number of arguments doesn’t match prototype
152 | {
| ^
lha.h:226:17: error: prototype declaration
226 | extern boolean skip_msdos_sfx1_code();
| ^~~~~~~~~~~~~~~~~~~~
util.c:165:62: error: implicit declaration of function ‘calc_sum’ [-Wimplicit-function-declaration]
165 | && p[I_HEADER_CHECKSUM-2] == calc_sum(p, p[-2])) {
| ^~~~~~~~
util.c: In function ‘my_toupper’:
util.c:340:1: warning: old-style function definition [-Wold-style-definition]
340 | my_toupper(n)
| ^~~~~~~~~~
util.c: In function ‘strucmp’:
util.c:350:1: warning: old-style function definition [-Wold-style-definition]
350 | strucmp(s, t)
| ^~~~~~~
make[1]: *** [<builtin>: util.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o slide.o slide.c
In file included from lha.h:23,
from slide.c:14:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
slide.c: In function ‘encode_alloc’:
slide.c:115:1: warning: old-style function definition [-Wold-style-definition]
115 | encode_alloc(method)
| ^~~~~~~~~~~~
slide.c:117:1: error: number of arguments doesn’t match prototype
117 | {
| ^
lha.h:243:25: error: prototype declaration
243 | extern int encode_alloc();
| ^~~~~~~~~~~~
slide.c:138:34: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
138 | if (alloc_buf() == NULL) exit(207); /* I don't know this 207. */
| ^~~~
slide.c:15:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
14 | #include "lha.h"
+++ |+#include <stdlib.h>
15 |
slide.c:138:34: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
138 | if (alloc_buf() == NULL) exit(207); /* I don't know this 207. */
| ^~~~
slide.c:138:34: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
slide.c:140:31: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
140 | hash = (unsigned int*)malloc(HSHSIZ * sizeof(unsigned int));
| ^~~~~~
slide.c:140:31: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
slide.c:140:31: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
slide.c:140:31: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
slide.c:146:17: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
146 | exit(207);
| ^~~~
slide.c:146:17: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
slide.c: In function ‘update’:
slide.c:188:13: error: too many arguments to function ‘fread_crc’; expected 0, have 3
188 | n = fread_crc(&text[(unsigned)(txtsiz - dicsiz)],
| ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:307:41: note: declared here
307 | extern int fread_crc( /* uchar *p, int n, FILE *f */ );
| ^~~~~~~~~
slide.c: In function ‘encode’:
slide.c:292:6: warning: old-style function definition [-Wold-style-definition]
292 | void encode(interface)
| ^~~~~~
slide.c:294:1: error: number of arguments doesn’t match prototype
294 | {
| ^
lha.h:244:25: error: prototype declaration
244 | extern void encode();
| ^~~~~~
slide.c:318:21: error: too many arguments to function ‘fread_crc’; expected 0, have 3
318 | remainder = fread_crc(&text[dicsiz], txtsiz-dicsiz, infile);
| ^~~~~~~~~ ~~~~~~~~~~~~~
lha.h:307:41: note: declared here
307 | extern int fread_crc( /* uchar *p, int n, FILE *f */ );
| ^~~~~~~~~
slide.c:335:25: error: too many arguments to function ‘encode_set.output’; expected 0, have 2
335 | encode_set.output(text[pos - 1], 0);
| ^~~~~~~~~~ ~~~~~~~~~~~~~
lha.h:27:27: note: declared here
27 | void (*output) ();
| ^~~~~~
slide.c:342:25: error: too many arguments to function ‘encode_set.output’; expected 0, have 2
342 | encode_set.output(lastmatchlen + (UCHAR_MAX + 1 - THRESHOLD),
| ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:27:27: note: declared here
27 | void (*output) ();
| ^~~~~~
slide.c: In function ‘decode’:
slide.c:378:1: warning: old-style function definition [-Wold-style-definition]
378 | decode(interface)
| ^~~~~~
slide.c:380:1: error: number of arguments doesn’t match prototype
380 | {
| ^
lha.h:245:25: error: prototype declaration
245 | extern void decode();
| ^~~~~~
slide.c:401:35: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
401 | dtext = (unsigned char *) malloc(dicsiz);
| ^~~~~~
slide.c:401:35: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
slide.c:404:17: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
404 | exit(errno);
| ^~~~
slide.c:404:17: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
slide.c:419:33: error: too many arguments to function ‘fwrite_crc’; expected 0, have 3
419 | fwrite_crc(dtext, dicsiz, outfile);
| ^~~~~~~~~~ ~~~~~
lha.h:308:41: note: declared here
308 | extern void fwrite_crc( /* uchar *p, int n, FILE *f */ );
| ^~~~~~~~~~
slide.c:439:41: error: too many arguments to function ‘fwrite_crc’; expected 0, have 3
439 | fwrite_crc(dtext, dicsiz, outfile);
| ^~~~~~~~~~ ~~~~~
lha.h:308:41: note: declared here
308 | extern void fwrite_crc( /* uchar *p, int n, FILE *f */ );
| ^~~~~~~~~~
slide.c:449:17: error: too many arguments to function ‘fwrite_crc’; expected 0, have 3
449 | fwrite_crc(dtext, loc, outfile);
| ^~~~~~~~~~ ~~~~~
lha.h:308:41: note: declared here
308 | extern void fwrite_crc( /* uchar *p, int n, FILE *f */ );
| ^~~~~~~~~~
slide.c:452:9: error: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
452 | free(dtext);
| ^~~~
slide.c:452:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
slide.c:452:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
slide.c:452:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
make[1]: *** [<builtin>: slide.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o header.o header.c
In file included from lha.h:23,
from header.c:14:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
header.c: In function ‘calc_sum’:
header.c:20:1: warning: old-style function definition [-Wold-style-definition]
20 | calc_sum(p, len)
| ^~~~~~~~
header.c: In function ‘put_word’:
header.c:45:1: warning: old-style function definition [-Wold-style-definition]
45 | put_word(v)
| ^~~~~~~~
header.c: In function ‘put_longword’:
header.c:67:1: warning: old-style function definition [-Wold-style-definition]
67 | put_longword(v)
| ^~~~~~~~~~~~
header.c: In function ‘msdos_to_unix_filename’:
header.c:78:1: warning: old-style function definition [-Wold-style-definition]
78 | msdos_to_unix_filename(name, len)
| ^~~~~~~~~~~~~~~~~~~~~~
header.c: In function ‘generic_to_unix_filename’:
header.c:106:1: warning: old-style function definition [-Wold-style-definition]
106 | generic_to_unix_filename(name, len)
| ^~~~~~~~~~~~~~~~~~~~~~~~
header.c: In function ‘macos_to_unix_filename’:
header.c:149:1: warning: old-style function definition [-Wold-style-definition]
149 | macos_to_unix_filename(name, len)
| ^~~~~~~~~~~~~~~~~~~~~~
header.c: In function ‘unix_to_generic_filename’:
header.c:165:1: warning: old-style function definition [-Wold-style-definition]
165 | unix_to_generic_filename(name, len)
| ^~~~~~~~~~~~~~~~~~~~~~~~
header.c: In function ‘generic_to_unix_stamp’:
header.c:306:1: warning: old-style function definition [-Wold-style-definition]
306 | generic_to_unix_stamp(t)
| ^~~~~~~~~~~~~~~~~~~~~
header.c: In function ‘unix_to_generic_stamp’:
header.c:381:1: warning: old-style function definition [-Wold-style-definition]
381 | unix_to_generic_stamp(t)
| ^~~~~~~~~~~~~~~~~~~~~
header.c:384:30: error: too many arguments to function ‘localtime’; expected 0, have 1
384 | struct tm *tm = localtime(&t);
| ^~~~~~~~~ ~~
lha_macro.h:60:19: note: declared here
60 | extern struct tm *localtime();
| ^~~~~~~~~
header.c: In function ‘get_header’:
header.c:398:1: warning: old-style function definition [-Wold-style-definition]
398 | get_header(fp, hdr)
| ^~~~~~~~~~
header.c:401:1: error: number of arguments doesn’t match prototype
401 | {
| ^
lha.h:224:17: error: prototype declaration
224 | extern boolean get_header();
| ^~~~~~~~~~
header.c:421:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
421 | fatal_error("Invalid header (LHarc file ?)");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
header.c:428:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
428 | fatal_error("Invalid header (LHarc file ?)");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
header.c:433:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
433 | fatal_error("Unknown level header");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
header.c:454:25: error: too many arguments to function ‘warning’; expected 0, have 2
454 | warning("Checksum error (LHarc file?)", "");
| ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:201:25: note: declared here
201 | extern void warning();
| ^~~~~~~
header.c:477:33: error: too many arguments to function ‘fatal_error’; expected 0, have 1
477 | fatal_error("Unkonwn header (lha file?)");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
header.c:527:33: error: too many arguments to function ‘fatal_error’; expected 0, have 1
527 | fatal_error("Invalid header (LHa file ?)");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
header.c:543:35: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
543 | exit(109);
| ^~~~
header.c:15:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
14 | #include "lha.h"
+++ |+#include <stdlib.h>
15 |
header.c:543:35: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
543 | exit(109);
| ^~~~
header.c:543:35: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
header.c:556:35: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
556 | exit(110);
| ^~~~
header.c:556:35: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
header.c:561:33: error: too many arguments to function ‘convdelim’; expected 0, have 2
561 | convdelim(dirname, DELIM);
| ^~~~~~~~~ ~~~~~~~
lha.h:230:23: note: declared here
230 | extern unsigned char *convdelim();
| ^~~~~~~~~
header.c:661:25: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
661 | exit(112);
| ^~~~
header.c:661:25: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
header.c:667:25: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
667 | exit(112);
| ^~~~
header.c:667:25: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
header.c: In function ‘init_header’:
header.c:678:1: warning: old-style function definition [-Wold-style-definition]
678 | init_header(name, v_stat, hdr)
| ^~~~~~~~~~~
header.c:682:1: error: number of arguments doesn’t match prototype
682 | {
| ^
lha.h:223:25: error: prototype declaration
223 | extern void init_header();
| ^~~~~~~~~~~
header.c:727:23: error: implicit declaration of function ‘readlink’ [-Wimplicit-function-declaration]
727 | len = readlink(name, lkname, 256);
| ^~~~~~~~
header.c: In function ‘write_header’:
header.c:739:1: warning: old-style function definition [-Wold-style-definition]
739 | write_header(nafp, hdr)
| ^~~~~~~~~~~~
header.c:742:1: error: number of arguments doesn’t match prototype
742 | {
| ^
lha.h:227:25: error: prototype declaration
227 | extern void write_header();
| ^~~~~~~~~~~~
header.c:772:9: error: too many arguments to function ‘convdelim’; expected 0, have 2
772 | convdelim(hdr->name, DELIM2);
| ^~~~~~~~~ ~~~~~~~~~
lha.h:230:23: note: declared here
230 | extern unsigned char *convdelim();
| ^~~~~~~~~
header.c:877:24: error: implicit declaration of function ‘calc_header_crc’ [-Wimplicit-function-declaration]
877 | hcrc = calc_header_crc(data, (unsigned int) header_size + 2);
| ^~~~~~~~~~~~~~~
header.c:883:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
883 | fatal_error("Cannot write to temporary file");
| ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
header.c:885:9: error: too many arguments to function ‘convdelim’; expected 0, have 2
885 | convdelim(hdr->name, DELIM);
| ^~~~~~~~~ ~~~~~~~~~
lha.h:230:23: note: declared here
230 | extern unsigned char *convdelim();
| ^~~~~~~~~
make[1]: *** [<builtin>: header.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o huf.o huf.c
In file included from lha.h:23,
from huf.c:10:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
In file included from huf.c:17:
/usr/include/stdlib.h:795:14: error: conflicting types for ‘getenv’; have ‘char *(const char *)’
795 | extern char *getenv (const char *__name) __THROW __nonnull ((1)) __wur;
| ^~~~~~
lha_macro.h:61:17: note: previous declaration of ‘getenv’ with type ‘char *(void)’
61 | extern char *getenv();
| ^~~~~~
huf.c: In function ‘write_pt_len’:
huf.c:71:1: warning: old-style function definition [-Wold-style-definition]
71 | write_pt_len(n, nbit, i_special)
| ^~~~~~~~~~~~
huf.c:80:9: error: too many arguments to function ‘putbits’; expected 0, have 2
80 | putbits(nbit, n);
| ^~~~~~~ ~~~~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:85:25: error: too many arguments to function ‘putbits’; expected 0, have 2
85 | putbits(3, k);
| ^~~~~~~ ~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:87:25: error: too many arguments to function ‘putbits’; expected 0, have 2
87 | putbits(k - 3, USHRT_MAX << 1);
| ^~~~~~~ ~~~~~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:91:25: error: too many arguments to function ‘putbits’; expected 0, have 2
91 | putbits(2, i - 3);
| ^~~~~~~ ~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c: In function ‘write_c_len’:
huf.c:105:9: error: too many arguments to function ‘putbits’; expected 0, have 2
105 | putbits(CBIT, n);
| ^~~~~~~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:117:41: error: too many arguments to function ‘putcode’; expected 0, have 2
117 | putcode(pt_len[0], pt_code[0]);
| ^~~~~~~ ~~~~~~~~~
lha.h:305:41: note: declared here
305 | extern void putcode( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:120:33: error: too many arguments to function ‘putcode’; expected 0, have 2
120 | putcode(pt_len[1], pt_code[1]);
| ^~~~~~~ ~~~~~~~~~
lha.h:305:41: note: declared here
305 | extern void putcode( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:121:33: error: too many arguments to function ‘putbits’; expected 0, have 2
121 | putbits(4, count - 3);
| ^~~~~~~ ~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:124:33: error: too many arguments to function ‘putcode’; expected 0, have 2
124 | putcode(pt_len[0], pt_code[0]);
| ^~~~~~~ ~~~~~~~~~
lha.h:305:41: note: declared here
305 | extern void putcode( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:125:33: error: too many arguments to function ‘putcode’; expected 0, have 2
125 | putcode(pt_len[1], pt_code[1]);
| ^~~~~~~ ~~~~~~~~~
lha.h:305:41: note: declared here
305 | extern void putcode( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:126:33: error: too many arguments to function ‘putbits’; expected 0, have 2
126 | putbits(4, 15);
| ^~~~~~~ ~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:129:33: error: too many arguments to function ‘putcode’; expected 0, have 2
129 | putcode(pt_len[2], pt_code[2]);
| ^~~~~~~ ~~~~~~~~~
lha.h:305:41: note: declared here
305 | extern void putcode( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:130:33: error: too many arguments to function ‘putbits’; expected 0, have 2
130 | putbits(CBIT, count - 20);
| ^~~~~~~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:134:25: error: too many arguments to function ‘putcode’; expected 0, have 2
134 | putcode(pt_len[k + 2], pt_code[k + 2]);
| ^~~~~~~ ~~~~~~~~~~~~~
lha.h:305:41: note: declared here
305 | extern void putcode( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c: In function ‘encode_c’:
huf.c:140:1: warning: old-style function definition [-Wold-style-definition]
140 | encode_c(c)
| ^~~~~~~~
huf.c:143:9: error: too many arguments to function ‘putcode’; expected 0, have 2
143 | putcode(c_len[c], c_code[c]);
| ^~~~~~~ ~~~~~~~~
lha.h:305:41: note: declared here
305 | extern void putcode( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c: In function ‘encode_p’:
huf.c:148:1: warning: old-style function definition [-Wold-style-definition]
148 | encode_p(p)
| ^~~~~~~~
huf.c:159:9: error: too many arguments to function ‘putcode’; expected 0, have 2
159 | putcode(pt_len[c], pt_code[c]);
| ^~~~~~~ ~~~~~~~~~
lha.h:305:41: note: declared here
305 | extern void putcode( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:161:17: error: too many arguments to function ‘putbits’; expected 0, have 2
161 | putbits(c - 1, p);
| ^~~~~~~ ~~~~~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c: In function ‘send_block’:
huf.c:171:16: error: too many arguments to function ‘make_tree’; expected 0, have 4
171 | root = make_tree(NC, c_freq, c_len, c_code);
| ^~~~~~~~~
lha.h:297:17: note: declared here
297 | extern short make_tree( /* int nparm, ushort freqparm[], uchar lenparm[],
| ^~~~~~~~~
huf.c:173:9: error: too many arguments to function ‘putbits’; expected 0, have 2
173 | putbits(16, size);
| ^~~~~~~ ~~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:176:24: error: too many arguments to function ‘make_tree’; expected 0, have 4
176 | root = make_tree(NT, t_freq, pt_len, pt_code);
| ^~~~~~~~~
lha.h:297:17: note: declared here
297 | extern short make_tree( /* int nparm, ushort freqparm[], uchar lenparm[],
| ^~~~~~~~~
huf.c:180:25: error: too many arguments to function ‘putbits’; expected 0, have 2
180 | putbits(TBIT, 0);
| ^~~~~~~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:181:25: error: too many arguments to function ‘putbits’; expected 0, have 2
181 | putbits(TBIT, root);
| ^~~~~~~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:185:17: error: too many arguments to function ‘putbits’; expected 0, have 2
185 | putbits(TBIT, 0);
| ^~~~~~~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:186:17: error: too many arguments to function ‘putbits’; expected 0, have 2
186 | putbits(TBIT, 0);
| ^~~~~~~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:187:17: error: too many arguments to function ‘putbits’; expected 0, have 2
187 | putbits(CBIT, 0);
| ^~~~~~~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:188:17: error: too many arguments to function ‘putbits’; expected 0, have 2
188 | putbits(CBIT, root);
| ^~~~~~~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:190:16: error: too many arguments to function ‘make_tree’; expected 0, have 4
190 | root = make_tree(np, p_freq, pt_len, pt_code);
| ^~~~~~~~~ ~~
lha.h:297:17: note: declared here
297 | extern short make_tree( /* int nparm, ushort freqparm[], uchar lenparm[],
| ^~~~~~~~~
huf.c:195:17: error: too many arguments to function ‘putbits’; expected 0, have 2
195 | putbits(pbit, 0);
| ^~~~~~~ ~~~~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c:196:17: error: too many arguments to function ‘putbits’; expected 0, have 2
196 | putbits(pbit, root);
| ^~~~~~~ ~~~~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c: In function ‘output_st1’:
huf.c:222:1: warning: old-style function definition [-Wold-style-definition]
222 | output_st1(c, p)
| ^~~~~~~~~~
huf.c:225:1: error: number of arguments doesn’t match prototype
225 | {
| ^
lha.h:253:17: error: prototype declaration
253 | extern void output_st1();
| ^~~~~~~~~~
huf.c: In function ‘encode_end_st1’:
huf.c:310:17: error: too many arguments to function ‘putbits’; expected 0, have 2
310 | putbits(CHAR_BIT - 1, 0); /* flush remaining bits */
| ^~~~~~~ ~~~~~~~~
lha.h:306:41: note: declared here
306 | extern void putbits( /* uchar n, ushort x */ );
| ^~~~~~~
huf.c: In function ‘read_pt_len’:
huf.c:318:1: warning: old-style function definition [-Wold-style-definition]
318 | read_pt_len(nn, nbit, i_special)
| ^~~~~~~~~~~
huf.c:325:13: error: too many arguments to function ‘getbits’; expected 0, have 1
325 | n = getbits(nbit);
| ^~~~~~~ ~~~~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
huf.c:327:21: error: too many arguments to function ‘getbits’; expected 0, have 1
327 | c = getbits(nbit);
| ^~~~~~~ ~~~~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
huf.c:344:25: error: too many arguments to function ‘fillbuf’; expected 0, have 1
344 | fillbuf((c < 7) ? 3 : c - 3);
| ^~~~~~~ ~~~~~~~~~~~~~~~~~~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
huf.c:347:37: error: too many arguments to function ‘getbits’; expected 0, have 1
347 | c = getbits(2);
| ^~~~~~~ ~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
huf.c:354:17: error: too many arguments to function ‘make_table’; expected 0, have 4
354 | make_table(nn, pt_len, 8, pt_table);
| ^~~~~~~~~~ ~~
lha.h:288:17: note: declared here
288 | extern void make_table( /* int nchar, uchar bitlen[], int tablebits,
| ^~~~~~~~~~
huf.c: In function ‘read_c_len’:
huf.c:364:13: error: too many arguments to function ‘getbits’; expected 0, have 1
364 | n = getbits(CBIT);
| ^~~~~~~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
huf.c:366:21: error: too many arguments to function ‘getbits’; expected 0, have 1
366 | c = getbits(CBIT);
| ^~~~~~~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
huf.c:385:25: error: too many arguments to function ‘fillbuf’; expected 0, have 1
385 | fillbuf(pt_len[c]);
| ^~~~~~~ ~~~~~~~~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
huf.c:390:45: error: too many arguments to function ‘getbits’; expected 0, have 1
390 | c = getbits(4) + 3;
| ^~~~~~~ ~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
huf.c:392:45: error: too many arguments to function ‘getbits’; expected 0, have 1
392 | c = getbits(CBIT) + 20;
| ^~~~~~~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
huf.c:401:17: error: too many arguments to function ‘make_table’; expected 0, have 4
401 | make_table(NC, c_len, 12, c_table);
| ^~~~~~~~~~
lha.h:288:17: note: declared here
288 | extern void make_table( /* int nchar, uchar bitlen[], int tablebits,
| ^~~~~~~~~~
huf.c: In function ‘decode_c_st1’:
huf.c:412:29: error: too many arguments to function ‘getbits’; expected 0, have 1
412 | blocksize = getbits(16);
| ^~~~~~~ ~~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
huf.c:420:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
420 | fillbuf(c_len[j]);
| ^~~~~~~ ~~~~~~~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
huf.c:422:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
422 | fillbuf(12);
| ^~~~~~~ ~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
huf.c:431:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
431 | fillbuf(c_len[j] - 12);
| ^~~~~~~ ~~~~~~~~~~~~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
huf.c: In function ‘decode_p_st1’:
huf.c:444:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
444 | fillbuf(pt_len[j]);
| ^~~~~~~ ~~~~~~~~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
huf.c:446:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
446 | fillbuf(8);
| ^~~~~~~ ~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
huf.c:455:17: error: too many arguments to function ‘fillbuf’; expected 0, have 1
455 | fillbuf(pt_len[j] - 8);
| ^~~~~~~ ~~~~~~~~~~~~~
lha.h:303:41: note: declared here
303 | extern void fillbuf( /* uchar n */ );
| ^~~~~~~
huf.c:458:38: error: too many arguments to function ‘getbits’; expected 0, have 1
458 | j = (1 << (j - 1)) + getbits(j - 1);
| ^~~~~~~ ~~~~~
lha.h:304:25: note: declared here
304 | extern unsigned short getbits( /* uchar n */ );
| ^~~~~~~
make[1]: *** [<builtin>: huf.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o append.o append.c
In file included from lha.h:23,
from append.c:9:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
append.c: In function ‘encode_lzhuf’:
append.c:13:1: warning: old-style function definition [-Wold-style-definition]
13 | encode_lzhuf(infp, outfp, size, original_size_var, packed_size_var,
| ^~~~~~~~~~~~
append.c:22:1: error: number of arguments doesn’t match prototype
22 | {
| ^
lha.h:315:25: error: prototype declaration
315 | extern int encode_lzhuf();
| ^~~~~~~~~~~~
append.c:28:34: error: too many arguments to function ‘encode_alloc’; expected 0, have 1
28 | method = encode_alloc(method);
| ^~~~~~~~~~~~ ~~~~~~
lha.h:243:25: note: declared here
243 | extern int encode_alloc();
| ^~~~~~~~~~~~
append.c:37:17: error: too many arguments to function ‘start_indicator’; expected 0, have 4
37 | start_indicator(name, size, "Freezing", 1 << dicbit);
| ^~~~~~~~~~~~~~~ ~~~~
lha.h:248:17: note: declared here
248 | extern void start_indicator();
| ^~~~~~~~~~~~~~~
append.c:38:17: error: too many arguments to function ‘encode’; expected 0, have 1
38 | encode(&interface);
| ^~~~~~ ~~~~~~~~~~
lha.h:244:25: note: declared here
244 | extern void encode();
| ^~~~~~
append.c:42:17: error: too many arguments to function ‘copyfile’; expected 0, have 4
42 | copyfile(infp, outfp, size, 1);
| ^~~~~~~~ ~~~~
lha.h:231:25: note: declared here
231 | extern long copyfile();
| ^~~~~~~~
append.c:48:9: error: too many arguments to function ‘finish_indicator2’; expected 0, have 3
48 | finish_indicator2(name, "Frozen",
| ^~~~~~~~~~~~~~~~~ ~~~~
lha.h:250:17: note: declared here
250 | extern void finish_indicator2();
| ^~~~~~~~~~~~~~~~~
append.c: In function ‘start_indicator’:
append.c:54:1: warning: old-style function definition [-Wold-style-definition]
54 | start_indicator(name, size, msg, def_indicator_threshold)
| ^~~~~~~~~~~~~~~
append.c:59:1: error: number of arguments doesn’t match prototype
59 | {
| ^
lha.h:248:17: error: prototype declaration
248 | extern void start_indicator();
| ^~~~~~~~~~~~~~~
append.c: In function ‘finish_indicator2’:
append.c:100:1: warning: old-style function definition [-Wold-style-definition]
100 | finish_indicator2(name, msg, pcnt)
| ^~~~~~~~~~~~~~~~~
append.c:104:1: error: number of arguments doesn’t match prototype
104 | {
| ^
lha.h:250:17: error: prototype declaration
250 | extern void finish_indicator2();
| ^~~~~~~~~~~~~~~~~
append.c: In function ‘finish_indicator’:
append.c:119:1: warning: old-style function definition [-Wold-style-definition]
119 | finish_indicator(name, msg)
| ^~~~~~~~~~~~~~~~
append.c:122:1: error: number of arguments doesn’t match prototype
122 | {
| ^
lha.h:249:17: error: prototype declaration
249 | extern void finish_indicator();
| ^~~~~~~~~~~~~~~~
make[1]: *** [<builtin>: append.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o patmatch.o patmatch.c
patmatch.c: In function ‘patmatch’:
patmatch.c:16:1: warning: old-style function definition [-Wold-style-definition]
16 | patmatch(p, s, f)
| ^~~~~~~~
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7 -c -o lhext.o lhext.c
In file included from lha.h:23,
from lhext.c:16:
lha_macro.h:60:19: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’
60 | extern struct tm *localtime();
| ^~~~~~~~~
In file included from lha.h:19:
/usr/include/time.h:145:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long long int *)’}
145 | extern struct tm *localtime (const time_t *__timer) __THROW;
| ^~~~~~~~~
lhext.c: In function ‘inquire_extract’:
lhext.c:30:1: warning: old-style function definition [-Wold-style-definition]
30 | inquire_extract(name)
| ^~~~~~~~~~~~~~~
lhext.c:38:25: error: too many arguments to function ‘error’; expected 0, have 2
38 | error("Already exist (not a file)", name);
| ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:202:25: note: declared here
202 | extern void error();
| ^~~~~
lhext.c:47:30: error: implicit declaration of function ‘isatty’ [-Wimplicit-function-declaration]
47 | if (!isatty(0))
| ^~~~~~
lhext.c:50:33: error: too many arguments to function ‘inquire’; expected 0, have 3
50 | switch (inquire("OverWrite ?(Yes/[No]/All/Skip)", name, "YyNnAaSs\n")) {
| ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:206:25: note: declared here
206 | extern int inquire();
| ^~~~~~~
lhext.c: In function ‘make_parent_path’:
lhext.c:77:1: warning: old-style function definition [-Wold-style-definition]
77 | make_parent_path(name)
| ^~~~~~~~~~~~~~~~
lhext.c:94:17: error: too many arguments to function ‘message’; expected 0, have 2
94 | message("Why?", "ROOT");
| ^~~~~~~ ~~~~~~
lha.h:200:25: note: declared here
200 | extern void message();
| ^~~~~~~
lhext.c:101:17: error: too many arguments to function ‘error’; expected 0, have 2
101 | error("Not a directory", path);
| ^~~~~ ~~~~~~~~~~~~~~~~~
lha.h:202:25: note: declared here
202 | extern void error();
| ^~~~~
lhext.c:117:17: error: too many arguments to function ‘message’; expected 0, have 2
117 | message("Cannot make directory", path);
| ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
lha.h:200:25: note: declared here
200 | extern void message();
| ^~~~~~~
lhext.c: In function ‘open_with_make_path’:
lhext.c:126:1: warning: old-style function definition [-Wold-style-definition]
126 | open_with_make_path(name)
| ^~~~~~~~~~~~~~~~~~~
lhext.c:135:25: error: too many arguments to function ‘error’; expected 0, have 2
135 | error("Cannot extract", name);
| ^~~~~ ~~~~~~~~~~~~~~~~
lha.h:202:25: note: declared here
202 | extern void error();
| ^~~~~
lhext.c: In function ‘adjust_info’:
lhext.c:143:1: warning: old-style function definition [-Wold-style-definition]
143 | adjust_info(name, hdr)
| ^~~~~~~~~~~
lhext.c:153:17: error: implicit declaration of function ‘utime’; did you mean ‘utimes’? [-Wimplicit-function-declaration]
153 | utime(name, utimebuf);
| ^~~~~
| utimes
lhext.c:164:22: error: implicit declaration of function ‘getuid’ [-Wimplicit-function-declaration]
164 | if (!getuid()) {
| ^~~~~~
lhext.c:167:33: error: implicit declaration of function ‘lchown’ [-Wimplicit-function-declaration]
167 | lchown(name, hdr->unix_uid, hdr->unix_gid);
| ^~~~~~
lhext.c:170:33: error: implicit declaration of function ‘chown’ [-Wimplicit-function-declaration]
170 | chown(name, hdr->unix_uid, hdr->unix_gid);
| ^~~~~
lhext.c: In function ‘extract_one’:
lhext.c:178:1: warning: old-style function definition [-Wold-style-definition]
178 | extract_one(afp, hdr)
| ^~~~~~~~~~~
lhext.c:194:21: error: implicit declaration of function ‘is_directory_traversal’ [-Wimplicit-function-declaration]
194 | if (is_directory_traversal(q)) {
| ^~~~~~~~~~~~~~~~~~~~~~
lhext.c:196:19: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
196 | exit(111);
| ^~~~
lhext.c:17:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
16 | #include "lha.h"
+++ |+#include <stdlib.h>
17 | /* ------------------------------------------------------------------------ */
lhext.c:196:19: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
196 | exit(111);
| ^~~~
lhext.c:196:19: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
lhext.c:227:25: error: too many arguments to function ‘error’; expected 0, have 2
227 | error("Unknown method skiped ...", name);
| ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:202:25: note: declared here
202 | extern void error();
| ^~~~~
lhext.c:272:31: error: too many arguments to function ‘decode_lzhuf’; expected 0, have 6
272 | crc = decode_lzhuf
| ^~~~~~~~~~~~
273 | (afp, stdout, hdr->original_size, hdr->packed_size, name, method);
| ~~~
lha.h:277:17: note: declared here
277 | extern int decode_lzhuf();
| ^~~~~~~~~~~~
lhext.c:303:40: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
303 | signal(SIGINT, interrupt);
| ^~~~~~~~~
| |
| void (*)(void)
In file included from lha.h:21:
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~
lha.h:198:25: note: ‘interrupt’ declared here
198 | extern void interrupt();
| ^~~~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
lhext.c:304:40: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
304 | signal(SIGHUP, interrupt);
| ^~~~~~~~~
| |
| void (*)(void)
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~
lha.h:198:25: note: ‘interrupt’ declared here
198 | extern void interrupt();
| ^~~~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
lhext.c:306:25: error: implicit declaration of function ‘unlink’ [-Wimplicit-function-declaration]
306 | unlink(name);
| ^~~~~~
lhext.c:311:39: error: too many arguments to function ‘decode_lzhuf’; expected 0, have 6
311 | crc = decode_lzhuf
| ^~~~~~~~~~~~
312 | (afp, fp, hdr->original_size, hdr->packed_size, name, method);
| ~~~
lha.h:277:17: note: declared here
277 | extern int decode_lzhuf();
| ^~~~~~~~~~~~
lhext.c:325:25: error: too many arguments to function ‘error’; expected 0, have 2
325 | error("CRC error", name);
| ^~~~~ ~~~~~~~~~~~
lha.h:202:25: note: declared here
202 | extern void error();
| ^~~~~
lhext.c:364:42: error: implicit declaration of function ‘symlink’; did you mean ‘is_symlink’? [-Wimplicit-function-declaration]
364 | l_code = symlink(bb2, bb1);
| ^~~~~~~
| is_symlink
lhext.c:367:49: error: too many arguments to function ‘warning’; expected 0, have 1
367 | warning("Can't make Symbolic Link : ");
| ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lha.h:201:25: note: declared here
201 | extern void warning();
| ^~~~~~~
lhext.c:386:17: error: too many arguments to function ‘error’; expected 0, have 2
386 | error("Unknown information", name);
| ^~~~~ ~~~~~~~~~~~~~~~~~~~~~
lha.h:202:25: note: declared here
202 | extern void error();
| ^~~~~
lhext.c: In function ‘cmd_extract’:
lhext.c:405:17: error: too many arguments to function ‘fatal_error’; expected 0, have 1
405 | fatal_error(archive_name);
| ^~~~~~~~~~~ ~~~~~~~~~~~~
lha.h:203:25: note: declared here
203 | extern void fatal_error();
| ^~~~~~~~~~~
lhext.c:407:13: error: too many arguments to function ‘archive_is_msdos_sfx1’; expected 0, have 1
407 | if (archive_is_msdos_sfx1(archive_name))
| ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
lha.h:225:17: note: declared here
225 | extern boolean archive_is_msdos_sfx1();
| ^~~~~~~~~~~~~~~~~~~~~
lhext.c:408:17: error: too many arguments to function ‘skip_msdos_sfx1_code’; expected 0, have 1
408 | skip_msdos_sfx1_code(afp);
| ^~~~~~~~~~~~~~~~~~~~ ~~~
lha.h:226:17: note: declared here
226 | extern boolean skip_msdos_sfx1_code();
| ^~~~~~~~~~~~~~~~~~~~
lhext.c:411:16: error: too many arguments to function ‘get_header’; expected 0, have 2
411 | while (get_header(afp, &hdr)) {
| ^~~~~~~~~~ ~~~
lha.h:224:17: note: declared here
224 | extern boolean get_header();
| ^~~~~~~~~~
lhext.c:412:21: error: too many arguments to function ‘need_file’; expected 0, have 1
412 | if (need_file(hdr.name)) {
| ^~~~~~~~~ ~~~~~~~~
lha.h:205:17: note: declared here
205 | extern boolean need_file();
| ^~~~~~~~~
make[1]: *** [<builtin>: lhext.o] Error 1
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/src'
make all in man...
make[1]: Entering directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/man'
make[1]: warning: -j28 forced in submake: resetting jobserver mode.
make[1]: Leaving directory '/tmp/B.pi54ls2a/BUILD/lha-1.14i-build/lha-114i/man'
make[1]: Nothing to be done for 'all'.
+ RPM_EC=0
+ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /tmp/B.pi54ls2a/BUILD/tmp/rpm-tmp.zgzpNt
HOME=/home/users/builder
PATH=/home/users/builder/GNUstep/Tools:/bin:/usr/bin:/usr/local/bin
TMPDIR=/tmp/B.pi54ls2a/BUILD/tmp
+ umask 022
+ cd /tmp/B.pi54ls2a/BUILD/lha-1.14i-build
+ /bin/rm '--interactive=never' -rf /tmp/B.pi54ls2a/BUILD/lha-1.14i-build/BUILDROOT
+ /bin/mkdir -p /tmp/B.pi54ls2a/BUILD/lha-1.14i-build/BUILDROOT
+ cd lha-114i
+ rm -rf /tmp/B.pi54ls2a/BUILD/lha-1.14i-build/BUILDROOT
+ install -d /tmp/B.pi54ls2a/BUILD/lha-1.14i-build/BUILDROOT/usr/bin /tmp/B.pi54ls2a/BUILD/lha-1.14i-build/BUILDROOT/usr/share/man/man1 /tmp/B.pi54ls2a/BUILD/lha-1.14i-build/BUILDROOT/usr/share/man/ja/man1
+ install src/lha /tmp/B.pi54ls2a/BUILD/lha-1.14i-build/BUILDROOT/usr/bin
install: cannot stat 'src/lha': No such file or directory
error: Bad exit status from /tmp/B.pi54ls2a/BUILD/tmp/rpm-tmp.zgzpNt (%install)
RPM build errors:
Bad exit status from /tmp/B.pi54ls2a/BUILD/tmp/rpm-tmp.zgzpNt (%install)
ended at: Tue Mar 3 00:15:42 2026, done in 0:00:00.496478
error: No files produced.
+ chmod -R u+rwX /tmp/B.pi54ls2a/BUILD
+ rm -rf /tmp/B.pi54ls2a/tmp /tmp/B.pi54ls2a/BUILD
+ rm -rf /tmp/B.pi54ls2a
Begin-PLD-Builder-Info
Build-Time: user:1.83s sys:1.12s real:2.33s (faults io:0 non-io:150645)
End-PLD-Builder-Info
|
|