Opened 2 months ago

Closed 2 months ago

#69621 closed defect (fixed)

xmlto @0.0.28_7: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int

Reported by: BSDer Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: xmlto

Description (last modified by ryandesign (Ryan Carsten Schmidt))

port -s xmlto fails with

:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xmlto/xmlto/work/xmlto-0.0.28'
:info:build depbase=`echo xmlif/xmlif.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
:info:build     /usr/bin/clang -DHAVE_CONFIG_H -I.   -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk  -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -MT xmlif/xmlif.o -MD -MP -MF $depbase.Tpo -c -o xmlif/xmlif.o xmlif/xmlif.c &&\
:info:build     mv -f $depbase.Tpo $depbase.Po
:info:build xmlif/xmlif.l:46:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
:info:build static ifsense;                 /* sense of last `if' or unless seen */
:info:build ~~~~~~ ^
:info:build int
:info:build xmlif/xmlif.l:243:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
:info:build main(int argc, char *argv[])
:info:build ^
:info:build int
:info:build 2 errors generated.
:info:build make[1]: *** [xmlif/xmlif.o] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xmlto/xmlto/work/xmlto-0.0.28'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xmlto/xmlto/work/xmlto-0.0.28'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xmlto/xmlto/work/xmlto-0.0.28" && /usr/bin/make -j8 -w all
:info:build Exit code: 2
:error:build Failed to build xmlto: command execution failed
:debug:build Error code: CHILDSTATUS 63788 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 10)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xmlto/xmlto/main.log for details.

Change History (3)

comment:1 Changed 2 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Summary: xmlto @0.0.28_7 does not buildxmlto @0.0.28_7: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int

comment:2 in reply to:  description Changed 2 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to BSDer:

:info:build xmlif/xmlif.l:46:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
:info:build static ifsense;                 /* sense of last `if' or unless seen */
:info:build ~~~~~~ ^
:info:build int

Fixed by https://pagure.io/xmlto/c/1375e2df75530cd198bd16ac3de38e2b0d126276

:info:build xmlif/xmlif.l:243:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
:info:build main(int argc, char *argv[])
:info:build ^
:info:build int

Fixed by https://pagure.io/xmlto/c/8e34f087bf410bcc5fe445933d6ad9bae54f24b5

But annoyingly they have not released a new version containing these fixes even though they were made over two years ago. I filed an issue asking them to do so.

comment:3 Changed 2 months ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In e32a59a0e5373b559b928826c8f1a9f9ce889c5a/macports-ports (master):

xmlto: Fix build with latest clang

Closes: #69621

Note: See TracTickets for help on using tickets.