Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Aug 2002 23:24:12 +0200
From:      =?ISO-8859-1?Q?Andreas_M=F6ller?= <andreas-moeller@gmx.net>
To:        freebsd-ports@freebsd.org
Cc:        gnome@freebsd.org, vanilla@freebsd.org
Subject:   gtk12 port build failure
Message-ID:  <3D4EECFC.7010502@gmx.net>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------010302050409030802020902
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hello,

I have been unable to compile GTK+ 1.2.10 from ports for some weeks now,
the build process stops each time with the following error message:

checking for glib-config... /usr/local/bin/glib12-config
checking for GLIB - version >= 1.2.8... 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/local/bin/glib12-config
configure: error:
*** GLIB 1.2.8 or better is required. The latest version of GLIB
*** is always available from ftp://ftp.gtk.org/.
===> Script "configure" failed unexpectedly.
Please report the problem to gnome@FreeBSD.org [maintainer] and attach
the "/usr/ports/x11-toolkits/gtk12/work/gtk+-1.2.10/config.log"
including
the output of the failure of your make command. Also, it might be
a good
idea to provide an overview of all packages installed on your system
(e.g. an `ls /var/db/pkg`).
*** Error code 1

GLIB 1.2.10 (glib-1.2.10_7) is already installed. config.log from gtk12 
compile attached.
This is on FreeBSD 4.6-STABLE, last time cvsup'ed on saturday.

		Andreas


PS: Please cc me on replies since I am not subscribed to this list.

--------------010302050409030802020902
Content-Type: text/plain;
 name="config.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="config.log"

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:661: checking for a BSD compatible install
configure:714: checking whether build environment is sane
configure:771: checking whether make sets ${MAKE}
configure:810: checking for working aclocal
configure:823: checking for working autoconf
configure:836: checking for working automake
configure:849: checking for working autoheader
configure:862: checking for working makeinfo
configure:957: checking host system type
configure:978: checking build system type
configure:998: checking for ranlib
configure:1028: checking for gcc
configure:1141: checking whether the C compiler (cc -O -pipe -march=pentium ) works
configure:1157: cc -o conftest -O -pipe -march=pentium -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure:1183: checking whether the C compiler (cc -O -pipe -march=pentium ) is a cross-compiler
configure:1188: checking whether we are using GNU C
configure:1197: cc -E conftest.c
configure:1216: checking whether cc accepts -g
configure:1259: checking for ld used by GCC
configure:1321: checking if the linker (/usr/libexec/elf/ld) is GNU ld
GNU ld version 2.11.2 20010719 [FreeBSD] (with BFD 2.11.2 20010719 [FreeBSD])
configure:1337: checking for BSD-compatible nm
configure:1373: checking whether ln -s works
ltconfig:603: checking for object suffix
ltconfig:604: cc -c -O -pipe -march=pentium -I/usr/local/include conftest.c 1>&5
ltconfig:629: checking for executable suffix
ltconfig:630: cc -o conftest -O -pipe -march=pentium -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
ltconfig:776: checking if cc PIC flag -fPIC works
ltconfig:777: cc -c -O -pipe -march=pentium -fPIC -DPIC -I/usr/local/include conftest.c 1>&5
ltconfig:829: checking if cc supports -c -o file.o
ltconfig:830: cc -c -O -pipe -march=pentium -o out/conftest2.o -I/usr/local/include conftest.c 1>&5
ltconfig:862: checking if cc supports -c -o file.lo
ltconfig:863: cc -c -O -pipe -march=pentium -c -o conftest.lo -I/usr/local/include conftest.c 1>&5
ltconfig:914: checking if cc supports -fno-rtti -fno-exceptions
ltconfig:915: cc -c -O -pipe -march=pentium -fno-rtti -fno-exceptions -c conftest.c -I/usr/local/include conftest.c 1>&5
ltconfig:958: checking if cc static flag -static works
ltconfig:959: cc -o conftest -O -pipe -march=pentium -I/usr/local/include  -static conftest.c -L/usr/local/lib 1>&5
GNU ld version 2.11.2 20010719 [FreeBSD] (with BFD 2.11.2 20010719 [FreeBSD])
ltconfig:1635: checking if global_symbol_pipe works
ltconfig:1636: cc -c -O -pipe -march=pentium -I/usr/local/include conftest.c 1>&5
ltconfig:1639: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ 	]\([ABCDGISTW]\)[ 	][ 	]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm"
ltconfig:1691: cc -o conftest -O -pipe -march=pentium -fno-builtin -fno-rtti -fno-exceptions -I/usr/local/include  conftest.c conftstm.o 1>&5
configure:1559: checking whether to enable maintainer-specific portions of Makefiles
configure:1589: checking host system type
configure:1705: checking whether build environment is sane
configure:1747: checking for gcc
configure:1860: checking whether the C compiler (cc -O -pipe -march=pentium ) works
configure:1876: cc -o conftest -O -pipe -march=pentium -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure:1902: checking whether the C compiler (cc -O -pipe -march=pentium ) is a cross-compiler
configure:1907: checking whether we are using GNU C
configure:1935: checking whether cc accepts -g
configure:1967: checking for POSIXized ISC
configure:1991: checking for cc option to accept ANSI C
configure:2044: cc  -c -O -pipe -march=pentium -I/usr/local/include conftest.c 1>&5
configure:2079: checking for a BSD compatible install
configure:2132: checking whether make sets ${MAKE}
configure:2189: checking for gawk
configure:2189: checking for mawk
configure:2189: checking for nawk
configure:2223: checking for perl5
configure:2257: checking for indent
configure:2294: checking whether make is GNU Make
configure:2312: checking how to run the C preprocessor
configure:2333: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
configure:2392: checking for ANSI C header files
configure:2405: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
configure:2472: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure:2496: checking for working const
configure:2550: cc -c -O -pipe -march=pentium -Wall -I/usr/local/include conftest.c 1>&5
configure: In function `main':
configure:2524: warning: unused variable `s'
configure:2544: warning: unused variable `foo'
configure:2512: warning: unused variable `zero'
configure:2506: warning: unused variable `x'
configure:2523: warning: `t' might be used uninitialized in this function
configure:2541: warning: `b' might be used uninitialized in this function
configure:2571: checking for inline
configure:2585: cc -c -O -pipe -march=pentium -Wall -I/usr/local/include conftest.c 1>&5
configure: In function `main':
configure:2581: warning: control reaches end of non-void function
configure: At top level:
configure:2581: warning: return-type defaults to `int'
configure:2611: checking for off_t
configure:2644: checking for size_t
configure:2679: checking for working alloca.h
configure:2691: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure:2685: alloca.h: No such file or directory
configure: In function `main':
configure:2687: warning: unused variable `p'
configure: failed program was:
#line 2684 "configure"
#include "confdefs.h"
#include <alloca.h>
int main() {
char *p = alloca(2 * sizeof(int));
; return 0; }
configure:2712: checking for alloca
configure:2745: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure: In function `main':
configure:2741: warning: unused variable `p'
configure:2914: checking for unistd.h
configure:2924: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
configure:2953: checking for getpagesize
configure:2981: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure:3006: checking for working mmap
configure:3154: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure: In function `main':
configure:3095: warning: implicit declaration of function `getpagesize'
configure:3104: warning: implicit declaration of function `rand'
configure:3105: warning: implicit declaration of function `umask'
configure:3109: warning: implicit declaration of function `write'
configure:3111: warning: implicit declaration of function `close'
configure:3142: warning: implicit declaration of function `read'
configure:3148: warning: implicit declaration of function `unlink'
configure:3182: checking for argz.h
configure:3192: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
configure:3188: argz.h: No such file or directory
configure: failed program was:
#line 3187 "configure"
#include "confdefs.h"
#include <argz.h>
configure:3182: checking for limits.h
configure:3192: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
configure:3182: checking for locale.h
configure:3192: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
configure:3182: checking for nl_types.h
configure:3192: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
configure:3182: checking for malloc.h
configure:3192: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
In file included from configure:3188:
/usr/include/malloc.h:2: warning: #warning "this file includes <malloc.h> which is deprecated, use <stdlib.h> instead"
configure: failed program was:
#line 3187 "configure"
#include "confdefs.h"
#include <malloc.h>
configure:3182: checking for string.h
configure:3192: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
configure:3182: checking for unistd.h
configure:3182: checking for sys/param.h
configure:3192: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
configure:3222: checking for getcwd
configure:3250: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure:3222: checking for munmap
configure:3250: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure:3222: checking for putenv
configure:3250: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure:3222: checking for setenv
configure:3250: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure:3222: checking for setlocale
configure:3250: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure:3222: checking for strchr
configure:3250: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure:3222: checking for strcasecmp
configure:3250: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure:3222: checking for strdup
configure:3250: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure:3222: checking for __argz_count
configure:3250: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
/tmp/ccCYQyfI.o: In function `main':
/tmp/ccCYQyfI.o(.text+0x7): undefined reference to `__argz_count'
configure: failed program was:
#line 3227 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __argz_count(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char __argz_count();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___argz_count) || defined (__stub_____argz_count)
choke me
#else
__argz_count();
#endif

; return 0; }
configure:3222: checking for __argz_stringify
configure:3250: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
/tmp/cce05I3E.o: In function `main':
/tmp/cce05I3E.o(.text+0x7): undefined reference to `__argz_stringify'
configure: failed program was:
#line 3227 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __argz_stringify(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char __argz_stringify();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___argz_stringify) || defined (__stub_____argz_stringify)
choke me
#else
__argz_stringify();
#endif

; return 0; }
configure:3222: checking for __argz_next
configure:3250: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
/tmp/cceK5DhB.o: In function `main':
/tmp/cceK5DhB.o(.text+0x7): undefined reference to `__argz_next'
configure: failed program was:
#line 3227 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __argz_next(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char __argz_next();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___argz_next) || defined (__stub_____argz_next)
choke me
#else
__argz_next();
#endif

; return 0; }
configure:3279: checking for stpcpy
configure:3307: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
/tmp/ccaUlz5T.o: In function `main':
/tmp/ccaUlz5T.o(.text+0x7): undefined reference to `stpcpy'
configure: failed program was:
#line 3284 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char stpcpy(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char stpcpy();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_stpcpy) || defined (__stub___stpcpy)
choke me
#else
stpcpy();
#endif

; return 0; }
configure:3341: checking for LC_MESSAGES
configure:3353: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
configure:3374: checking whether NLS is requested
configure:3406: checking for libintl.h
configure:3416: cc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
configure:3433: checking for dgettext in libc
configure:3445: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib 1>&5
/tmp/ccaQ8hB3.o: In function `main':
/tmp/ccaQ8hB3.o(.text+0x14): undefined reference to `libintl_dgettext'
configure: failed program was:
#line 3438 "configure"
#include "confdefs.h"
#include <libintl.h>
int main() {
return (int) dgettext ("","")
; return 0; }
configure:3461: checking for bindtextdomain in -lintl
configure:3480: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -lintl  -L/usr/local/lib 1>&5
configure:3496: checking for dgettext in libintl
configure:3501: checking for dgettext in -lintl
configure:3520: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -lintl  -L/usr/local/lib 1>&5
configure:3563: checking for msgfmt
configure:3597: checking for dcgettext
configure:3625: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib -lintl 1>&5
configure:3652: checking for gmsgfmt
configure:3688: checking for xgettext
configure:3728: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib -lintl 1>&5
configure:4004: checking for catalogs to be installed
configure:4114: checking for extra flags to get ANSI library prototypes
configure:4128: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include  conftest.c -L/usr/local/lib  -lintl -lm 1>&5
configure:4168: checking for extra flags for POSIX compliance
configure:4177: cc -c -O -pipe -march=pentium -Wall -I/usr/local/include conftest.c 1>&5
configure: In function `main':
configure:4173: warning: unused variable `dir'
configure:4270: checking for glib-config
configure:4305: checking for GLIB - version >= 1.2.8
configure:4404: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include/glib12 -D_THREAD_SAFE -I/usr/local/include  conftest.c -L/usr/local/lib -Wl,-E -lgmodule12 -lgthread12 -lglib12 -pthread -L/usr/local/lib  -lintl 1>&5
/usr/local/lib/libintl.so: undefined reference to `nl_langinfo'
configure: failed program was:
#line 4328 "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.8");
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
     printf("%s, bad version string\n", "1.2.8");
     exit(1);
   }

  if ((glib_major_version != 1) ||
      (glib_minor_version != 2) ||
      (glib_micro_version != 10))
    {
      printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 
             1, 2, 10,
             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:4448: cc -o conftest -O -pipe -march=pentium -Wall -I/usr/local/include/glib12 -D_THREAD_SAFE -I/usr/local/include  conftest.c -L/usr/local/lib  -lintl -L/usr/local/lib -Wl,-E -lgmodule12 -lgthread12 -lglib12 -pthread 1>&5
/usr/local/lib/libintl.so: undefined reference to `nl_langinfo'
configure: failed program was:
#line 4438 "configure"
#include "confdefs.h"

#include <glib.h>
#include <stdio.h>

int main() {
 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); 
; return 0; }

--------------010302050409030802020902--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D4EECFC.7010502>