Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* What cc flags for OSF1 R 1.3?
@ 1994-02-08 19:23 Bill Baines
  1994-02-09 20:39 ` Karen Kolling
  1994-02-12 10:40 ` Burkhard Neidecker-Lutz
  0 siblings, 2 replies; 3+ messages in thread
From: Bill Baines @ 1994-02-08 19:23 UTC (permalink / raw)



We have a demo Alpha something-or-other here for a while, and 
I have been trying to port some common edu software to it. I
seem to be foiled at every turn!

Applications like imake, tripwire, and kerberos which port
failry easily to other UNIXlike systems are being grumpy.

OSF Version is: 
> # uname -s
> OSF1
> # uname -r 
> V1.3
> # uname -v
> 111

> Example difficulty (make imake):
 
> cc -o ccimake  -O ccimake.c
> cc -o imake  -O imake.c `./ccimake`
> /usr/lib/cmplrs/cc/cfe: Error: imake.c, line 419: storage size for  
'status' isn't known
>         union wait      status;
        ----------      ^
> /usr/lib/cmplrs/cc/cfe: Error: imake.c, line 419: Reference an  
expression of void type or an incomplete type.

Lots more of the same......


Are there some common things I need to do to port edu code to Alpha OSF?
i.e. Am I missing something obvious? Its a demo unit, and we have NO doc.
No clues in the man pages....

--
Bill Baines, Operations and Tech. Support, 
Simon Fraser University, Vancouver, British Columbia, Canada
bill@sfu.ca, (604) 291-3955, (fax 291-4242), VE7FML


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: What cc flags for OSF1 R 1.3?
  1994-02-08 19:23 What cc flags for OSF1 R 1.3? Bill Baines
@ 1994-02-09 20:39 ` Karen Kolling
  1994-02-12 10:40 ` Burkhard Neidecker-Lutz
  1 sibling, 0 replies; 3+ messages in thread
From: Karen Kolling @ 1994-02-09 20:39 UTC (permalink / raw)


In article <1994Feb8.192309.14551@sfu.ca> bill@sfu.ca writes:
>
>We have a demo Alpha something-or-other here for a while, and 
>I have been trying to port some common edu software to it. I
>seem to be foiled at every turn!
>
>Are there some common things I need to do to port edu code to Alpha OSF?
>i.e. Am I missing something obvious? Its a demo unit, and we have NO doc.
>No clues in the man pages....


Remember that you're moving to a 64 bit system; it looks suspiciously
like you're encountering problems because of size ambiguities where
the code lucked out on older systems.  Look in the innards of the man
page for lint for help:

  The -Q option provides support for migration from ULTRIX and DEC OSF/1 Ver-
  sion 1.0 systems to DEC OSF/1 Version 1.2.  This option turns on checking
  for all common programming techniques which might cause problems when mov-
  ing from 32-bit systems to 64-bit systems.  The -Q option disables checking
  for other programming problems, so this switch should be used only for
  migration checking.

Then the man page goes on to discuss Q suboptions.  I believe Dec also has
a porting quide in hardcopy available;  ask your sales critter about that.


-- 
Karen Kolling                              kolling@adobe.com

 ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: What cc flags for OSF1 R 1.3?
  1994-02-08 19:23 What cc flags for OSF1 R 1.3? Bill Baines
  1994-02-09 20:39 ` Karen Kolling
@ 1994-02-12 10:40 ` Burkhard Neidecker-Lutz
  1 sibling, 0 replies; 3+ messages in thread
From: Burkhard Neidecker-Lutz @ 1994-02-12 10:40 UTC (permalink / raw)


In article <1994Feb8.192309.14551@sfu.ca> bill@sfu.ca writes:
> 
>> cc -o ccimake  -O ccimake.c
>> cc -o imake  -O imake.c `./ccimake`
>> /usr/lib/cmplrs/cc/cfe: Error: imake.c, line 419: storage size for  
>'status' isn't known
>>         union wait      status;
>        ----------      ^
>> /usr/lib/cmplrs/cc/cfe: Error: imake.c, line 419: Reference an  
>expression of void type or an incomplete type.
>

Welcome to the modern world. This is because OSF/1 on Alpha defaults
to POSIX and in POSIX there isn't anything like a "union wait", rather
it's "int wait". In order to get the old behaviour, compile with

	-D_BSD


		Burkhard Neidecker-Lutz

Distributed Multimedia Group, CEC Karlsruhe  
BERKOM II Project
Digital Equipment Corporation
neideck@nestvx.enet.dec.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1994-02-12 10:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-02-08 19:23 What cc flags for OSF1 R 1.3? Bill Baines
1994-02-09 20:39 ` Karen Kolling
1994-02-12 10:40 ` Burkhard Neidecker-Lutz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox