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

Re: need more help compiling from CVS



Le dim, jui 29, 2001, à 09:03:35 -0700, Andrew S . Halper a écrit:

> This looks suspicious:
> 
> [ashalper@rocket app]$ strings /lib/libnsl-2.2.2.so | grep dcgettext
> __dcgettext
> dcgettext
> [ashalper@rocket app]$ 


> and on line 19756 of preferences.i (i.e. the preprocessor output of
> preferences.c):
> 
>     message_error((__extension__ ({ char *__result; if (__builtin_constant_p
> ("Could not open `%s' for writing")) { static char *__translation__; static int
> __catalog_counter__; if (! __translation__ || __catalog_counter__ !=
> _nl_msg_cat_cntr) { __translation__ = dcgettext__ (((void *)0), "Could not open
> `%s' for writing", __LC_MESSAGES); __catalog_counter__ = _nl_msg_cat_cntr; }
> __result = __translation__; } else __result = dcgettext__ (((void *)0), "Could
> not open `%s' for writing", __LC_MESSAGES); __result; })), filename);

I get this:
    message_error(dcgettext ( ((void *)0)  ,     "Could not open %s' for writing"   , __LC_MESSAGES )   , filename);
    g_free(filename);
    return;

stracing through the pre-processor, it looks like on my system,
../lib/intl.h and /usr/include/libintl.h are read, while intl/gettextP.h is
not. 

> It kind of looks like maybe a macro somewhere should be calling dcgettext
> (prototyped in /usr/include/libintl.h) instead of dcgettext__ ?

Which libintl.h is included ? 
what is the status of the following variables (as defined by config.h):
	* ENABLE_NLS
	* GNOME
	* HAVE_DCGETTEXT
	* HAVE_GETTEXT

In your top-level (generated) Makefile and in app/Makefile, what is the value of INTLOBJS ?
Does it help to apply this patch:

--- app/Makefile.am.orig        Mon Jul 30 10:15:51 2001
+++ app/Makefile.am     Mon Jul 30 10:17:04 2001
@@ -148,15 +148,15 @@
 
 dia_LDADD = ../lib/libdia.a \
        $(EFENCE) \
-       $(APP_LIBS) $(XML_LIBS) $(GTK_LIBS) $(INTLLIBS) $(GNOME_LIBS) \
+       $(APP_LIBS) $(XML_LIBS) $(GTK_LIBS) $(GNOME_LIBS) \
        $(LIBART_LIBS) $(PNG_LIBS) $(GDK_PIXBUF_LIBS) $(FREETYPE_LIBS) \
-       $(UNICODE_LIBS)
+       $(UNICODE_LIBS)  $(INTLLIBS) $(INTLOBJS)
 
 diaconv_LDADD = ../lib/libdia.a \
        $(EFENCE) \
-       $(APP_LIBS) $(XML_LIBS) $(GTK_LIBS) $(INTLLIBS) $(GNOME_LIBS) \
+       $(APP_LIBS) $(XML_LIBS) $(GTK_LIBS) $(GNOME_LIBS) \
        $(LIBART_LIBS) $(PNG_LIBS) $(GDK_PIXBUF_LIBS) $(FREETYPE_LIBS) \
-       $(UNICODE_LIBS)
+       $(UNICODE_LIBS) $(INTLLIBS) $(INTLOBJS)
 
 ## Bonobo embeddable dia. Commented out, because it's a bit raw.
 ## Especially the configure/make parts.


What result gives configuring with --with-included-gettext and
--without-included-gettext ?

I'm a banging a bit in all the walls I can see, because this problem is
above my comprehension (yes, these autotools can be tricky sometimes)

	-- Cyrille

-- 
Grumpf.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] Mail converted by Mofo Magic and the Flying D

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

GuideSMACK