<div dir="ltr">Victor,<div> That got me through config. But now some make errors are showing up:</div><div>







<p class="">In file included from alert-debuglog.c:24:</p>
<p class=""><b>./suricata-common.h:326:8: </b><span class=""><b>error: </b></span><b>expected parameter declarator</b></p>
<p class="">size_t strlcat(char *, const char *src, size_t siz);</p>
<p class=""><b>       ^</b></p>
<p class=""><b>/usr/include/secure/_string.h:111:44: </b><span class=""><b>note: </b></span><span class="">expanded from macro 'strlcat'</span></p>
<p class="">  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))</p>
<p class=""><b>                                           ^</b></p>
<p class=""><b>/usr/include/secure/_common.h:39:62: </b><span class=""><b>note: </b></span><span class="">expanded from macro '__darwin_obsz'</span></p>
<p class="">#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)</p>
<p class=""><b>                                                             ^</b></p>
<p class=""><span class=""><b>/usr/include/secure/_common.h:30:32: </b></span><span class=""><b>note: </b></span>expanded from macro '_USE_FORTIFY_LEVEL'</p>
<p class="">#    define _USE_FORTIFY_LEVEL 2</p>
<p class=""><b>                               ^</b></p>
<p class="">In file included from alert-debuglog.c:24:</p>
<p class=""><b>./suricata-common.h:326:8: </b><span class=""><b>error: </b></span><b>expected ')'</b></p>
<p class=""><b>/usr/include/secure/_string.h:111:44: </b><span class=""><b>note: </b></span><span class="">expanded from macro 'strlcat'</span></p>
<p class="">  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))</p>
<p class=""><b>                                           ^</b></p>
<p class=""><b>/usr/include/secure/_common.h:39:62: </b><span class=""><b>note: </b></span><span class="">expanded from macro '__darwin_obsz'</span></p>
<p class="">#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)</p>
<p class=""><b>                                                             ^</b></p>
<p class=""><span class=""><b>/usr/include/secure/_common.h:30:32: </b></span><span class=""><b>note: </b></span>expanded from macro '_USE_FORTIFY_LEVEL'</p>
<p class="">#    define _USE_FORTIFY_LEVEL 2</p>
<p class=""><b>                               ^</b></p>
<p class=""><b>./suricata-common.h:326:8: </b><span class=""><b>note: </b></span><span class="">to match this '('</span></p>
<p class=""><b>/usr/include/secure/_string.h:111:44: </b><span class=""><b>note: </b></span><span class="">expanded from macro 'strlcat'</span></p>
<p class="">  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))</p>
<p class=""><b>                                           ^</b></p>
<p class=""><b>/usr/include/secure/_common.h:39:53: </b><span class=""><b>note: </b></span><span class="">expanded from macro '__darwin_obsz'</span></p>
<p class="">#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)</p>
<p class=""><b>                                                    ^</b></p>
<p class="">In file included from alert-debuglog.c:24:</p>
<p class=""><b>./suricata-common.h:326:8: </b><span class=""><b>warning: </b></span><b>type specifier missing, defaults to 'int' [-Wimplicit-int]</b></p>
<p class="">size_t strlcat(char *, const char *src, size_t siz);</p>
<p class=""><b>       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</b></p>
<p class=""><b>/usr/include/secure/_string.h:111:44: </b><span class=""><b>note: </b></span><span class="">expanded from macro 'strlcat'</span></p>
<p class="">  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))</p>
<p class=""><b>                                           ^~~~~~~~~~~~~~~~~~~~</b></p>
<p class=""><b>/usr/include/secure/_common.h:39:31: </b><span class=""><b>note: </b></span><span class="">expanded from macro '__darwin_obsz'</span></p>
<p class="">#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)</p>
<p class=""><b>                              ^~~~~~~~~~~~~~~~~~~~~</b></p>
<p class="">In file included from alert-debuglog.c:24:</p>
<p class=""><b>./suricata-common.h:326:8: </b><span class=""><b>error: </b></span><b>conflicting types for '__builtin___strlcat_chk'</b></p>
<p class=""><b>/usr/include/secure/_string.h:111:3: </b><span class=""><b>note: </b></span><span class="">expanded from macro 'strlcat'</span></p>
<p class="">  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))</p>
<p class=""><b>  ^</b></p>
<p class=""><span class=""><b>./suricata-common.h:326:8: </b></span><span class=""><b>note: </b></span>'__builtin___strlcat_chk' is a builtin with type 'unsigned long (char *, const char *, unsigned</p>
<p class="">      long, unsigned long)'</p>
<p class=""><b>/usr/include/secure/_string.h:111:3: </b><span class=""><b>note: </b></span><span class="">expanded from macro 'strlcat'</span></p>
<p class="">  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))</p>
<p class=""><b>  ^</b></p>
<p class="">In file included from alert-debuglog.c:24:</p>
<p class=""><b>./suricata-common.h:327:8: </b><span class=""><b>error: </b></span><b>expected parameter declarator</b></p>
<p class="">size_t strlcpy(char *dst, const char *src, size_t siz);</p>
<p class=""><b>       ^</b></p>
<p class=""><b>/usr/include/secure/_string.h:105:44: </b><span class=""><b>note: </b></span><span class="">expanded from macro 'strlcpy'</span></p>
<p class="">  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))</p>
<p class=""><b>                                           ^</b></p>
<p class=""><b>/usr/include/secure/_common.h:39:62: </b><span class=""><b>note: </b></span><span class="">expanded from macro '__darwin_obsz'</span></p>
<p class="">#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)</p>
<p class=""><b>                                                             ^</b></p>
<p class=""><span class=""><b>/usr/include/secure/_common.h:30:32: </b></span><span class=""><b>note: </b></span>expanded from macro '_USE_FORTIFY_LEVEL'</p>
<p class="">#    define _USE_FORTIFY_LEVEL 2</p>
<p class=""><b>                               ^</b></p>
<p class="">In file included from alert-debuglog.c:24:</p>
<p class=""><b>./suricata-common.h:327:8: </b><span class=""><b>error: </b></span><b>expected ')'</b></p>
<p class=""><b>/usr/include/secure/_string.h:105:44: </b><span class=""><b>note: </b></span><span class="">expanded from macro 'strlcpy'</span></p>
<p class="">  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))</p>
<p class=""><b>                                           ^</b></p>
<p class=""><b>/usr/include/secure/_common.h:39:62: </b><span class=""><b>note: </b></span><span class="">expanded from macro '__darwin_obsz'</span></p>
<p class="">#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)</p>
<p class=""><b>                                                             ^</b></p>
<p class=""><span class=""><b>/usr/include/secure/_common.h:30:32: </b></span><span class=""><b>note: </b></span>expanded from macro '_USE_FORTIFY_LEVEL'</p>
<p class="">#    define _USE_FORTIFY_LEVEL 2</p>
<p class=""><b>                               ^</b></p>
<p class=""><b>./suricata-common.h:327:8: </b><span class=""><b>note: </b></span><span class="">to match this '('</span></p>
<p class=""><b>/usr/include/secure/_string.h:105:44: </b><span class=""><b>note: </b></span><span class="">expanded from macro 'strlcpy'</span></p>
<p class="">  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))</p>
<p class=""><b>                                           ^</b></p>
<p class=""><b>/usr/include/secure/_common.h:39:53: </b><span class=""><b>note: </b></span><span class="">expanded from macro '__darwin_obsz'</span></p>
<p class="">#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)</p>
<p class=""><b>                                                    ^</b></p>
<p class="">In file included from alert-debuglog.c:24:</p>
<p class=""><b>./suricata-common.h:327:8: </b><span class=""><b>warning: </b></span><b>type specifier missing, defaults to 'int' [-Wimplicit-int]</b></p>
<p class="">size_t strlcpy(char *dst, const char *src, size_t siz);</p>
<p class=""><b>       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</b></p>
<p class=""><b>/usr/include/secure/_string.h:105:44: </b><span class=""><b>note: </b></span><span class="">expanded from macro 'strlcpy'</span></p>
<p class="">  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))</p>
<p class=""><b>                                           ^~~~~~~~~~~~~~~~~~~~</b></p>
<p class=""><b>/usr/include/secure/_common.h:39:31: </b><span class=""><b>note: </b></span><span class="">expanded from macro '__darwin_obsz'</span></p>
<p class="">#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)</p>
<p class=""><b>                              ^~~~~~~~~~~~~~~~~~~~~</b></p>
<p class="">In file included from alert-debuglog.c:24:</p>
<p class=""><b>./suricata-common.h:327:8: </b><span class=""><b>error: </b></span><b>conflicting types for '__builtin___strlcpy_chk'</b></p>
<p class=""><b>/usr/include/secure/_string.h:105:3: </b><span class=""><b>note: </b></span><span class="">expanded from macro 'strlcpy'</span></p>
<p class="">  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))</p>
<p class=""><b>  ^</b></p>
<p class=""><span class=""><b>./suricata-common.h:327:8: </b></span><span class=""><b>note: </b></span>'__builtin___strlcpy_chk' is a builtin with type 'unsigned long (char *, const char *, unsigned</p>
<p class="">      long, unsigned long)'</p>
<p class=""><b>/usr/include/secure/_string.h:105:3: </b><span class=""><b>note: </b></span><span class="">expanded from macro 'strlcpy'</span></p>
<p class="">  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))</p>
<p class=""><b>  ^</b></p>
<p class="">2 warnings and 6 errors generated.</p>
<p class="">make[3]: *** [alert-debuglog.o] Error 1</p>
<p class="">make[2]: *** [all] Error 2</p>
<p class="">make[1]: *** [all-recursive] Error 1</p>
<p class="">make: *** [all] Error 2</p></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 29, 2014 at 2:56 AM, Victor Julien <span dir="ltr"><<a href="mailto:lists@inliniac.net" target="_blank">lists@inliniac.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 05/28/2014 07:34 PM, Harley H wrote:<br>
> Yep, here you go.<br>
<br>
Can you try passing clang as the compiler directly?<br>
CC=clang ./configure<br>
<br>
It looks like even though your gcc binary is actually clang as well, the<br>
suricata configure script may mess something up.<br>
<br>
Cheers,<br>
Victor<br>
<div class=""><br>
><br>
><br>
> On Wed, May 28, 2014 at 1:05 PM, Victor Julien <<a href="mailto:lists@inliniac.net">lists@inliniac.net</a><br>
</div><div class="">> <mailto:<a href="mailto:lists@inliniac.net">lists@inliniac.net</a>>> wrote:<br>
><br>
>     On 05/28/2014 07:02 PM, Harley H wrote:<br>
>     > I tried that and still no success.<br>
><br>
>     Can you attach the config.log?<br>
><br>
>     ><br>
>     > On Wed, May 28, 2014 at 1:00 PM, Victor Julien <<a href="mailto:lists@inliniac.net">lists@inliniac.net</a><br>
>     <mailto:<a href="mailto:lists@inliniac.net">lists@inliniac.net</a>><br>
</div><div><div class="h5">>     > <mailto:<a href="mailto:lists@inliniac.net">lists@inliniac.net</a> <mailto:<a href="mailto:lists@inliniac.net">lists@inliniac.net</a>>>> wrote:<br>
>     ><br>
>     >     On 05/28/2014 06:41 PM, Harley H wrote:<br>
>     >     > Hello,<br>
>     >     >  I'm trying to compile the latest version of Suricata on Mac<br>
>     OS 10.9.2<br>
>     >     > but am getting the following error when running ./configure:<br>
>     >     ><br>
>     >     > checking pcre.h usability... no<br>
>     >     ><br>
>     >     > checking pcre.h presence... yes<br>
>     >     ><br>
>     >     > configure: WARNING: pcre.h: present but cannot be compiled<br>
>     >     ><br>
>     >     > configure: WARNING: pcre.h:     check for missing prerequisite<br>
>     >     headers?<br>
>     >     ><br>
>     >     > configure: WARNING: pcre.h: see the Autoconf documentation<br>
>     >     ><br>
>     >     > configure: WARNING: pcre.h:     section "Present But Cannot Be<br>
>     >     Compiled"<br>
>     >     ><br>
>     >     > configure: WARNING: pcre.h: proceeding with the compiler's<br>
>     result<br>
>     >     ><br>
>     >     > checking for pcre.h... no<br>
>     >     ><br>
>     >     > configure: error: pcre.h not found ...<br>
>     >     ><br>
>     >     ><br>
>     >     > I've recompiled pcre 8.35 with --enable-jit --enable-utf8<br>
>     >     > --enable-unicode-properties per this<br>
>     >     > thread<br>
>     ><br>
>     <a href="https://lists.openinfosecfoundation.org/pipermail/oisf-users/2012-January/001246.html" target="_blank">https://lists.openinfosecfoundation.org/pipermail/oisf-users/2012-January/001246.html</a><br>
>     >     > to no avail. Anyone have any suggestions?<br>
>     ><br>
>     >     Can you try adding --disable-gccmarch-native to suricata's<br>
>     configure<br>
>     >     line?<br>
>     ><br>
>     >     --<br>
>     >     ---------------------------------------------<br>
>     >     Victor Julien<br>
>     >     <a href="http://www.inliniac.net/" target="_blank">http://www.inliniac.net/</a><br>
>     >     PGP: <a href="http://www.inliniac.net/victorjulien.asc" target="_blank">http://www.inliniac.net/victorjulien.asc</a><br>
>     >     ---------------------------------------------<br>
>     ><br>
>     >     _______________________________________________<br>
>     >     Suricata IDS Users mailing list:<br>
>     >     <a href="mailto:oisf-users@openinfosecfoundation.org">oisf-users@openinfosecfoundation.org</a><br>
>     <mailto:<a href="mailto:oisf-users@openinfosecfoundation.org">oisf-users@openinfosecfoundation.org</a>><br>
</div></div>>     >     <mailto:<a href="mailto:oisf-users@openinfosecfoundation.org">oisf-users@openinfosecfoundation.org</a><br>
<div class="HOEnZb"><div class="h5">>     <mailto:<a href="mailto:oisf-users@openinfosecfoundation.org">oisf-users@openinfosecfoundation.org</a>>><br>
>     >     Site: <a href="http://suricata-ids.org" target="_blank">http://suricata-ids.org</a> | Support:<br>
>     >     <a href="http://suricata-ids.org/support/" target="_blank">http://suricata-ids.org/support/</a><br>
>     >     List:<br>
>     ><br>
>     <a href="https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users" target="_blank">https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users</a><br>
>     >     OISF: <a href="http://www.openinfosecfoundation.org/" target="_blank">http://www.openinfosecfoundation.org/</a><br>
>     ><br>
>     ><br>
><br>
><br>
>     --<br>
>     ---------------------------------------------<br>
>     Victor Julien<br>
>     <a href="http://www.inliniac.net/" target="_blank">http://www.inliniac.net/</a><br>
>     PGP: <a href="http://www.inliniac.net/victorjulien.asc" target="_blank">http://www.inliniac.net/victorjulien.asc</a><br>
>     ---------------------------------------------<br>
><br>
>     _______________________________________________<br>
>     Suricata IDS Users mailing list:<br>
>     <a href="mailto:oisf-users@openinfosecfoundation.org">oisf-users@openinfosecfoundation.org</a><br>
>     <mailto:<a href="mailto:oisf-users@openinfosecfoundation.org">oisf-users@openinfosecfoundation.org</a>><br>
>     Site: <a href="http://suricata-ids.org" target="_blank">http://suricata-ids.org</a> | Support:<br>
>     <a href="http://suricata-ids.org/support/" target="_blank">http://suricata-ids.org/support/</a><br>
>     List:<br>
>     <a href="https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users" target="_blank">https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users</a><br>
>     OISF: <a href="http://www.openinfosecfoundation.org/" target="_blank">http://www.openinfosecfoundation.org/</a><br>
><br>
><br>
<br>
<br>
--<br>
---------------------------------------------<br>
Victor Julien<br>
<a href="http://www.inliniac.net/" target="_blank">http://www.inliniac.net/</a><br>
PGP: <a href="http://www.inliniac.net/victorjulien.asc" target="_blank">http://www.inliniac.net/victorjulien.asc</a><br>
---------------------------------------------<br>
<br>
</div></div></blockquote></div><br></div>