Subject: | Building Net-Interface on Mac OS 10.9.4 |
Date: | Tue, 16 Sep 2014 10:27:46 +0100 |
To: | bug-Net-Interface [...] rt.cpan.org |
From: | Martyn Davies <martyn [...] magiccow.co.uk> |
The build seems to run into a problem with strlcpy, strlcpy_chk
Can you advise how to fix?
Regards,
Martyn
cc -c -I/usr/local/include -arch x86_64 -arch i386 -g -pipe -fno-common
-DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include
-Os -DVERSION=\"1.012\" -DXS_VERSION=\"1.012\"
"-I/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE" Interface.c
In file included from Interface.xs:47:
In file included from ./localconf.h:115:
In file included from ./ni_fixups.h:194:
./ni_strlcpy.h:41:8: error: expected parameter declarator
size_t strlcpy(char *dst, const char *src, size_t size);
^
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:62: note: expanded from macro
'__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object,
_USE_FORTIFY_LEVEL > 1 ? 1 : 0)
^
/usr/include/secure/_common.h:30:32: note: expanded from macro
'_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
In file included from Interface.xs:47:
In file included from ./localconf.h:115:
In file included from ./ni_fixups.h:194:
./ni_strlcpy.h:41:8: error: expected ')'
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:62: note: expanded from macro
'__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object,
_USE_FORTIFY_LEVEL > 1 ? 1 : 0)
^
/usr/include/secure/_common.h:30:32: note: expanded from macro
'_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
./ni_strlcpy.h:41:8: note: to match this '('
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:53: note: expanded from macro
'__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object,
_USE_FORTIFY_LEVEL > 1 ? 1 : 0)
and also:
In file included from Interface.xs:47:
In file included from ./localconf.h:115:
In file included from ./ni_fixups.h:194:
./ni_strlcpy.h:41:8: error: conflicting types for '__builtin___strlcpy_chk'
/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
./ni_strlcpy.h:41:8: note: '__builtin___strlcpy_chk' is a builtin with type
'unsigned long (char *, const char *, unsigned long, unsigned long)'
/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^