Tim,

> I'm using the 7.3.1.1m C compiler on a Origin 2000 Irix 6.5.10m...
> would it help do you think to install autoconf and automake etc?
> or is that a non-issue?  I'm also a little confused as to whether
> to use the n32 or 64 ABI?

See /etc/compiler.defaults to see what ABI the machine would normally
like. The 64-bit ABI may sometimes produce unexpected results. I think
(but may be completely wrong, of course) that there is no real gain to
compiling SSH in 64-bit mode on IRIX.

I seem to remember that the SSH 1 autoconfiguration process believed
that IRIX 6.* should always use the n32 ABI. The same code has made
it into the SSH 2 configure:

*-sgi-irix6*)
    # from [EMAIL PROTECTED]
    no_libsocket=yes
    no_libnsl=yes
    no_libsun=yes
    if test -z "$GCC";then
        if test "`uname -s`" = "IRIX64"; then
            CFLAGS="-n32 -D_LONG_LONG_LIMB $CFLAGS"
            LDFLAGS="-n32 $LDFLAGS"
        else
            CFLAGS="-n32 $CFLAGS"
            LDFLAGS="-n32 $LDFLAGS"
        fi
    fi
    ;;

So if you suggest the 64-bit ABI yourself, you get conflicts... I seem
to remember that changing this (-n32 to -64 in the IRIX64 section) was
enough to allow me to compile 1.2.27 using the 64-bit mode and get
properly working results.

I'm doing a bit of testing on an Indigo² R10k with 6.5.10f, compilers
7.3.1.2m. My /etc/compiler.defaults say n32, MIPS III, R4k. I have
autoconf and automake properly installed, and GNU m4. I also use GNU
make.

With these settings, the 2.4.0 ./configure; gmake goes through without
a hitch, if you don't count the fact that MIPSpro likes to warn you
about unused definitions of this and that, and mixing types...

Changing CFLAGS and LDFLAGS to "-64 -mips4 -r10000" causes the compiler
to warn you about conflicting ABI requests on every file - it ends up
using the latter, the user specified -64. There are a lot of warnings
about pointers being converted to smaller integers as well, but the
resulting binaries work all right. You can reduce the amount of
squeaking from the compiler by editing the autoconfiguration script
accordingly, but it doesn't seem to matter that much in the end.

Cheers,
-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . iki . fi / atro . tossavainen / >

Reply via email to