public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/11278] New: Build errors in gdb 7.0.1 on Mac OSX
@ 2010-02-13  5:55 jnichols at alumni dot princeton dot edu
  2010-08-28 16:36 ` [Bug build/11278] " pedro at codesourcery dot com
  0 siblings, 1 reply; 2+ messages in thread
From: jnichols at alumni dot princeton dot edu @ 2010-02-13  5:55 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug build/11278] Build errors in gdb 7.0.1 on Mac OSX
  2010-02-13  5:55 [Bug build/11278] New: Build errors in gdb 7.0.1 on Mac OSX jnichols at alumni dot princeton dot edu
@ 2010-08-28 16:36 ` pedro at codesourcery dot com
  0 siblings, 0 replies; 2+ messages in thread
From: pedro at codesourcery dot com @ 2010-08-28 16:36 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From pedro at codesourcery dot com  2010-08-28 16:36 -------
This was a intl/gettext bug, fixed in 2009-10-15.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-28 16:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-13  5:55 [Bug build/11278] New: Build errors in gdb 7.0.1 on Mac OSX jnichols at alumni dot princeton dot edu
2010-08-28 16:36 ` [Bug build/11278] " pedro at codesourcery dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).