[Oisf-users] Suricata 2.0.1 complaining about pcre.h on Mac OS 10.9.2

Harley H bobb.harley at gmail.com
Thu May 29 16:32:58 UTC 2014


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


On Thu, May 29, 2014 at 2:56 AM, Victor Julien <lists at inliniac.net> wrote:

> On 05/28/2014 07:34 PM, Harley H wrote:
> > Yep, here you go.
>
> Can you try passing clang as the compiler directly?
> CC=clang ./configure
>
> It looks like even though your gcc binary is actually clang as well, the
> suricata configure script may mess something up.
>
> Cheers,
> Victor
>
> >
> >
> > On Wed, May 28, 2014 at 1:05 PM, Victor Julien <lists at inliniac.net
> > <mailto:lists at inliniac.net>> wrote:
> >
> >     On 05/28/2014 07:02 PM, Harley H wrote:
> >     > I tried that and still no success.
> >
> >     Can you attach the config.log?
> >
> >     >
> >     > On Wed, May 28, 2014 at 1:00 PM, Victor Julien <lists at inliniac.net
> >     <mailto:lists at inliniac.net>
> >     > <mailto:lists at inliniac.net <mailto:lists at inliniac.net>>> wrote:
> >     >
> >     >     On 05/28/2014 06:41 PM, Harley H wrote:
> >     >     > Hello,
> >     >     >  I'm trying to compile the latest version of Suricata on Mac
> >     OS 10.9.2
> >     >     > but am getting the following error when running ./configure:
> >     >     >
> >     >     > checking pcre.h usability... no
> >     >     >
> >     >     > checking pcre.h presence... yes
> >     >     >
> >     >     > configure: WARNING: pcre.h: present but cannot be compiled
> >     >     >
> >     >     > configure: WARNING: pcre.h:     check for missing
> prerequisite
> >     >     headers?
> >     >     >
> >     >     > configure: WARNING: pcre.h: see the Autoconf documentation
> >     >     >
> >     >     > configure: WARNING: pcre.h:     section "Present But Cannot
> Be
> >     >     Compiled"
> >     >     >
> >     >     > configure: WARNING: pcre.h: proceeding with the compiler's
> >     result
> >     >     >
> >     >     > checking for pcre.h... no
> >     >     >
> >     >     > configure: error: pcre.h not found ...
> >     >     >
> >     >     >
> >     >     > I've recompiled pcre 8.35 with --enable-jit --enable-utf8
> >     >     > --enable-unicode-properties per this
> >     >     > thread
> >     >
> >
> https://lists.openinfosecfoundation.org/pipermail/oisf-users/2012-January/001246.html
> >     >     > to no avail. Anyone have any suggestions?
> >     >
> >     >     Can you try adding --disable-gccmarch-native to suricata's
> >     configure
> >     >     line?
> >     >
> >     >     --
> >     >     ---------------------------------------------
> >     >     Victor Julien
> >     >     http://www.inliniac.net/
> >     >     PGP: http://www.inliniac.net/victorjulien.asc
> >     >     ---------------------------------------------
> >     >
> >     >     _______________________________________________
> >     >     Suricata IDS Users mailing list:
> >     >     oisf-users at openinfosecfoundation.org
> >     <mailto:oisf-users at openinfosecfoundation.org>
> >     >     <mailto:oisf-users at openinfosecfoundation.org
> >     <mailto:oisf-users at openinfosecfoundation.org>>
> >     >     Site: http://suricata-ids.org | Support:
> >     >     http://suricata-ids.org/support/
> >     >     List:
> >     >
> >     https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users
> >     >     OISF: http://www.openinfosecfoundation.org/
> >     >
> >     >
> >
> >
> >     --
> >     ---------------------------------------------
> >     Victor Julien
> >     http://www.inliniac.net/
> >     PGP: http://www.inliniac.net/victorjulien.asc
> >     ---------------------------------------------
> >
> >     _______________________________________________
> >     Suricata IDS Users mailing list:
> >     oisf-users at openinfosecfoundation.org
> >     <mailto:oisf-users at openinfosecfoundation.org>
> >     Site: http://suricata-ids.org | Support:
> >     http://suricata-ids.org/support/
> >     List:
> >     https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users
> >     OISF: http://www.openinfosecfoundation.org/
> >
> >
>
>
> --
> ---------------------------------------------
> Victor Julien
> http://www.inliniac.net/
> PGP: http://www.inliniac.net/victorjulien.asc
> ---------------------------------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-users/attachments/20140529/b165ec3b/attachment-0002.html>


More information about the Oisf-users mailing list