RoliSoft / Host-Scanner

Active/passive network scanner and autonomous vulnerability assessment application.
GNU General Public License v3.0
69 stars 30 forks source link

Strange build issue. #2

Closed utumen closed 7 years ago

RoliSoft commented 7 years ago

During development I had a few issues related to how I link with zlib. Some distributions package Boost's iostreams library with zlib support, while others don't.

Debian and Kali package it with zlib, but I'm not sure about Ubuntu, however they most likely also do.

Try modifying the CMakeFiles.txt and add:

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lz")

Even though you shouldn't be doing this, I found with earlier versions of gcc it seems to fix the issue.

Alternatively, you can try recompiling boost with zlib support.

Oooor, just run cmake -DWITHOUT_ZLIB=1. The only thing you won't be able to do is to load compressed data files directly, so make sure to run gzip -d *.gz in the data folder.