broker compile problem

Hi,

I have been trying over and over to solve this but failed.
I keep getting this error when compiling bro

[ 9%] Building CXX object aux/broker/tests/CMakeFiles/test_data.dir/test_data.cc.o
Linking CXX executable test_data
…/libbroker.so.0.4-9.0: undefined reference to inflateInit2_' ../libbroker.so.0.4-9.0: undefined reference to inflate’
…/libbroker.so.0.4-9.0: undefined reference to deflateInit2_' ../libbroker.so.0.4-9.0: undefined reference to deflate’
…/libbroker.so.0.4-9.0: undefined reference to deflateEnd' ../libbroker.so.0.4-9.0: undefined reference to inflateEnd’
collect2: error: ld returned 1 exit status

I have attached the Dockerfile I used

Dockerfile (1.78 KB)

Is zlib installed and in a path the linker searches?

- Jon

I use zlib1g-dev (in Dockerfile).
I was thinking of building zlib from source.

It is a rocksdb thing. It needs all kind of libs related to zip.

Without installing rocksdb everything compiles perfect.
Sorry Mark .. :smiley:

Problem solved, rocksdb works too…
In debian I needed zlib1g-dev libsnappy-dev & libbz2-dev.

https://github.com/facebook/rocksdb/blob/master/INSTALL.md