Compiler messages when building opsnssh 3.9pl for hp_ux 11.0

Boyd, Hugh Hugh.Boyd at delta.com
Sat Dec 18 08:25:41 EST 2004


All,

I have encountered an issue with builds for openssh 3.9pl on the hp_ux
11.0 platform. The compiler (gcc) generates about 380 warning message
and the build fails because of excessive numbers of warnings. The
warnings that I am receiving are as follows:

/vobs/ecm_gcc/hp-ux-b-11-00/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/inc
lude/arpa/nameser.h:94: warning: `/*' within comment

Now this one is easy enough, since the nameser.h file is open source, I
just removed the superfluous comment tag. That eliminated about 200
warning messages. However, the one that is a bit tougher are these:

/usr/include/sys/xti.h:317: warning: `T_NULL' redefined
/vobs/ecm_gcc/hp-ux-b-11-00/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/inc
lude/arpa/nameser.h:130: warning: this is the location of the previous
definition
/usr/include/sys/xti.h:326: warning: `T_UNSPEC' redefined
/vobs/ecm_gcc/hp-ux-b-11-00/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/inc
lude/arpa/nameser.h:155: warning: this is the location of the previous
definition
/usr/include/sys/xti.h:488: warning: `TCP_NODELAY' redefined
/usr/include/netinet/tcp.h:76: warning: this is the location of the
previous definition
/usr/include/sys/xti.h:489: warning: `TCP_MAXSEG' redefined
/usr/include/netinet/tcp.h:77: warning: this is the location of the
previous definition

All of these comprise a total of about 160 of the warnings that I am
seeing. It obviously is the result of constant re-definitions in the
header files named above; however, our SA understandably does not want
to go into these files an edit them to make the #defines conditional:

That is,

#ifndef T_NULL
#define T_NULL 0
#endif

While this appears to be a simple edit, I can understand the reluctance
of the SA to do this. Is there a configuration option that I can set to
suppress these warnings?

Thanks,

Hugh Boyd




More information about the openssh-unix-dev mailing list