[Oisf-users] Compile Error on CentOS 7
jt
jtfas90 at gmail.com
Wed Oct 2 19:03:54 UTC 2019
On Wed, 2019-10-02 at 14:51 -0400, jt wrote:
> On Wed, 2019-10-02 at 18:06 +0000, Cloherty, Sean E wrote:
> > Is anyone using the option –enable-pie when building Suricata 4.1.5
> > or 5.0rc1 ? I have been using it up through 4.1.4 and 5.0beta1
> > with
> > no issue.
> >
> > I am using the following –
> >
> > ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --
> > with-libhs-includes=/usr/local/include/hs/ --with-libhs-
> > libraries=/usr/local/lib/ --with-liblzma-includes=/usr/include/ --
> > enable-gccprotect --enable-gccprofile --enable-gccmarch-native --
> > enable-lua --enable-geoip --enable-pie --enable-rust --enable-unix-
> > socket
> >
> > This is the error I get ---
> >
> > /usr/bin/ld:
> > /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/gcrt1.o:
> > relocation R_X86_64_32S against symbol `__libc_csu_fini' can not be
> > used when making a shared object; recompile with -fPIC
> > /usr/bin/ld: final link failed: Nonrepresentable section on output
> >
> > Thanks.
> >
> > Sean Cloherty
> >
>
> Which point release of cent7? and which version specifically of
> glibc-
> devel?
>
> We have compiled 4.1.5 with --enable-pie with no issues on 7.7.1908
> with glibc-deve-2.17-292
>
> JT
>
One thing with Cent7 and hyperscan we have an export LIBS="-lstdc++ -lm
-lgcc_s -lgcc -lc -lgcc_s -lgcc" prior to running ./configure in our
RPM. The only discrepency I see otherwise is we have --disable-march-
native
The error you are seeing seems like there's a mismatch with something
expecting static-libs.
JT
More information about the Oisf-users
mailing list