Artifacts Associated With Ticket 219420
Ticket change [92afa08eeb] (rid 120811) by nobody on 2000-10-26 05:12:54:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 6370 Bug Version: 8.3.2 SubmitDate: '2000-10-18' LastModified: '2000-10-25' Severity: CRIT Status: UnAssn Submitter: techsupp OS: All Unix OSVersion: Unicos 10.0.0.5 Machine: Cray J90 FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Len Makin Comments: 1.(Low)The Cray system calls readlink, mknod and symlink take char * arg for path (not const char *) so tclUnixFCmd.c fails to compile. Solution: configure different? I have tried using cast (char *)src (char *)dst in appropriate places, but next bug is major and inhibits further testing. 2.(major)In tclUnixPipe.c and tclUnixChan.c there are declared structures whose second element appears to be an int function. However the declared type of the second element in generic/tcl.h is declared as typedef struct Tcl_ChannelTypeVersion_ *Tcl_ChannelTypeVersion; This needs a fix. static Tcl_ChannelType fileChannelType = { "file", /* Type name. */ FileBlockModeProc,/* Set blocking/nonblocking mode.*/ ... static Tcl_ChannelType ttyChannelType = { "tty", /* Type name. */ FileBlockModeProc,/* Set blocking/nonblocking mode.*/ ... static Tcl_ChannelType tcpChannelType = { "tcp", /* Type name. */ TcpBlockModeProc, /* Set blocking/nonblocking mode.*/ ... static Tcl_ChannelType pipeChannelType = { "pipe", /* Type name. */ PipeBlockModeProc,/* Set blocking/nonblocking mode.*/ ... ReproducibleScript: env RANLIB=: ./configure gmake # produces compile errors ObservedBehavior: cc -c -O -I./../generic -I. -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD= 1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPI D=1 -DNO_WAIT3=1 -DNO_DLFCN_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TER MIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_TIMEZON E_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -D__CHAR_UNSIGNED__=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SH LIB_EXT=\"\" ./../unix/tclUnixChan.cCC-144 cc: ERROR File = ./../unix/tclUnixChan.c, Line = 235 A value of type "int (*)(ClientData, int)" cannot be used to initialize an entity of type "struct Tcl_ChannelTypeVersion_ *". FileBlockModeProc, /* Set blocking/nonblocking mode .*/ ^ CC-144 cc: ERROR File = ./../unix/tclUnixChan.c, Line = 254 A value of type "int (*)(ClientData, int)" cannot be used to initialize an entity of type "struct Tcl_ChannelTypeVersion_ *". FileBlockModeProc, /* Set blocking/nonblocking mode .*/ ^ CC-144 cc: ERROR File = ./../unix/tclUnixChan.c, Line = 273 A value of type "int (*)(ClientData, int)" cannot be used to initialize an entity of type "struct Tcl_ChannelTypeVersion_ *". TcpBlockModeProc, /* Set blocking/nonblocking mode.*/ ^ 3 errors detected in the compilation of "./../unix/tclUnixChan.c". ...cc -c -O -I./../generic -I. -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD= 1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPI D=1 -DNO_WAIT3=1 -DNO_DLFCN_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TER MIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_TIMEZON E_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -D__CHAR_UNSIGNED__=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SH LIB_EXT=\"\" ./../unix/tclUnixFCmd.c CC-167 cc: ERROR File = ./../unix/tclUnixFCmd.c, Line = 376 Argument of type "const char *" is incompatible with parameter of type "char * " . length = readlink(src, link, sizeof(link)); /* INTL: Native. */ ^ CC-167 cc: ERROR File = ./../unix/tclUnixFCmd.c, Line = 381 Argument of type "const char *" is incompatible with parameter of type "char * " . if (symlink(link, dst) < 0) { /* INTL: Native. */ ^ CC-167 cc: ERROR File = ./../unix/tclUnixFCmd.c, Line = 388 Argument of type "const char *" is incompatible with parameter of type "char * " . if (mknod(dst, srcStatBuf.st_mode, /* INTL: Native. */ ^ 3 errors detected in the compilation of "./../unix/tclUnixFCmd.c". cc -c -O -I./../generic -I. -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD= 1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPI D=1 -DNO_WAIT3=1 -DNO_DLFCN_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TER MIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_TIMEZON E_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -D__CHAR_UNSIGNED__=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SH LIB_EXT=\"\" ./../unix/tclUnixPipe.c CC-144 cc: ERROR File = ./../unix/tclUnixPipe.c, Line = 71 A value of type "int (*)(ClientData, int)" cannot be used to initialize an entity of type "struct Tcl_ChannelTypeVersion_ *". PipeBlockModeProc, /* Set blocking/nonblocking mode .*/ ^ 1 error detected in the compilation of "./../unix/tclUnixPipe.c". .... - foundin initialized to: "obsolete: 8.3.2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "Cray Unicos build problems for tcl8.3.2"
- type initialized to: "Bug"
Ticket change [b54e047dee] (rid 125221) by dkf on 2000-11-15 22:06:34:
- subsystem changed to: "75. Tutorial"
Ticket change [3242136a0f] (rid 93582) by dkf on 2001-02-08 22:18:08:
- subsystem changed to: "27. Channel Types"
Ticket change [586cf98f3f] (rid 117800) by msofer on 2001-08-30 20:09:06:
- assignee changed to: "andreas_kupries"
- icomment:
Logged In: YES user_id=148712 Assigning to an area maintainer.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Ticket change [f985fb0aaf] (rid 91723) by andreas_kupries on 2001-09-08 03:56:55:
- icomment:
Logged In: YES user_id=75003 Ad 1) There are major changes to the filesystem code in 8.4 (Introduction of a virtual filesystem layer) so it is not possible to say if this applies to that version too. We have to check 8.3.3 in this regard. Ad 2) This should be fixed in 8.3.3. Please check this version out. - login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [990a26ad88] (rid 110713) by andreas_kupries on 2001-09-08 04:14:18:
- icomment:
Logged In: YES user_id=75003 No changes to tclUnixFCmd between 8.3.2 and 8.3.3. This part of the report still relevant.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [97a7836e20] (rid 110476) by andreas_kupries on 2001-09-08 04:29:30:
- icomment:
Logged In: YES user_id=75003 Both Linux and Solaris declare the path argument as "const char*". Just adding casts will therefore not help as this will then cause these two important platforms to fail compilation or to at least issue warnings. Does the compiler define some cray specific pre-processor macro I can use to detect the platform ?
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [f57a5c0a20] (rid 130114) by andreas_kupries on 2001-09-08 04:32:41:
- icomment:
Logged In: YES user_id=75003 http://www.google.com/search?q=cache:LdS- 2fTisF4:www.navo.hpc.mil/pet/Video/HPC/SGI/PDF/cray_compiler _extensions.pdf+cray+cc+preprocessor+macros&hl=en and look for predefined macros. Thank google. The macros are CRAY PVP : CRAY, cray, _CRAY, _UNICOS, MEMSIZE,_CRAYC90, _ADDR32, _ADDR64
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [f5f4a3d7c1] (rid 130207) by andreas_kupries on 2001-09-08 04:49:10:
- icomment:
Logged In: YES user_id=75003 Also see http://www.cray.com/swpubs/manuals/004-2179- 005/html-004-2179-005/c8699.htm for page with explanations. Tcl is not alone: http://www.geocrawler.com/archives/3/383/1999/11/0/2907730/ ... I can't find autoconf macros I could use to extend configure with. So it will be preprocessor macros in the code itself.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [6739472687] (rid 102866) by andreas_kupries on 2001-09-08 05:05:34:
- icomment:
File Added - 10510: 219420.833.diff Logged In: YES user_id=75003 Ok, enclosing patches against 8.3.3 and 8.4 which may fix the problem.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Add attachment "219420.833.diff" [3d98a52dad] (rid 121113) by andreas_kupries on 2001-09-08 05:05:34.
Ticket change [9097947a43] (rid 120478) by andreas_kupries on 2001-09-08 05:06:02:
- icomment:
File Added - 10511: 219420.84.diff
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Add attachment "219420.84.diff" [167c09201c] (rid 124726) by andreas_kupries on 2001-09-08 05:06:02.
Ticket change [0eb4decdd0] (rid 94658) by andreas_kupries on 2001-09-10 22:36:29:
- icomment:
Logged In: YES user_id=75003 Len Makin is reachable at <[email protected]>. Also see http://www.hpc.csiro.au/~len/
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [a264ee12e0] (rid 109882) by andreas_kupries on 2001-09-14 06:25:51:
- closedate changed to: "2001-09-13T23:25:51"
- closer changed to: "andreas_kupries"
- status changed to: "Closed"