pkgsrc-Bugs archive

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

RE: pkg/41391 (can't bootstrap pkgsrc on AIX 4.1.5 (devel/nbpatch patch))



Hmmm, this time around I am not seeing the same problems I did the first time, 
which is very odd.  Maybe having previously bootstrapped on this system changed 
something, even though I tried to clean everything up.  Anyway, here's the 
error.

ranlib libnbcompat.a
===> Building for nbpatch-20080910
gcc -O -static  -Werror  -DHAVE_NBCOMPAT_H=1 
-I/usr/pkgsrc/devel/nbpatch/work.0024fc004c00/libnbcompat -c patch.c
gcc -O -static  -Werror  -DHAVE_NBCOMPAT_H=1 
-I/usr/pkgsrc/devel/nbpatch/work.0024fc004c00/libnbcompat -c pch.c
gcc -O -static  -Werror  -DHAVE_NBCOMPAT_H=1 
-I/usr/pkgsrc/devel/nbpatch/work.0024fc004c00/libnbcompat -c inp.c
inp.c: In function `plan_a':
inp.c:268: `MAP_FAILED' undeclared (first use in this function)
inp.c:268: (Each undeclared identifier is reported only once
inp.c:268: for each function it appears in.)
*** Error code 1

Stop.

Here's the new patch.

Index: files/inp.c
===================================================================
RCS file: /cvsroot/pkgsrc/devel/nbpatch/files/inp.c,v
retrieving revision 1.3
diff -u -p -r1.3 inp.c
--- files/inp.c 9 May 2009 20:00:39 -0000       1.3
+++ files/inp.c 11 May 2009 18:57:07 -0000
@@ -39,6 +39,9 @@
 #include <sys/file.h>
 #include <sys/stat.h>
 #include <sys/mman.h>
+#ifndef MAP_FAILED
+#define MAP_FAILED (void *)-1
+#endif

 #include <ctype.h>
 #include <libgen.h>


Tim
--
      Tim Larson        AMT2 Unix Systems Administrator
          InterCall, a division of West Corporation

Be always sure you are right, then go ahead. - David Crockett


Home | Main Index | Thread Index | Old Index