* Building H.323 wrapper lib...
make: Entering directory `/var/tmp/portage/net-misc/asterisk-1.2.21.1/work/asterisk-1.2.21.1/channels/h323'
g++ -O2 -pipe -fomit-frame-pointer -march=i586 -I/usr/include/openh323 -c -o ast_h323.o ast_h323.cpp
ast_h323.cpp:1:1: warning: "_GNU_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
ast_h323.cpp:44:29: error: asterisk/logger.h: No such file or directory
ast_h323.cpp:45:30: error: asterisk/channel.h: No such file or directory
chan_h323.h:55: error: 'AST_MAX_ACCOUNT_CODE' was not declared in this scope
ast_h323.cpp: In member function 'virtual int PAsteriskLog::Buffer::sync()':
ast_h323.cpp:133: error: 'ast_verbose' was not declared in this scope
ast_h323.cpp: In function 'void PAssertFunc(const char*)':
ast_h323.cpp:169: error: 'LOG_ERROR' was not declared in this scope
ast_h323.cpp:169: error: 'ast_log' was not declared in this scope
make: *** [ast_h323.o] Error 1
make: Leaving directory `/var/tmp/portage/net-misc/asterisk-1.2.21.1/work/asterisk-1.2.21.1/channels/h323'