bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/673] New: gprof build errors with --disable-nls, libintl s


From: hp at bitrange dot com
Subject: [Bug binutils/673] New: gprof build errors with --disable-nls, libintl symbols defined
Date: 16 Jan 2005 09:42:24 -0000

Building a combined tree of CVS binutils and gcc configured with
--disable-nls, I get this build error in gprof, cutnpasted
(gcc is gcc-2.95.2):

make[4]: Entering directory `/tmp/hptmp/obj/gprof'
gcc -DHAVE_CONFIG_H -I. -I/tmp/hptmp/combined/gprof -I. -D_GNU_SOURCE -DDEBUG
-I../bfd -I/tmp/hptmp/combined/gprof/../include -I/\
tmp/hptmp/combined/gprof/../bfd -I/tmp/hptmp/combined/gprof/../intl -I../intl
-I. -DLOCALEDIR="\"/usr/local/share/locale\""   -W \
-Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2  -c
/tmp/hptmp/combined/gprof/basic_blocks.c
In file included from /tmp/hptmp/combined/gprof/basic_blocks.c:24:
/tmp/hptmp/combined/gprof/../include/libiberty.h:80: warning: function
declaration isn't a prototype
In file included from /usr/include/locale.h:51,
                 from /tmp/hptmp/combined/gprof/gprof.h:62,
                 from /tmp/hptmp/combined/gprof/basic_blocks.c:25:
/usr/include/libintl.h:31: parse error before `const'
/usr/include/libintl.h:32: parse error before `const'
/usr/include/libintl.h:33: parse error before `const'
/usr/include/libintl.h:34: parse error before `while'
/usr/include/libintl.h:35: parse error before `while'
make[4]: *** [basic_blocks.o] Error 1
make[4]: Leaving directory `/tmp/hptmp/obj/gprof'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/hptmp/obj/gprof'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/hptmp/obj/gprof'
make[1]: *** [all-gprof] Error 2
make[1]: Leaving directory `/tmp/hptmp/obj'
make: *** [bootstrap] Error 2

Lines 31..35 of /usr/include/libintl.h look like this (cat -n):
    28  #define TEXTDOMAINMAX   256
    29  
    30  #ifdef __STDC__
    31  extern char *dcgettext(const char *, const char *, const int);
    32  extern char *dgettext(const char *, const char *);
    33  extern char *gettext(const char *);
    34  extern char *textdomain(const char *);
    35  extern char *bindtextdomain(const char *, const char *);
    36  

Questions arise:
Why is libintl.h included despite --disable-nls?
Why isn't the just-built gcc used?
Why did I use --disable-nls?

Oh, that last one's for me.  It's because the build fails earlier otherwise.
(I guess that means I should enter a PR for that too.)
PS. new bugzilla component needed: gprof

-- 
           Summary: gprof build errors with --disable-nls, libintl symbols
                    defined
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: hp at bitrange dot com
                CC: bug-binutils at gnu dot org
 GCC build triplet: sparc-sun-solaris2.8
  GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8


http://sources.redhat.com/bugzilla/show_bug.cgi?id=673

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]