Bug #1676
closedgentoo build error
Description
OS:gentoo
./configure --enable-af-packet --enable-pcre-jit --enable-luajit
Suricata Configuration:
AF_PACKET support: yes
PF_RING support: no
NFQueue support: no
NFLOG support: no
IPFW support: no
DAG enabled: no
Napatech enabled: no
Unix socket enabled: no
Detection enabled: yes
libnss support: no
libnspr support: no
libjansson support: no
Prelude support: no
PCRE jit: yes
LUA support: yes
libluajit: yes
libgeoip: no
Non-bundled htp: no
Old barnyard2 support: no
CUDA enabled: no
Suricatasc install: yes
Unit tests enabled: no
Debug output enabled: no
Debug validation enabled: no
Profiling enabled: no
Profiling locks enabled: no
Coccinelle / spatch: no
Generic build parameters:
Installation prefix (--prefix): /usr/local
Configuration directory (--sysconfdir): /usr/local/etc/suricata/
Log directory (--localstatedir) : /usr/local/var/log/suricata/
Host: armv7l-unknown-linux-gnueabihf
GCC binary: gcc
GCC Protect enabled: no
GCC march native enabled: yes
GCC Profile enabled: no
To build and install run 'make' and 'make install'.
You can run 'make install-conf' if you want to install initial configuration
files to /usr/local/etc/suricata/. Running 'make install-full' will install configuration
and rules and provide you a ready-to-run suricata.
To install Suricata into /usr/bin/suricata, have the config in
/etc/suricata and use /var/log/suricata as log dir, use:
./configure --prefix=/usr/ --sysconfdir=/etc/ --localstatedir=/var/
make
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^
suricata.c: In function 'SCPrintBuildInfo':
suricata.c:777:50: error: 'defined' undeclared (first use in this function)
printf("compiled with _FORTIFY_SOURCE=%d\n", _FORTIFY_SOURCE);
^
suricata.c:777:50: note: each undeclared identifier is reported only once for each function it appears in
suricata.c:777:50: error: expected ')' before numeric constant
printf("compiled with _FORTIFY_SOURCE=%d\n", _FORTIFY_SOURCE);
Updated by Andreas Herz almost 9 years ago
- Assignee set to Andreas Herz
- Target version set to 70
I will look into that, i found the overlay ebuild which uses a patch to workaround that:
http://data.gpo.zugaina.org/gentoo/net-analyzer/suricata/files/fortify_source-numeric.patch
We'll look for a solution.
Updated by Mike Zhong almost 9 years ago
Thank you
another question:
can i use pcre-jit in lua script?
Updated by Mike Zhong almost 9 years ago
if enable CUDA, how use CUDA in lua or luajit?
Updated by Andreas Herz almost 9 years ago
Those questions should go into a seperate issue and not mixed with this one here.
We already had some discussion about that and Gentoo in 2013:
https://lists.openinfosecfoundation.org/pipermail/oisf-users/2013-October/003119.html
I'm still not sure which would be the best way to handle that, we either change that section or add some check in the makefile for gentoo systems. Any thoughts?
Updated by Andreas Herz almost 9 years ago
It's kinda funny, i played around with the values and
#ifdef _FORTIFY_SOURCE == 2 printf("FOOBAR"\n"); #endif
Works on a Gentoo system, but using this value in our code to print it via %d won't work O_o although it seems to be 2 in every scenario.
Victor you had some idea regarding the preprocessor and macros that we could check?
Updated by Victor Julien almost 9 years ago
Maybe just work around it like this? Not worth spending lots of time on.
Updated by Andreas Herz almost 9 years ago
That's the workaround: https://github.com/inliniac/suricata/pull/1871 so Mike you can test it if you want :)
It's also merged now, marking as fixed.
Updated by Andreas Herz over 8 years ago
- Status changed from New to Closed
- Target version changed from 70 to 3.0.1RC1
Updated by Victor Julien over 8 years ago
- Subject changed from make error to gentoo build error