* cannot get to install gcc-2.5.8 on OSF system
@ 1994-06-13 15:58 B.G. Mahesh
1994-06-13 19:25 ` sbrk --- was " Andrew Staniszewski
0 siblings, 1 reply; 3+ messages in thread
From: B.G. Mahesh @ 1994-06-13 15:58 UTC (permalink / raw)
alpha.evb.com:root(99)% uname -a
OSF1 alpha.evb.com X2.0 201.1 alpha
alpha.evb.com:root(97)% ./configure --target=alpha-dec-osf1
Linked `config.h' to `./config/alpha/xm-alpha.h'
Linked `tm.h' to `./config/alpha/alpha.h'
Linked `aux-output.c' to `./config/alpha/alpha.c'
Linked `tconfig.h' to `./config/alpha/xm-alpha.h'
Linked `hconfig.h' to `./config/alpha/xm-alpha.h'
Linked `md' to `./config/alpha/alpha.md'
Created `Makefile'.
Links are now set up for target alpha-dec-osf1.
alpha.evb.com:root(100)% make LANGUAGES="c c++ proto"
after a while...
cc -c -DIN_GCC -g -I. -I. -I./config mips-tfile.c
/usr/lib/cmplrs/cc/cfe: Error: /usr/include/unistd.h, line 492: redeclaration of 'sbrk'; previous declaration at line 60 in file './config.h'
extern char *sbrk();
-------------^
/usr/lib/cmplrs/cc/cfe: Error: /usr/include/unistd.h, line 492: Incompatible function return type for this function
extern char *sbrk();
-----------------^
*** Exit 1
Stop.
295.664u 150.733s 10:18.63 72.1% 0+18k 395+3865io 10468pf+0w
any ideas?
--
B.G. Mahesh | Email: mahesh@evb.com
Software Engineer | mahesh@sett.com
EVB Software Engineering, Inc. |
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: sbrk --- was Re: cannot get to install gcc-2.5.8 on OSF system
1994-06-13 15:58 cannot get to install gcc-2.5.8 on OSF system B.G. Mahesh
@ 1994-06-13 19:25 ` Andrew Staniszewski
1994-06-14 11:36 ` Eric Werme
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Staniszewski @ 1994-06-13 19:25 UTC (permalink / raw)
yes,
DEC added a prototype for sbrk in V2.0, which was not prototyped in V1.3,
and then they decided, I think as a practicle joke, to prototype it as
returning (char *) instead of (void *), just to be differnt, especially
from the original documentation, but in particular from what the rest
of the world prototypes sbrk to be ....
--
------------------------------------------------------------------------------
Andrew Staniszewski
staniszewski@mayo.edu
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: sbrk --- was Re: cannot get to install gcc-2.5.8 on OSF system
1994-06-13 19:25 ` sbrk --- was " Andrew Staniszewski
@ 1994-06-14 11:36 ` Eric Werme
0 siblings, 0 replies; 3+ messages in thread
From: Eric Werme @ 1994-06-14 11:36 UTC (permalink / raw)
stan@chirpa.mayo.edu (Andrew Staniszewski) writes:
>yes,
>DEC added a prototype for sbrk in V2.0, which was not prototyped in V1.3,
>and then they decided, I think as a practicle joke, to prototype it as
>returning (char *) instead of (void *), just to be differnt, especially
>from the original documentation, but in particular from what the rest
>of the world prototypes sbrk to be ....
You'll be relieved that we "saw the light" and in V3.0 have made
this change:
* Changed the declaration of sbrk() from extern char * to extern
* void *. Fixes OSF_QARs #18324 and #20165.
Apologies in advance to all you folks who changed things to expect
char * and get to change back!
Note also:
* Change argument of sbrk from int to ssize_t.
i.e.:
typedef unsigned long size_t;
--
Eric (Ric) Werme | werme@zk3.dec.com
Digital Equipment Corp. | This space intentionally left blank.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1994-06-14 11:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-06-13 15:58 cannot get to install gcc-2.5.8 on OSF system B.G. Mahesh
1994-06-13 19:25 ` sbrk --- was " Andrew Staniszewski
1994-06-14 11:36 ` Eric Werme
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox