[MacPorts] #58383: yydecode build fail on Mojave due to typedef mismatch
MacPorts
noreply at macports.org
Wed Apr 24 17:17:31 UTC 2019
#58383: yydecode build fail on Mojave due to typedef mismatch
---------------------+----------------------
Reporter: rlhamil | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Keywords: | Port: yydecode
---------------------+----------------------
{{{
In file included from crc32.c:20:
./crc32.h:9:30: error: typedef redefinition with different types
('unsigned long' vs 'unsigned int')
typedef unsigned long int u_int32_t;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_u_int32_t.h:30:33:
note: previous definition is here
typedef unsigned int u_int32_t;
^
1 error generated.
}}}
Changing the typedef in crc32.h to match the one in the Xcode header fixes
it. Not saying that's the best answer, maybe the #ifdef's enclosing the
typedef in crc32.h should be checked too. OS: 10.14.4; Xcode: 10.2.1. No
idea at what OS and/or Xcode versions it works vs is broken.
--
Ticket URL: <https://trac.macports.org/ticket/58383>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list