From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,694e2bdb09c0ca09 X-Google-Attributes: gidfee84,public From: Niel Markwick Subject: Re: A Problem of Porting Programs from Sun Solaris 2.x to OSF1 Date: 1998/10/19 Message-ID: <362B3237.7E35E05@euronet.nl>#1/1 X-Deja-AN: 402792041 Content-Transfer-Encoding: 7bit References: <362A4479.1BFE88FC@math.mun.ca> To: Yingwei Peng Content-Type: text/plain; charset=us-ascii Organization: Alcatel/Bell Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Yingwei Peng wrote: > Recently, I tried to port my programs to OSF1 V3.2 62 alpha. > The programs run well on Sun Solaris 2.x. I can compile them on OSF1. > However, when I run them, I got "System terminating: bad address". There is a very useful 'Sun Solaris to DIGITAL UNIX Porting Guide' document which can be downloaded from: http://www.digital.com/hpc/ref/refdoc.html#porting Your problem will probably be related to sizes of the various types: check for hardcoded sizes in malloc's instead of n*sizeof(type), and for passing an int*/float* to a function expecting long*/double*. Take note of compiler warnings also! Good luck, Niel. -- Niel Markwick Consultant Software Engineer Kontich, Belgium.