Re: AIX glib compile error message "gettext not found"



After doing what Daniel asked me to do (setting environment variables), configure went a few steps further but again gave the same error:
 
checking for perl... /usr/bin/perl
checking for iconv_open... no
checking for libiconv_open in -liconv... no
checking for iconv_open in -liconv... yes
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for dgettext in libc... no
checking for bindtextdomain in -lintl... no
checking if -liconv is needed to use gettext...
checking f or dcgettext in -lintl... no
configure: error:
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
 
When I look at the configure.log file, following are the final few entries in it. I'm putting them here in the hope that someone might be able to decipher what's going on. Any help would really be appreciated:
 

configure:6318: checking for bindtextdomain in -lintl
configure:6348: cc -o conftest -I/usr/local/include -I/usr/local/include -L/usr/local/lib conftest.c -lintl   >&5
ld: 0711-317 ERROR: Undefined symbol: .libiconv_close
ld: 0711-317 ERROR: Undefined symbol: .libiconv_set_relocation_prefix
ld: 0711-317 ERROR: Undefined symbol: .libiconv_open
ld: 0711-317 ERROR: Undefined symbol: .libiconv
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
configure:6354: $? = 8
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "glib"
| #define PACKAGE_TARNAME "glib"
| #define PACKAGE_VERSION "2.5.1"
| #define PACKAGE_STRING "glib 2.5.1"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=glib"
| #define GLIB_MAJOR_VERSION 2
| #define GLIB_MINOR_VERSION 5
| #defin e GLIB_MICRO_VERSION 1
| #define GLIB_INTERFACE_AGE 0
| #define GLIB_BINARY_AGE 501
| #define G_COMPILED_WITH_DEBUGGING "yes"
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define _LARGE_FILES 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_LC_MESSAGES 1
| /* end confdefs.h.  */
|
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char bindtextdomain ();
| int
| main ()
| {
| bindtextdomain ();
|   ;
|   ; return 0;
| }
configure:6380: result: no
configure:6455: checking if -liconv is needed to use gettext
configure:6457: result:
configure:6459: checking for dcgettext in -lintl
configure:6489: cc -o conftest -I/usr/local/include -I/usr/local/include -L/usr/local/lib conftest.c -lintl -liconv  >&5
ld: 0711-317 ERROR: Undefined symbol: .libiconv_close
ld: 0711-317 ERROR: Undefined symbol: .libiconv_set_relocation_prefix
ld: 0711-317 ERROR: Undefined symbol: .libiconv_open
ld: 0711-317 ERROR: Undefined symbol: .libiconv
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
configure:6495: $? = 8
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "glib"
| #define PACKAGE_TARNAME "glib"
| #define PACKAGE_VERSION "2.5.1"
| #define PACKAGE_STRING "glib 2.5.1"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=glib"
| #define GLIB_MAJOR_VERSION 2
| #define GLIB_MINOR_VERSION 5
| #define GLIB_MICRO_VERSION 1
| #define GLIB_INTERFACE_AGE 0
| #define GLIB_BINARY_AGE 501
| #define G_COMPILED_WITH_DEBUGGING "yes"
| #ifdef __cplusplus
| void exit (int);
| #endif
| #define _LARGE_FILES 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_LC_MESSAGES 1
| /* end confdefs.h.  */
|
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char dcgettext ();
| int
| main ()
| {
| dcgettext ();
|   ;
|   return 0;
| }
configure:6521: result: no
configure:7154: error:
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
 
I'm really stuck here. I even tried to download the source for "gettext" and make/compile it locally (just in case the binary files that I have, might not be okay 100%), but when I run "make" (after successfully running configure), it'd hang the machine and would continue spawning new processes running "hostname"!! I have no idea why would that happen but didn't have time to investigate that further or problem-solve that on gettext development list. My concern is to be able to get glib on our machine so that we could start using it.
 
Thanks,
Salman
 
Daniel Nilsson wrote:
From: Daniel Nilsson <daniel oden homeip net>
To: gtk-list gnome org
Subject: Re: AIX glib compile error message "gettext not found"
Date: Tue, 17 Aug 2004 11:17:43 -0400
 
This is typically what I do, adjust if you are not using a csh variant.
setenv CFLAGS '-I/usr/local/include'
setenv LD_LIBRARY_PATH /usr/local/lib
setenv CPPFLAGS '-I/usr/local/include'
set path=( $path /usr/local/bin)

--
Daniel Nilsson

Salman Mohsin <ssmohsin yahoo com> wrote:
Hi,
 
I'm trying to compile glib on my AIX 4.3.3 machine. When I run "configure", it gives an error message after a few checks, saying:
 
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
configure: error:
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
The problem is, I have gettext installed on the machine. If I search for it, I can see that:
 
/usr/local/bin/glib-gettextize
/usr/local/bin/gettext
/usr/local/bin/gettext.sh
/usr/local/bin/gettextize
/usr/local/bin/ngettext
/usr/local/bin/xgettext
/usr/local/lib/gettext
/usr/local/lib/libgettextlib.la
/usr/local/lib/libgettextpo.a
/usr/local/lib/libgettextpo.la
/usr/local/lib/libgettextsrc.la
 
/usr/local/lib/libintl.a
/usr/local/lib/libintl.la
/usr/local/include/libintl.h
Now, how do I make configure see these?? Can someone please help me as I'm really stuck.
 
Thanks very much,
Salman


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