[Asterisk-Users] chan_h323 problems

asterisk at ebctech.com asterisk at ebctech.com
Mon Jun 16 12:16:56 MST 2003


I found the problem. A 'make opt' doesn't create the pwlib/lib directory
when compiling pwlib. You have to do a 'make'. 

I did a 'make install' for h323 but I get a Segmentation Fault when I start
Asterisk with chan_h323.

A backtrace shows the following:

(gdb) bt
#0  0x42029241 in kill () from /lib/i686/libc.so.6
#1  0x46bfd5b4 in PAssertFunc () from
/data/gnugk/pwlib/lib/libpt_linux_x86_r.so.1
#2  0x46c11e02 in PAssertFunc () from
/data/gnugk/pwlib/lib/libpt_linux_x86_r.so.1
#3  0x4741d991 in H323EndPoint::SetLocalUserName () from
/data/gnugk/openh323/lib/libh323_linux_x86_r.so.1
#4  0x47488aff in H323Gatekeeper::SetPassword () from
/data/gnugk/openh323/lib/libh323_linux_x86_r.so.1
#5  0x4741798b in H323EndPoint::InternalCreateGatekeeper ()
   from /data/gnugk/openh323/lib/libh323_linux_x86_r.so.1
#6  0x47417634 in H323EndPoint::SetGatekeeper () from
/data/gnugk/openh323/lib/libh323_linux_x86_r.so.1
#7  0x41fb014c in h323_set_gk (gatekeeper_discover=0, gatekeeper=0x41fb8800
"65.39.220.195", 
    secret=0x41fb8880 "") at ast_h323.cpp:915
#8  0x41fab366 in load_module () at chan_h323.c:1646
#9  0x08053db6 in ast_load_resource (resource_name=0x80cbdab "chan_h323.so")
at loader.c:298
#10 0x080541ec in load_modules () at loader.c:393
#11 0x0807a39a in main (argc=2, argv=0xbffff894) at asterisk.c:1330
#12 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)
 

Regards,

Micahel
 
 

>-----Original Message-----
>From: asterisk-users-admin at lists.digium.com [mailto:asterisk-users-
>admin at lists.digium.com] On Behalf Of asterisk at ebctech.com
>Sent: Monday, June 16, 2003 11:27 AM
>To: asterisk-users at lists.digium.com
>Subject: [Asterisk-Users] chan_h323 - pwlib 1.4.11, openh 1.11.7 comiple
>problems
>
>
>I'm having a problem with chan_h323 compiling for Asterisk.
>
>RedHat 7.3
>PWLIB 1.4.11 pwlib_1.4.11.tar.gz
>OpenH323 1.11.7 openh323_1.11.7.tar.gz
>
>
>[asterisk at jonux h323]# make clean
>rm -f *.o *.so core.*
>[root at jonux h323]# make
>cc -g -pg -c -o chan_h323.o -pipe -Wall -fPIC -Wmissing-prototypes
>-Wmissing-declarations  -DP_LINUX  -D_REENTRANT -D_GNU_SOURCE -march=i686
>-DPBYTE_ORDER=PLITTLE_ENDIAN -DP_HAS_SEMAPHORES -DP_SSL -DP_PTHREADS
>-DPHAS_TEMPLATES -DPTRACING -DP_USE_PRAGMA
>-I/usr/src/pwlib/include/ptlib/unix -I/usr/src/pwlib/include
>-I/usr/src/openh323/include -Wno-missing-prototypes
>-Wno-missing-declarations chan_h323.c
>g++ -g -pg -c -o ast_h323.o -pipe -Wall -fPIC -Wmissing-prototypes
>-Wmissing-declarations  -DP_LINUX  -D_REENTRANT -D_GNU_SOURCE -march=i686
>-DPBYTE_ORDER=PLITTLE_ENDIAN -DP_HAS_SEMAPHORES -DP_SSL -DP_PTHREADS
>-DPHAS_TEMPLATES -DPTRACING -DP_USE_PRAGMA
>-I/usr/src/pwlib/include/ptlib/unix -I/usr/src/pwlib/include
>-I/usr/src/openh323/include -Wno-missing-prototypes
>-Wno-missing-declarations ast_h323.cpp
>chan_h323.h:30: warning: `sockaddr_in bindaddr' defined but not used
>g++  -g -pg -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o
>-L/usr/src/pwlib/lib  -lpt_linux_x86_r -L/usr/src/openh323/lib
>-lh323_linux_x86_r -L/usr/lib -lpthread -ldl -lcrypto -lssl -lexpat
>/usr/bin/ld: cannot find -lpt_linux_x86_r
>collect2: ld returned 1 exit status
>make: *** [chan_h323.so] Error 1
>[asterisk at jonux h323]#
>
>
>Any ideas?
>
>Thanks,
>
>Michael
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list