Project

General

Profile

Bug #3124

Centos 6 compile err

Added by Peter Manev about 2 months ago. Updated about 2 months ago.

Status:
New
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

History

#1

Updated by Victor Julien about 2 months ago

My CentOS6 builder is still fine.

#2

Updated by Peter Manev about 2 months ago

I downloaded a minimal ISO and created a CentOS 6 VM from the CentOS mirrors available here - http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1810.iso

Is till get the same err:

checking for strndup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strtol... yes
checking for strtoul... yes
checking for memchr... yes
checking for memrchr... yes
checking for clock_gettime... no
checking for strptime... yes
checking whether getrandom is declared... no
checking for utime... yes
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@centos6 suricata]# history  |tail -3
   47  git clone  https://github.com/OISF/suricata.git && cd suricata && git clone https://github.com/OISF/libhtp.git -b 0.5.x 
   48  ./autogen.sh 
   49  ./configure 
[root@centos6 suricata]# cat /etc/*elease
CentOS release 6.10 (Final)
CentOS release 6.10 (Final)
CentOS release 6.10 (Final)
[root@centos6 suricata]# rpm -q centos-release
centos-release-6-10.el6.centos.12.3.x86_64
[root@centos6 suricata]# 
#3

Updated by Jason Ish about 2 months ago

Looks like its the version of autoconf generating output that fails in sh. Looking into this.

#4

Updated by Jason Ish about 2 months ago

  • Assignee set to Jason Ish
  • Affected Versions 5.0beta1 added
#5

Updated by Andreas Herz about 2 months ago

  • Target version set to Soon

Also available in: Atom PDF