gengenrtl needs to link with libintl
John David Anglin
dave@hiauly1.hia.nrc.ca
Tue Oct 30 11:36:00 GMT 2001
> As a wild guess, your problem is this chunk of obstack.o:
>
> /* Define the error handler. */
> #ifndef _
> # ifdef HAVE_LIBINTL_H
> # include <libintl.h>
> # ifndef _
> # define _(Str) gettext (Str)
> # endif
> # else
> # define _(Str) (Str)
> # endif
> #endif
Your guess was bang on. This patch resolves the problem. Would this
approach be ok as a permanent solution?
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2001-10-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
* obstack.c (_): Don't use gettext for error handler when
GENERATOR_FILE is defined.
--- obstack.c.orig Fri Dec 29 14:37:03 2000
+++ obstack.c Tue Oct 30 13:14:50 2001
@@ -451,7 +451,7 @@
/* Define the error handler. */
#ifndef _
-# ifdef HAVE_LIBINTL_H
+# if ! defined (GENERATOR_FILE) && defined (HAVE_LIBINTL_H)
# include <libintl.h>
# ifndef _
# define _(Str) gettext (Str)
More information about the Gcc-bugs
mailing list