No idea - I'm on a similar setup to the autobuilder (gcc (GCC) 4.4.4 20100503 (Red Hat 4.4.4-2)) and 8249 builds fine from clean.
then it might be a problem of the auto-compiler. given that 1. MESS builds fine on Mac, Linux and Windows, 2. the function nes_get_pcb_id is regularly defined in nes_pcb.c