[MacPorts] #61032: udunits2: error: implicitly declaring library function 'strdup' with type 'char *(const char *)' [-Werror, -Wimplicit-function-declaration]
MacPorts
noreply at macports.org
Mon Sep 21 03:48:18 UTC 2020
#61032: udunits2: error: implicitly declaring library function 'strdup' with type
'char *(const char *)' [-Werror,-Wimplicit-function-declaration]
------------------------------+----------------------
Reporter: caseyyoungflesh | Owner: tenomoto
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Resolution: fixed | Keywords:
Port: udunits2 |
------------------------------+----------------------
Comment (by chrstphrchvz):
In [changeset:"ff44f5011d9f807aa20824f62bc03d7318fb39f6/macports-ports"
ff44f5011d9f807aa20824f62bc03d7318fb39f6/macports-ports] (master):
{{{
#!ConfigurableCommitTicketReference repository="macports-ports"
revision="ff44f5011d9f807aa20824f62bc03d7318fb39f6"
udunits2: update to 2.2.27.14
Add patch defining _XOPEN_SOURCE to 600 to allow using
snprintf() and strdup()
Still need -Wno-error=implicit-function-declaration because of
deliberate implicit declaration of yylex() in parser.c
See: https://trac.macports.org/ticket/61032
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61032#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list