Sometime ago, Iain Morgan wrote:
> Sometime ago, Damien Miller wrote:
> [...]
> > Testing on suitable non-production systems is also appreciated. Please send
> > reports of success or failure to openssh-unix-dev@mindrot.org, including
> > details of your platform, compiler and configure options.
> >

>
> The 20060830 snapshot configures, but fails to build on IRIX 6.5.29
> usign the MIPSpro 7.4 compilers.
>
>
> export CC=c99
> export CFLAGS="-g -O3 -mips3 -r14000"
>
> PREFIX=/usr/prg/pkg/openssh/4.4p1
> OPENSSL=$HOME/build
> ZLIB=$HOME/build
>
> ./configure --prefix=$PREFIX \
> --sysconfdir=/usr/prg/etc \
> --with-ssl-dir=$OPENSSL \
> --with-zlib=$ZLIB \
> --with-tcp-wrappers=/usr/local \
> --with-md5-passwords \
> --with-pam
>
> There are numberous warnings, but here's the part that causes the
> compile to fail:
>


Adding to the headers included in port-irix.c allows the build
to complete.

Using c99, there are only 92 warnings, whereas using cc there are 251.
A reasonable number of the 92 warnings are due to macro redefinition:

14 Macro "_PATH_MAILDIR" (declared at line 359 of "defines.h") has an
14 Macro "_PATH_BSHELL" (declared at line 322 of "defines.h") has an
incompatible
5 Macro "offsetof" (declared at line 491 of "defines.h") has an
incompatible
1 Macro "offsetof" (declared at line 491 of "../defines.h") has an
incompatible

Also, moving -lgen from LIBS to SSHDLIBS would eliminate 10 additional
warnings.

I haven't had time to deal with the regression tests yet. The protocol 1
tests always seem to be a problem with IRIX. (I reported this once quite
a while ago, but did not have the time to investigate.) In the past,
I've hacked the scripts to only test protocol 2, in which case
everything (that we care about) is fine.

--
Iain Morgan
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/lis...enssh-unix-dev