[109111] trunk/dports/science/gstlal-inspiral/Portfile

Jeremy Huddleston Sequoia jeremyhu at macports.org
Thu Aug 8 08:22:40 PDT 2013


On Aug 8, 2013, at 7:48, Joshua Root <jmr at macports.org> wrote:

> On 2013-8-8 23:08 , Adam Mercer wrote:
>> Jeremy
>> 
>> It looks like this change broke the build, according to the buildbot at least.
>> 
>> framecpp_channeldemux.cc: In function 'int split_name(const char*,
>> char**, char**)':
>> framecpp_channeldemux.cc:150: error: 'strndup' was not declared in this scope
>> 
>> I assume this is due to Xcode5 not providing llvm-gcc-4.2 anymore. Is
>> the only solution going forward to be patch the code?
> 
> The two newer buildslaves run Xcode 4.6. They should still be falling
> back to llvm-gcc-4.2. With Xcode 5, macports-llvm-gcc-4.2 is in the
> fallback list.
> 
> Looks more like a missing "#include <string.h>"? In any case, the fact
> that it's trying to build means that the build didn't succeed before
> this change either.

I added strndup to Libc in Lion, so it's not available in Snow Leopard.

The fix will be to add a static version of strndup when __MAC_OS_X_VERSION_MIN_REQUIRED < 1070:
http://opensource.apple.com/source/Libc/Libc-825.26/string/FreeBSD/strndup.c

--Jeremy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4145 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20130808/e8c82914/attachment.p7s>


More information about the macports-dev mailing list