Hello. This is my first post on this forum, so please be easy on me.
I’m trying to compile asterisk-oh323 on Ubuntu (Dapper). I have compiled and installed pwlib-1.10.2 and openh323-1.19.0.1, and have their sources in /usr/src/pwlib_v1_10_2 and openh323_v1_19_0_1, respectively. I have edited my Makefile in the asterisk-oh323 directory to read as follows:
.EXPORT_ALL_VARIABLES:
DESTDIR=
PWLIBDIR=/usr/src/pwlib_v1_10_2
OPENH323DIR=/usr/src/openh323_v1_19_0_1
ASTERISKINCDIR=/usr/src/asterisk-1.2.12.1/include
ASTERISKMODDIR=/usr/lib/asterisk-1.2.12.1/modules
ASTERISKETCDIR=/etc/asterisk
OH323WRAPLIBDIR=/usr/local/lib
WRAPTRACING=1
OH323BUILDTYPE=opt
OH323STAT=1
NO_IPv6=1
include rules.mak
When I type “make” to compile asterisk-oh323, however, I get these errors:
dane@Asterisk-server:~/tmp/asterisk-oh323-0.7.3$ make
for x in wrapper asterisk-driver; do make -C $x build || exit 1 ; done
make[1]: Entering directory `/home/dane/tmp/asterisk-oh323-0.7.3/wrapper'
./check_ver /usr/src/pwlib_v1_10_2 pwlib
In file included from asteriskaudio.cxx:36:
version.h:38:2: error: #error "Pwlib version unknown!"
version.h:41:2: error: #error "OpenH323 version unknown!"
make[1]: *** Deleting file `obj_linux_x86_r/*.dep'
In file included from asteriskaudio.cxx:36:
version.h:38:2: error: #error "Pwlib version unknown!"
version.h:41:2: error: #error "OpenH323 version unknown!"
make[1]: *** Deleting file `obj_linux_x86_r/*.dep'
./check_ver /usr/src/openh323_v1_19_0_1 openh323
In file included from asteriskaudio.cxx:36:
version.h:38:2: error: #error "Pwlib version unknown!"
version.h:41:2: error: #error "OpenH323 version unknown!"
make[1]: *** Deleting file `obj_linux_x86_r/*.dep'
In file included from asteriskaudio.cxx:36:
version.h:38:2: error: #error "Pwlib version unknown!"
version.h:41:2: error: #error "OpenH323 version unknown!"
make[1]: *** Deleting file `obj_linux_x86_r/*.dep'
In file included from asteriskaudio.cxx:36:
version.h:38:2: error: #error "Pwlib version unknown!"
version.h:41:2: error: #error "OpenH323 version unknown!"
make[1]: *** Deleting file `obj_linux_x86_r/*.dep'
g++ -Wall -felide-constructors -x c++ -Os -D_REENTRANT -Wall -fPIC -DPIC -I/usr/src/pwlib_v1_10_2/include -DPTRACING -I/usr/src/openh323_v1_19_0_1/include -DWRAPTRACING -DWRAPTRACING_LEVEL=5 -DPWLIBVERSION=\"1.10.2\" -DOPENH323VERSION=\"1.19.0\" -I/usr/src/pwlib_v1_10_2/include -I/usr/src/openh323_v1_19_0_1/include -I/usr/src/openh323_v1_19_0_1/include/openh323 -I../asterisk-driver -c asteriskaudio.cxx -o asteriskaudio.o
In file included from asteriskaudio.cxx:36:
version.h:38:2: error: #error "Pwlib version unknown!"
version.h:41:2: error: #error "OpenH323 version unknown!"
make[1]: *** Deleting file `obj_linux_x86_r/*.dep'
In file included from asteriskaudio.cxx:36:
version.h:38:2: error: #error "Pwlib version unknown!"
version.h:41:2: error: #error "OpenH323 version unknown!"
make[1]: *** Deleting file `obj_linux_x86_r/*.dep'
asteriskaudio.cxx: In static member function ?static PStringArray PAsteriskSoundChannel::GetDeviceNames(PSoundChannel::Directions)?:
asteriskaudio.cxx:175: error: ?MAX_FIFO_NAME? was not declared in this scope
asteriskaudio.cxx:180: error: ?AST_OH323_MAX_CALLS? was not declared in this scope
asteriskaudio.cxx:181: error: ?buf? was not declared in this scope
asteriskaudio.cxx:182: error: ?AST_OH323_FIFO_PREFIX? was not declared in this scope
asteriskaudio.cxx:187: error: ?AST_OH323_MAX_CALLS? was not declared in this scope
asteriskaudio.cxx:188: error: ?buf? was not declared in this scope
asteriskaudio.cxx:189: error: ?AST_OH323_FIFO_PREFIX? was not declared in this scope
asteriskaudio.cxx: In static member function ?static PString PAsteriskSoundChannel::GetDefaultDevice(PSoundChannel::Directions)?:
asteriskaudio.cxx:204: error: ?AST_OH323_FIFO_PREFIX? was not declared in this scope
make[1]: *** [asteriskaudio.o] Error 1
make[1]: Leaving directory `/home/dane/tmp/asterisk-oh323-0.7.3/wrapper'
make: *** [subdirs_build] Error 1
dane@Asterisk-server:~/tmp/asterisk-oh323-0.7.3$
I’ve asked on IRC, but nobody seems to know what to do. I would just install asterisk and asterisk-oh323 out of the apt-get repository, but doing so (and loading the appropriate module in /etc/asterisk/modules.conf) causes the system to lock up upon loading asterisk.
I would REALLY appreciate any help you can offer! Thanks in advance.
–Dane