10.9 and compiler
Christopher Jones
jonesc at hep.phy.cam.ac.uk
Sun Nov 17 13:35:47 PST 2013
On 17 Nov 2013, at 9:07pm, Blair Zajac <blair at orcaware.com> wrote:
> I just got a new MacBook Pro and is the first machine I have access to that can run 10.9, so I’m running into problems with fwknop-client port getting it to compile. It fails on something as simple as this:
>
>
> #include <string.h>
>
> size_t strlcat(char *dst, const char *src, size_t siz);
>
> int main()
> {
> return 0;
> }
>
>
> $ clang test.c -o test
> test.c:3:8: error: expected parameter declarator
> size_t strlcat(char *dst, const char *src, size_t siz);
>
>
> Can we not use blacklists on 10.9? Do we need to always use clang? Or is that only for C++ code that we have to use clang?
On 10.9, clang is the only system compiler. So for OSX 10.9, you need to use clang, for C C++, Obj-C etc.
The above looks to me like a problem upstream needs to address for the fwknop-client, to update it to support clang.
>
> Thanks,
> Blair
>
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2030 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20131117/74f3c124/attachment.p7s>
More information about the macports-dev
mailing list