[Oisf-users] Suricata 2.0.1 complaining about pcre.h on Mac OS 10.9.2
Victor Julien
lists at inliniac.net
Mon Jun 2 14:08:44 UTC 2014
On 05/29/2014 06:32 PM, Harley H wrote:
> Victor,
> That got me through config. But now some make errors are showing up:
>
> In file included from alert-debuglog.c:24:
>
> *./suricata-common.h:326:8: **error: **expected parameter declarator*
>
> size_t strlcat(char *, const char *src, size_t siz);
>
> * ^*
>
> */usr/include/secure/_string.h:111:44: **note: *expanded from macro
> 'strlcat'
>
> __builtin___strlcat_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 alert-debuglog.c:24:
>
> *./suricata-common.h:326:8: **error: **expected ')'*
>
> */usr/include/secure/_string.h:111:44: **note: *expanded from macro
> 'strlcat'
>
> __builtin___strlcat_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
>
> * ^*
>
> *./suricata-common.h:326:8: **note: *to match this '('
>
> */usr/include/secure/_string.h:111:44: **note: *expanded from macro
> 'strlcat'
>
> __builtin___strlcat_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)
>
> * ^*
>
> In file included from alert-debuglog.c:24:
>
> *./suricata-common.h:326:8: **warning: **type specifier missing,
> defaults to 'int' [-Wimplicit-int]*
>
> size_t strlcat(char *, const char *src, size_t siz);
>
> * ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
>
> */usr/include/secure/_string.h:111:44: **note: *expanded from macro
> 'strlcat'
>
> __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
>
> * ^~~~~~~~~~~~~~~~~~~~*
>
> */usr/include/secure/_common.h:39:31: **note: *expanded from macro
> '__darwin_obsz'
>
> #define __darwin_obsz(object) __builtin_object_size (object,
> _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
>
> * ^~~~~~~~~~~~~~~~~~~~~*
>
> In file included from alert-debuglog.c:24:
>
> *./suricata-common.h:326:8: **error: **conflicting types for
> '__builtin___strlcat_chk'*
>
> */usr/include/secure/_string.h:111:3: **note: *expanded from macro 'strlcat'
>
> __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
>
> * ^*
>
> *./suricata-common.h:326:8: **note: *'__builtin___strlcat_chk' is a
> builtin with type 'unsigned long (char *, const char *, unsigned
>
> long, unsigned long)'
>
> */usr/include/secure/_string.h:111:3: **note: *expanded from macro 'strlcat'
>
> __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
>
> * ^*
>
> In file included from alert-debuglog.c:24:
>
> *./suricata-common.h:327:8: **error: **expected parameter declarator*
>
> size_t strlcpy(char *dst, const char *src, size_t siz);
>
> * ^*
>
> */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 alert-debuglog.c:24:
>
> *./suricata-common.h:327: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
>
> * ^*
>
> *./suricata-common.h:327: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)
>
> * ^*
>
> In file included from alert-debuglog.c:24:
>
> *./suricata-common.h:327:8: **warning: **type specifier missing,
> defaults to 'int' [-Wimplicit-int]*
>
> size_t strlcpy(char *dst, const char *src, size_t siz);
>
> * ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
>
> */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:31: **note: *expanded from macro
> '__darwin_obsz'
>
> #define __darwin_obsz(object) __builtin_object_size (object,
> _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
>
> * ^~~~~~~~~~~~~~~~~~~~~*
>
> In file included from alert-debuglog.c:24:
>
> *./suricata-common.h:327: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))
>
> * ^*
>
> *./suricata-common.h:327: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))
>
> * ^*
>
> 2 warnings and 6 errors generated.
>
> make[3]: *** [alert-debuglog.o] Error 1
>
> make[2]: *** [all] Error 2
>
> make[1]: *** [all-recursive] Error 1
>
> make: *** [all] Error 2
Ah, now it seems you've hit issue
https://redmine.openinfosecfoundation.org/issues/1192
You could try the patch from that ticket.
--
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------
More information about the Oisf-users
mailing list