Subject: port-i386/35040: problem with pwlib patch in pkgsrc
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <misho@openbsd-bg.org>
List: netbsd-bugs
Date: 11/12/2006 10:45:01
>Number: 35040
>Category: port-i386
>Synopsis: problem with pwlib patch in pkgsrc
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: port-i386-maintainer
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 12 10:45:00 +0000 2006
>Originator: Michael Pounov
>Release: NetBSD 3.0_stable, NetBSD-3
>Organization:
AITNET
>Environment:
NetBSD symetra 3.0_STABLE NetBSD 3.0_STABLE (SYMETRA) #3: Thu Oct 15 05:12:12 EEST 2006 root@symetra:/usr/src/sys/arch/i386/compile/SYMETRA i386
>Description:
NetBSD like voip H323 <-> SIP gateway with PWLIB, OPENH323 and Asterisk in
pkgsrc-2006Q2 and 2006Q3 have bug with McNamara H323 channel of Asterisk. pwlib with patches (pwlib-1.8.3nb5) crash asterisk when connecting to gatekeeper with core.dump for locked mutex before mutex destroying in class PMutex in pwlib. Bugs is very strange because arrived from netbsd pkgsrc patches for pwlib. Until (pwlib-1.8.3nb3) in pkgsrc-2006Q1 work OK!!! May be bug is in this patch patch-al ;) Have a nice day! :)
P.S. In NetBSD-4, NetBSD-current pwlib can`t be compiled because compiler gcc4 have problem with class definition in pwlib headers.
>How-To-Repeat:
in pkgsrc-2006Q3
install:
devel/pwlib
net/openh323
1.asterisk from digium.com and patch asterisk Makefile in channels within
NetBSD if section with -L/usr/pkg/lib and -lpt -lh323
2.channels/h323 Makefile in flags with -I/usr/pkg/include
3.and set environment varibales PWLIBDIR and OPENH323 with right paths ;)
gmake opt
4. in channels/chan_h323.c change #include <sys/signal.h> to <signal.h>
change path ;)
5. gmake and gmake install in top of asterisk source tree
AND ENJOY ;)
>Fix:
Repeat all steps like before section "How to repeat the problem:"
but use pkgsrc-2006Q1 and all works fine :):):)