leeh@s103139:~/minetestmapper$ make
[ 11%] Building CXX object CMakeFiles/minetestmapper.dir/db-postgresql.cpp.o
/home/leeh/minetestmapper/db-postgresql.cpp: In member function ‘int DBPostgreSQL::pg_to_int(PGresult*, int, int)’:
/home/leeh/minetestmapper/db-postgresql.cpp:151:39: error: ‘atoi’ was not declared in this scope
return atoi(PQgetvalue(res, row, col));
^
/home/leeh/minetestmapper/db-postgresql.cpp:152:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
CMakeFiles/minetestmapper.dir/build.make:238: recipe for target 'CMakeFiles/minetestmapper.dir/db-postgresql.cpp.o' failed
make[2]: *** [CMakeFiles/minetestmapper.dir/db-postgresql.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/minetestmapper.dir/all' failed
make[1]: *** [CMakeFiles/minetestmapper.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
Building MT with postgresql requires a bit of fiddling. Passing the same flags to mtmapper looks promising but fails quickly on make.