Menu

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

obsolete: 8.3
closed-fixed
nobody
2
2001-04-04
2000-10-26
Anonymous
No

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

Discussion

  • Brent B. Welch

    Brent B. Welch - 2000-10-26
    • priority: 5 --> 2
    • status: open --> closed-fixed
     
  • Don Porter

    Don Porter - 2001-04-04
    • labels: 104235 --> 53. Configuration and Build Tools