This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11853] long enum constant name results in an error
- From: "agri at desnol dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Aug 2003 12:57:14 -0000
- Subject: [Bug c/11853] long enum constant name results in an error
- References: <20030808104734.11853.agri@desnol.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11853
agri at desnol dot ru changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed| |1
------- Additional Comments From agri at desnol dot ru 2003-08-08 12:57 -------
the options given when GCC was configured/built:
#!/bin/sh
# This file was generated automatically by configure. Do not edit.
# This directory was configured as follows:
./configure --with-gcc-version-trigger=/home/agri/cmpl/gcc-3.3/gcc/version.c
--host=i686-pc-linux-gnu --prefix=/usr --enable-threads --with-cpu=i686
--disable-nls --norecursion
# using "mt-frag"
the complete command line that triggers the bug and output:
> gcc -O2 -I. -DHAVE_CONFIG_H -c ./pcap-snoop.c
In file included from pcap-snoop.c:40:
/usr/include/netinet/in.h:70: error: parse error before numeric constant
pcap-snoop.c: In function `pcap_read':
pcap-snoop.c:88: error: dereferencing pointer to incomplete type
pcap-snoop.c:90: error: invalid use of undefined type `struct snoopheader'
pcap-snoop.c:96: error: dereferencing pointer to incomplete type
pcap-snoop.c:97: error: dereferencing pointer to incomplete type
pcap-snoop.c: In function `pcap_stats':
pcap-snoop.c:110: error: storage size of `rawstats' isn't known
pcap-snoop.c:113: error: dereferencing pointer to incomplete type
pcap-snoop.c:113: error: dereferencing pointer to incomplete type
pcap-snoop.c:113: error: dereferencing pointer to incomplete type
pcap-snoop.c:113: error: dereferencing pointer to incomplete type
pcap-snoop.c:113: error: dereferencing pointer to incomplete type
pcap-snoop.c:113: error: dereferencing pointer to incomplete type
pcap-snoop.c:114: error: `SIOCRAWSTATS' undeclared (first use in this function)
pcap-snoop.c:114: error: (Each undeclared identifier is reported only once
pcap-snoop.c:114: error: for each function it appears in.)
pcap-snoop.c:134: error: dereferencing pointer to incomplete type
pcap-snoop.c:134: error: dereferencing pointer to incomplete type
pcap-snoop.c:135: error: dereferencing pointer to incomplete type
pcap-snoop.c:135: error: dereferencing pointer to incomplete type
pcap-snoop.c: In function `pcap_open_live':
pcap-snoop.c:151: error: storage size of `sr' isn't known
pcap-snoop.c:152: error: storage size of `sf' isn't known
pcap-snoop.c:166: error: `PF_RAW' undeclared (first use in this function)
pcap-snoop.c:166: error: `RAWPROTO_SNOOP' undeclared (first use in this function)
pcap-snoop.c:174: error: `AF_RAW' undeclared (first use in this function)
pcap-snoop.c:182: error: `SIOCADDSNOOP' undeclared (first use in this function)
pcap-snoop.c:267: error: `SIOCSNOOPLEN' undeclared (first use in this function)
pcap-snoop.c:274: error: `SIOCSNOOPING' undeclared (first use in this function)