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/11278] New: Build errors in gdb 7.0.1 on Mac OSX


I'm getting numerous instances of this when I try to compile gdb 7.0.1 on Mac
OSX 10.6.2 running Xcode tools 3.2.1 (gcc version 4.2.1 (Apple Inc. build 5646):

warning: format not a string literal, argument types not checked

since -Werror is set, the build fails.

Here is an example of the warning/error from ppc-dis.c:

  fprintf (stream, _("\n\
The following PPC specific disassembler options are supported for use with\n\
the -M switch:\n"));

The preprocessor spits this out:

  fprintf (stream, libintl_dgettext ("opcodes", "\nThe following PPC specific
disassembler options are supported for use with\nthe -M switch:\n"));

The build appears to fail when there are no arguments in the va_list when the _(
) macro is used.  Not sure why it doesn't fail when there are arguments in the
va_list.

-- 
           Summary: Build errors in gdb 7.0.1 on Mac OSX
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: jnichols at alumni dot princeton dot edu
                CC: gdb-prs at sourceware dot org


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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