Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cbmvax!amix!ag From: ag@amix.commodore.com (Keith Gabryelski) Newsgroups: comp.unix.amiga Subject: Re: stdio.h incompatibility? Message-ID: <2712@amix.commodore.com> Date: 21 Jun 91 00:05:39 GMT References: <1991Jun17.101219@cs.utwente.nl> Organization: Commodore-Amiga Unix Development Lines: 30 devisser@cs.utwente.nl (Jan de Visser) writes: > When trying to install g++ on my Amiga 3000UX, it complained that a > FILE does not have a _bufsize field. I examined stdio.h, where FILE > is defined, and what do you think? No _bufsize! (strange eh :-). > [...] > What is the reason for this incompatibility? What to do to solve it? First, g++ should not be relying on non-portable features of some stdio implementations. I suspect, if you look hard, you will find some way around this. _bufsize could *probably* be emulated by the `_bufsiz' macro in the SVR4 implementation but I make no claims that it will actually do what you want. It would be better to fix the code in question then to add another non-portable hack. We have a compiled g++ here (but the executable doesn't do anything that interesting yet). > Are there more of this kind of incompatibilties? Yes. On a SUN4 running SunOS 4.0.3c the 42nd byte of the program `/bin/cat' is `03' on Amiga Unix Release 1.1 it is `00'. Don't rely on this! :-) Pax, Keith -- Keith Gabryelski Advanced Products Group ag@amix.commodore.com ...!cbmvax!amix!ag