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

Re: need more help compiling from CVS



On 2001.07.30 01:18 Cyrille Chepelov wrote:

> 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 ? 

These are all the libintl.h includes in the preprocessor output:

[ashalper@rocket app]$ grep libintl preferences.i
# 1 "../intl/libintl.h" 1
# 33 "../intl/libintl.h"
# 34 "../intl/libintl.h" 2
# 37 "../intl/libintl.h" 2
# 72 "../intl/libintl.h"
# 94 "../intl/libintl.h"
# 141 "../intl/libintl.h"
[ashalper@rocket app]$ 

Is that what you needed?

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

[ashalper@rocket ~/dia]$ egrep "ENABLE_NLS|GNOME|HAVE_DCGETTEXT|HAVE_GETTEXT"
config.h
/* Define to enable GNOME-specific code. */
/* #undef GNOME */
/* #undef GNOME_PRINT */
#define HAVE_DCGETTEXT 1
#define ENABLE_NLS 1
#define HAVE_GETTEXT 1
[ashalper@rocket ~/dia]$ 

> In your top-level (generated) Makefile and in app/Makefile, what is the value
> of INTLOBJS ?

In both Makefiles, INTLOBJS does not have a value:

[ashalper@rocket ~/dia]$ grep INTLOBJS Makefile app/Makefile
Makefile:INTLOBJS = 
app/Makefile:INTLOBJS = 
[ashalper@rocket ~/dia]$ 

> Does it help to apply this patch:

Couldn't get the patch to go.  I'm probably running it wrong.  Is it just "patch
-p0 < patchfile" in the top-level directory or am I missing something?  Anyway I
applied it the low-tech way, and it looks like the same result:

preferences.o: In function `prefs_save':
/home/ashalper/dia/app/preferences.c:282: undefined reference to `dcgettext__'
preferences.o: In function `prefs_boolean_toggle':
/home/ashalper/dia/app/preferences.c:574: undefined reference to `dcgettext__'
/home/ashalper/dia/app/preferences.c:574: undefined reference to `dcgettext__'
preferences.o: In function `prefs_get_property_widget':
/home/ashalper/dia/app/preferences.c:585: undefined reference to `dcgettext__'
preferences.o: In function `prefs_create_dialog':
/home/ashalper/dia/app/preferences.c:659: undefined reference to `dcgettext__'
preferences.o:/home/ashalper/dia/app/preferences.c:682: more undefined
references to `dcgettext__' follow
collect2: ld returned 1 exit status
make[2]: *** [dia] Error 1
make[2]: Leaving directory `/home/ashalper/dia/app'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ashalper/dia'
make: *** [all-recursive-am] Error 2
[ashalper@rocket ~/dia]$ 

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

--with-included-gettext:

make[2]: Entering directory `/home/ashalper/dia/intl'
make[2]: *** No rule to make target `libintl.@l@a', needed by `all-yes'.  Stop.
make[2]: Leaving directory `/home/ashalper/dia/intl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ashalper/dia'
make: *** [all-recursive-am] Error 2
[ashalper@rocket ~/dia]$ 

--without-included-gettext:

Same `dcgettext__' linker error as above.

Andy






[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