Can not install snort on ubuntu 64bit

All about Snort integration in Artica

Re: Can not install snort on ubuntu 64bit

New postby admin » Tue Jun 14, 2011 9:56 am

This is not a SNORT problem but a DAQ library compilation problem.
We are not currently talking about snort compilation.
User avatar
admin
Site Admin
 
Posts: 11941
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: Can not install snort on ubuntu 64bit

New postby abolinhas » Tue Jun 14, 2011 10:41 am

another reply

The error:
/usr/bin/ld: /usr/lib64/libipq.a(libipq.o): relocation R_X86_64_32S against `ipq_errmap' can not be used when making a shared object; recompile with -fPIC

suggests it's not taking -fPIC option you specified

I've seen some examples with "" marks
so you might try:
./configure --prefix=/usr --with-libpcap-libraries=/usr/lib64 --libdir=/usr/lib64 --includedir="\${prefix}/include" --mandir="\${prefix}/share/man" --infodir="\${prefix}/share/info" --sysconfdir=/etc --localstatedir=/var CXXFLAGS="-fPIC" CFLAGS="-fPIC" CPPFLAGS="-fPIC"
Cumprimentos / Best Regards

André Bolinhas
Twitter: @abolinhas
User avatar
abolinhas
 
Posts: 1015
Joined: Fri Jun 19, 2009 8:50 am
Location: Portugal
Artica servers number: 4
Linux System: Ubuntu
Technical skills: A Linux System Administrator

Re: Can not install snort on ubuntu 64bit

New postby abolinhas » Tue Jun 14, 2011 11:13 am

humm..I alredy try and still don't work.

I found this

3.f. Case 3: Lack of `-fPIC' flag in the software to be built

This is the most common case. It is a real bug in the build system and should be fixed in the ebuild, preferably with a patch that is sent upstream. Assuming the error message looks like this:

Code Listing 6.1: A sample error message

.libs/assert.o: relocation R_X86_64_32 against `a local symbol' can not be used
when making a shared object; recompile with -fPIC .libs/assert.o: could not
read symbols: Bad value

This means that the file assert.o was not compiled with the -fPIC flag, which it should. When you fix this kind of error, make sure only objects that are used in shared libraries are compiled with -fPIC.

In this case, globally adding -fPIC to C[XX]FLAGS resolves the issue, although this practice is discouraged because the executables end up being PIC-enabled, too.

Note: Adding the -fPIC flag to the linking command or LDFLAGS won't help.


In this case we need to compile /usr/lib64/libipq.a(libipq.o) with -fPIC flag ?
Cumprimentos / Best Regards

André Bolinhas
Twitter: @abolinhas
User avatar
abolinhas
 
Posts: 1015
Joined: Fri Jun 19, 2009 8:50 am
Location: Portugal
Artica servers number: 4
Linux System: Ubuntu
Technical skills: A Linux System Administrator

Re: Can not install snort on ubuntu 64bit

New postby admin » Tue Jun 14, 2011 12:13 pm

yes but it seems not working.... you must say in the snort forum thta with marks this did not working
User avatar
admin
Site Admin
 
Posts: 11941
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: Can not install snort on ubuntu 64bit

New postby Friend7 » Tue Jun 21, 2011 4:54 pm

Did you install libprelude for Snort?
Best Regards,
Friend7
 
Posts: 2373
Joined: Sun Feb 06, 2011 3:41 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A newbee

Previous

Return to IDS with Snort

Who is online

Users browsing this forum: No registered users and 1 guest

cron