pkgsrc-Users archive

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

sysutils/tree: cannot build on Mac OS X



This is on Mac OS X 10.5.6.

,----
| Build error, fix follows: 
`----

===> Building for tree-1.5.1.1nb1
gcc -c -pipe -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -o tree.o tree.c
tree.c:187: error: conflicting types for â__mb_cur_maxâ
/usr/include/stdlib.h:134: error: previous declaration of â__mb_cur_maxâ was 
here
tree.c: In function âmainâ:
tree.c:481: warning: pointer targets in passing argument 1 of âprintitâ differ 
in signedness
tree.c: In function âlistdirâ:
tree.c:725: warning: pointer targets in passing argument 1 of âprintitâ differ 
in signedness
tree.c:738: warning: pointer targets in passing argument 1 of âprintitâ differ 
in signedness
tree.c: In function âprintitâ:
tree.c:1195: warning: pointer targets in passing argument 1 of âstrlenâ differ 
in signedness
tree.c:1196: warning: pointer targets in passing argument 2 of âmbstowcsâ 
differ in signedness
*** Error code 1

Stop.
bmake: stopped in /Users/william/repo/cvs/pkgsrc/sysutils/tree/work/tree-1.5.1.1
*** Error code 1

Stop.
bmake: stopped in /Users/william/repo/cvs/pkgsrc/sysutils/tree
*** Error code 1

Stop.
bmake: stopped in /Users/william/repo/cvs/pkgsrc/sysutils/tree

,----
| Fix: 
`----

cvs diff: Diffing .
Index: distinfo
===================================================================
RCS file: /cvs/cvsroot/pkgsrc/sysutils/tree/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo    28 Oct 2007 16:18:02 -0000      1.5
+++ distinfo    9 May 2009 00:32:38 -0000
@@ -3,5 +3,5 @@
 SHA1 (tree-1.5.1.1.tgz) = ca4145bf1d2957ff3f4e6af0f64ce92d102fd356
 RMD160 (tree-1.5.1.1.tgz) = 7cc78b7a0103a7f81ec40c2c5e1ff2399fd7bb20
 Size (tree-1.5.1.1.tgz) = 30792 bytes
-SHA1 (patch-aa) = 9dc8935975f6ccd8efab4c0b017d4806c22194d5
+SHA1 (patch-aa) = 7355b757a4f226ee9bcb4ee2bbe2071246e37996
 SHA1 (patch-ab) = 3d2ac13f762bccc0bd45990b3f2aae64b2e12669
cvs diff: Diffing patches
Index: patches/patch-aa
===================================================================
RCS file: /cvs/cvsroot/pkgsrc/sysutils/tree/patches/patch-aa,v
retrieving revision 1.3
diff -u -r1.3 patch-aa
--- patches/patch-aa    28 Oct 2007 10:27:34 -0000      1.3
+++ patches/patch-aa    9 May 2009 00:32:38 -0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.3 2007/10/28 10:27:34 heinz Exp $
+$NetBSD$
 
---- tree.c.orig        2007-06-11 15:22:06.000000000 +0200
+--- tree.c.orig        2007-06-11 21:22:06.000000000 +0800
 +++ tree.c
 @@ -17,7 +17,9 @@
   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
@@ -12,6 +12,15 @@
  #include <stdlib.h>
  #include <stdio.h>
  #include <time.h>
+@@ -179,7 +181,7 @@ char *sLevel, *curdir, *outfilename = NU
+ FILE *outfile;
+ int *dirs, maxdirs;
+ 
+-#ifdef CYGWIN
++#if defined(CYGWIN) || defined(__APPLE__) 
+ extern int MB_CUR_MAX;
+ #else
+ extern size_t MB_CUR_MAX;
 @@ -619,7 +621,7 @@ void listdir(char *d, int *dt, int *ft, 
      if (!noindent) indent();

-- 
William

http://xwl.appspot.com


Home | Main Index | Thread Index | Old Index