|
2001-04-19
| ||
| 03:21 | • Ticket [218917ffff] Compilation problemms under SOlaris2 with gcc status sti... artifact: c49e0338d3 user: dgp | |
|
2000-10-26
| ||
| 08:31 | • Closed ticket [218917ffff]. artifact: f2ad7310c6 user: welch | |
| 01:07 | • New ticket [218917ffff]. artifact: 47500c92c3 user: nobody | |
Compilation problemms under SOlaris2 with gcc
Closed / Fixed218917ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:07:52
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
welch Closed ticket [218917ffff].
[History diff]2000-10-26 08:31:16
dgp Ticket [218917ffff]: 3 changes
[History diff]2001-04-19 03:21:07
Log in (anonymous is fine) to add a comment.