Brian Wilkins
2004-Jun-25 21:08 UTC
[Asterisk-Users] Problems Compiling and Loading asterisk-oh323 0.6.2
Hi,
I having a problem compiling the wrapper for oh323. I am running Debian,
kernel version 2.4.18-bf2.4. The pwlib version I have is 1.6.6 and the
openh323 version I have is 1.13.5. I execute the following commands first
before attempting to compile the wrapper:
pwlib_1.6.6:
make both
openh323 1.13.5
./configure
make opt
asterisk-oh323 0.6.2
make
I also applied the patch that is said that is needed for openh323 1.13.5.
And I get the following errors:
make[1]: Leaving directory `/usr/src/asterisk-oh323-0.6.2/wrapper'
make[1]: Entering directory `/usr/src/asterisk-oh323-0.6.2/asterisk-driver'
gcc -Wall -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -
I/usr/src/asterisk/include
-I../wrapper -g -c -o chan_oh323.o chan_oh323.c
chan_oh323.c:660:
`__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__'
undeclared here (not in a function)
chan_oh323.c:660: initializer element is not constant
chan_oh323.c:660: (near initialization for `oh323_ep_list.lock')
I have been sucessful before in compiling all packages before. I still have
the libraries installed from the wrapper package. I decided to try and
download a newer version of openh323 and pwlib, but they did not compile
correctly either, so I went back to the versions that I listed above,
because
I knew they would compile correctly. I still have the successfully compiled
and installed modules, and before attempting to upgrade to the newer
versions
of pwlib and openh323, I ran asterisk -vvvv. This is the error I got :
[chan_oh323.so]Jun 25 13:45:13 WARNING[1024]: loader.c:242
ast_load_resource: /usr/local/lib/liboh323wrap.so: undefined symbol:
__tf6PMutex
Jun 25 13:45:13 WARNING[1024]: loader.c:423 load_modules: Loading module
chan_oh323.so failed!
So, I am wondering what is wrong and whether the packages I have built are
compatible. Any help on this is greatly appreciated.
--
Brian Wilkins
brian@hcc.net
Heritage Communications Corporation
Melbourne, FL USA 32935
Michael Manousos
2004-Jun-28 03:28 UTC
[Asterisk-Users] Problems Compiling and Loading asterisk-oh323 0.6.2
Use the 0.6.2a version. Michael. Brian Wilkins wrote:> Hi, > > I having a problem compiling the wrapper for oh323. I am running Debian, > kernel version 2.4.18-bf2.4. The pwlib version I have is 1.6.6 and the > openh323 version I have is 1.13.5. I execute the following commands first > before attempting to compile the wrapper: > > pwlib_1.6.6: > make both > openh323 1.13.5 > ./configure > make opt > asterisk-oh323 0.6.2 > make > > I also applied the patch that is said that is needed for openh323 1.13.5. > > And I get the following errors: > > make[1]: Leaving directory `/usr/src/asterisk-oh323-0.6.2/wrapper' > make[1]: Entering directory `/usr/src/asterisk-oh323-0.6.2/asterisk-driver' > gcc -Wall -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE - > I/usr/src/asterisk/include > -I../wrapper -g -c -o chan_oh323.o chan_oh323.c > chan_oh323.c:660: > `__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__' > undeclared here (not in a function) > chan_oh323.c:660: initializer element is not constant > chan_oh323.c:660: (near initialization for `oh323_ep_list.lock') > > I have been sucessful before in compiling all packages before. I still have > the libraries installed from the wrapper package. I decided to try and > download a newer version of openh323 and pwlib, but they did not compile > correctly either, so I went back to the versions that I listed above, > because > I knew they would compile correctly. I still have the successfully compiled > and installed modules, and before attempting to upgrade to the newer > versions > of pwlib and openh323, I ran asterisk -vvvv. This is the error I got : > > [chan_oh323.so]Jun 25 13:45:13 WARNING[1024]: loader.c:242 > ast_load_resource: /usr/local/lib/liboh323wrap.so: undefined symbol: > __tf6PMutex > Jun 25 13:45:13 WARNING[1024]: loader.c:423 load_modules: Loading module > chan_oh323.so failed! > > So, I am wondering what is wrong and whether the packages I have built are > compatible. Any help on this is greatly appreciated. > > -- > Brian Wilkins > brian@hcc.net > Heritage Communications Corporation > Melbourne, FL USA 32935 > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Hi, erverybody
The Asterisk is running well in the linux system. Now I would like
to add oh323 in Asterisk. I have download pwlib(version is 1.6.6) and
openh323(version is 1.13.5). And I sucessfully maked and installed these
two packages. But I got the following errors when compling the
asterisk-oh323 0.6.3a:
for x in wrapper asterisk-driver; do make -C $x all || exit 1 ; done
make[1]: Entering directory `/home/rui/oh323/asterisk-oh323-0.6.3a/wrapper'
./check_ver /usr/src/pwlib pwlib
./check_ver /usr/src/openh323 openh323
gcc -shared -Wl,-soname,liboh323wrap.so -o liboh323wrap.so
wrapper_misc.o asteriskaudio.o wrapendpoint.o wrapconnection.o wrapper.o
wrapcaps.o
make[1]: Leaving directory `/home/rui/oh323/asterisk-oh323-0.6.3a/wrapper'
make[1]: Entering directory
`/home/rui/oh323/asterisk-oh323-0.6.3a/asterisk-driver'
gcc -Wall -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE
-I/usr/src/asterisk/include -I../wrapper -g -c -o chan_oh323.o chan_oh323.c
chan_oh323.c: In function 'oh323_hangup':
chan_oh323.c:1448: too few arguments to function 'ast_queue_hangup'
chan_oh323.c: In function 'oh323_read':
chan_oh323.c:1866: too few arguments to function 'ast_dsp_process'
chan_oh323.c: In function 'oh323_write':
chan_oh323.c:1929: too few arguments to function 'ast_set_write_format'
chan_oh323.c:1931: too few arguments to function 'ast_set_read_format'
chan_oh323.c: In function 'ast_oh323_new':
chan_oh323.c:2349: warning: assignment from incompatible pointer type
chan_oh323.c: In function 'alerted_oh323_connection':
chan_oh323.c:1929: too few arguments to function 'ast_queue_control'
make[1]: *** [chan_oh323.o] Error 1
make[1]: Leaving directory
`/home/rui/oh323/asterisk-oh323-0.6.3a/asterisk-driver'
make: *** [subdirs_all] Error 1
I also tried the asterisk-oh323-0.6.3 and asterisk-oh323-0.6.2a. But
the result are almost the same. In the Makefile, I modified the
following attribut:
OH323WRAPINCLUDE= \
-I$(PWLIBDIR)/include/ptlib \
-I$(PWLIBDIR)/include \
-I$(OPENH323DIR)/include \
-I$(OPENH323DIR)/include/openh323 \
-I../asterisk-driver
# -I$(SSLINCDIR)
Could you give me some advise or tell me what mistake I have done?
Thanks
Rui Wu