<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:10pt"><div style="" class=""><span style="" class="">Hi,</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal;"><span style="" class="">   I found the cause of the compilation errors.</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal;"><span style="" class="">In addition to</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style:
 normal;">export ac_cv_func_malloc_0_nonnull=yes<br style="" class=""><br style="" class=""><span style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal;"><span style="" class="">I needed to do</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal;"><span style="" class="">export ac_cv_func_realloc_0_nonnull=yes</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal;"><span style="" class="">as well.<br style="" class=""></span></div><div style="" class="">Now Suricata cross
 compiled fine for mips.</div><div style="" class=""><br style="" class=""></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal;" class="">Thank you developers.<br style="" class=""></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal;" class="">Mahendra<br style="" class=""></div><div style="" class=""><br style="" class=""></div>  <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 10pt;"> <div class="" style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="" class="" dir="ltr"> <hr style="" class="" size="1">  <font style="" class="" face="Arial" size="2"> <b style=""
 class=""><span class="" style="font-weight:bold;">From:</span></b> Mahendra Ladhe <lml108@yahoo.com><br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">To:</span></b> "oisf-devel@lists.openinfosecfoundation.org" <oisf-devel@lists.openinfosecfoundation.org> <br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">Sent:</span></b> Wednesday, 11 June 2014 10:06 AM<br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">Subject:</span></b> Errors when cross compiling Suricata 2.0.1<br style="" class=""> </font> </div> <div style="" class=""><br style="" class=""><div style="" class="" id="yiv8107540062"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:10pt;"><div style="" class="">Hi,<br style="" class="">   I'm trying to
 cross compile Suricata using a mips toolchain.<br style="" class="">Compared to Suricata version that existed 4 months ago, the latest version 2.0.1<br style="" class="">is much more amenable to cross compilation.<br style="" class=""><br style="" class="">My configure command line is<br style="" class="">./configure --host=mips64-nlm-linux --with-libpcre-includes=<path> --with-libpcre-libraries=path> --with-libyaml-includes=<path> --with-libyaml-libraries=<path> --with-libpcap-includes=<path> --with-libpcap-libraries=<path> --with-libnet-includes=<path> --with-libnet-libraries=<path> --with-libcap_ng-includes=<path> --with-libcap_ng-libraries=<path>
 --with-libmagic-includes=<path> --with-libmagic-libraries=<path> --prefix=<path><br style="" class=""><br style="" class="">I am exporting the following.<br style="" class=""><br style="" class="">export ac_cv_func_malloc_0_nonnull=yes<br style="" class=""><br style="" class="">The configure script runs fine to completion. But when doing 'make' I'm getting the following errors.<br style="" class=""><br style="" class="">app-layer-dcerpc.o: In function `StubDataParser':<br style="" class="">app-layer-dcerpc.c:(.text+0x4948): undefined reference to `rpl_realloc'<br style="" class="">app-layer-dcerpc-udp.o: In function `FragmentDataParser':<br style="" class="">app-layer-dcerpc-udp.c:(.text+0x12c): undefined reference to `rpl_realloc'<br style="" class="">app-layer-events.o: In function `AppLayerDecoderEventsSetEventRaw':<br style="" class="">app-layer-events.c:(.text+0x628): undefined reference to `rpl_realloc'<br style=""
 class="">app-layer-ftp.o: In function `FTPGetLineForDirection':<br style="" class="">app-layer-ftp.c:(.text+0x598): undefined reference to `rpl_realloc'<br style="" class="">app-layer-ftp.c:(.text+0x9f0): undefined reference to `rpl_realloc'<br style="" class="">app-layer-ftp.o:app-layer-ftp.c:(.text+0x11ac): more undefined references to `rpl_realloc' follow<br style="" class="">../libhtp/htp/.libs/libhtp.so: undefined reference to `inflateEnd'<br style="" class="">../libhtp/htp/.libs/libhtp.so: undefined reference to `inflateInit2_'<br style="" class="">../libhtp/htp/.libs/libhtp.so: undefined reference to `inflate'<br style="" class="">../libhtp/htp/.libs/libhtp.so: undefined reference to `crc32'<br style="" class=""><br style="" class="">Could someone please point out what I'm missing to help fix these errors ?<br style="" class=""><br style="" class="">Thank you<br style="" class="">Mahendra<br style="" class=""></div></div></div></div><br style=""
 class=""><br style="" class=""></div> </div> </div>  </div></body></html>