pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46514: splint pkg not building on OS X 10.7.4



>Number:         46514
>Category:       pkg
>Synopsis:       splint pkg not building on OS X 10.7.4
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 02 05:05:00 +0000 2012
>Originator:     York Block
>Release:        pkgsrc-current on OS X 10.7.4
>Organization:
>Environment:
Darwin bri-sot-wic-csw-2-lo-0.tpgi.com.au 11.4.0 Darwin Kernel Version 11.4.0: 
Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64
>Description:
splint-3.1.2 does not build. It fails since __pid_t is not a known type on OS X 
(src/osd.c).
>How-To-Repeat:
cd /usr/pkgsrc/devel/splint
sudo bmake
>Fix:
I created and tested the following patch:

$NetBSD$

--- src/osd.c.orig      2007-07-13 22:18:20.000000000 +0000
+++ src/osd.c
@@ -515,6 +515,8 @@ osd_getPid ()
 {
 # if defined (WIN32) || defined (OS2) && defined (__IBMC__)
   int pid = _getpid ();
+# elif defined (_PID_T)
+  pid_t pid = getpid ();
 # else
   __pid_t pid = getpid ();
 # endif

Thanks,

York



Home | Main Index | Thread Index | Old Index