Re: glib install problems



Valdis Kletnieks vt edu wrote:
On Wed, 07 Apr 2004 05:12:47 EDT, Anthony DiSante said:


*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.


Any ideas how to fix that?


Step 1: See the file config.log.

Step 2: If that doesn't make it clear what the problem is, post the relevant
part of the config.log so we can actually see what its issue is...

Please reply to the list, not to me AND the list.  I don't need two copies.

The config.log doesn't make anything particularly clear to me. Obviously some vars that should be getting declared aren't. But that's more of a symptom than the problem. In any event, I can't determine from that how to fix anything. Here's the pertinent bit:


configure:21622: checking for GLIB - version >= 2.4.0
configure:21771: result: no
configure:21804: gcc -o conftest -g -O2 -Wall    conftest.c   >&5
conftest.c:27:18: glib.h: No such file or directory
conftest.c: In function `main':
conftest.c:33: `glib_major_version' undeclared (first use in this function)
conftest.c:33: (Each undeclared identifier is reported only once
conftest.c:33: for each function it appears in.)
conftest.c:33: `glib_minor_version' undeclared (first use in this function)
conftest.c:33: `glib_micro_version' undeclared (first use in this function)
configure:21810: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "pango"
| #define PACKAGE_TARNAME "pango"
| #define PACKAGE_VERSION "1.4.0"
| #define PACKAGE_STRING "pango 1.4.0"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=pango";
| #define PACKAGE "pango"
| #define VERSION "1.4.0"
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #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_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_X 1
| /* end confdefs.h.  */
|
| #include <glib.h>
| #include <stdio.h>
|
| int
| main ()
| {
| return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
|   ;
|   return 0;
| }
configure:21854: error:
*** Glib 2.4.0 or better is required. The latest version of
*** Glib is always available from ftp://ftp.gtk.org/.


-Anthony
http://nodivisions.com/
Please reply to the list, not to me, and not to me+list.



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