[asterisk-users] h323 channel compile error

Shehzad Pankhawala shehzad.pankhawala at ecosmob.com
Fri Aug 8 01:11:29 CDT 2008


I have following settings done on my Fedora8:
Downloaded
openh323-v1_19_0_1-src-tar.gz
pwlib-v1_11_1-src.tar.gz
Extracted them in /root/openh323 and /root/pwlib

Exported the following variables:
PWLIBDIR=/root/pwlib
export PWLIBDIR
OPENH323DIR=/root/openh323
export OPENH323DIR
LD_LIBRARY_PATH=$PWLIBDIR/lib:$OPENH323DIR/lib
export LD_LIBRARY_PATH


Then I compiled pwlib and it was fine.

But in compilation of openh323 as below i got the error, which failed to 
find solution in any forum:
./configure
make
<Errror>
--------------------------------------------------------------------------
make P_SHAREDLIB=1 opt
make[1]: Entering directory `/root/openh323'
make -C src opt
make[2]: Entering directory `/root/openh323/src'
g++ -D_REENTRANT -Wall -fPIC -DPIC -DPTRACING -I/root/openh323/include 
-I/root/pwlib/include -Os -felide-constructors -Wreorder -c h323ep.cxx 
-o /root/openh323/lib/obj_linux_x86_r/h323ep.o
/root/openh323/include/h4601.h: In member function 
‘H460_FeatureContent::operator H460_FeatureTable*()’:
/root/openh323/include/h4601.h:292: warning: type-punning to incomplete 
type might break strict-aliasing rules
h323ep.cxx: In constructor ‘H323EndPoint::H323EndPoint()’:
h323ep.cxx:1001: error: ‘PSoundChannel’ has not been declared
h323ep.cxx:1001: error: ‘PSoundChannel’ has not been declared
h323ep.cxx:1002: error: ‘PSoundChannel’ has not been declared
h323ep.cxx:1002: error: ‘PSoundChannel’ has not been declared
h323ep.cxx: In member function ‘virtual BOOL 
H323EndPoint::OpenAudioChannel(H323Connection&, BOOL, unsigned int, 
H323AudioCodec&)’:
h323ep.cxx:2841: error: ‘PSoundChannel’ was not declared in this scope
h323ep.cxx:2841: error: ‘soundChannel’ was not declared in this scope
h323ep.cxx:2843: error: ‘PSoundChannel’ is not a class or namespace
h323ep.cxx:2845: error: expected type-specifier before ‘PSoundChannel’
h323ep.cxx:2845: error: expected `;' before ‘PSoundChannel’
h323ep.cxx:2854: error: ‘PSoundChannel’ is not a class or namespace
h323ep.cxx:2855: error: ‘PSoundChannel’ is not a class or namespace
h323ep.cxx:2869: error: type ‘<type error>’ argument given to ‘delete’, 
expected pointer
h323ep.cxx: In member function ‘virtual BOOL 
H323EndPoint::SetSoundChannelPlayDevice(const PString&)’:
h323ep.cxx:3047: error: ‘PSoundChannel’ has not been declared
h323ep.cxx:3047: error: ‘PSoundChannel’ has not been declared
h323ep.cxx: In member function ‘virtual BOOL 
H323EndPoint::SetSoundChannelRecordDevice(const PString&)’:
h323ep.cxx:3057: error: ‘PSoundChannel’ has not been declared
h323ep.cxx:3057: error: ‘PSoundChannel’ has not been declared
h323ep.cxx: In member function ‘virtual BOOL 
H323EndPoint::SetSoundChannelPlayDriver(const PString&)’:
h323ep.cxx:3074: error: ‘PSoundChannel’ has not been declared
h323ep.cxx:3074: error: ‘PSoundChannel’ has not been declared
h323ep.cxx: In member function ‘virtual BOOL 
H323EndPoint::SetSoundChannelRecordDriver(const PString&)’:
h323ep.cxx:3091: error: ‘PSoundChannel’ has not been declared
h323ep.cxx:3091: error: ‘PSoundChannel’ has not been declared
make[2]: *** [/root/openh323/lib/obj_linux_x86_r/h323ep.o] Error 1
make[2]: Leaving directory `/root/openh323/src'
make[1]: *** [opt] Error 2
make[1]: Leaving directory `/root/openh323'
make: *** [optshared] Error 2
______________________________________________
I also tried make opt
but the error remain same.
Any idea.
Please reply,
Thanks
Shehzad.




More information about the asterisk-users mailing list