This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Probable egcs-1.1b problem


Wojtek Slusarczyk <wojtek@SHADOW.EU.ORG> writes:

> Always I get an error similar to this (from mount-2.8):

> gcc -c -Wall -Wstrict-prototypes -Wmissing-prototypes -O3 -DHAVE_NFS mount.c
> mount.c:1129: elements of array `longopts' have incomplete type
> mount.c:1131: warning: excess elements in struct initializer after `longopts[0]'
> ....................................
> mount.c:1145: invalid use of undefined type `struct option'

> Is this an egcs problem?

Nope, it's caused by a modification in glibc: `struct option' is only
defined #ifdef _GNU_SOURCE (sp?).  So configure with
CPPFLAGS=-D_GNU_SOURCE until these packages are updated so as to
define _GNU_SOURCE by themselves.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]