Re: Configuration problem under woody



>From config.log:
> /usr/lib/libglib.so: undefined reference to `getpwuid_r@@GLIBC_2.0'

Looks like a problem with your glibc, perhaps you need to upgrade it?

On 2000-11-29 16:51:15 +0000 Oliver White wrote:
> Hi there folks. I'm trying to install the tar.gz of balsa 1.0.0 on a
> debian(woody) i386 system. I'm getting this error when running
> ./configure -
> 
> checking for GLIB - version >= 1.2.0... no
> *** 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 was incorrectly
> installed
> *** or that you have moved GLIB since it was installed. In the latter
> case, you
> *** may want to edit the glib-config script: /usr/bin/glib-config
> configure: error: You need GLib installed -- GNOME requires this as
> well.
> 
> However, I do have the package libglib1.2-dev installed. A gentleman,
> 'Robert', on #gnome suggested it might be a conflict with libraries
> downloaded from ftp.debian.org. However, the helix glib packages have
> the same problem.
> 
> I've attatched the log of the configuration process.
> 
> --
> Oliver White
> 
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:640: checking for a BSD compatible install
> configure:693: checking whether build environment is sane
> configure:750: checking whether make sets ${MAKE}
> configure:796: checking for working aclocal
> configure:809: checking for working autoconf
> configure:822: checking for working automake
> configure:835: checking for working autoheader
> configure:848: checking for working makeinfo
> configure:863: checking whether to enable maintainer-specific portions of
> Makefiles
> configure:903: checking for gcc
> configure:1016: checking whether the C compiler (gcc -L/usr/local/lib )
> works
> configure:1032: gcc -o conftest -L/usr/local/lib -L/usr/local/lib 
> conftest.c  1>&5
> configure:1058: checking whether the C compiler (gcc -L/usr/local/lib )
> is a cross-compiler
> configure:1063: checking whether we are using GNU C
> configure:1072: gcc -E conftest.c
> configure:1091: checking whether gcc accepts -g
> configure:1123: checking for POSIXized ISC
> configure:1197: checking for glib-config
> configure:1232: checking for GLIB - version >= 1.2.0
> configure:1331: gcc -o conftest -L/usr/local/lib -I/usr/lib/glib/include
> -D_REENTRANT -L/usr/local/lib  conftest.c -L/usr/lib -lgthread -lglib
> -lpthread  1>&5
> /usr/lib/libglib.so: undefined reference to `getpwuid_r@@GLIBC_2.0'
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 1255 "configure"
> #include "confdefs.h"
> 
> #include <glib.h>
> #include <stdio.h>
> #include <stdlib.h>
> 
> int 
> main ()
> {
>   int major, minor, micro;
>   char *tmp_version;
> 
>   system ("touch conf.glibtest");
> 
>   /* HP/UX 9 (%@#!) writes to sscanf strings */
>   tmp_version = g_strdup("1.2.0");
>   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
>      printf("%s, bad version string\n", "1.2.0");
>      exit(1);
>    }
> 
>   if ((glib_major_version != 1) ||
>       (glib_minor_version != 2) ||
>       (glib_micro_version != 8))
>     {
>       printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB
> (%d.%d.%d)\n", 
>              1, 2, 8,
>              glib_major_version, glib_minor_version, glib_micro_version);
>       printf ("*** was found! If glib-config was correct, then it is
> best\n");
>       printf ("*** to remove the old version of GLIB. You may also be
> able to fix the error\n");
>       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable,
> or by editing\n");
>       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if
> that is\n");
>       printf("*** required on your system.\n");
>       printf("*** If glib-config was wrong, set the environment variable
> GLIB_CONFIG\n");
>       printf("*** to point to the correct copy of glib-config, and remove
> the file config.cache\n");
>       printf("*** before re-running configure\n");
>     } 
>   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
> 	   (glib_minor_version != GLIB_MINOR_VERSION) ||
>            (glib_micro_version != GLIB_MICRO_VERSION))
>     {
>       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
> 	     GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
>       printf("*** library (version %d.%d.%d)\n",
> 	     glib_major_version, glib_minor_version, glib_micro_version);
>     }
>   else
>     {
>       if ((glib_major_version > major) ||
>         ((glib_major_version == major) && (glib_minor_version > minor))
> ||
>         ((glib_major_version == major) && (glib_minor_version == minor)
> && (glib_micro_version >= micro)))
>       {
>         return 0;
>        }
>      else
>       {
>         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
>                glib_major_version, glib_minor_version,
> glib_micro_version);
>         printf("*** You need a version of GLIB newer than %d.%d.%d. The
> latest version of\n",
> 	       major, minor, micro);
>         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
>         printf("***\n");
>         printf("*** If you have already installed a sufficiently new
> version, this error\n");
>         printf("*** probably means that the wrong copy of the glib-config
> shell script is\n");
>         printf("*** being found. The easiest way to fix this is to remove
> the old version\n");
>         printf("*** of GLIB, but you can also set the GLIB_CONFIG
> environment to point to the\n");
>         printf("*** correct copy of glib-config. (In this case, you will
> have to\n");
>         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or
> edit /etc/ld.so.conf\n");
>         printf("*** so that the correct libraries are found at
> run-time))\n");
>       }
>     }
>   return 1;
> }
> 
> configure:1375: gcc -o conftest -L/usr/local/lib -I/usr/lib/glib/include
> -D_REENTRANT -L/usr/local/lib  conftest.c  -L/usr/lib -lgthread -lglib
> -lpthread 1>&5
> /usr/lib/libglib.so: undefined reference to `getpwuid_r@@GLIBC_2.0'
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 1365 "configure"
> #include "confdefs.h"
> 
> #include <glib.h>
> #include <stdio.h>
> 
> int main() {
>  return ((glib_major_version) || (glib_minor_version) ||
> (glib_micro_version)); 
> ; return 0; }
> 



-- 
Ian Campbell
Churchill College, Cambridge.




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