Re: [MacPorts] #70063: yazproxy @1.3.10: error: ‘atoi’ was not declared in this scope (was: yazproxy does not build with new libxml2 (?): error: ‘atoi’ was not declared in this scope)
MacPorts
noreply at macports.org
Thu May 23 18:25:51 UTC 2024
#70063: yazproxy @1.3.10: error: ‘atoi’ was not declared in this scope
---------------------------+------------------------
Reporter: barracuda156 | Owner: ryandesign
Type: defect | Status: accepted
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Resolution: | Keywords: haspatch
Port: yazproxy |
---------------------------+------------------------
Changes (by ryandesign):
* owner: (none) => ryandesign
* status: new => accepted
* keywords: => haspatch
Comment:
Confirmed build failure with 1.3.10.
`atoi` is a standard C function; to use it, you must `#include <stdlib.h>`
from C code or from C++ code you could instead include `#include
<cstdlib>`. See #41855. Perhaps this used to work because an older version
of libxml2 other dependency used to include the stdlib header but now no
longer does. But a program should directly [https://include-what-you-
use.org include what it uses].
https://github.com/indexdata/yazproxy/pull/24
--
Ticket URL: <https://trac.macports.org/ticket/70063#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list