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:
#################################################################################
#
# Makefile
#
# Makefile for the OpenH323 wrapper library and the ASTERISK channel
# driver module.
#
# User-configurable section.
#
# Copyright (c) 2002-2005 InAccess Networks
# Michalis Manousos <manousos@inaccessnetworks.com>
# Dimitris Economou <decon@inaccessnetworks.com>
#
# This file is part of "H.323 support for ASTERISK"
#
# "H.323 support for ASTERISK" is free software;
# you can redistribute it and/or modify it under the terms of the
# GNU General Public License as published by the Free Software Foundation;
# either version 2 of the License, or (at your option) any later version.
#
# "H.323 support for ASTERISK" is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# $Id: Makefile,v 1.51 2005/09/09 15:03:53 manousos Exp $
#
#################################################################################
# Export all variables to child processes
.EXPORT_ALL_VARIABLES:
#################################################################################
###### START OF USER CONFIGURABLE PARAMETERS
#
# Install everything under this directory. If this is empty, then everything
# will be installed under /
#
DESTDIR=
#
# Set PWLIBDIR variable to the directory containing the sources of
# PWlib library.
#
# Note: You must build the 'pwlib' library before trying to
# compile asterisk-oh323. Do not use the installed library of your
# distribution. It won't work.
#
PWLIBDIR=/usr/src/pwlib_v1_10_2
#
# Set OPENH323LIBDIR variable to the directory containing the sources of
# OpenH323 library.
#
# Note: You must build the 'openh323' library before trying to
# compile asterisk-oh323. Do not use the installed library of your
# distribution. It won't work.
#
OPENH323DIR=/usr/src/openh323_v1_19_0_1
#
# Set ASTERISKINCDIR variable to the directory containing the include files of
# Asterisk PBX.
#
ASTERISKINCDIR=/usr/src/asterisk-1.2.12.1/include
#
# Set ASTERISKMODDIR variable to the directory where ASTERISK's modules reside.
# The "chan_oh323.so" driver will be installed in this directory.
#
# Note: This directory is created under $DESTDIR.
#
ASTERISKMODDIR=/usr/lib/asterisk/modules
#
# Set ASTERISKETCDIR variable to the directory where ASTERISK's configuration
# files reside. The "oh323.conf" file will be installed in this directory.
#
# Note: This directory is created under $DESTDIR.
#
ASTERISKETCDIR=/etc/asterisk
#
# Set OH323WRAPLIBDIR variable to the directory where oh323wrap library
# will be installed. You SHOULD add this directory to your
# LD_LIBRARY_PATH shell variable, or to the /etc/ld.so.conf
# file and run "ldconfig" after the installation of asterisk-oh323.
#
# Note: This directory is created under $DESTDIR.
#
OH323WRAPLIBDIR=/usr/local/lib
#
# Set WRAPTRACING to 1 to enable tracing information from the OpenH323Wrap
# library or to 0 to disable it.
#
WRAPTRACING=1
#
# Set OH323BUILDTYPE to 'debug', 'opt' or 'optnotrace' to select the
# build type. This should match the build type of the libraries
# (OpenH323/Pwlib).
#
#OH323BUILDTYPE=debug
OH323BUILDTYPE=opt
#OH323BUILDTYPE=optnotrace
#
# Set OH323STAT to 1 to build the OH323 Asterisk channel driver
# with statically linked OpenH323/Pwlib/oh323wrap libraries.
#
# Note: Turn this flag on if you don't want problems in runtime where the
# channel driver links with different libraries than these used during
# compilation (e.g. if you have installed a distro specific OpenH323/Pwlib).
# With this flag on the channel driver is huge, in size, but Asterisk boots
# faster!
#
OH323STAT=1
#
# Define options that were used during Asterisk compilation. It is
# very important Asterisk compilation and asterisk-oh323 compilation
# to be made with exactly the same flags.
#
# Note: This set of flags is incomplete. If more flags were used for
# Asterisk compilation they should be entered manually. Also, the 'rules.mak'
# should be modified accordingly.
#
#DEBUG_THREADS=1
#DO_CRASH=1
#DETECT_DEADLOCKS=1
#
# Extra compilation options. Here you should add the options
# PWLIB, OPENH323 were compiled with.
#
#NOVIDEO=1
#NO_SPEEX=1
#NOAUDIOCODECS=1
#NOTRACE=1
NO_IPv6=1
#P_PTHREADS=1
#HAS_OH323MODS=1
#SKIP_SUFFIX=1
#LIBPT_BASE=libpt
#LIBH323_BASE=libh323
#SKIP_EXTLIBS=1
#EXTLIBS=
#
# Uncomment this line if you compile with Openh323/Pwlib versions older than Pandora
# (e.g. if you use the Janus series). Leave it comment-out for Pandora and above.
#
#USE_OLD_CAPABILITIES_API=1
###### END OF USER CONFIGURABLE PARAMETERS
#################################################################################
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[/code]