[Asterisk-Dev] Asterisk Addons - H323 Module

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Aug 12 23:40:14 MST 2005


On Sat, Aug 13, 2005 at 09:31:59AM +1200, Derek Smithies wrote:
> 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.

Try using the Debian package as a reference. AFAIK it builds fine on
AMD64. (nothing goes into "testing" without being built on all
relevant architechtures first).

  http://packages.debian.org/testing/comm/asterisk-oh323

The tarball and diff are at:

  http://ftp.debian.org/debian/pool/main/a/asterisk-oh323/asterisk-oh323_0.6.6pre3.orig.tar.gz
	http://ftp.debian.org/debian/pool/main/a/asterisk-oh323/asterisk-oh323_0.6.6pre3-3.diff.gz

This is still 0.6, but I figure the required changes are similar enough.
Let's have a look...

It turns out that the file "in the patch" basically include (besides the
usual debian files) the following patch:

diff -urNad asterisk-oh323-0.6.6pre3/Makefile /tmp/dpep.3hXNkc/asterisk-oh323-0.6.6pre3/Makefile
--- asterisk-oh323-0.6.6pre3/Makefile   2005-01-21 16:33:47.000000000 +0000
+++ /tmp/dpep.3hXNkc/asterisk-oh323-0.6.6pre3/Makefile  2005-02-22 02:05:48.767720171 +0000
@@ -176,9 +176,9 @@
 ifeq   ($(OH323BUILDTYPE),optnotrace)
 OPENH323USERFLAGS := NOTRACE=1
 endif
-CPPFLAGS = -Wall -x c++ -Os
+CPPFLAGS = -Wall -x c++ -Os -fPIC
 ASTERISKINCLUDE = -I$(ASTERISKINCDIR) -I../wrapper
-CFLAGS = -Wall
+CFLAGS = -Wall -fPIC
 ifdef  HAS_OH323MODS
 CPPFLAGS += -DHAS_OH323MODS
 CFLAGS += -DHAS_OH323MODS

So it basically adds -fPIC but to the CFLAGS. I have no amd64 machine to
play with, but most of the amd64 patches I recall had something to do
with -fPIC.


Is this relevant to 0.7? who knows? The h323 channels won't get very far
if they'll continue depending on a specific version of the-beast^Wlibh323.

-- 
Tzafrir Cohen     icq#16849755  +972-50-7952406
tzafrir.cohen at xorcom.com  http://www.xorcom.com



More information about the asterisk-dev mailing list