Having trouble compiling asterisk

Hows it going?

Ill have to admit im a little new to asterisk so this is probably a common problem.

First off, im working off the “asterisk, the future of telephony” book but im using Debian instead of centOS, and im installing asterisk 1.6.

i compiled libpri and zaptel fine but when it comes to asterisk itself, im getting

"Dwarf error: Abbrev offset (26284) greater than or equal to .debug_abbrev size (1347).

followed by a bunch of undefined references starting with

app_queue.c: (.text+0x11cc4): undefined reference to ‘ast_monitor_start’

Any help would be greatly appreciated, thanks.