[MacPorts] #71615: graphviz @12.2.1+smyrna: error: implicit declaration of function 'readln' is invalid in C99 [-Werror, -Wimplicit-function-declaration] (was: 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 15:14:37 UTC 2024
#71615: graphviz @12.2.1+smyrna: error: implicit declaration of function 'readln'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
---------------------------------------+------------------------
Reporter: cooljeanius | Owner: ryandesign
Type: defect | Status: accepted
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords:
Port: graphviz, graphviz-devel |
---------------------------------------+------------------------
Changes (by ryandesign):
* status: new => accepted
* owner: (none) => ryandesign
* port: graphviz => graphviz, graphviz-devel
* cc: ryandesign (removed)
Comment:
Replying to [ticket:71615 cooljeanius]:
> So, it's another victim of `-Werror=implicit-function-declaration` being
on by default now.
Not exactly. It's a victim of the developers of Graphviz having evidently
never tried to build this version of Smyrna on macOS. If they had, they
would have noticed that they are using a function without declaring it.
Implicit function declarations being an error now just enables us to see
the error sooner. If that were not an error, it would fail later with a
link error:
{{{
Undefined symbols for architecture x86_64:
"_readln", referenced from:
_main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
}}}
I filed a bug report: https://gitlab.com/graphviz/graphviz/-/issues/2631
--
Ticket URL: <https://trac.macports.org/ticket/71615#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list