From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b7d01e91d81d0b34 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-04-07 09:42:10 PST Path: gmd.de!newsserver.jvnc.net!netnews.upenn.edu!msuinfo!agate!howland.reston.ans.net!gatech!hubcap.clemson.edu!hubcap!hubcap From: hubcap@hubcap.clemson.edu (System Janitor) Newsgroups: comp.unix.osf.osf1 Subject: Re: Porting code problems Date: 7 Apr 94 16:42:10 GMT Organization: Clemson University Message-ID: References: <2o1arm$lbg@chaos.dac.neu.edu> NNTP-Posting-Host: hubcap.clemson.edu johnson@chaos.dac.neu.edu (Chris Johnson) writes: > We just received an Alpha4000 running OSF 1 v2.0. I'm trying to >port code to it that was originally written for Sys V, ported to Sun OS, >ported again to Ultrix. I'd be VERY interested in talking/e-mailing to >anyone really familiar with ports to OSF 1. I'm finding errors that I >believe to be (but aren't sure) related to structures not being defined >when I include them from /usr/include. The simplest example I have, >which works fine with Ultrix, is the following. >#include >main() >{ struct wait abd; >} >That compiler claims that the storage size for abc is unknown. There >are other problem as well but this is one of them. > Any body been through these ports? Here's some code segments from ``popper'', specifically from pop_xmit.c, showing what I did to that code to make it run on OSF. Maybe you can extrapolate a solutution to your problem from this... /*union wait stat;*/ unsigned stat; . . . /*if (stat.w_retcode)*/ if (stat) -Mike