Are you trying to compile source code that is supposed to run in an embedded environment / on an EEPROM inside your router?
That is an aside actually, the error you posted seems to refer to the fact that you do not have the "atm" library.
I. e. your linked is looking for a file called
in either your /usr/lib or /usr/local/lib
I. e. you'll need to find, compile, and install this library before you'll be able to proceed.