[MacPorts] #54361: libopenraw @0.1.2_0 fails to build on 10.6 (and all platforms < 10.7, no doubt) due to missing strnlen function
MacPorts
noreply at macports.org
Wed Jun 21 17:44:08 UTC 2017
#54361: libopenraw @0.1.2_0 fails to build on 10.6 (and all platforms < 10.7, no
doubt) due to missing strnlen function
-------------------------+------------------------
Reporter: kencu | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: snowleopard | Port: libopenraw
-------------------------+------------------------
Common problem:
{{{
./ifdentry.hpp:118:30: error: use of undeclared identifier 'strnlen'
s.assign((const char*)b, strnlen((const char*)b, len));
^
}}}
There are different ways to fix it. I used my `snowleopardfixes` port
<https://github.com/kencu/snowleopardfixes> as it takes 10 seconds to fix
that way, and with this, the build succeeds.
{{{
$ port -v installed libopenraw
The following ports are currently installed:
libopenraw @0.1.0_1+gnome platform='darwin 10' archs='x86_64'
date='2017-01-10T19:16:04-0800'
libopenraw @0.1.2_0+gnome (active) platform='darwin 10' archs='x86_64'
date='2017-06-21T10:38:21-0700'
}}}
You could also patch in the missing function to the files that need it.
Of course, the proper fix would be for upstream to test for it and include
it if needed, if they are interested in that.
--
Ticket URL: <https://trac.macports.org/ticket/54361>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list