Bug 11278 - Build errors in gdb 7.0.1 on Mac OSX
Summary: Build errors in gdb 7.0.1 on Mac OSX
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: build (show other bugs)
Version: 7.0
: P2 normal
Target Milestone: 7.1
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-13 05:55 UTC by Jonathan Nichols
Modified: 2010-08-28 16:36 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Nichols 2010-02-13 05:55:03 UTC
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.
Comment 1 Pedro Alves 2010-08-28 16:36:51 UTC
This was a intl/gettext bug, fixed in 2009-10-15.