#953 warnings with autoconf & --enable-gcc

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

OriginalBugID: 2412 Bug
Version: 8.1
SubmitDate: '1999-07-19'
LastModified: '2000-02-01'
Severity: LOW
Status: Released
Submitter: jenn
ChangedBy: hobbs
OS: Linux
OSVersion: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3
FixedDate: '2000-02-01'
FixedInVersion: 8.2.3
ClosedDate: '2000-10-25'

Name: Siegfried Rekow

CVS: cvs - Sun Jun 27 15:44:24 EDT 1999
OperatingSystem: Linux (Red Hat 5.0+ on Intel)

ReproducibleScript:
cd tcl8.1/unix ; autoconf ; ./configure --prefix=/home/shell/user/tcl
--exec-prefix=/home/shell/user/tcl --disable-shared --enable-gcc ; make

ObservedBehavior:
autoconf:
configure.in:31: warning: AC_C_CROSS is obsolete; it has been merged
into AC_PROG_CC
configure.in:397: warning: AC_TRY_RUN called without default to allow
cross compiling

make:
gcc -pipe -c -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -Wall
-Wconversion -fPIC -I./../generic -I. -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
-DNEED_MATHERR=1 -DRETSIGTYPE=void -DHAVE_SIGNED_CHAR=1
-DHAVE_SYS_IOCTL_H=1 -DSTATIC_BUILD=1 -DTCL_SHLIB_EXT=\".so\"
./../generic/tclIOSock.c
./../generic/tclIOSock.c: In function `TclSockGetPort':
./../generic/tclIOSock.c:57: warning: passing arg 1 of `ntohs' with
different width due to prototype
./../generic/tclIOSock.c: In function `TclSockMinimumBuffers':
./../generic/tclIOSock.c:100: warning: passing arg 5 of `setsockopt' as
unsigned due to prototype
./../generic/tclIOSock.c:106: warning: passing arg 5 of `setsockopt' as
unsigned due to prototype

gcc -pipe -c -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -Wall
-Wconversion -fPIC -I./../generic -I. -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
-DNEED_MATHERR=1 -DRETSIGTYPE=void -DHAVE_SIGNED_CHAR=1
-DHAVE_SYS_IOCTL_H=1 -DSTATIC_BUILD=1 -DTCL_SHLIB_EXT=\".so\"
./../unix/tclUnixChan.c
./../unix/tclUnixChan.c: In function `TcpInputProc':
./../unix/tclUnixChan.c:1587: warning: passing arg 3 of `recv' as
unsigned due to prototype
./../unix/tclUnixChan.c: In function `TcpOutputProc':
./../unix/tclUnixChan.c:1640: warning: passing arg 3 of `send' as
unsigned due to prototype
./../unix/tclUnixChan.c: In function `TcpGetOptionProc':
./../unix/tclUnixChan.c:1776: warning: passing arg 1 of `ntohs' with
different width due to prototype
./../unix/tclUnixChan.c:1823: warning: passing arg 1 of `ntohs' with
different width due to prototype
./../unix/tclUnixChan.c: In function `CreateSocketAddress':
./../unix/tclUnixChan.c:2112: warning: passing arg 1 of `htons' with
different width due to prototype
./../unix/tclUnixChan.c: In function `TcpAccept':
./../unix/tclUnixChan.c:2373: warning: passing arg 1 of `ntohs' with
different width due to prototype

gcc -pipe -c -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -Wall
-Wconversion -fPIC -I./../generic -I. -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
-DNEED_MATHERR=1 -DRETSIGTYPE=void -DHAVE_SIGNED_CHAR=1
-DHAVE_SYS_IOCTL_H=1 -DSTATIC_BUILD=1 -DTCL_SHLIB_EXT=\".so\"
./../unix/tclUnixFCmd.c
./../unix/tclUnixFCmd.c: In function `GetGroupAttribute':
./../unix/tclUnixFCmd.c:1090: warning: passing arg 1 of `Tcl_NewIntObj'
as signed due to prototype
./../unix/tclUnixFCmd.c: In function `GetOwnerAttribute':
./../unix/tclUnixFCmd.c:1141: warning: passing arg 1 of `Tcl_NewIntObj'
as signed due to prototype
./../unix/tclUnixFCmd.c: In function `GetPermissionsAttribute':
./../unix/tclUnixFCmd.c:1190: warning: long unsigned int format,
__mode_t arg (arg 3)
./../unix/tclUnixFCmd.c: In function `SetGroupAttribute':
./../unix/tclUnixFCmd.c:1247: warning: passing arg 2 of `chown' as
unsigned due to prototype
./../unix/tclUnixFCmd.c:1247: warning: negative integer implicitly
converted to unsigned type
./../unix/tclUnixFCmd.c: In function `SetOwnerAttribute':
./../unix/tclUnixFCmd.c:1308: warning: passing arg 2 of `chown' as
unsigned due to prototype
./../unix/tclUnixFCmd.c:1308: warning: passing arg 3 of `chown' as
unsigned due to prototype
./../unix/tclUnixFCmd.c:1308: warning: negative integer implicitly
converted to unsigned type

DesiredBehavior:
no warnings

Comments:
no errors with cc (without pipe)

with slack4.0 and
/usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.66 19990314
(egcs-1.1.2 release) I get endless warnings using --enable-gcc but don't want to send you a book :)
want to send you a book :)

There is now only one autoconf warning, but its behavior we want,
so we can't do anything about the warning. The warnings generated
by gcc on Linux are all bogus (not problems), but have already been
significantly reduced.
-- 02/01/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
    • summary: warnings with autoconf & --enable-gcc --> warnings with autoconf & --enable-gcc