hping icon indicating copy to clipboard operation
hping copied to clipboard

hping: fix build against gcc-10 (-fno-common)

Open trofi opened this issue 3 years ago • 1 comments

gcc-10 changed the default from -fcommon to fno-common: https://gcc.gnu.org/PR85678

As a result build fails as:

ld: scan.o:/build/hping/hping2.h:360: multiple definition of `delaytable'; main.o:/build/hping/hping2.h:360: first defined here

The change moves variable definitions to .c file.

trofi avatar May 14 '22 17:05 trofi

This change worked for me. I was thinking of adding the same thing :) Thank you!

hackman avatar Apr 02 '24 04:04 hackman