This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

[Bug build/13121] New: GDB HEAD 2011-08-23 does not build on AIX 5.3without --enable-werror=no


http://sourceware.org/bugzilla/show_bug.cgi?id=13121

             Bug #: 13121
           Summary: GDB HEAD 2011-08-23 does not build on AIX 5.3 without
                    --enable-werror=no
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
        AssignedTo: unassigned@sourceware.org
        ReportedBy: chris.january@allinea.com
    Classification: Unclassified


Without passing --enable-werror=no to configure the build fails here:

make[4]: Entering directory
`/home/cjanuary/code/patches/tarball/build-gdb-cvs-aix-53-ppc64/bfd'
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../../src/bfd -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE -DAIX_CORE 
-DAIX_WEAK_SUPPORT -I. -I../../src/bfd -I../../src/bfd/../include 
-DHAVE_rs6000coff_vec -DHAVE_aix5coff64_vec -I./../intl
-DBINDIR='"/usr/local/bin"'  -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wshadow -Werror -g -O2 -MT reloc.lo -MD -MP -MF .deps/reloc.Tpo -c -o reloc.lo
../../src/bfd/reloc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src/bfd -DAIX_5_CORE
-DAIX_CORE_DUMPX_CORE -DAIX_CORE -DAIX_WEAK_SUPPORT -I. -I../../src/bfd
-I../../src/bfd/../include -DHAVE_rs6000coff_vec -DHAVE_aix5coff64_vec
-I./../intl -DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Werror -g -O2 -MT reloc.lo -MD -MP -MF
.deps/reloc.Tpo -c ../../src/bfd/reloc.c -o reloc.o
cc1: warnings being treated as errors
../../src/bfd/reloc.c: In function 'bfd_generic_lookup_section_flags':
../../src/bfd/reloc.c:6127: warning: declaration of 'finfo' shadows a global
declaration
/usr/include/unistd.h:937: warning: shadowed declaration is here
make[4]: *** [reloc.lo] Error 1

The line in unistd.h:

        extern int      ffinfo(int, int, void *, int32long64_t);

and the line in reloc.c:

void
bfd_generic_lookup_section_flags (struct bfd_link_info *info ATTRIBUTE_UNUSED,
                                  struct flag_info *finfo)

Obviously this warning can be ignored. Either configure needs to suppress the
warning or not enable -Werror on AIX.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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