On Fri, Oct 1, 2010 at 6:58 PM, Rob Hutton <justlikeef@gmail.com> wrote:
I am getting the following error compiling mod_h323 on OpenSuse 11.3 X86_64. I don't even know where to begin on this, but would me more than happy to help work it out...
Compiling /usr/src/freeswitch/freeswitch/src/mod/endpoints/mod_h323/mod_h323.cpp... quiet_libtool: compile: g++ -g -ggdb -I/usr/local/include/ptlib - I/usr/local/include/openh323 -I. -DPTRACING=1 -D_REENTRANT -fno-exceptions - I/usr/src/freeswitch/freeswitch/src/include - I/usr/src/freeswitch/freeswitch/src/include - I/usr/src/freeswitch/freeswitch/libs/libteletone/src -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -O2 -D_GNU_SOURCE - DHAVE_CONFIG_H -c /usr/src/freeswitch/freeswitch/src/mod/endpoints/mod_h323/mod_h323.cpp -fPIC -DPIC -o .libs/mod_h323.o In file included from
/usr/src/freeswitch/freeswitch/src/mod/endpoints/mod_h323/mod_h323.cpp:31:0: /usr/src/freeswitch/freeswitch/src/mod/endpoints/mod_h323/mod_h323.h:110:1: error: too many initializers for ‘const char* const [8]’
complains about that : const char* const GetAnswerCallResponse[H323Connection::NumAnswerCallResponses+1]={ "AnswerCallNow", "AnswerCallDenied", "AnswerCallPending", "AnswerCallDeferred", "AnswerCallAlertWithMedia", "AnswerCallDeferredWithMedia", "AnswerCallDeniedByInvalidCID", "AnswerCallNowWithAlert", "NumAnswerCallResponses" }; for some reason H323Capability::e_NumMainTypes+1 returnes less than the array actual size
/usr/src/freeswitch/freeswitch/src/mod/endpoints/mod_h323/mod_h323.h:121:1: error: too many initializers for ‘const char* const [5]’
complains about that : const char* const GetMainTypes[H323Capability::e_NumMainTypes+1] = { "Audio", "Video", "Data", "UserInput", "ExtendVideo", "GenericControl", "ConferenceControl", "NumMainTypes" }; for some reason H323Capability::e_NumMainTypes+1 returnes less than the array actual size
/usr/src/freeswitch/freeswitch/src/mod/endpoints/mod_h323/mod_h323.h:212:40: error: expected class-name before ‘{’ token
here it is complaining about something it should not :))) Everything is fine in that function. bottom line, i guess you don't have the correct combination of ptlib and h323plus. Please check http://wiki.freeswitch.org/wiki/Mod_h323 for detailed installation process. Also, note we are focusing on CentOS and Debian distro mainly and its quite hard to guess what is wrong on different distros.