Overview
| Artifact ID: | 47500c92c3ee56b54eda01acb8e3cfe43dd90895 |
|---|---|
| Ticket: | 218917ffffffffffffffffffffffffffffffffff
Compilation problemms under SOlaris2 with gcc |
| User & Date: | nobody on 2000-10-26 01:07:52 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 2717 Bug Version: 8.2 SubmitDate: '1999-09-10' LastModified: '1999-09-20' Severity: MED Status: Released Submitter: techsupp ChangedBy: hobbs OS: Solaris OSVersion: Solaris7 (Sparc) Machine: Other FixedDate: '1999-09-20' FixedInVersion: 8.3b1 ClosedDate: '2000-10-25' Name: Wolfgang S. Kechel Comments: The character classification functions are likely to be more portable. Using them instead of the macros is not a big performance loss. ReproducibleScript: gcc -pipe -c -g -O -Wall -Wconversion -fPIC -I/export/home/p+r/g40/tcl8.2.0/unix/../generic -I/export/home/p+r/g40/tcl8.2.0/unix -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=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 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -DRETSIGTYPE=void -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_SHLIB_EXT=\".so\" /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclCompile.c gcc -pipe -c -g -O -Wall -Wconversion -fPIC -I/export/home/p+r/g40/tcl8.2.0/unix/../generic -I/export/home/p+r/g40/tcl8.2.0/unix -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=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 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -DRETSIGTYPE=void -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_SHLIB_EXT=\".so\" /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c: In function `TclDatelex': /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c:663: warning: subscript has type `char' /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c:666: warning: subscript has type `char' /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c:676: warning: subscript has type `char' /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c:686: warning: subscript has type `char' ObservedBehavior: Warnings denote problems in usage of string handling functions/macros. If the POSIX macros should be used, the index variables should have type int not char DesiredBehavior: It like Tcl to make sure the real functions are used. According to POSIX, this is reached by placing #undef-directives for isalpha and friends after including string.h. I have tried this out and it works fine on many platforms (tested Compaq True Unix, SOlaris, AIX, Irix, Linux, NT, HP/UX) Patch: Add: #undef isalpha #undef isdigit to tclDate.c after inclusion of tclPort.h PatchFiles: tclDate.c These functions were fixed by wrapping the args in UCHAR() for 8.3b1. -- 09/20/1999 hobbs - foundin changed to: "obsolete: 8.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "Compilation problemms under SOlaris2 with gcc"
- type changed to: "Bug"