Project

General

Profile

Actions

Bug #3124

closed

Centos 6 compile err

Added by Peter Manev over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:

Description

Using latest

commit f43584661c3cca1f34832e51b4a65347053f7c0f

on CentOS-6

[root@d855cd5c4cc2 suricata]# cat /etc/*elease
CentOS release 6.10 (Final)
CentOS release 6.10 (Final)
CentOS release 6.10 (Final)
[root@d855cd5c4cc2 suricata]# rpm -q centos-release
centos-release-6-10.el6.centos.12.3.x86_64

I get an err during configure when trying to compile suri

checking for strlcpy... no
checking for strlcat... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking host os... installation for x86_64-unknown-linux-gnu OS... ok
checking for thread local storage __thread support... yes
checking checking if gcc supports -march=native... yes
./configure: line 19135: syntax error near unexpected token `else'
./configure: line 19135: `else'
[root@d855cd5c4cc2 suricata]# 

To reproduce -

docker pull pevma/sqard:centos-6 && \
docker run --security-opt="apparmor=unconfined" \
--cap-add=SYS_PTRACE --name sqard-centos-6-01 -d -ti \
pevma/sqard:centos-6 /bin/bash && \
docker attach $(docker ps -a |grep sqard-centos-6-01 | awk '{print $1}')

cd /opt/QA/
git clone  https://github.com/OISF/suricata.git && \
cd suricata && git clone https://github.com/OISF/libhtp.git -b 0.5.x &&  \
./autogen.sh && \
./configure --prefix=/opt/suritest/ --sysconfdir=/opt/suritest/etc \
--localstatedir=/opt/suritest/var  --enable-geoip --enable-rust-strict  --enable-luajit

Centos 6 seems to not get full updates any more just maintenance , so not sure if it is relevant - https://wiki.centos.org/About/Product

Actions

Also available in: Atom PDF