[gnu.g++.bug] Bug in installation instructions.

pardo@JUNE.CS.WASHINGTON.EDU (05/11/89)

The file .../g++-include/stdio.h must be updated on a
machine-by-machine basis.  On *some* machines, the directive at line
55 of 1.35.2's stdio.h is simply wrong.

    #define SPRINTF_RETURNS_INT

It should be commented out.

I did not see particular warnings about this in the installation
guide.  In general, the preferred practice is that when no machine is
provided for machine-dependent code, the code will fail to compile.
IMHO, stdio's willingness to compile incorrectly is a bug.

The installation scripts could take care of patching up the .h files
to match the machine type, or the .h files should barf when they are
used the first time, or there should be a big red WARNING label in the
instructions (there might be one and I just missed it).

I can immagine a machine-dependent `profile':

    stdio.h:#define HAVE_BUFSIZE
    stdio.h:/* #define SPRINTF_RETURNS_INT */

and a magic comment in the .h file

    /*! patch */

and finally a `patchincludes' script that applies the correct
(machine-dependent) profile to each .h file at installation.

	;-D on  ( Soon: instructions for bug installation )  Pardo

schmidt@zola.ics.uci.edu (Doug Schmidt) (05/11/89)

In article <8905110006.AA18733@june.cs.washington.edu> pardo@JUNE.CS.WASHINGTON.EDU writes:
++ I can immagine a machine-dependent `profile':
++ 
++     stdio.h:#define HAVE_BUFSIZE
++     stdio.h:/* #define SPRINTF_RETURNS_INT */
++ 
++ and a magic comment in the .h file
++ 
++     /*! patch */
++ 
++ and finally a `patchincludes' script that applies the correct
++ (machine-dependent) profile to each .h file at installation.

What we really need is a super-duper config program like the one that
Larry Wall supplies with PERL.  Any body out there know how to use
meta-config?  Anyone want to volunteer to supply this for g++ and
libg++?!

   Doug        
--
On a clear day, under blue skies, there is no need to seek.
And asking about Buddha                +------------------------+
Is like proclaiming innocence,         | schmidt@ics.uci.edu    |
With loot in your pocket.              | office: (714) 856-4043 |