[prev in list] [next in list] [prev in thread] [next in thread] 

List:       secure-shell
Subject:    Re: ssh-1.2.2[35] keygen dumps core on AIX 3.2.5
From:       steven.mcelwee () duke ! edu
Date:       1998-06-30 16:06:17
[Download RAW message or body]

We have a similar problem here- compiling code for both powerpc and power2
architectures. The instruction code sets, which do overlap, have
differences. To get around the problem, I always compile
the program (ssh in this case) for the common rs6000 instruction set that
is shared by all rs6000 systems,
regardless of their architecture. Consequently, the resulting executables
will run on ALL rs6000 systems.

The way to do this depends on the C compiler used:

1) gcc- when running configure, add the following option:
--host=rs6000-ibm-4.1.4.0
     Note: replace 4.1.4.0 with whatever version of aix you are running

2) xlc- add the following option to the CFLAGS definition:
-qarch=com


The fact that you have been able to compile ssh-1.2.25 on the aix platform
at all is very curious to me.
I have tried twice so far and have failed miserably. I will post a note
soon that gives the specific problems
I am running into.

Sincerely,
Steven McElwee



Steven McElwee / Duke University / OIT
Phone: 919-660-6914   /  Pager:  919-970-9645
steven.mcelwee@duke.edu





ml G Drosihn <mlgad@eclipse.its.rpi.edu> on 06/29/98 04:40:30 PM

To:   borrmann@ibm1.ruf.uni-freiburg.de, daves@beta.psd.k12.co.us,
      ssh@clinet.fi
cc:
Subject:  Re: ssh-1.2.2[35] keygen dumps core on AIX 3.2.5




> > I get the same problem with AIX 4.2, except it core dumps even sooner:
> >
> > Initializing random number generator...
> > Illegal instruction (core dumped)
> >
> > I compiled with gcc 2.8.1, and tried both -mcpu=604 and -mcpu=powerpc,
> > as suggested in some DejaNews articles.

> I had this problem when I compiled ssh on a model 250 and tried to run
> it on a model 220. The only way I found to get a ssh which runs on all
> RS/6000 we have is to compile it on a power or power2 architecture
> machine. But this is not satisfactory.

It may be better to use IBM's cc compiler, and look thru the man pages
for the options to make it produce code for all platforms.  I haven't
done anything with ssh on AIX at RPI, but I know that is an issue for
some other programs we have.  There were problems compiling those
programs for the multiple AIX platforms (POWER, PowerPC-601, PowerPC)
under gcc, but not under IBM's compiler.

Just one of those little irritations of computing...

---
Garance Alistair Drosehn     =     gad@eclipse.its.rpi.edu
Senior Systems Programmer        (MIME & NeXTmail capable)
Rensselaer Polytechnic Institute;           Troy NY

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic