With CVS head updated a few moments ago make World fails as follows:

cc -c  -O -I../../include -I../../imports/x11/include/X11 `./ccimake` imake.c
imake.c: In function `get_binary_format':
imake.c:1134: `MAX_PATH' undeclared (first use in this function)
imake.c:1134: (Each undeclared identifier is reported only once
imake.c:1134: for each function it appears in.)
*** Error code 1

This is in FreeBSD specific code. It looks like the correct define is PATH_MAX.
I've attached a patch which should resolve this one.

Fixing this gives:

cd ./config/imake && make -f Makefile.proto all
LD_LIBRARY_PATH=../../exports/lib cc -O2 -ansi -pedantic -Dasm=__asm GccWarningOptions 
  -I../../include -I../../exports/include/X11  -I../.. -I../../exports/include   
-DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO     -DCPP_PROGRAM="\"/usr/bin/cpp\""        
    -c imake.c
cc: GccWarningOptions: No such file or directory
*** Error code 1

I've no idea how to fix this one properly but I've work round it by removing 
GccWarningOptions from config/cf/FreeBSD.cf for now. Any suggestions as for a 
proper fix?

Mike

Index: imake.c
===================================================================
RCS file: /cvs/xc/config/imake/imake.c,v
retrieving revision 3.52
diff -u -r3.52 imake.c
--- imake.c	2002/04/14 22:01:27	3.52
+++ imake.c	2002/04/26 19:57:57
@@ -1131,7 +1131,7 @@
   FILE *objprog = NULL;
   int iself = 0;
   char buf[10];
-  char cmd[MAX_PATH];
+  char cmd[PATH_MAX];
 
   mib[0] = CTL_KERN;
   mib[1] = KERN_OSRELDATE;

Reply via email to