This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Error
- From: Ian Lance Taylor <ian at airs dot com>
- To: "Robert McNulty Junior" <bmj2001 at bellsouth dot net>
- Cc: <binutils at sources dot redhat dot com>
- Date: 19 May 2003 21:37:01 -0700
- Subject: Re: Error
- References: <AIEHKGGEIBBKHJEFNDAHGEIDCAAA.bmj2001@bellsouth.net>
"Robert McNulty Junior" <bmj2001@bellsouth.net> writes:
> Cygwin, gcc 3.3 prerelease, binutils 2.14.90
> configure:
> ../bin/configure
>
> ...
>
> gcc -DHAVE_CONFIG_H -I. -I../../bin/binutils -I. -D_GNU_SOURCE -I. -I../../b
> > in/b
> >
> inutils -I../bfd -I../../bin/binutils/../bfd -I../../bin/binutils/../include
> > -I.
> >
> ./../bin/binutils/../intl -I../intl -DLOCALEDIR="\"/usr/local/share/locale\"
> > " -D
> >
> bin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wm
> > issi
> > ng-prototypes -g -O2 -c ../../bin/binutils/strings.c
> > In file included from ../../bin/binutils/strings.c:65:
> > ../../bin/include/getopt.h:116: warning: function declaration isn't a
> > prototype
> > ../../bin/binutils/strings.c:101: parse error before "file_off"
> > ../../bin/binutils/strings.c:101: warning: type defaults to `int' in
> > declaration
> > of `file_off'
Sorry for the slow reply.
Most likely cygwin provides fopen64, but does not define off64_t. I
don't run cygwin, but I do see that fopen64 was added March 9,
apparently as a synonym for fopen. However, off64_t does not appear
to be defined anywhere--only _off64_t is defined.
The binutils code assumes that any system which provides fopen64 will
define off64_t. Well, strings.c does, anyhow.
The fopen64 function is useless without the off64_t type. Therefore,
I think the correct fix is change cygwin to define that type, probably
in cygwin/types.h. You should take that up with the cygwin
maintainers.
Ian