This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sysdep.h:stpcpy change caused build error in autotester


On Wed, May 04, 2005 at 04:13:15PM -0700, H. J. Lu wrote:
> On Thu, May 05, 2005 at 12:58:42AM +0200, Hans-Peter Nilsson wrote:
> > Namely:
> > 
> > /bin/sh /h/hp/binutils/cvs_latest/src/bfd/../move-if-change bfd-tmp.h bfd.h
> > rm -f bfd-tmp.h
> > touch stmp-bfd-h
> > /bin/sh ./libtool --mode=compile /n/asic/slask/hp/gcc32/p/bin/gcc -DHAVE_CONFIG_H -I. -I/h/hp/binutils/cvs_latest/src/bfd -I. -D_GNU_SOURCE     -I. -I/h/hp/binutils/cvs_latest/src/bfd -I/h/hp/binutils/cvs_latest/src/bfd/../include  -I/h/hp/binutils/cvs_latest/src/bfd/../intl -I../intl   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o archive.lo /h/hp/binutils/cvs_latest/src/bfd/archive.c
> > /n/asic/slask/hp/gcc32/p/bin/gcc -DHAVE_CONFIG_H -I. -I/h/hp/binutils/cvs_latest/src/bfd -I. -D_GNU_SOURCE -I. -I/h/hp/binutils/cvs_latest/src/bfd -I/h/hp/binutils/cvs_latest/src/bfd/../include -I/h/hp/binutils/cvs_latest/src/bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c /h/hp/binutils/cvs_latest/src/bfd/archive.c -o archive.o
> > In file included from /h/hp/binutils/cvs_latest/src/bfd/archive.c:131:
> > /h/hp/binutils/cvs_latest/src/bfd/sysdep.h:129: parse error before "__extension__"
> > make[3]: *** [archive.lo] Error 1
> > 
> > I'll investigate and likely fix as obvious.
> > 
> 
> I have no problem. Can you try this?

If the macro is in scope but the decl isn't, something's mighty wrong
with system headers.  BFD is building with -D_GNU_SOURCE; did the
configure check run with -D_GNU_SOURCE?

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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