Subject: Re: Can't compile cvs-1.10 in rcs.c
From: [email-masked] (Tim Taylor)

11 Dec 1998 17:32:48 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: Matt Behrens <[email-masked]>, [email-masked]

I had the same problem.  Apparently, as a result of changes to the system
header files between B19.x and B20.1 different system header files are
included now when this file is compiled.

The reason for the compiler error at the location you mentioned is that one
of the system header files defines a macro named DELETE.  The rcs.c file is
trying to define an enumerated type at this line that contains the values
ADD and DELETE.  The macro substitution done on DELETE results in the error.

To work around the problem, I added the following at the top of rcs.c after
all the headers are included:

#ifdef __CYGWIN__
#undef DELETE
#endif

- Tim

At 06:34 PM 12/9/98 -0500, Matt Behrens wrote:
>I get the following error:
>
>bash-2.02$ make
>gcc  -I. -I.. -I. -I../lib -DHAVE_CONFIG_H  -g -O -c rcs.c
>rcs.c: In function `apply_rcs_changes':
>rcs.c:6994: parse error before `('
>make: *** [rcs.o] Error 1
>bash-2.02$
>
>This was after ncurses-4.2 and vim-5.3 compiled just fine.
>
>cygcheck -s -v -r:
>
>Cygnus Win95/NT Configuration Diagnostics
>Current System Time: Wed Dec 09 18:26:15 1998
>
>WinNT Ver 4.0 build 1381 Service Pack 4
>
>Path:	/bin
>	/usr/bin
>	/opt/vim/bin
>	/usr/CYGWIN~1/H-I586~1/bin
>	/WINNT/system32
>	/WINNT
>	/SFU/Telnet/
>	/SFU/Shell/
>
>SysDir: C:\WINNT\System32
>WinDir: C:\WINNT
>
>MAKE_MODE = `UNIX'
>PWD = `/opt/src/cvs-1.10/src'
>
>!C: = `C:\WINNT\Profiles\mbehrens\Desktop'
>CLASSPATH = `C:\PROGRA~1\SoftQuad\HOTMET~1\Hmfx\Applets'
>COMPUTERNAME = `WIBBLE'
>COMSPEC = `C:\WINNT\system32\cmd.exe'
>HOMEDRIVE = `S:'
>HOMEPATH = `\mbehrens'
>HOMESHARE = `\\iservnt\users'
>HOSTNAME = `wibble'
>HOSTTYPE = `i586'
>LOGONSERVER = `\\ISERVNT'
>MACHTYPE = `i586-pc-cygwin32'
>NUMBER_OF_PROCESSORS = `1'
>OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
>OS = `Windows_NT'
>OSTYPE = `cygwin32'
>PATHEXT = `.COM;.EXE;.BAT;.CMD'
>PROCESSOR_ARCHITECTURE = `x86'
>PROCESSOR_IDENTIFIER = `x86 Family 5 Model 2 Stepping 12, GenuineIntel'
>PROCESSOR_LEVEL = `5'
>PROCESSOR_REVISION = `020c'
>PROMPT = `$P$G'
>SHELL = `/bin/sh'
>SHLVL = `1'
>SYSTEMDRIVE = `C:'
>SYSTEMROOT = `C:\WINNT'
>TEMP = `C:\TEMP'
>TERM = `ansi'
>TMP = `C:\TEMP'
>USERDOMAIN = `INTERNAL'
>USERNAME = `mbehrens'
>USERPROFILE = `C:\WINNT\Profiles\mbehrens'
>WINDIR = `C:\WINNT'
>_ = `/usr/CYGWIN~1/H-I586~1/bin/cygcheck'
>
>HKEY_CURRENT_USER\Software\Cygnus Solutions
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\00
>  (default) = `\\.\tape1:'
>  unix = `/dev/st1'
>  fbinary = 0x00000000
>  fsilent = 0x00000001
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\01
>  (default) = `\\.\tape0:'
>  unix = `/dev/st0'
>  fbinary = 0x00000000
>  fsilent = 0x00000001
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\02
>  (default) = `\\.\b:'
>  unix = `/dev/fd1'
>  fbinary = 0x00000000
>  fsilent = 0x00000001
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\03
>  (default) = `\\.\a:'
>  unix = `/dev/fd0'
>  fbinary = 0x00000000
>  fsilent = 0x00000001
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\04
>  (default) = `C:'
>  unix = `/'
>  fbinary = 0x00000001
>  fsilent = 0x00000000
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin B20
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin B20\B20.1
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\00
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\01
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\02
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\03
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\04
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\05
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\06
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\07
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\08
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\09
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0A
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0B
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0C
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0D
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0E
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0F
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\10
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\11
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\12
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\13
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\14
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\15
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\16
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\17
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\18
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\19
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\1A
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\1B
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\1C
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\1D
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro\i586-cygwin32
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\GNUPro\i586-cygwin32\i586-cygwin32
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\GNUPro\i586-cygwin32\i586-cygwin32\cygwin-B20.1
>  (default) = `c:\usr\cygwin-b20'
>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Cygnus
>Cygwin B20
>  (default) = `C:\WINNT\IsUninst.exe -fc:\usr\cygwin-b20\Uninst.isu'
>  DisplayName = `Cygwin B20'
>
>a:\ fd           N/A    N/A                    
>c:\ hd  NTFS    1539Mb  63% CP CS UN PA FC     Wibble
>d:\ cd           N/A    N/A                    
>j:\ net NTFS    3114Mb  10% CP CS UN PA FC     
>k:\ net NTFS    4149Mb  70% CP CS UN PA FC     
>m:\ net Samba   3343Mb  70% CP    UN           matt
>n:\ net Samba   3343Mb  70% CP    UN           apps
>o:\ net Samba   3343Mb  70% CP    UN           archive
>s:\ net NTFS    4149Mb  70% CP CS UN PA FC     
>
>C:          /         native  text=binary
>\\.\a:      /dev/fd0  native  text!=binary
>\\.\b:      /dev/fd1  native  text!=binary
>\\.\tape0:  /dev/st0  native  text!=binary
>\\.\tape1:  /dev/st1  native  text!=binary
>
>Found: C:\usr\CYGWIN~1\H-I586~1\bin\bash.exe
>Found: C:\usr\CYGWIN~1\H-I586~1\bin\cat.exe
>Not Found: cpp (good!)
>Found: C:\usr\CYGWIN~1\H-I586~1\bin\find.exe
>Found: C:\usr\CYGWIN~1\H-I586~1\bin\gcc.exe
>Found: C:\usr\CYGWIN~1\H-I586~1\bin\gdb.exe
>Found: C:\usr\CYGWIN~1\H-I586~1\bin\ld.exe
>Found: C:\usr\CYGWIN~1\H-I586~1\bin\ls.exe
>Found: C:\usr\CYGWIN~1\H-I586~1\bin\make.exe
>Found: C:\usr\CYGWIN~1\H-I586~1\bin\sh.exe
>
>  371k 1998/12/01 C:\usr\CYGWIN~1\H-I586~1\bin\cygtcl80.dll - os=4.0
>img=1.0 sys=4.0
>                  "cygtcl80.dll" v0.0 ts=1998/12/1 3:25
>    5k 1998/12/01 C:\usr\CYGWIN~1\H-I586~1\bin\cygtclpip80.dll - os=4.0
>img=1.0 sys=4.0
>   10k 1998/12/01 C:\usr\CYGWIN~1\H-I586~1\bin\cygtclreg80.dll - os=4.0
>img=1.0 sys=4.0
>                  "cygtclreg80.dll" v0.0 ts=1998/12/1 3:25
>  600k 1998/12/01 C:\usr\CYGWIN~1\H-I586~1\bin\cygtk80.dll - os=4.0
>img=1.0 sys=4.0
>                  "cygtk80.dll" v0.0 ts=1998/12/1 3:28
>  446k 1998/12/04 C:\usr\CYGWIN~1\H-I586~1\bin\cygwin1.dll - os=4.0
>img=1.0 sys=4.0
>                  "cygwin1.dll" v0.0 ts=1998/12/3 23:39
>Use -h to see help about each section
>
>
>
>-- 
>  __
> /-/    Matt Behrens
>( (     [email-masked]
> ) )    Iserv Network Operations Center
>/_/     http://inoc.iserv.net/
>-
>For help on using this list (especially unsubscribing), send a message to
>"[email-masked]" with one line of text: "help".
>
>

======================================================================
 Timothy L. Taylor                        Internet: [email-masked]
 Lead Software Systems Engineer              Voice: (781) 271-8770
 The Mitre Corporation                         Fax: (781) 271-7231
 202 Burlington Rd.                      Mail Stop: B295
 Bedford, Massachusetts 01730-1420
======================================================================
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".