Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Libnids 64 bits systems

Tags:

gcc

libpcap

My problem was that when I was compiling the app in a 64 bits Ubuntu I didn't get neither errors or warnings, just like in 32 bits, but there wasn't an output when executing it. Example:

$: ./program
$: _

But why!?

like image 256
Carlos Vega Avatar asked May 27 '26 19:05

Carlos Vega


1 Answers

After many headaches and mail exchanges with the library's author I found the way to use libnids library on ubuntu 64 bits system.

Okay, I told the author and after some days he found the error. It was, apparently, a GCC error. It seems, for some reason, that you have to remove the -O2 flags when compiling libnids library on 64 bits systems. So, what I've done is to remove the -O2 flags from the configure file so it creates a makefile without it.

I also recommend using this on your libnids app's Makefile: compiling using libnids

like image 199
Carlos Vega Avatar answered May 31 '26 12:05

Carlos Vega



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!