Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Warnigs when compiling new Tcl8.3.1 release on Dec Ultra64 r

Closed / Fixed218405ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:57:11
OriginalBugID: 5322 Bug
Version: 8.3
SubmitDate: '2000-05-02'
LastModified: '2000-05-04'
Severity: MED
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: All Unix
OSVersion: Dec Ultra64 Unix 4.0F
Machine: Dec Alpha Server 4000
FixedDate: '2000-10-25'
ClosedDate: '2000-05-04'


Name:
Al Womelsdorf

ReproducibleScript:
Downloaded the latest Tcl8.3.1.tar.gz file from Scriptics
Extracted to new directory tree
cd Tcl8.3.1/unix
./configure
make

ObservedBehavior:
Warnigs about mis-matched data types ocure for tclIOSock.c

cc -c -O    -I./../generic -I.  -DHAVE_TZSET -std1  -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_TM_ZONE=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DUSE_FIONBIO=1           -DTCL_SHLIB_EXT=\".so\" ./../generic/tclIOSock.c
cc: Warning: ./../generic/tclIOSock.c, line 100: In this statement, the referenced type of the pointer value "&len" is "unsigned long", which is not compatible with "int". (ptrmismatch)
    getsockopt(sock, SOL_SOCKET, SO_SNDBUF, (char *)&current, &len);
--------------------------------------------------------------^
cc: Warning: ./../generic/tclIOSock.c, line 106: In this statement, the referenced type of the pointer value "&len" is "unsigned long", which is not compatible with "int". (ptrmismatch)
    getsockopt(sock, SOL_SOCKET, SO_RCVBUF, (char *)&current, &len);
--------------------------------------------------------------^

DesiredBehavior:
I do not recall the previous version having any errors or warnings when compiling.



These are insignificant casting warnings where size_t is used.
It should be socklen_t, but not all systems have that. 
-- 05/04/2000 hobbs
welch Closed ticket [218405ffff]. [History diff]2000-10-26 08:21:18
dgp Ticket [218405ffff]: 3 changes [History diff]2001-04-05 06:54:26
Log in (anonymous is fine) to add a comment.