Update ptlib to 2.6.1. Lots of changes, no changelog in sight. Main features on this new major release branch are: * Instant Messaging. Using several different ?standards?: RFC4975, MSRP, T.140, SIP-IM etc etc. * Much improved support for SIP event handling (SUBSCRIBE/NOTIFY/PUBLISH) using factories so more event packages can be added easily. * Support for SIP ?dialog? event package. * Support for Shared Line Appearance (aka Multiple Line Appearance, Bridged Line Appearance or Busy Lamp Field) * Significant improvements in IPv6 support (thanks Yuri Kiryanov!) * Major enhancements to the video rate controller. * Removal of the old H.263 ffmpeg plug in and enhancement of the H.263-1998 plug it to take its place. * H.224 support (H.323 only). * SBC audio codec plug in. * G.722 audio codec plug in. * CELT audio codec plug in. * SWIG support for use in other languages, Java first. * Much improved multi-platform sample GUI client, OpenPhone. Now standard test environment replacing simpleOPAL.diff -r1.6 -r1.7 pkgsrc/devel/ptlib/Makefile
(jmcneill)
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.6 2009/01/30 08:18:45 obache Exp $ | 1 | # $NetBSD: Makefile,v 1.7 2009/03/18 11:57:15 jmcneill Exp $ | |
2 | 2 | |||
3 | DISTNAME= ptlib-2.4.4 | 3 | DISTNAME= ptlib-2.6.1 | |
4 | CATEGORIES= devel | 4 | CATEGORIES= devel | |
5 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/ptlib/2.4/} | 5 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/ptlib/2.6/} | |
6 | EXTRACT_SUFX= .tar.bz2 | 6 | EXTRACT_SUFX= .tar.bz2 | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://www.ekiga.net/ | 9 | HOMEPAGE= http://www.ekiga.net/ | |
10 | COMMENT= Portable Windows Libary | 10 | COMMENT= Portable Windows Libary | |
11 | 11 | |||
12 | PKG_DESTDIR_SUPPORT= user-destdir | 12 | PKG_DESTDIR_SUPPORT= user-destdir | |
13 | 13 | |||
14 | CONFLICTS+= pwlib-[0-9]* | 14 | CONFLICTS+= pwlib-[0-9]* | |
15 | 15 | |||
16 | USE_TOOLS+= bison gmake pkg-config | 16 | USE_TOOLS+= bison gmake pkg-config | |
17 | BUILD_TARGET= optshared | 17 | BUILD_TARGET= optshared | |
18 | USE_LANGUAGES= c c++ | 18 | USE_LANGUAGES= c c++ |
@@ -1,12 +1,13 @@ | @@ -1,12 +1,13 @@ | |||
1 | $NetBSD: distinfo,v 1.6 2009/01/13 02:19:10 jmcneill Exp $ | 1 | $NetBSD: distinfo,v 1.7 2009/03/18 11:57:15 jmcneill Exp $ | |
2 | 2 | |||
3 | SHA1 (ptlib-2.4.4.tar.bz2) = a6255cc6f2fb337518a9c49d8ce21f1790729ca7 | 3 | SHA1 (ptlib-2.6.1.tar.bz2) = b269a20f1bf98130e0088eea6ec5689197cf5521 | |
4 | RMD160 (ptlib-2.4.4.tar.bz2) = 9a84d463bf203b1619a9df5a67d0fed80b182acd | 4 | RMD160 (ptlib-2.6.1.tar.bz2) = e7bd3f954c871725b269df0ab7561ab0fe6a23ba | |
5 | Size (ptlib-2.4.4.tar.bz2) = 3009442 bytes | 5 | Size (ptlib-2.6.1.tar.bz2) = 3296212 bytes | |
6 | SHA1 (patch-ac) = b0cb79c86fb0cf3182d08a33ad48a3f9becc9c20 | 6 | SHA1 (patch-ac) = b29fa5e9a2e8d4585367ee21ccf17691780f1429 | |
7 | SHA1 (patch-ad) = 04504e7549709f4936dc2c791b0fbcc425781c08 | 7 | SHA1 (patch-ad) = 86f80d2a1dfad6effdd11c4290dc11c1bc56f199 | |
8 | SHA1 (patch-ae) = 92d140bd9536837186a03a3d3230bbb207df0ae4 | 8 | SHA1 (patch-ae) = af3ba745e56aba3c4f35ff4a69918a545466aa7d | |
9 | SHA1 (patch-af) = 837cf090245e924397118132bd9529bfc394e0b3 | 9 | SHA1 (patch-af) = 3f1271e2b0f84cca82e7b8cbde0ef489d15b7810 | |
10 | SHA1 (patch-ah) = 5d98d2037c1b389e098d993217f3cefb5050a908 | 10 | SHA1 (patch-ah) = 5d98d2037c1b389e098d993217f3cefb5050a908 | |
11 | SHA1 (patch-ai) = 47a7d53e52f5a28b0f25baaf1782a4152e6c6927 | 11 | SHA1 (patch-ai) = 47a7d53e52f5a28b0f25baaf1782a4152e6c6927 | |
12 | SHA1 (patch-aj) = 4c9548ef40857baf29daacc9acf6ecd68a1e5610 | 12 | SHA1 (patch-aj) = 4c9548ef40857baf29daacc9acf6ecd68a1e5610 | |
13 | SHA1 (patch-ak) = 996ce5a8a3e99bb3b6f4b559da35849f1f5d14b3 |
@@ -1,38 +1,39 @@ | @@ -1,38 +1,39 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.4 2008/10/25 18:12:34 jmcneill Exp $ | 1 | @comment $NetBSD: PLIST,v 1.5 2009/03/18 11:57:15 jmcneill Exp $ | |
2 | bin/ptlib-config | 2 | bin/ptlib-config | |
3 | include/ptbuildopts.h | 3 | include/ptbuildopts.h | |
4 | include/ptclib/asnber.h | 4 | include/ptclib/asnber.h | |
5 | include/ptclib/asner.h | 5 | include/ptclib/asner.h | |
6 | include/ptclib/asnper.h | 6 | include/ptclib/asnper.h | |
7 | include/ptclib/asnxer.h | 7 | include/ptclib/asnxer.h | |
8 | include/ptclib/cypher.h | 8 | include/ptclib/cypher.h | |
9 | include/ptclib/delaychan.h | 9 | include/ptclib/delaychan.h | |
10 | include/ptclib/dtmf.h | 10 | include/ptclib/dtmf.h | |
11 | include/ptclib/enum.h | 11 | include/ptclib/enum.h | |
12 | include/ptclib/ftp.h | 12 | include/ptclib/ftp.h | |
13 | include/ptclib/guid.h | 13 | include/ptclib/guid.h | |
14 | include/ptclib/html.h | 14 | include/ptclib/html.h | |
15 | include/ptclib/http.h | 15 | include/ptclib/http.h | |
16 | include/ptclib/httpform.h | 16 | include/ptclib/httpform.h | |
17 | include/ptclib/httpsvc.h | 17 | include/ptclib/httpsvc.h | |
18 | include/ptclib/inetmail.h | 18 | include/ptclib/inetmail.h | |
19 | include/ptclib/inetprot.h | 19 | include/ptclib/inetprot.h | |
20 | include/ptclib/ipacl.h | 20 | include/ptclib/ipacl.h | |
21 | include/ptclib/memfile.h | 21 | include/ptclib/memfile.h | |
22 | include/ptclib/mime.h | 22 | include/ptclib/mime.h | |
23 | include/ptclib/modem.h | 23 | include/ptclib/modem.h | |
24 | include/ptclib/paec.h | 24 | include/ptclib/paec.h | |
25 | include/ptclib/pasn.h | 25 | include/ptclib/pasn.h | |
26 | include/ptclib/pffvdev.h | |||
26 | include/ptclib/pdns.h | 27 | include/ptclib/pdns.h | |
27 | include/ptclib/pils.h | 28 | include/ptclib/pils.h | |
28 | include/ptclib/pldap.h | 29 | include/ptclib/pldap.h | |
29 | include/ptclib/pnat.h | 30 | include/ptclib/pnat.h | |
30 | include/ptclib/podbc.h | 31 | include/ptclib/podbc.h | |
31 | include/ptclib/psasl.h | 32 | include/ptclib/psasl.h | |
32 | include/ptclib/psnmp.h | 33 | include/ptclib/psnmp.h | |
33 | include/ptclib/psoap.h | 34 | include/ptclib/psoap.h | |
34 | include/ptclib/psockbun.h | 35 | include/ptclib/psockbun.h | |
35 | include/ptclib/pssl.h | 36 | include/ptclib/pssl.h | |
36 | include/ptclib/pstun.h | 37 | include/ptclib/pstun.h | |
37 | include/ptclib/ptts.h | 38 | include/ptclib/ptts.h | |
38 | include/ptclib/pvfiledev.h | 39 | include/ptclib/pvfiledev.h | |
@@ -57,27 +58,26 @@ include/ptclib/xmpp.h | @@ -57,27 +58,26 @@ include/ptclib/xmpp.h | |||
57 | include/ptclib/xmpp_c2s.h | 58 | include/ptclib/xmpp_c2s.h | |
58 | include/ptclib/xmpp_muc.h | 59 | include/ptclib/xmpp_muc.h | |
59 | include/ptclib/xmpp_roster.h | 60 | include/ptclib/xmpp_roster.h | |
60 | include/ptlib.h | 61 | include/ptlib.h | |
61 | include/ptlib/MacMainIf.h | 62 | include/ptlib/MacMainIf.h | |
62 | include/ptlib/args.h | 63 | include/ptlib/args.h | |
63 | include/ptlib/array.h | 64 | include/ptlib/array.h | |
64 | include/ptlib/channel.h | 65 | include/ptlib/channel.h | |
65 | include/ptlib/conchan.h | 66 | include/ptlib/conchan.h | |
66 | include/ptlib/config.h | 67 | include/ptlib/config.h | |
67 | include/ptlib/contain.h | 68 | include/ptlib/contain.h | |
68 | include/ptlib/contain.inl | 69 | include/ptlib/contain.inl | |
69 | include/ptlib/critsec.h | 70 | include/ptlib/critsec.h | |
70 | include/ptlib/devplugin.h | |||
71 | include/ptlib/dict.h | 71 | include/ptlib/dict.h | |
72 | include/ptlib/dynalink.h | 72 | include/ptlib/dynalink.h | |
73 | include/ptlib/ethsock.h | 73 | include/ptlib/ethsock.h | |
74 | include/ptlib/file.h | 74 | include/ptlib/file.h | |
75 | include/ptlib/filepath.h | 75 | include/ptlib/filepath.h | |
76 | include/ptlib/icmpsock.h | 76 | include/ptlib/icmpsock.h | |
77 | include/ptlib/indchan.h | 77 | include/ptlib/indchan.h | |
78 | include/ptlib/int64.h | 78 | include/ptlib/int64.h | |
79 | include/ptlib/ipdsock.h | 79 | include/ptlib/ipdsock.h | |
80 | include/ptlib/ipsock.h | 80 | include/ptlib/ipsock.h | |
81 | include/ptlib/ipxsock.h | 81 | include/ptlib/ipxsock.h | |
82 | include/ptlib/lists.h | 82 | include/ptlib/lists.h | |
83 | include/ptlib/mail.h | 83 | include/ptlib/mail.h | |
@@ -145,27 +145,26 @@ include/ptlib/unix/ptlib/serchan.h | @@ -145,27 +145,26 @@ include/ptlib/unix/ptlib/serchan.h | |||
145 | include/ptlib/unix/ptlib/sfile.h | 145 | include/ptlib/unix/ptlib/sfile.h | |
146 | include/ptlib/unix/ptlib/shmvideo.h | 146 | include/ptlib/unix/ptlib/shmvideo.h | |
147 | include/ptlib/unix/ptlib/socket.h | 147 | include/ptlib/unix/ptlib/socket.h | |
148 | include/ptlib/unix/ptlib/sound.h | 148 | include/ptlib/unix/ptlib/sound.h | |
149 | include/ptlib/unix/ptlib/svcproc.h | 149 | include/ptlib/unix/ptlib/svcproc.h | |
150 | include/ptlib/unix/ptlib/syncpoint.h | 150 | include/ptlib/unix/ptlib/syncpoint.h | |
151 | include/ptlib/unix/ptlib/tcpsock.h | 151 | include/ptlib/unix/ptlib/tcpsock.h | |
152 | include/ptlib/unix/ptlib/textfile.h | 152 | include/ptlib/unix/ptlib/textfile.h | |
153 | include/ptlib/unix/ptlib/thread.h | 153 | include/ptlib/unix/ptlib/thread.h | |
154 | include/ptlib/unix/ptlib/timeint.h | 154 | include/ptlib/unix/ptlib/timeint.h | |
155 | include/ptlib/unix/ptlib/timer.h | 155 | include/ptlib/unix/ptlib/timer.h | |
156 | include/ptlib/unix/ptlib/udpsock.h | 156 | include/ptlib/unix/ptlib/udpsock.h | |
157 | include/ptlib/unix/ptlib/video.h | 157 | include/ptlib/unix/ptlib/video.h | |
158 | include/ptlib/unix/ptlib/videoio.h | |||
159 | include/ptlib/vconvert.h | 158 | include/ptlib/vconvert.h | |
160 | include/ptlib/video.h | 159 | include/ptlib/video.h | |
161 | include/ptlib/videoio.h | 160 | include/ptlib/videoio.h | |
162 | include/ptlib/videoio1394dc.h | 161 | include/ptlib/videoio1394dc.h | |
163 | lib/libpt.so | 162 | lib/libpt.so | |
164 | lib/libpt.so.${PKGVERSION} | 163 | lib/libpt.so.${PKGVERSION} | |
165 | lib/libpt_s.a | 164 | lib/libpt_s.a | |
166 | lib/pkgconfig/ptlib.pc | 165 | lib/pkgconfig/ptlib.pc | |
167 | lib/ptlib-${PKGVERSION}/devices/sound/oss_pwplugin.so | 166 | lib/ptlib-${PKGVERSION}/devices/sound/oss_pwplugin.so | |
168 | lib/ptlib-${PKGVERSION}/devices/videoinput/v4l2_pwplugin.so | 167 | lib/ptlib-${PKGVERSION}/devices/videoinput/v4l2_pwplugin.so | |
169 | share/ptlib/make/common.mak | 168 | share/ptlib/make/common.mak | |
170 | share/ptlib/make/lib.mak | 169 | share/ptlib/make/lib.mak | |
171 | share/ptlib/make/plugins.mak | 170 | share/ptlib/make/plugins.mak |
@@ -1,26 +1,26 @@ | @@ -1,26 +1,26 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.5 2009/01/30 12:46:23 obache Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.6 2009/03/18 11:57:15 jmcneill Exp $ | |
2 | 2 | |||
3 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ | 3 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ | |
4 | PTLIB_BUILDLINK3_MK:= ${PTLIB_BUILDLINK3_MK}+ | 4 | PTLIB_BUILDLINK3_MK:= ${PTLIB_BUILDLINK3_MK}+ | |
5 | 5 | |||
6 | .if !empty(BUILDLINK_DEPTH:M+) | 6 | .if !empty(BUILDLINK_DEPTH:M+) | |
7 | BUILDLINK_DEPENDS+= ptlib | 7 | BUILDLINK_DEPENDS+= ptlib | |
8 | .endif | 8 | .endif | |
9 | 9 | |||
10 | BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nptlib} | 10 | BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nptlib} | |
11 | BUILDLINK_PACKAGES+= ptlib | 11 | BUILDLINK_PACKAGES+= ptlib | |
12 | BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}ptlib | 12 | BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}ptlib | |
13 | 13 | |||
14 | .if !empty(PTLIB_BUILDLINK3_MK:M+) | 14 | .if !empty(PTLIB_BUILDLINK3_MK:M+) | |
15 | BUILDLINK_API_DEPENDS.ptlib+= ptlib>=2.4.2 | 15 | BUILDLINK_API_DEPENDS.ptlib+= ptlib>=2.6.1 | |
16 | BUILDLINK_ABI_DEPENDS.ptlib?= ptlib>=2.4.2 | 16 | BUILDLINK_ABI_DEPENDS.ptlib?= ptlib>=2.6.1 | |
17 | BUILDLINK_PKGSRCDIR.ptlib?= ../../devel/ptlib | 17 | BUILDLINK_PKGSRCDIR.ptlib?= ../../devel/ptlib | |
18 | .endif # PTLIB_BUILDLINK3_MK | 18 | .endif # PTLIB_BUILDLINK3_MK | |
19 | 19 | |||
20 | .include "../../devel/SDL/buildlink3.mk" | 20 | .include "../../devel/SDL/buildlink3.mk" | |
21 | .include "../../databases/openldap-client/buildlink3.mk" | 21 | .include "../../databases/openldap-client/buildlink3.mk" | |
22 | .include "../../security/openssl/buildlink3.mk" | 22 | .include "../../security/openssl/buildlink3.mk" | |
23 | .include "../../textproc/expat/buildlink3.mk" | 23 | .include "../../textproc/expat/buildlink3.mk" | |
24 | .include "../../mk/pthread.buildlink3.mk" | 24 | .include "../../mk/pthread.buildlink3.mk" | |
25 | 25 | |||
26 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} | 26 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} |
@@ -1,13 +1,13 @@ | @@ -1,13 +1,13 @@ | |||
1 | $NetBSD: patch-ac,v 1.1.1.1 2008/09/12 13:18:26 jmcneill Exp $ | 1 | $NetBSD: patch-ac,v 1.2 2009/03/18 11:57:16 jmcneill Exp $ | |
2 | 2 | |||
3 | --- src/ptlib/unix/tlib.cxx.orig 2008-09-08 15:34:39.000000000 -0400 | 3 | --- src/ptlib/unix/tlib.cxx.orig 2009-03-17 23:43:30.000000000 -0400 | |
4 | +++ src/ptlib/unix/tlib.cxx 2008-09-08 15:34:54.000000000 -0400 | 4 | +++ src/ptlib/unix/tlib.cxx | |
5 | @@ -400,7 +400,7 @@ | 5 | @@ -400,7 +400,7 @@ PString PX_GetThreadName(pthread_t id) | |
6 | { | 6 | { | |
7 | if (PProcessInstance != NULL) { | 7 | if (PProcessInstance != NULL) { | |
8 | PWaitAndSignal m(PProcessInstance->threadMutex); | 8 | PWaitAndSignal m(PProcessInstance->activeThreadMutex); | |
9 | - PThread & thread = PProcessInstance->activeThreads[(unsigned)id]; | 9 | - PThread & thread = PProcessInstance->activeThreads[(unsigned)id]; | |
10 | + PThread & thread = PProcessInstance->activeThreads[(uintptr_t)id]; | 10 | + PThread & thread = PProcessInstance->activeThreads[(uintptr_t)id]; | |
11 | return thread.GetThreadName(); | 11 | return thread.GetThreadName(); | |
12 | } | 12 | } | |
13 | return psprintf("%08x", id); | 13 | return psprintf("%08x", id); |
@@ -1,49 +1,33 @@ | @@ -1,49 +1,33 @@ | |||
1 | $NetBSD: patch-ad,v 1.1.1.1 2008/09/12 13:18:26 jmcneill Exp $ | 1 | $NetBSD: patch-ad,v 1.2 2009/03/18 11:57:16 jmcneill Exp $ | |
2 | 2 | |||
3 | --- src/ptlib/unix/tlibthrd.cxx.orig 2008-09-08 15:35:17.000000000 -0400 | 3 | --- src/ptlib/unix/tlibthrd.cxx.orig 2009-03-17 23:43:30.000000000 -0400 | |
4 | +++ src/ptlib/unix/tlibthrd.cxx 2008-09-08 15:36:17.000000000 -0400 | 4 | +++ src/ptlib/unix/tlibthrd.cxx | |
5 | @@ -216,7 +216,7 @@ | 5 | @@ -240,7 +240,7 @@ PBoolean PProcess::PThreadKill(pthread_t | |
6 | { | 6 | { | |
7 | PWaitAndSignal m(threadMutex); | 7 | PWaitAndSignal m(activeThreadMutex); | |
8 | 8 | |||
9 | - if (!activeThreads.Contains((unsigned)id)) | 9 | - if (!activeThreads.Contains((unsigned)id)) | |
10 | + if (!activeThreads.Contains((uintptr_t)id)) | 10 | + if (!activeThreads.Contains((uintptr_t)id)) | |
11 | return PFalse; | 11 | return PFalse; | |
12 | 12 | |||
13 | return pthread_kill(id, sig) == 0; | 13 | return pthread_kill(id, sig) == 0; | |
14 | @@ -254,7 +254,7 @@ | 14 | @@ -249,8 +249,8 @@ PBoolean PProcess::PThreadKill(pthread_t | |
15 | #endif | 15 | void PProcess::PXSetThread(pthread_t id, PThread * thread) | |
16 | ||||
17 | ((PProcess *)this)->activeThreads.DisallowDeleteObjects(); | |||
18 | - ((PProcess *)this)->activeThreads.SetAt((unsigned)PX_threadId, this); | |||
19 | + ((PProcess *)this)->activeThreads.SetAt((uintptr_t)PX_threadId, this); | |||
20 | ||||
21 | PX_firstTimeStart = PFalse; | |||
22 | } | |||
23 | @@ -366,7 +366,7 @@ | |||
24 | PAssertPTHREAD(pthread_create, (&PX_threadId, &threadAttr, PX_ThreadStart, this)); | |||
25 | ||||
26 | // put the thread into the thread list | |||
27 | - process.activeThreads.SetAt((unsigned)PX_threadId, this); | |||
28 | + process.activeThreads.SetAt((uintptr_t)PX_threadId, this); | |||
29 | if (process.activeThreads.GetSize() > highWaterMark) | |||
30 | newHighWaterMark = highWaterMark = process.activeThreads.GetSize(); | |||
31 | ||||
32 | @@ -689,7 +689,7 @@ | |||
33 | { | 16 | { | |
34 | PProcess & process = PProcess::Current(); | 17 | activeThreadMutex.Wait(); | |
35 | process.threadMutex.Wait(); | 18 | - PThread * currentThread = activeThreads.GetAt((PINDEX)id); | |
36 | - PThread * thread = process.activeThreads.GetAt((unsigned)pthread_self()); | 19 | - activeThreads.SetAt((PINDEX)id, thread); | |
37 | + PThread * thread = process.activeThreads.GetAt((uintptr_t)pthread_self()); | 20 | + PThread * currentThread = activeThreads.GetAt((uintptr_t)id); | |
38 | process.threadMutex.Signal(); | 21 | + activeThreads.SetAt((uintptr_t)id, thread); | |
39 | return thread; | 22 | activeThreadMutex.Signal(); | |
40 | } | 23 | ||
41 | @@ -830,7 +830,7 @@ | 24 | if (currentThread != NULL) | |
42 | } | 25 | @@ -891,7 +891,7 @@ void PThread::PX_ThreadEnd(void * arg) | |
26 | } | |||
43 | 27 | |||
44 | // remove this thread from the active thread list | 28 | // remove this thread from the active thread list | |
45 | - process.activeThreads.SetAt((unsigned)id, NULL); | 29 | - process.activeThreads.SetAt((unsigned)id, NULL); | |
46 | + process.activeThreads.SetAt((uintptr_t)id, NULL); | 30 | + process.activeThreads.SetAt((uintptr_t)id, NULL); | |
47 | 31 | |||
48 | // delete the thread if required, note this is done this way to avoid | 32 | bool deleteThread = thread->autoDelete; // Get flag before releasing lock | |
49 | // a race condition, the thread ID cannot be zeroed before the if! | 33 |
@@ -1,18 +1,36 @@ | @@ -1,18 +1,36 @@ | |||
1 | $NetBSD: patch-ae,v 1.1.1.1 2008/09/12 13:18:26 jmcneill Exp $ | 1 | $NetBSD: patch-ae,v 1.2 2009/03/18 11:57:16 jmcneill Exp $ | |
2 | 2 | |||
3 | --- src/ptlib/common/osutils.cxx.orig 2008-09-08 15:37:04.000000000 -0400 | 3 | --- src/ptlib/common/osutils.cxx.orig 2009-03-17 23:43:33.000000000 -0400 | |
4 | +++ src/ptlib/common/osutils.cxx 2008-09-08 15:37:31.000000000 -0400 | 4 | +++ src/ptlib/common/osutils.cxx | |
5 | @@ -2091,21 +2091,21 @@ | 5 | @@ -1548,7 +1548,7 @@ PProcess::PProcess(const char * manuf, c | |
6 | , m_library(false) | |||
7 | { | |||
8 | activeThreads.DisallowDeleteObjects(); | |||
9 | - activeThreads.SetAt((PINDEX)GetCurrentThreadId(), this); | |||
10 | + activeThreads.SetAt((uintptr_t)GetCurrentThreadId(), this); | |||
11 | ||||
12 | PProcessInstance = this; | |||
13 | ||||
14 | @@ -1912,7 +1912,7 @@ PThread * PThread::Current() | |||
15 | PProcess & process = PProcess::Current(); | |||
16 | ||||
17 | process.activeThreadMutex.Wait(); | |||
18 | - PThread * thread = process.activeThreads.GetAt((unsigned)GetCurrentThreadId()); | |||
19 | + PThread * thread = process.activeThreads.GetAt((uintptr_t)GetCurrentThreadId()); | |||
20 | process.activeThreadMutex.Signal(); | |||
21 | ||||
22 | if (thread == NULL) | |||
23 | @@ -2210,21 +2210,21 @@ PReadWriteMutex::~PReadWriteMutex() | |||
6 | PReadWriteMutex::Nest * PReadWriteMutex::GetNest() const | 24 | PReadWriteMutex::Nest * PReadWriteMutex::GetNest() const | |
7 | { | 25 | { | |
8 | PWaitAndSignal mutex(nestingMutex); | 26 | PWaitAndSignal mutex(nestingMutex); | |
9 | - return nestedThreads.GetAt(POrdinalKey((PINDEX)PThread::GetCurrentThreadId())); | 27 | - return nestedThreads.GetAt(POrdinalKey((PINDEX)PThread::GetCurrentThreadId())); | |
10 | + return nestedThreads.GetAt(POrdinalKey((INT)PThread::GetCurrentThreadId())); | 28 | + return nestedThreads.GetAt(POrdinalKey((INT)PThread::GetCurrentThreadId())); | |
11 | } | 29 | } | |
12 | 30 | |||
13 | 31 | |||
14 | void PReadWriteMutex::EndNest() | 32 | void PReadWriteMutex::EndNest() | |
15 | { | 33 | { | |
16 | nestingMutex.Wait(); | 34 | nestingMutex.Wait(); | |
17 | - nestedThreads.RemoveAt(POrdinalKey((PINDEX)PThread::GetCurrentThreadId())); | 35 | - nestedThreads.RemoveAt(POrdinalKey((PINDEX)PThread::GetCurrentThreadId())); | |
18 | + nestedThreads.RemoveAt(POrdinalKey((INT)PThread::GetCurrentThreadId())); | 36 | + nestedThreads.RemoveAt(POrdinalKey((INT)PThread::GetCurrentThreadId())); |
@@ -1,42 +1,44 @@ | @@ -1,42 +1,44 @@ | |||
1 | $NetBSD: patch-af,v 1.2 2008/09/13 18:09:06 jmcneill Exp $ | 1 | $NetBSD: patch-af,v 1.3 2009/03/18 11:57:16 jmcneill Exp $ | |
2 | 2 | |||
3 | --- make/unix.mak.orig 2008-09-07 17:00:16.000000000 -0400 | 3 | --- make/unix.mak.orig 2009-03-17 23:43:35.000000000 -0400 | |
4 | +++ make/unix.mak 2008-09-08 15:40:22.000000000 -0400 | 4 | +++ make/unix.mak | |
5 | @@ -196,7 +196,7 @@ | 5 | @@ -186,7 +186,7 @@ endif # FreeBSD | |
6 | ifeq ($(OSTYPE),OpenBSD) | 6 | ifeq ($(OSTYPE),OpenBSD) | |
7 | 7 | |||
8 | ifeq ($(MACHTYPE),x86) | 8 | ifeq ($(MACHTYPE),x86) | |
9 | -STDCCFLAGS += -m486 | 9 | -STDCCFLAGS += -m486 | |
10 | +#STDCCFLAGS += -m486 | 10 | +#STDCCFLAGS += -m486 | |
11 | endif | 11 | endif | |
12 | 12 | |||
13 | LDLIBS += -lossaudio | 13 | LDLIBS += -lossaudio | |
14 | @@ -220,6 +220,14 @@ | 14 | @@ -208,9 +208,16 @@ STDCCFLAGS += -mcpu=$(CPUTYPE) | |
15 | 15 | endif | ||
16 | STDCCFLAGS += -I$(UNIX_INC_DIR) -I$(PTLIBDIR)/include | 16 | endif | |
17 | 17 | |||
18 | +ifeq ($(MACHTYPE),x86_64) | 18 | +ifeq ($(MACHTYPE),x86_64) | |
19 | +STDCCFLAGS += -DP_64BIT | 19 | +STDCCFLAGS += -DP_64BIT | |
20 | +endif | 20 | +endif | |
21 | + | 21 | + | |
22 | P_USE_RANLIB := 1 | |||
23 | #STDCCFLAGS += -DP_USE_PRAGMA # migrated to configure | |||
24 | ||||
22 | +ifndef PROG | 25 | +ifndef PROG | |
23 | +STDCCFLAGS += -fPIC -DPIC | 26 | +STDCCFLAGS += -fPIC -DPIC | |
24 | +endif # PROG | 27 | +endif # PROG | |
25 | + | 28 | ||
26 | # enable the USE_PTH line to compile using pth | 29 | endif # NetBSD | |
27 | # enable the USE_NATIVE_THREADS line to compile using native threads | 30 | ||
28 | # enable the USE_UNPROVEN_THREADS line to compile using unproven threads | 31 | @@ -563,11 +570,11 @@ LIB_SUFFIX = $(SHAREDLIBEXT) | |
29 | @@ -601,11 +609,11 @@ | |||
30 | LIB_TYPE = | 32 | LIB_TYPE = | |
31 | else | 33 | else | |
32 | LIB_SUFFIX = a | 34 | LIB_SUFFIX = a | |
33 | -LIB_TYPE = _s | 35 | -LIB_TYPE = _s | |
34 | +LIB_TYPE = | 36 | +LIB_TYPE = | |
35 | endif # P_SHAREDLIB | 37 | endif # P_SHAREDLIB | |
36 | 38 | |||
37 | ifndef INSTALL_DIR | 39 | ifndef INSTALL_DIR | |
38 | -INSTALL_DIR = /usr/local | 40 | -INSTALL_DIR = /usr/local | |
39 | +INSTALL_DIR = ${PREFIX} | 41 | +INSTALL_DIR = ${PREFIX} | |
40 | endif | 42 | endif | |
41 | 43 | |||
42 | ifndef INSTALLBIN_DIR | 44 | ifndef INSTALLBIN_DIR |
$NetBSD: patch-ak,v 1.1 2009/03/18 11:57:16 jmcneill Exp $
--- src/ptlib/unix/config.cxx.orig 2009-03-17 23:43:30.000000000 -0400
+++ src/ptlib/unix/config.cxx
@@ -53,6 +53,10 @@
#define environ (NULL)
#endif
+#if defined(__NetBSD__)
+extern char **environ;
+#endif
+
//
// a single key/value pair
//