pkgsrc-Bugs archive

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

pkg/45097: www/cadaver build problems on Mac OS



>Number:         45097
>Category:       pkg
>Synopsis:       www/cadaver build problems on Mac OS
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 22 15:25:00 +0000 2011
>Originator:     Martin Brandenburg
>Release:        N/A
>Organization:
>Environment:
Darwin Martin-Brandenburgs-MacBook-Pro.local 10.7.0 Darwin Kernel Version 
10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386
>Description:
Alloca is not defined under cadavers's ifdef tree if you are running Mac OS. 
I've created a patch:

--- lib/glob.c.orig     2004-10-10 16:53:02.000000000 -0400
+++ lib/glob.c  2011-06-22 11:18:42.000000000 -0400
@@ -247,10 +247,14 @@
 #  endif /* sparc or HAVE_ALLOCA_H.  */
 # endif        /* GCC.  */
 
+#else
+# include <alloca.h>
 #endif
 
+#if !defined(__APPLE__)
 # define __alloca alloca
 # define __stat stat
+#endif
 
 #ifndef __GNU_LIBRARY__
 # define __stat stat

>How-To-Repeat:
Build www/cadaver on Mac OS.
>Fix:
Patch in description.



Home | Main Index | Thread Index | Old Index