Skip Menu |
 

This queue is for tickets about the Net-Interface CPAN distribution.

Report information
The Basics
Id: 98921
Status: open
Priority: 0/
Queue: Net-Interface

People
Owner: Nobody in particular
Requestors: martyn [...] magiccow.co.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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>
Download (untitled) / with headers
text/plain 2.9k
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)) ^
Download (untitled) / with headers
text/plain 122b
The issue looks weird - try $ CFLAGS="$CFLAGS -DHAVE_STRLCPY" make or edit resulting config.h and #define HAVE_STRLCPY 1
Subject: Re: [rt.cpan.org #98921] Building Net-Interface on Mac OS 10.9.4
Date: Tue, 16 Sep 2014 12:18:32 +0100
To: bug-Net-Interface [...] rt.cpan.org
From: Martyn Davies <martyn [...] magiccow.co.uk>
Download (untitled) / with headers
text/plain 345b
Yes, great, that does the trick. Thanks for your help. Martyn On 16 September 2014 10:39, Jens Rehsack via RT < bug-Net-Interface@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=98921 > > > The issue looks weird - try > $ CFLAGS="$CFLAGS -DHAVE_STRLCPY" make > or edit resulting config.h and > #define HAVE_STRLCPY 1 >


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.