[Asterisk-Dev] Re: [Asterisk-Users] Cannot compile channel h323 from yesterday's
CVS?
Jeremy McNamara
jj at nufone.net
Thu Sep 25 07:38:41 MST 2003
READ THE README
Jeremy McNamara
Garry Adkins wrote:
>Hi,
>
>I'm on a RH 9 box, fresh install.
>
>When I try to compile channel h323, I get multiple compile errors. Can
>someone help?
>asterisk, ptlib, openh323 all are fresh from CVS.
>
>
>Thanks!
>
>
>Here's what I've done so far:
>
>All the source is in /usr/src/asterisk/
>[root at localhost openh323]# ls -la /usr/src/asterisk/
>total 164
>drwxr-xr-x 8 root root 4096 Sep 25 00:59 .
>drwxr-xr-x 6 root root 4096 Sep 23 20:33 ..
>drwxr-xr-x 22 root root 4096 Sep 25 00:42 asterisk
>drwxr-xr-x 2 1000 3000 4096 Sep 25 01:00 ixj-1.2.2
>-rw-r--r-- 1 root root 128942 Sep 25 00:58 ixj-1.2.2-src.tar.gz
>drwxr-xr-x 3 root root 4096 Sep 25 00:41 libpri
>drwxr-xr-x 8 root root 4096 Sep 25 01:26 openh323
>drwxr-xr-x 9 root root 4096 Sep 25 01:02 pwlib
>drwxr-xr-x 3 root root 4096 Sep 25 00:41 zaptel
>----------------------------------------------------------------------------
>Get asterisk source
>
># cd /usr/src
># export CVSROOT=:pserver:anoncvs at cvs.digium.com:/usr/cvsroot
># cvs login - the password is anoncvs.
># cvs checkout zaptel libpri asterisk
>
>This will create directories, zaptel, libpri, and asterisk.
>
># cd zaptel
># make clean ; make install
># cd ../libpri
># make clean ; make install
># cd ../asterisk
># make clean ; make install
>
>
>----------------------------------------------------------------------------
>get ixj driver - download
>http://www.openh323.org/bin/
>
>Compile it (./configure, make install)
>
>----------------------------------------------------------------------------
>
>
>get pwlib (part of openh323)
>get openh323
>(from CVS)
>
>Set up environment:
>export PWLIBDIR=/usr/src/asterisk/pwlib
>export OPENH323DIR=/usr/src/asterisk/openh323/
>export LD_LIBRARY_PATH=/usr/src/asterisk/pwlib/lib
>
>in pwlib, ./configure ; make
>
>in openh323, ./configure ; make opt ; make install
>
>(make install is required to install the h323 libraries in /usr/local/lib)
>
>
>Add /usr/local/lib to /etc/ld.so.conf
>run ldconfig to add it.
>
>----------------------------------------------------------------------------
>Go to:
>/usr/src/asterisk/asterisk/channels/h323
>
>make clean install samples
>
>
>This is where the build fails....
>
>Sample errors below.
>
>
>
>[root at localhost h323]# make clean install samples
>rm -f *.o *.so core.* libchanh323.a
>g++ -g -c -o
>ast_h323.o -march=i686 -DPBYTE_ORDER=PLITTLE_ENDIAN -DNDEBUG -DDO_CRASH -DDE
>BUG_THREADS -pipe -Wall -fPIC -Wmissing-prototypes
>-Wmissing-declarations -DP_LINUX -D_REENTRANT -D_GNU_SOURCE -DP_HAS_SEMAPH
>ORES -DP_SSL -DP_PTHREADS -DPHAS_TEMPLATES -DPTRACING -DP_USE_PR
>AGMA -I../../include -I/usr/src/asterisk/pwlib/include/ptlib/unix -I/usr/src
>/asterisk/pwlib/include -I/usr/src/asterisk/openh323//include -
>Wno-missing-prototypes -Wno-missing-declarations ast_h323.cpp
>In file included from /usr/src/asterisk/pwlib/include/ptlib.h:169,
> from ast_h323.h:30,
> from ast_h323.cpp:28:
>/usr/src/asterisk/pwlib/include/ptlib/unix/ptlib/pdirect.h:78: parse error
> before `protected'
>/usr/src/asterisk/pwlib/include/ptlib/unix/ptlib/pdirect.h:80: syntax error
> before `*' token
>In file included from /usr/src/asterisk/pwlib/include/ptlib.h:181,
> from ast_h323.h:30,
> from ast_h323.cpp:28:
>/usr/src/asterisk/pwlib/include/ptlib/unix/ptlib/config.h:53: parse error
> before `public'
>/usr/src/asterisk/pwlib/include/ptlib/unix/ptlib/config.h:55: destructors
>must
> be member functions
>/usr/src/asterisk/pwlib/include/ptlib/unix/ptlib/config.h:57: parse error
> before `protected'
>In file included from /usr/src/asterisk/pwlib/include/ptlib.h:187,
> from ast_h323.h:30,
> from ast_h323.cpp:28:
>/usr/src/asterisk/pwlib/include/ptlib/args.h:121: parse error before `{'
>token
>/usr/src/asterisk/pwlib/include/ptlib/args.h:147: parse error before `const'
>/usr/src/asterisk/pwlib/include/ptlib/args.h:156: parse error before `const'
>/usr/src/asterisk/pwlib/include/ptlib/args.h:165: parse error before `int'
>/usr/src/asterisk/pwlib/include/ptlib/args.h:175: parse error before `int'
>/usr/src/asterisk/pwlib/include/ptlib/args.h:190: `ostream' was not declared
>in
> this scope
>
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
More information about the asterisk-dev
mailing list