Opened 8 months ago

Closed 8 months ago

#64917 closed defect (fixed)

Io @2017.09.06: error: implicit declaration of function 'cairo_ps_surface_set_size' is invalid in C99

Reported by: drichf1 Owned by: markemer (Mark Anderson)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: catalina bigsur monterey haspatch Cc: ryandesign (Ryan Schmidt)
Port: Io

Description

Trying to Install Io language on Mac (Catalina: 10.15.7 (19H1824)), using MacPorts (2.7.2).

Failed to build:

$ sudo port install Io
--->  Computing dependencies for Io
--->  Fetching archive for Io
--->  Attempting to fetch Io-2017.09.06_6.darwin_19.x86_64.tbz2 from https://packages.macports.org/Io
--->  Attempting to fetch Io-2017.09.06_6.darwin_19.x86_64.tbz2 from https://mse.uk.packages.macports.org/Io
--->  Attempting to fetch Io-2017.09.06_6.darwin_19.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/Io
--->  Fetching distfiles for Io
--->  Verifying checksums for Io
--->  Extracting Io
--->  Configuring Io
--->  Building Io
Error: Failed to build Io: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_Io/Io/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port Io failed

Performed port clean Io, tried again: no success. Re-installed current version of Command-Line-Tools & deleted the com.apple.....in-progress file: no success.

Couldn't find anything searching terms "Io build", "iocairo", and others; and searching advanced for "port [is] 'Io'".

Relevant message from log file (/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_Io/Io/main.log):

... [successful build stuff] ...

:info:build [ 48%] Building C object addons/Cairo/CMakeFiles/IoCairo.dir/source/_IoCairoPDFSurface.c.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_Io/Io/work/io-2017.09.06/addons/Cairo && /usr/bin/clang -DIoCairo_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_Io/Io/work/io-2017.09.06/libs/coroutine/source -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_Io/Io/work/io-2017.09.06/libs/basekit/source -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_Io/Io/work/io-2017.09.06/libs/garbagecollector/source -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_Io/Io/work/io-2017.09.06/libs/iovm/source -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/ossp -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -DNDEBUG -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.15 -fPIC -MD -MT addons/Cairo/CMakeFiles/IoCairo.dir/source/_IoCairoPDFSurface.c.o -MF CMakeFiles/IoCairo.dir/source/_IoCairoPDFSurface.c.o.d -o CMakeFiles/IoCairo.dir/source/_IoCairoPDFSurface.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_Io/Io/work/io-2017.09.06/addons/Cairo/source/_IoCairoPDFSurface.c
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_Io/Io/work/io-2017.09.06/addons/Cairo/source/_IoCairoPDFSurface.c:67:2: error: implicit declaration of function 'cairo_ps_surface_set_size' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build         cairo_ps_surface_set_size(SURFACE(self), w, h);
:info:build         ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_Io/Io/work/io-2017.09.06/addons/Cairo/source/_IoCairoPDFSurface.c:67:2: note: did you mean 'cairo_pdf_surface_set_size'?
:info:build /opt/local/include/cairo/cairo-pdf.h:84:1: note: 'cairo_pdf_surface_set_size' declared here
:info:build cairo_pdf_surface_set_size (cairo_surface_t     *surface,
:info:build ^
:info:build 1 error generated.
:info:build make[2]: *** [addons/Cairo/CMakeFiles/IoCairo.dir/source/_IoCairoPDFSurface.c.o] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_Io/Io/work/IoLanguage-io-b8a18fc'
:info:build make[1]: *** [addons/Cairo/CMakeFiles/IoCairo.dir/all] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_Io/Io/work/IoLanguage-io-b8a18fc'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_Io/Io/work/IoLanguage-io-b8a18fc'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_Io/Io/work/io-20
17.09.06" && /usr/bin/make -j1 -w all VERBOSE=ON
:info:build Exit code: 2
:error:build Failed to build Io: command execution failed
:debug:build Error code: CHILDSTATUS 5849 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 8)
: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_release_tarballs_ports_lang_Io/Io/main.log for details.

Thanks

Change History (4)

comment:1 Changed 8 months ago by jmroot (Joshua Root)

Keywords: io build iocairo cairo iocairopdfsurface removed
Owner: set to markemer
Status: newassigned

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

Keywords: catalina bigsur monterey haspatch added
Summary: Io language fails to build: "io-2017.09.06"; "_IoCairoPDFSurface.c:67:2: error: implicit declaration of function 'cairo_ps_surface_set_size' is invalid in C99"Io @2017.09.06: error: implicit declaration of function 'cairo_ps_surface_set_size' is invalid in C99

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

Cc: ryandesign added

comment:4 Changed 8 months ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: assignedclosed

In 008b8d1628de609fb645cafbee9f39f530dc2469/macports-ports (master):

Io: Fix version and build failure

Fix program version, implicit declaration of functions, and some clang
warnings, using upstream commits.

Closes: #64917

Note: See TracTickets for help on using tickets.