Artifacts Associated With Ticket 873897ffffffffff
Ticket change [2bcbb049b6] (rid 118805) by rwurth on 2004-01-09 17:01:43:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The source file unix/tclUnixPipe.c, when compiled with HP's ANSI C compiler with --enable-64bit produces many instances of the error: Cast truncates pointer into 32 bit integer. These occur on lines 115, 328, 434, 487, 649, 734, 736, 738, 836, 848, 956, 1016, 1064, 1105, 1109, 1115, 1119, 1151, 1155, and 1186. (In case the code changes change the line numbers, line 115 is the line: return MakeFile((int)data); in proc TclpMakeFile. All the other instances involve the GetFd macro, and every such instance of GetFd causes the warning except for 2 that are #ifdef'ed out of the compilation.) The root cause of the warings appears to be that TclFile is declared (via a typedef) to be a pointer (specifically of type (struct TclFile_ *)), but the code treats it as an int, the macros GetFd and MakeFile cast it to an int, and eventually the int result is used as an integer file descriptor to the read and write UNIX system calls. OS: (uname -a): HP-UX urkel B.11.00 U 9000/800 1552710528 unlimited-user license Config flags: MAKE=gmake CC=/usr/bin/cc ./configure \ --enable-shared \ --enable-64bit \ --prefix=/usr/local/tcl-X/tcl8.5 \ --exec-prefix=/usr/local/tcl-X/tcl8.5 Compile line: /usr/bin/cc -c -O -DTCL_DBGX= +z -I./../generic -I. +DA2.0W -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 -DWORDS_BIGENDIAN=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_MODEM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -DNO_UNION_WAIT=1 -DNO_GETTOD=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -DTCL_CFG_DO64BIT=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SHLIB_EXT=\".sl\" ./../unix/tclUnixPipe.c - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "rwurth"
- subsystem initialized to: "37. File System"
- title initialized to:
HEAD (8.5 pre) tclUnixPipe.c HP cc pointer truncate warnings
- type initialized to: "Bug"
Ticket change [bc61ae5409] (rid 101739) by rwurth on 2004-01-10 00:01:43:
- icomment:
File Added - 72851: config.log
- login: "rwurth"
- mimetype: "text/plain"
- username: "rwurth"
- icomment:
Add attachment "config.log" [6a6159b3e7] (rid 128138) by rwurth on 2004-01-10 00:01:43.
Ticket change [194e752a7f] (rid 122787) by vincentdarley on 2004-01-10 01:12:20:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=32170 I Know almost nothing about such 64-bit +unix-specific things... If you wish to propose a patch which works for you, I'm happy to review it, else perhaps another maintainer can look at this.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
Ticket change [66572d8c1d] (rid 102697) by dkf on 2004-01-12 16:57:56:
- foundin changed to: "obsolete: 8.5a0"
- title changed to: "tclUnixPipe.c HP cc pointer truncate warnings"
Ticket change [481b941c96] (rid 99829) by hobbs on 2007-06-13 02:29:03:
- closedate changed to: "2007-06-12T19:29:03"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 Originator: NO There are several places where pointer truncating occurs with known effect. Have any of these issues pointed to a bug?
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Pending"
- username: "hobbs"
Ticket change [041f284e54] (rid 119940) by das on 2007-06-20 12:48:39:
- icomment:
Logged In: YES user_id=90580 Originator: NO if intptr_t/uintptr_t are available, all bogus instances of such warnings should have been taken care of by my 2006-11-13 commit adding the PTR2INT(), INT2PTR(), PTR2UINT() and UINT2PTR() macros. On the 64bit platforms I have access to (darwin, linux, but not HP-UX), I get warning-free builds for the HEAD.
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Ticket change [206edd3bb9] (rid 91308) by sf-robot on 2007-06-27 09:20:08:
- closedate changed to: "2007-06-27T02:20:08"
- closer changed to: "sf-robot"
- icomment:
Logged In: YES user_id=1312539 Originator: NO This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
- login: "sf-robot"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "sf-robot"