Opened 19 months ago

Last modified 6 months ago

#72356 new defect

lha @20211125_0: header.c:71:13: error: parameter 'len' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]

Reported by: ZsoltFerenczy Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.5
Keywords: sequoia Cc:
Port: lha

Description

Looks like similar problem as #71517 for kermit.

:info:build header.c:71:13: error: parameter 'len' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
:info:build    71 | _skip_bytes(len)
:info:build       |             ^
:info:build    72 | {

Attachments (1)

main.log​ (67.8 KB) - added by ZsoltFerenczy 19 months ago.

Download all attachments as: .zip

Change History (2)

Changed 19 months ago by ZsoltFerenczy

Attachment: main.log​ added

comment:1 Changed 6 months ago by maxC3 (Massimo Coppola)

Same issue compiling lha-20211125_1 on Tahoe

Attempting to fetch http://fco.it.packages.macports.org/lha/lha-20211125_1.darwin_25.x86_64.tbz2

excerpt of main.log where the errors begin

:info:build /usr/bin/clang -std=gnu23 -DHAVE_CONFIG_H -I. -I..  -DEUC -DSUPPORT_LH7 -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk  -pipe -Os -Wno-error=implicit-int -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk -arch x86_64 -MT dhuf.o -MD -MP -MF .deps/dhuf.Tpo -c -o dhuf.o dhuf.c
:info:build bitio.c:15:9: error: unknown type name 'n'
:info:build append.c:12:14: error: unknown type name 'infp'
:info:build    15 | fillbuf(n)       12 | enco d e    /* _Slhzihfutf (biintfbpu,f  on buittfsp ,l esfitz,e ,r eoardi gni nbailt_ss i*z/e_v
:info:build       |         ^ar
:info:build , packed_size_var,
:info:build       |              ^
:info:build bitio.c:15:11: error: expected ';' after top level declarator
:info:build    15 | fillbuf(n)          /* Shift bitbuf n bits left, readappend.c: 12n: 20b:i terror: sunknown type name 'outfp' 
:info:build */

about 150 lines of syntax errors follow, then

:info:build 20 errors generated.
:info:build 20 errors generated.
:info:build 9 errors generated.
:info:build make[2]: *** [bitio.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build make[2]: *** [dhuf.o] Error 1
:info:build make[2]: *** [crcio.o] Error 1
:info:build make[2]: *** [append.o] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/lha-2d6520ce/work/lha-20211125/src'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/lha-2d6520ce/work/lha-20211125'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/lha-2d6520ce/work/lha-20211125'
:info:build Command failed:  cd "/opt/local/var/macports/build/lha-2d6520ce/work/lha-20211125" && /usr/bin/make -j4 -w all 

No idea if there is a problem of missing includes or just obsolete code (despite we have -Wno-error=implicit-int in force), I hope this helps.

Note: See TracTickets for help on using tickets.