The following occurs with code from yesterday's cvs (asterisk) and current OpenH323 code: [root@raid-2 h323]# make clean install rm -f *.o *.so core.* cc -g -pg -c -o chan_h323.o -pipe -Wall -fPIC -Wmissing-prototypes -Wmissing-declarations - DP_LINUX -D_REENTRANT -D_GNU_SOURCE -march=i686 -DPBYTE_ORDER=PLITTLE_ENDIA N -DP_HAS_SEMAPHORES -DP_SSL -DP_PTHREADS -DPHAS_TEMPLATES -DPTRACING -DP_US E_PRAGMA -I/root/pwlib/include/ptlib/unix -I/root/pwlib/include -I/root/op enh323/include -Wno-missing-prototypes -Wno-missing-declarations chan_h323.c g++ -g -pg -c -o ast_h323.o -pipe -Wall -fPIC -Wmissing-prototypes -Wmissing-declarations -D P_LINUX -D_REENTRANT -D_GNU_SOURCE -march=i686 -DPBYTE_ORDER=PLITTLE_ENDIAN -DP_HAS_SEMAPHORES -DP_SSL -DP_PTHREADS -DPHAS_TEMPLATES -DPTRACING -DP_USE _PRAGMA -I/root/pwlib/include/ptlib/unix -I/root/pwlib/include -I/root/ope nh323/include -Wno-missing-prototypes -Wno-missing-declarations ast_h323.cpp ast_h323.cpp: In function `int h323_set_capability (int, int)': ast_h323.cpp:780: `H323_G729ACapability' undeclared (first use this function) ast_h323.cpp:780: (Each undeclared identifier is reported only once for each function it appears in.) ast_h323.cpp:780: `g729aCap' undeclared (first use this function) ast_h323.cpp:781: parse error before `)' /root/pwlib/include/ptlib/array.h: At top level: chan_h323.h:30: warning: `sockaddr_in bindaddr' defined but not used make: *** [ast_h323.o] Error 1 [root@raid-2 h323]#
You are not running the version of Open H.323 Listed in asterisk/channels/h323/README. Many things have changed in the latest CVS of Open H.323, we are letting some time pass to ensure all these changes get worked out before recomending this new version. A very simple command to get the approprate version: cvs co openh323 -rv1_11_7 Jeremy McNamara Steven P. Donegan wrote:>The following occurs with code from yesterday's cvs (asterisk) and current >OpenH323 code: > >[root@raid-2 h323]# make clean install >rm -f *.o *.so core.* >cc -g -pg -c -o >chan_h323.o -pipe -Wall -fPIC -Wmissing-prototypes -Wmissing-declarations - >DP_LINUX -D_REENTRANT -D_GNU_SOURCE -march=i686 -DPBYTE_ORDER=PLITTLE_ENDIA >N -DP_HAS_SEMAPHORES -DP_SSL -DP_PTHREADS -DPHAS_TEMPLATES -DPTRACING -DP_US >E_PRAGMA -I/root/pwlib/include/ptlib/unix -I/root/pwlib/include -I/root/op >enh323/include -Wno-missing-prototypes -Wno-missing-declarations chan_h323.c >g++ -g -pg -c -o >ast_h323.o -pipe -Wall -fPIC -Wmissing-prototypes -Wmissing-declarations -D >P_LINUX -D_REENTRANT -D_GNU_SOURCE -march=i686 -DPBYTE_ORDER=PLITTLE_ENDIAN > -DP_HAS_SEMAPHORES -DP_SSL -DP_PTHREADS -DPHAS_TEMPLATES -DPTRACING -DP_USE >_PRAGMA -I/root/pwlib/include/ptlib/unix -I/root/pwlib/include -I/root/ope >nh323/include -Wno-missing-prototypes -Wno-missing-declarations ast_h323.cpp >ast_h323.cpp: In function `int h323_set_capability (int, int)': >ast_h323.cpp:780: `H323_G729ACapability' undeclared (first use this >function) >ast_h323.cpp:780: (Each undeclared identifier is reported only once for >each function it appears in.) >ast_h323.cpp:780: `g729aCap' undeclared (first use this function) >ast_h323.cpp:781: parse error before `)' >/root/pwlib/include/ptlib/array.h: At top level: >chan_h323.h:30: warning: `sockaddr_in bindaddr' defined but not used >make: *** [ast_h323.o] Error 1 >[root@raid-2 h323]# > >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users > >
Excuse me for jumping in here. I just subscribed, so I might be asking something that has already been answered. I tried searching the archive, but didn't see an answer. I was trying to compile under Redhat 9. I think I got everything installed that I need to compile, but I get the following errors: In file included from /usr/include/ptlib/contain.h:218, from /usr/include/ptlib.h:137, from ast_h323.h:29, from ast_h323.cpp:27: /usr/include/ptlib/object.h:585: parse error before `(' token /usr/include/ptlib/object.h:1201: `BOOL' declared as a `virtual' field /usr/include/ptlib/object.h:1201: parse error before `(' token /usr/include/ptlib/object.h:1214: `BOOL' declared as a `virtual' field /usr/include/ptlib/object.h:1214: declaration of `int PObject::BOOL' /usr/include/ptlib/object.h:1201: conflicts with previous declaration `int PObject::BOOL' I get 10 more pages of errors like this. Has anyone encountered this problem? Any thought what I am doing wrong? Thanks Sean