[Oisf-users] suricata 1.1beata1 compile failed with --enable-unittests
Victor Julien
victor at inliniac.net
Mon Dec 27 10:46:47 UTC 2010
What if you try "make clean" followed by "make"? An error like this
could have been caused by an incomplete build without the unittests
option enabled.
Cheers,
Victor
On 12/27/2010 04:16 AM, Delta Yeh wrote:
> I run debian:~/suricata-1.1beta1# ./configure --enable-nfqueue
> --enable-unittests
> but compile failed.
>
> The info is:
>
> debian:~/suricata-1.1beta1# uname -a
> Linux debian 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 GNU/Linux
> debian:~/suricata-1.1beta1# gcc -v
> Using built-in specs.
> Target: i486-linux-gnu
> Configured with: ../src/configure -v --with-pkgversion='Debian
> 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
> --enable-shared --with-system-zlib --libexecdir=/usr/lib
> --without-included-gettext --enable-threads=posix --enable-nls
> --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
> --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
> --enable-mpfr --enable-targets=all --enable-cld
> --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
> --target=i486-linux-gnu
> Thread model: posix
> gcc version 4.3.2 (Debian 4.3.2-1.1)
>
> ---------------------------------------------
> suricata.o: In function `main':
> /root/suricata-1.1beta1/src/suricata.c:936: undefined reference to
> `DCERPCUDPParserRegisterTests'
> /root/suricata-1.1beta1/src/suricata.c:948: undefined reference to
> `ConfRegisterTests'
> alert-fastlog.o: In function `AlertFastLogTest02':
> /root/suricata-1.1beta1/src/alert-fastlog.c:449: undefined reference
> to `SCClassConfGenerateValidDummyClassConfigFD01'
> /root/suricata-1.1beta1/src/alert-fastlog.c:451: undefined reference
> to `SCClassConfDeleteDummyClassificationConfigFD'
> alert-fastlog.o: In function `AlertFastLogTest01':
> /root/suricata-1.1beta1/src/alert-fastlog.c:393: undefined reference
> to `SCClassConfGenerateValidDummyClassConfigFD01'
> /root/suricata-1.1beta1/src/alert-fastlog.c:395: undefined reference
> to `SCClassConfDeleteDummyClassificationConfigFD'
> stream-tcp.o: In function `StreamTcpTest17':
> /root/suricata-1.1beta1/src/stream-tcp.c:5119: undefined reference to
> `StreamTcpCreateTestPacket'
> /root/suricata-1.1beta1/src/stream-tcp.c:5131: undefined reference to
> `StreamTcpCreateTestPacket'
> /root/suricata-1.1beta1/src/stream-tcp.c:5143: undefined reference to
> `StreamTcpCreateTestPacket'
> /root/suricata-1.1beta1/src/stream-tcp.c:5155: undefined reference to
> `StreamTcpCreateTestPacket'
> /root/suricata-1.1beta1/src/stream-tcp.c:5169: undefined reference to
> `StreamTcpCreateTestPacket'
> stream-tcp.o:/root/suricata-1.1beta1/src/stream-tcp.c:5181: more
> undefined references to `StreamTcpCreateTestPacket' follow
> collect2: ld returned 1 exit status
> make[2]: *** [suricata] error 1
> make[2]: Leaving directory `/root/suricata-1.1beta1/src'
> make[1]: *** [all-recursive] error 1
> make[1]: Leaving directory `/root/suricata-1.1beta1'
> make: *** [all
> _______________________________________________
> Oisf-users mailing list
> Oisf-users at openinfosecfoundation.org
> http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users
>
--
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------
More information about the Oisf-users
mailing list