[MacPorts] #71615: graphviz @12.2.1 +gdk_pixbuf+guile+java+ocaml+pangocairo+perl+poppler+python27+rsvg+ruby+smyrna+tcl+x11: error: implicit declaration of function 'readln' is invalid in C99 [-Werror, -Wimplicit-function-declaration]
MacPorts
noreply at macports.org
Sun Dec 22 03:28:53 UTC 2024
#71615: graphviz @12.2.1
+gdk_pixbuf+guile+java+ocaml+pangocairo+perl+poppler+python27+rsvg+ruby+smyrna+tcl+x11:
error: implicit declaration of function 'readln' is invalid in C99 [-Werror
,-Wimplicit-function-declaration]
-------------------------+----------------------
Reporter: cooljeanius | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: | Port: graphviz
-------------------------+----------------------
Attempting to upgrade graphviz results in the following error for me:
{{{
main.c:236:19: error: implicit declaration of function 'readln' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
char *buf = readln(path);
^
}}}
So, it's another victim of `-Werror=implicit-function-declaration` being
on by default now.
A little further down in the output, it looks like it was in the smyrna
subdirectory, so I think this might be due to the smyrna variant:
{{{
make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz/work/graphviz-12.2.1/cmd/smyrna'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz/work/graphviz-12.2.1/cmd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz/work/graphviz-12.2.1'
make: *** [all] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz/work/graphviz-12.2.1'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz/work/graphviz-12.2.1"
&& /usr/bin/make -j16 -w all
Exit code: 2
Error: Failed to build graphviz: command execution failed
DEBUG: Error code: CHILDSTATUS 66527 2
}}}
Unfortunately, due to the circular dependency described in #55393, I don't
seem to be able to remove the `+smyrna` variant to verify this. I'm on
x86_64 Big Sur with Xcode 13.
--
Ticket URL: <https://trac.macports.org/ticket/71615>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list