warnings building openssh-3.0.2p1 on HP-UX 10.20
Albert Lunde
Albert-Lunde at northwestern.edu
Thu Dec 20 11:55:00 EST 2001
I'm getting a number of compiler warnings about type mismatches,
building openssh-3.0.2p1 on HP-UX 10.20 with the HP ANSI C compiler.
The resulting code seems to work, but spot-checking suggested that
some of the warnings are the result of mixing int and u_int types,
which might introduce subtle bugs.
I figured it might be worth reporting, since I'm in the minority of
people not using a gcc-derived compiler, and thus may see different
errors. I'm quoting a small section here, I'd be glad to send more
details to anyone wanting to look into this further.
(This is HP-UX 10.20 with quite a few patches, but not absolutely the
latest of everything.)
I'm not subscribed to this list, so CC me on replies.
This is the options I used to run configure:
- - cut here - -
#!/usr/bin/csh -vx
rm -f config.cache
setenv CC "cc"
setenv CFLAGS "-Ae +O2 -I/usr/local/include -I/nuinfo/local/openssl/include"
setenv LFLAGS "-L/usr/local/lib -L/opt/local/openssl"
nohup sh ./configure --prefix=/nuinfo/local/openssh \
--sysconfdir=/etc/openssh \
--with-ssl-dir=/nuinfo/local/openssl/lib \
--with-prngd-socket=/var/run/egd-pool \
--without-lastlog \
--with-cflags="-Ae -I/usr/local/include -I/nuinfo/local/openssl/include"
\
--with-lflags="-L/usr/local/lib -L/nuinfo/local/openssl" \
--with-tcp-wrappers \
--with-ipv4-default \
--with-default-path="/usr/bin:/usr/contrib/bin/opt/local/bin:" \
>& my.configure.out.$$ &
#
echo my.configure.out.$$
#
ps -f
#
- - cut here - -
A sample of errors:
(I think, based on a prior version, the first warning about "stat" can be fixed by commenting out "struct stat;" in openbsd-compat/glob.h I'm more worried by the other errors.)
- - cut here - -
cc -Ae +O2 -I/usr/local/include -I/nuinfo/local/openssl/include -Ae -Ae
-I/usr/local/include -I/nuinfo/local/openssl/include -I. -I. -I/nuinfo/local/op
enssl/lib -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -DETCDIR=\"
/etc/openssh\" -D_PATH_SSH_PROGRAM=\"/nuinfo/local/openssh/bin/ssh\" -D_PATH_S
SH_ASKPASS_DEFAULT=\"/nuinfo/local/openssh/libexec/ssh-askpass\" -D_PATH_SFTP_S
ERVER=\"/nuinfo/local/openssh/libexec/sftp-server\" -D_PATH_SSH_PIDDIR=\"/var/r
un\" -DHAVE_CONFIG_H -c packet.c
cc: "openbsd-compat/glob.h", line 48: warning 617: Redeclaration of tag "stat" i
gnored.
cc: "packet.c", line 316: warning 604: Pointers are not assignment-compatible.
cc: "packet.c", line 316: warning 563: Argument #2 is not the correct type.
cc: "packet.c", line 416: warning 604: Pointers are not assignment-compatible.
cc: "packet.c", line 416: warning 563: Argument #2 is not the correct type.
cc: "packet.c", line 416: warning 604: Pointers are not assignment-compatible.
cc: "packet.c", line 416: warning 563: Argument #3 is not the correct type.
cc: "packet.c", line 578: warning 604: Pointers are not assignment-compatible.
cc: "packet.c", line 578: warning 563: Argument #2 is not the correct type.
cc: "packet.c", line 578: warning 604: Pointers are not assignment-compatible.
cc: "packet.c", line 578: warning 563: Argument #3 is not the correct type.
cc: "packet.c", line 732: warning 604: Pointers are not assignment-compatible.
cc: "packet.c", line 732: warning 563: Argument #1 is not the correct type.
cc: "packet.c", line 738: warning 604: Pointers are not assignment-compatible.
cc: "packet.c", line 738: warning 563: Argument #2 is not the correct type.
cc: "packet.c", line 738: warning 604: Pointers are not assignment-compatible.
cc: "packet.c", line 738: warning 563: Argument #3 is not the correct type.
cc: "packet.c", line 807: warning 604: Pointers are not assignment-compatible.
cc: "packet.c", line 807: warning 563: Argument #2 is not the correct type.
cc: "packet.c", line 807: warning 604: Pointers are not assignment-compatible.
cc: "packet.c", line 807: warning 563: Argument #3 is not the correct type.
cc: "packet.c", line 836: warning 604: Pointers are not assignment-compatible.
cc: "packet.c", line 836: warning 563: Argument #2 is not the correct type.
cc: "packet.c", line 836: warning 604: Pointers are not assignment-compatible.
cc: "packet.c", line 836: warning 563: Argument #3 is not the correct type.
- - cut here - -
--
Albert Lunde Albert-Lunde at northwestern.edu (new address)
Albert-Lunde at nwu.edu (old address)
More information about the openssh-unix-dev
mailing list