Re: [Xcircuit-dev] Parse Error Building 3.3.31
Brought to you by:
rtedwards
From: R. T. E. <tim...@mu...> - 2005-08-17 14:43:48
|
The Lightning Stalker wrote: > Hello. Incidentally, I tried building the latest version of XCircuit > (3.3.31) (on Cygwin) since my hard drive was recently wiped out. The > compiler gives this error when trying to build xcwrap.c: > > xcwrap.c: In function `Xcircuit_Init': > xcwrap.c:206: error: parse error before ')' token > xcwrap.c:209: error: parse error before ')' token > -DPROG_VERSION= -DPROG_REVISION= For reasons unknown to me, Cygwin no longer installs any version of the csh shell (csh, tcsh), but instead provides only versions of the original sh shell (sh, bash). So the scripts that I wrote that pick the program version and revision numbers from the source directory are "csh"-style scripts, and will not run in the default configuration of Cygwin, and therefore return NULL. If you add the proper strings "3.3" and "31" to the PROG_VERSION and PROG_REVISION definitions in Makefile, the compilation should complete correctly. I guess I will have to convert my scripts from csh to sh, although it is a pain to do so, and it would have been a trivial measure for Cygwin to simply install tcsh by default. It should also be possible to tweak the Cygwin install process to install tcsh---even then, in the past I have had to make a symbolic link from /bin/csh to tcsh, which is how every other Linux system does it, but again, for unknown reasons, not Cygwin. ---Tim +--------------------------------+-------------------------------------+ | Dr. R. Timothy Edwards (Tim) | email: tim...@mu... | | MultiGiG, Inc. | web: http://www.multigig.com | | 100 Enterprise Way, Suite A-3 | phone: (831) 621-3283 | | Scotts Valley, CA 95066 | cell: (240) 401-0616 | +--------------------------------+-------------------------------------+ |