I downloaded the exmap package, but it doesn't seem to include the kernel module, just the binary which isn't very useful so I tried to compile it.
Wait: you tried to compile the binary
Have you tried:
sudo apt-get install exmap
cc1plus: warnings being treated as errors
... check the compile string if you want warnings to be ignored.
exmtool.cpp:35: warning: deprecated conversion from string constant to ‘char*’
- the code you are using is too old for the compiler you have. There are sections which are no longer supported.
The error location is given to you - you can always go into the code and correct it by using a non-depreciated method to convert a string-constant into a char.