Actions
Bug #171
closedsuricata 0.9.1 fails to compile with cuda support
Affected Versions:
Effort:
Difficulty:
Label:
Description
When trying to compile suricata 0.9.1 with CUDA enabled, compile fails with the following error:
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libhtp -I/usr/include/cuda -march=native -O2 -pipe -Wextra -Wall -fno-strict-aliasing -Wno-unused-parameter -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -D__SC_CUDA_SUPPORT__ -DHAVE_LIBCAP_NG -MT source-nfq.o -MD -MP -MF .deps/source-nfq.Tpo -c -o source-nfq.o source-nfq.c In file included from suricata.c:130: util-mpm-b2g-cuda.h:54: error: expected specifier-qualifier-list before ‘MpmEndMatch’ make[2]: *** [suricata.o] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f .deps/threads.Tpo .deps/threads.Po mv -f .deps/source-nfq.Tpo .deps/source-nfq.Po make[2]: Leaving directory `/var/tmp/portage/net-analyzer/suricata-0.9.1/work/suricata-0.9.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-analyzer/suricata-0.9.1/work/suricata-0.9.1' make: *** [all] Error 2
I'm using CUDA 3.0, but the same error occurs with 2.3 as well. The gcc version is 4.4.3. Did I miss something in the installation docs? Any help would be appreciated.
Actions