public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: edesousa@bankofcanada.ca
To: gcc-gnats@gcc.gnu.org
Subject: preprocessor/10715: gcc 3.2.3 types.h does not define blksize_t
Date: Fri, 09 May 2003 16:46:00 -0000	[thread overview]
Message-ID: <20030509164200.25026.qmail@sources.redhat.com> (raw)


>Number:         10715
>Category:       preprocessor
>Synopsis:       gcc 3.2.3 types.h does not define blksize_t
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 09 16:46:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Eurico de Sousa/Bank of Canada
>Release:        3.2.3
>Organization:
>Environment:
SunOS asd01500 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Blade-100
>Description:
The following C code:

#include <sys/stat.h>
int main()
{
  printf("Done\n");
}

gives the following results when running gcc -v -H cpptest2.c -o aa:

Reading specs from /apps/asd/unix/gnu/gcc/3.2.3/install/lib/gcc-lib/sparc-sun-solaris2.6/3.2.3/specs
Configured with: ../gcc-3.2.3/configure --prefix=/apps/asd/unix/gnu/gcc/3.2.3/install
Thread model: posix
gcc version 3.2.3
 /apps/asd/unix/gnu/gcc/3.2.3/install/lib/gcc-lib/sparc-sun-solaris2.6/3.2.3/cc1 -lang-c -v -iprefix /apps/asd/unix/gnu/gcc/3.2.3/SunOS5.8/lib/gcc-libsparc-sun-solaris2.6/3.2.3/ -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=3 -D__GXX_ABI_VERSION=102 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__PRAGMA_REDEFINE_EXTNAME -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__PRAGMA_REDEFINE_EXTNAME -D__sparc -D__sun -D__unix -Asystem=unix -Asystem=svr4 -D__NO_INLINE__ -D__STDC_HOSTED__=1 -H -D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc cpptest2.c -quiet -dumpbase cpptest2.c -version -o /var/tmp//ccKhMJX2.s
GNU CPP version 3.2.3 (cpplib) (sparc ELF)
GNU C version 3.2.3 (sparc-sun-solaris2.6)
        compiled by GNU C version 3.2.3.
ignoring nonexistent directory "/apps/asd/unix/gnu/gcc/3.2.3/SunOS5.8/lib/gcc-libsparc-sun-solaris2.6/3.2.3/include"
ignoring nonexistent directory "/apps/asd/unix/gnu/gcc/3.2.3/SunOS5.8/lib/gcc-libsparc-sun-solaris2.6/3.2.3/../../../../sparc-sun-solaris2.6/include"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/apps/asd/unix/gnu/gcc/3.2.3/install/sparc-sun-solaris2.6/include"
#include "..." search starts here:
#include <...> search starts here:
 /apps/asd/unix/gnu/gcc/3.2.3/install/include
 /apps/asd/unix/gnu/gcc/3.2.3/install/lib/gcc-lib/sparc-sun-solaris2.6/3.2.3/include
 /usr/include
End of search list.
. /usr/include/sys/stat.h
.. /usr/include/sys/feature_tests.h
... /usr/include/sys/isa_defs.h
.. /apps/asd/unix/gnu/gcc/3.2.3/install/lib/gcc-lib/sparc-sun-solaris2.6/3.2.3/include/sys/types.h
... /usr/include/sys/machtypes.h
... /usr/include/sys/int_types.h
... /usr/include/sys/select.h
.... /usr/include/sys/time.h
..... /apps/asd/unix/gnu/gcc/3.2.3/install/lib/gcc-lib/sparc-sun-solaris2.6/3.2.3/include/sys/types.h
..... /usr/include/time.h
...... /usr/include/iso/time_iso.h
...... /usr/include/sys/time_impl.h
..... /usr/include/sys/select.h
In file included from cpptest2.c:1:
/usr/include/sys/stat.h:258: syntax error before "blksize_t"
/usr/include/sys/stat.h:262: syntax error before '}' token
/usr/include/sys/stat.h:318: syntax error before "blksize_t"
/usr/include/sys/stat.h:319: conflicting types for `st_blocks'
/usr/include/sys/stat.h:259: previous declaration of `st_blocks'
/usr/include/sys/stat.h:322: syntax error before '}' token
.. /usr/include/sys/stat_impl.h

The default /usr/include/sys/types.h (included in stat.h), defines blksize_t.
GCC 3.2.3 (as well as 3.0.1 but not 2.95.2) includes its own types.h but it does NOT define blksize_t.

Client waiting for fix. Please let me know when this will be addressed.

Thank you.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2003-05-09 16:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-09 16:46 edesousa [this message]
2003-05-13 16:16 Eurico de Sousa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030509164200.25026.qmail@sources.redhat.com \
    --to=edesousa@bankofcanada.ca \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).