da667 / Autosnort

Repo for autosnort scripts.
MIT License
157 stars 89 forks source link

Ubuntu 12.04, secondary install, daq compilation fails #31

Closed sniglet closed 9 years ago

sniglet commented 9 years ago

This may be more a matter of 'nuke /usr/local/snort' before re-running autosnort, or it may not be.

Relevant output from the installation log:

libtool: install: (cd /usr/src/daq-2.0.2/os-daq-modules; /bin/bash /usr/src/daq-2.0.2/libtool --tag CC --mode=relink gcc -DBUILDING_SO -g -O2 -fvisibility=hidden -Wall -Wwrite-strings -Wsign-compare -Wcast-align -Wextra -Wformat -Wformat-security -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -pedantic -std=c99 -D_GNU_SOURCE -module -export-dynamic -avoid-version -shared -o daq_ipfw.la -rpath /usr/local/lib/daq daq_ipfw_la-daq_ipfw.lo ../sfbpf/libsfbpf.la ) libtool: relink: gcc -shared -fPIC -DPIC .libs/daq_ipfw_la-daq_ipfw.o -L/usr/local/lib -lsfbpf -O2 -Wl,-soname -Wl,daq_ipfw.so -o .libs/daq_ipfw.so libtool: install: /usr/bin/install -c .libs/daq_ipfw.soT /usr/local/lib/daq/daq_ipfw.so libtool: install: /usr/bin/install -c .libs/daq_ipfw.lai /usr/local/lib/daq/daq_ipfw.la libtool: install: warning: relinking daq_nfq.la' libtool: install: (cd /usr/src/daq-2.0.2/os-daq-modules; /bin/bash /usr/src/daq-2.0.2/libtool --tag CC --mode=relink gcc -DBUILDING_SO -g -O2 -fvisibility=hidden -Wall -Wwrite-strings -Wsign-compare -Wcast-align -Wextra -Wformat -Wformat-security -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -pedantic -std=c99 -D_GNU_SOURCE -module -export-dynamic -avoid-version -shared -L/usr/local/lib -ldnet -o daq_nfq.la -rpath /usr/local/lib/daq daq_nfq_la-daq_nfq.lo -lnfnetlink -lnetfilter_queue -L/usr/local/lib -ldnet ../sfbpf/libsfbpf.la ) libtool: relink: gcc -shared -fPIC -DPIC .libs/daq_nfq_la-daq_nfq.o -L/usr/local/lib -lnfnetlink -lnetfilter_queue -ldnet -lsfbpf -O2 -Wl,-soname -Wl,daq_nfq.so -o .libs/daq_nfq.so /usr/bin/ld: /usr/local/lib/libdnet.a(addr.o): relocation R_X86_64_32 against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libdnet.a: could not read symbols: Bad value collect2: ld returned 1 exit status libtool: install: error: relink daq_nfq.la' with the above command before installing it make[2]: *** [install-pkglibLTLIBRARIES] Error 1 make[2]: Leaving directory/usr/src/daq-2.0.2/os-daq-modules' make[1]: * [install-am] Error 2 make[1]: Leaving directory `/usr/src/daq-2.0.2/os-daq-modules' make: * [install-recursive] Error 1

da667 commented 9 years ago

I'm sorry, but I am unable to reproduce this, and came across several half-failed installs during testing for autosnort. Try out the new builds I just pushed. If this continues to be an issue, please re-open. Thanks!

sniglet commented 9 years ago

No worries

On Sunday, November 2, 2014, da_667 notifications@github.com wrote:

I'm sorry, but I am unable to reproduce this, and came across several half-failed installs during testing for autosnort. Try out the new builds I just pushed. If this continues to be an issue, please re-open. Thanks!

— Reply to this email directly or view it on GitHub https://github.com/da667/Autosnort/issues/31#issuecomment-61430549.

laulo69 commented 9 years ago

I have the exact same problem on Fedora 20 x64.

Tried all workarounds but nothing works.

The only solution was to reinstall it on a x86 system (still under Fedora 20).

Seems there is a big issue with that and x64 distro's.

Regards, Laurent.