[Asterisk-Dev] Asterisk Addons - H323 Module

Derek Smithies derek at indranet.co.nz
Fri Aug 12 14:31:59 MST 2005


Hi,

On Fri, 12 Aug 2005, Steven Critchfield wrote:
> Well, those look like a simple missing .h file, why don't you grep
> the .h files for the functions you need and make sure they are included.

No.
The errors are generated from the linking stage.
Not a missing .h file.
The errros could be because the C functions are not mangled into a C++ 
format (by the compiler) which can then link to openh323 code..

Most likely, the problem is the compiler flags for compiling the openh323 
stuff are mismatched to the flags for the * stuff. You have a 64 bit 
machine, which may require some "minor adjustment" of the Makefile options 
in the ooh323 stuff.

This pain is one of the motivations for using chan_woomera.

The first thing to note is that chan_woomera is a server
With chan_woomera, there is no direct compile time linkage of openh323 to 
*.   Instead, * and woomera talk via TCP. 

=====================

The compilation process is much faster.
Compile openh323+woomera once, and leave it alone.

Then, compile * with chan_woomera and then recompile if you have new 
options/code.

Anthony Minessale and others are reporting encouraging stability results 
with chan_woomera.


Derek.
===================================================================

> On Fri, 2005-08-12 at 14:48 -0400, Brian C. Fertig wrote:
> > Well I had tried that.   This is what I get.
> > 
> > 
> > [root at pt-aus-gw1 src]# gcc -fPIC  chan_h323.lo ooh323cDriver.lo
> > -L/usr/src/asterisk-addons/asterisk-ooh323c/ooh323c/src -lpthread
> > -looh323c  -Wl,-soname -Wl,libchan_h323.so.1 -o
> > .libs/libchan_h323.so.1.0.1
> > /usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../../lib64/crt1.o(.text+0x
> > 21): In function `_start':
> > : undefined reference to `main'
> > chan_h323.lo(.text+0x54): In function `h323_new':
> > : undefined reference to `ast_log'
> > chan_h323.lo(.text+0x67): In function `h323_new':
> > : undefined reference to `ast_channel_alloc'
> > chan_h323.lo(.text+0xec): In function `h323_new':
> > : undefined reference to `ast_best_codec'
> > chan_h323.lo(.text+0x10f): In function `h323_new':
> > : undefined reference to `ast_rtp_fd'
> 
> 
> 

-- 
Derek Smithies Ph.D.                         
IndraNet Technologies Ltd.                
Email: derek at indranet.co.nz         
ph +64 3 365 6485                          
Web: http://www.indranet-technologies.com/  




More information about the asterisk-dev mailing list