This is the mail archive of the
mailing list for the GCC project.
Re: Patch: tfformat.c doesn't compile under hpux 10.20
- To: law at cygnus dot com
- Subject: Re: Patch: tfformat.c doesn't compile under hpux 10.20
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Mon, 11 Sep 2000 14:48:34 -0400 (EDT)
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
> In message <200009111654.MAA26451@hiauly1.hia.nrc.ca>you write:
> > This patch fixes a problem compiling the test program tfformat.c under
> > hpux 10.20. The include of stdlib.h has been removed because under hpux
> > it results in the inclusion of stdio.h. The definitions in stdio.h
> > conflict with those in iostdio.h.
> > The header stdlib.h was included for `exit'. The single use of exit in
> > the program has been changed to a return. Tested under hpux and i686
> > linux.
> I must have missed the original thread. What definitions conflict and is
> it possible to fix the conflict?
The original thread was "libio testsuite: timeout compiling tFile.cc". Bundled
with the patches to work around the timeout was a patch to fix the compile
problem for tfformat.
This problem was created by the following patch:
2000-05-23 Zack Weinberg <email@example.com>
* tfformat.c: Include stdlib.h.
Here is a sample of the conflicts:
Executing on host: /xxx/gnu/gcc-2.96/objdir/gcc/xgcc -B/xxx/gnu/gcc-2.96/objdir/gcc/ ../../../../libio/testsuite/../tests/tfformat.c -O3 -I.. -I../../../../libio/testsuite/.. -DTEST_LIBIO -DTEST_EXACTNESS -L/xxx/gnu/gcc-2.96/objdir/hppa1.
1-hp-hpux10.20/threads/libio -L/xxx/gnu/gcc-2.96/objdir/hppa1.1-hp-hpux10.20/threads/libio -L/xxx/gnu/gcc-2.96/objdir/hppa1.1-hp-hpux10.20/threads/libiberty -g -lio -liberty -lm -threads -o /xxx/gnu/gcc-2.96/objdir/hppa1.1-hp-hpux10.20/libio/testsuite/tfformat (timeout = 300)
In file included from /usr/include/pwd.h:74,^M
/xxx/gnu/gcc-2.96/objdir/gcc/include/stdio.h:69:33: warning: "_IOFBF" redefined^M
../../../../libio/iostdio.h:47:1: warning: this is the location of the previous definition^M
/xxx/gnu/gcc-2.96/objdir/gcc/include/stdio.h:72:33: warning: "_IONBF" redefined^M
../../../../libio/iostdio.h:49:1: warning: this is the location of the previous definition^M
/xxx/gnu/gcc-2.96/objdir/gcc/include/stdio.h:76:33: warning: "_IOLBF" redefined^M
../../../../libio/iostdio.h:48:1: warning: this is the location of the previous definition^M
I don't believe that the conflicts can be eliminated because the header
iostdio.h is supposed to define "a stdio-like environment".
J. David Anglin firstname.lastname@example.org
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)