You have the exact same problem I had with RH 7.2 and gcc 3.0.4 (I think).
http://forums.eqemu.net/showthread.p...p;threadid=980
You need to throw a few includes in for a couple of files... For some reason, certain ones that use va functions need stdargs.h included in. I never did figure out why I was the only one having that problem, figured it was my weird shit development box.