This is the mail archive of the xconq7@sourceware.cygnus.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Error compiling xc7.2.91 on RH linux 6.0



   Date: Wed, 08 Sep 1999 16:38:36 -0400
   From: John Banghart <john@supernet.com>

   I downloaded an unpacked the following 3 files from the ftp site:

   xc7dlb.2.91.tgz
   xc7src.2.91.tgz
   xc7tk.2.91.tgz

Try 7.2.92, it fixes many problems with 7.2.91...

   I ran configure, then make.  After a while of normal compiling, I got
   the following error:

   make[1]: Entering directory `/root/xc7.2.91/tcl'
   make[2]: Entering directory `/root/xc7.2.91/tcl/unix'
   gcc -c -g  -I./../generic -I. -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1
   -DHAVE_STRSTR=1 -
   DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1
   -DUSE_TERMIOS=
   =1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1       
   -DTCL_SHLIB_EXT=\".so\" ./../generic/tclPosixStr.c
   ./../generic/tclPosixStr.c: In function `Tcl_ErrnoId':
   ./../generic/tclPosixStr.c:340: duplicate case value
   ./../generic/tclPosixStr.c:328: this is the first entry for that value
   ./../generic/tclPosixStr.c: In function `Tcl_ErrnoMsg':
   ./../generic/tclPosixStr.c:787: duplicate case value
   ./../generic/tclPosixStr.c:775: this is the first entry for that value
   make[2]: *** [tclPosixStr.o] Error 1
   make[2]: Leaving directory `/root/xc7.2.91/tcl/unix'
   make[1]: *** [all] Error 2
   make[1]: Leaving directory `/root/xc7.2.91/tcl'
   make: *** [all-tcl] Error 2 

   Is this a known error in Linux?

Yes.  The version of tcl is out-of-date vs the Linux version you're using.
The immediate cause is that two formerly different codes now expand to the
same value, which switch statements hate.

If you want to patch, just go to the file being complained about and
whack out the second set of lines mentioned (the function is an obscure
one that Xconq doesn't care much about).

However, a superior solution is to use 7.2.92 and build without the
tcl/tk package - a correct tcl/tk is already installed on all Linux
systems that I know of.  I'm planning not to include tcl/tk sourcesin
the 7.3 release, since most people have it preinstalled, and those who
don't are well capable of finding and installing it before building
Xconq.

								Stan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]