[Oisf-users] Suricata 2.0.1 Error in suricata-common.h

Victor Julien lists at inliniac.net
Wed Jun 4 07:59:30 UTC 2014


On 06/04/2014 08:41 AM, MAHESH BINGI wrote:
> Hi All,
> 
> I am getting below errors and warnings in Suricata 2.0.1 while "make
> install-full".
> 
> 
> 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

This is a known issue that we're tracking here
https://redmine.openinfosecfoundation.org/issues/1192

-- 
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------




More information about the Oisf-users mailing list