If you see this error when you compiled Modsecurity :
because you are using old lib of maxminddb to solved it you should manual compile libmaxminddb from https://github.com/maxmind/libmaxminddb/releases:
sudo ./configure
sudo make
sudo make check
sudo make install
sudo ldconfig
Then you compile Modsecurity again, it should be ok .