[MacPorts] #58507: libuv @1.29.1: Undefined symbols for architecture i386: "_close$NOCANCEL"
MacPorts
noreply at macports.org
Wed May 22 19:07:51 UTC 2019
#58507: libuv @1.29.1: Undefined symbols for architecture i386: "_close$NOCANCEL"
---------------------+-----------------------
Reporter: kencu | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: libuv |
---------------------+-----------------------
Comment (by kencu):
This appears to work too, and looks probably better:
{{{
int uv__close_nocancel(int fd) {
#if defined(__APPLE__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdollar-in-identifier-extension"
#if __LP64__
extern int close$NOCANCEL(int);
return close$NOCANCEL(fd);
#else
extern int close$NOCANCEL$UNIX2003(int);
return close$NOCANCEL$UNIX2003(fd);
#endif
#pragma GCC diagnostic pop
#elif defined(__linux__)
return syscall(SYS_close, fd);
#else
return close(fd);
#endif
}
}}}
don't know yet about Tiger or PPC.
--
Ticket URL: <https://trac.macports.org/ticket/58507#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list