[HELP] 1.4 native H323 channel: compile error

OpenH323 v.1.18.0, PWLib v.1.10.1 (both downloaded from voxgratia.org)

gcc --version

i586-alt-linux-gcc (GCC) 3.4.4 20050526 (ALT Linux, build 3.4.4-alt1)

(in asterisk-1.4.0-beta2/channels/h323)

make opt

g++ -DNDEBUG -I…/…/include -include …/…/include/asterisk/autoconfig.h -fPIC -DP_USE_PRAGMA -D_REENTRANT -Wall -fPIC -DPIC -I/usr/local/share/pwlib//include -DPTRACING -I/build/asterisk/openh323_v1_18_0/include -M ast_h323.cxx >> *.dep
g++ -DNDEBUG -I…/…/include -include …/…/include/asterisk/autoconfig.h -fPIC -DP_USE_PRAGMA -D_REENTRANT -Wall -fPIC -DPIC -I/usr/local/share/pwlib//include -DPTRACING -I/build/asterisk/openh323_v1_18_0/include -Os -pipe -felide-constructors -c ast_h323.cxx -o ast_h323.o
g++ -DNDEBUG -I…/…/include -include …/…/include/asterisk/autoconfig.h -fPIC -DP_USE_PRAGMA -D_REENTRANT -Wall -fPIC -DPIC -I/usr/local/share/pwlib//include -DPTRACING -I/build/asterisk/openh323_v1_18_0/include -Os -pipe -felide-constructors -c compat_h323.cxx -o compat_h323.o
g++ -DNDEBUG -I…/…/include -include …/…/include/asterisk/autoconfig.h -fPIC -DP_USE_PRAGMA -D_REENTRANT -Wall -fPIC -DPIC -I/usr/local/share/pwlib//include -DPTRACING -I/build/asterisk/openh323_v1_18_0/include -Os -pipe -felide-constructors -c cisco-h225.cxx -o cisco-h225.o
g++ -DNDEBUG -I…/…/include -include …/…/include/asterisk/autoconfig.h -fPIC -DP_USE_PRAGMA -D_REENTRANT -Wall -fPIC -DPIC -I/usr/local/share/pwlib//include -DPTRACING -I/build/asterisk/openh323_v1_18_0/include -Os -pipe -felide-constructors -c caps_h323.cxx -o caps_h323.o
caps_h323.cxx: In member function virtual unsigned int AST_G711Capability::GetSubType() const': caps_h323.cxx:39: error: incomplete typeH245_AudioCapability’ used in nested name specifier
caps_h323.cxx:39: error: incomplete type H245_AudioCapability' used in nested name specifier caps_h323.cxx:40: error: incomplete typeH245_AudioCapability’ used in nested name specifier
caps_h323.cxx:40: error: incomplete type H245_AudioCapability' used in nested name specifier caps_h323.cxx: In member functionvirtual unsigned int AST_G7231Capability::GetSubType() const’:
caps_h323.cxx:99: error: incomplete type H245_AudioCapability' used in nested name specifier caps_h323.cxx: In member functionvirtual BOOL AST_G7231Capability::OnSendingPDU(H245_AudioCapability&, unsigned int) const’:
caps_h323.cxx:105: error: invalid use of undefined type struct H245_AudioCapability' /build/asterisk/openh323_v1_18_0/include/h323caps.h:227: error: forward declaration ofstruct H245_AudioCapability’
caps_h323.cxx:105: error: incomplete type H245_AudioCapability' used in nested name specifier caps_h323.cxx:106: error:H245_AudioCapability_g7231’ undeclared (first use this function)
caps_h323.cxx:106: error: (Each undeclared identifier is reported only once for each function it appears in.)
caps_h323.cxx:106: error: g7231' undeclared (first use this function) caps_h323.cxx: In member functionvirtual BOOL AST_G7231Capability::OnReceivedPDU(const H245_AudioCapability&, unsigned int&)’:
caps_h323.cxx:115: error: invalid use of undefined type const struct H245_AudioCapability' /build/asterisk/openh323_v1_18_0/include/h323caps.h:227: error: forward declaration ofconst struct H245_AudioCapability’
caps_h323.cxx:115: error: incomplete type H245_AudioCapability' used in nested name specifier caps_h323.cxx:118: error: expected primary-expression before "const" caps_h323.cxx:118: error: expected;’ before "const"
caps_h323.cxx:119: error: g7231' undeclared (first use this function) caps_h323.cxx: In member functionvirtual unsigned int AST_G729Capability::GetSubType() const’:
caps_h323.cxx:144: error: incomplete type H245_AudioCapability' used in nested name specifier caps_h323.cxx: In member functionvirtual unsigned int AST_G729ACapability::GetSubType() const’:
caps_h323.cxx:172: error: incomplete type H245_AudioCapability' used in nested name specifier caps_h323.cxx: In member functionvirtual unsigned int AST_GSM0610Capability::GetSubType() const’:
caps_h323.cxx:202: error: incomplete type H245_AudioCapability' used in nested name specifier caps_h323.cxx: In member functionvirtual BOOL AST_GSM0610Capability::OnSendingPDU(H245_AudioCapability&, unsigned int) const’:
caps_h323.cxx:208: error: invalid use of undefined type struct H245_AudioCapability' /build/asterisk/openh323_v1_18_0/include/h323caps.h:227: error: forward declaration ofstruct H245_AudioCapability’
caps_h323.cxx:208: error: incomplete type H245_AudioCapability' used in nested name specifier caps_h323.cxx:209: error:H245_GSMAudioCapability’ undeclared (first use this function)
caps_h323.cxx:209: error: gsm' undeclared (first use this function) caps_h323.cxx: In member functionvirtual BOOL AST_GSM0610Capability::OnReceivedPDU(const H245_AudioCapability&, unsigned int&)’:
caps_h323.cxx:219: error: invalid use of undefined type const struct H245_AudioCapability' /build/asterisk/openh323_v1_18_0/include/h323caps.h:227: error: forward declaration ofconst struct H245_AudioCapability’
caps_h323.cxx:219: error: incomplete type H245_AudioCapability' used in nested name specifier caps_h323.cxx:221: error: expected primary-expression before "const" caps_h323.cxx:221: error: expected;’ before "const"
caps_h323.cxx:222: error: `gsm’ undeclared (first use this function)
make: *** [caps_h323.o] Error 1

Am i using wrong compiler or damaged brain?

P.S. README’s read, libraries were rebuilt several times, then I read forums, online FAQs, then googled about half an hour…