Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127940 - gnome-base/gnome-libs-1.4.2 Could not run GTK test program test program failed to compile
Summary: gnome-base/gnome-libs-1.4.2 Could not run GTK test program test program faile...
Status: RESOLVED DUPLICATE of bug 93015
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-28 21:20 UTC by Weedy
Modified: 2006-03-29 05:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Weedy 2006-03-28 21:20:31 UTC
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.2.0... no
*** Could not run GTK 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 GTK was incorrectly installed
*** or that you have moved GTK since it was installed. In the latter case, you
*** may want to edit the gtk-config script: /usr/bin/gtk-config
configure: error: GTK not installed


/var/tmp/portage/gnome-libs-1.4.2/work/gnome-libs-1.4.2/config.log
configure:5670: checking for gtk-config
configure:5705: checking for GTK - version >= 1.2.0
configure:5806: gcc -o conftest -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1 -Wall -Wunused  -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include  -Wl,-O1 -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort -Wl,--as-needed -Wl,--sort-common -s conftest.c -L/usr/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm  1>&5
configure:5730:21: error: /usr/include/db1/gtk/gtk.h: Permission denied
configure:5731:19: error: /usr/include/db1/stdio.h: Permission denied
configure:5732:20: error: /usr/include/db1/stdlib.h: Permission denied
configure: In function 'main':
configure:5740: warning: implicit declaration of function 'system'
configure:5743: warning: implicit declaration of function 'g_strdup'
configure:5743: warning: assignment makes pointer from integer without a cast
configure:5744: warning: implicit declaration of function 'sscanf'
configure:5744: warning: incompatible implicit declaration of built-in function 'sscanf'
configure:5745: warning: implicit declaration of function 'printf'
configure:5745: warning: incompatible implicit declaration of built-in function 'printf'
configure:5746: warning: implicit declaration of function 'exit'
configure:5746: warning: incompatible implicit declaration of built-in function 'exit'
configure:5749: error: 'gtk_major_version' undeclared (first use in this function)
configure:5749: error: (Each undeclared identifier is reported only once
configure:5749: error: for each function it appears in.)
configure:5750: error: 'gtk_minor_version' undeclared (first use in this function)
configure:5751: error: 'gtk_micro_version' undeclared (first use in this function)
configure:5753: warning: incompatible implicit declaration of built-in function 'printf'
configure:5786: warning: incompatible implicit declaration of built-in function 'printf'
configure: failed program was:
#line 5728 "configure"
#include "confdefs.h"

#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>

int 
main ()
{
  int major, minor, micro;
  char *tmp_version;

  system ("touch conf.gtktest");

  /* 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 ((gtk_major_version != 1) ||
      (gtk_minor_version != 2) ||
      (gtk_micro_version != 10))
    {
      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
             1, 2, 10,
             gtk_major_version, gtk_minor_version, gtk_micro_version);
      printf ("*** was found! If gtk-config was correct, then it is best\n");
      printf ("*** to remove the old version of GTK+. 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 gtk-config was wrong, set the environment variable GTK_CONFIG\n");
      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
      printf("*** before re-running configure\n");
    } 
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
	   (gtk_minor_version != GTK_MINOR_VERSION) ||
           (gtk_micro_version != GTK_MICRO_VERSION))
    {
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
      printf("*** library (version %d.%d.%d)\n",
	     gtk_major_version, gtk_minor_version, gtk_micro_version);
    }
#endif /* defined (GTK_MAJOR_VERSION) ... */
  else
    {
      if ((gtk_major_version > major) ||
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
      {
        return 0;
       }
     else
      {
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
               gtk_major_version, gtk_minor_version, gtk_micro_version);
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
	       major, minor, micro);
        printf("*** GTK+ 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 gtk-config shell script is\n");
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
        printf("*** correct copy of gtk-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:5850: gcc -o conftest -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1 -Wall -Wunused  -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include  -Wl,-O1 -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort -Wl,--as-needed -Wl,--sort-common -s conftest.c  -L/usr/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm 1>&5
configure:5842:21: error: /usr/include/db1/gtk/gtk.h: Permission denied
configure:5843:19: error: /usr/include/db1/stdio.h: Permission denied
configure: In function 'main':
configure:5846: error: 'gtk_major_version' undeclared (first use in this function)
configure:5846: error: (Each undeclared identifier is reported only once
configure:5846: error: for each function it appears in.)
configure:5846: error: 'gtk_minor_version' undeclared (first use in this function)
configure:5846: error: 'gtk_micro_version' undeclared (first use in this function)
configure: failed program was:
#line 5840 "configure"
#include "confdefs.h"

#include <gtk/gtk.h>
#include <stdio.h>

int main() {
 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
; return 0; }

Kamo-chan ~ # emerge --info
Portage 2.1_pre7-r1 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2, 2.16.91.0.4, 2.16.91.0.5, 2.16.91.0.6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo"
LANG="en_CA.utf8"
LC_ALL="en_CA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort -Wl,--as-needed -Wl,--sort-common -s"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/chewi-overlay /usr/local/overlays/initng-portage /usr/local/overlays/java-experimental /usr/local/overlays/migration-overlay"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="x86 7zip X X509 aac acl acpi alsa apm authdaemond automount avi bash-completion berkdb bitmap-fonts browserplugin bzip2 bzlib ccache chroot cjk cli cluster crypt ctype curlwrappers dba dio dlloader dri dts dvd dvdr dvdread eds emboss encode expat extensions extrafilters fastbuild fbcon ffmpeg flac font-server foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gpm gstreamer gtk gtk2 imagemagick imap imlib innodb ipv6 java javamail jpeg kerberos libg++ libwww lirc mad maildir matroska memlimit mikmod mmx mng motif mp3 mpeg mpi nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses network neural nis nls nptl nptlonly nsplugin nvidia objc ogg opengl oss pam pcntl pcre pdflib perl pg-hier pg-intdatetime pg-vacuumdelay pic png posix procmail python qt quicktime random readline rtc samba sasl sdl sendfile session sftplogging shaper shared sharedext sharedmem simplexml soap sockets softquota spell spl sse ssl startup-notification sysvipc szip tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userlocales vda vhosts virtual-users virus-scan vorbis wddx win32codecs xml xmlrpc xmms xsl xv xvid zlib elibc_glibc initng_plugins_doc initng_plugins_also initng_plugins_bash_launcher initng_plugins_chdir initng_plugins_chroot initng_plugins_conflict initng_plugins_cpout initng_plugins_critical initng_plugins_cron initng_plugins_daemon initng_plugins_dev initng_plugins_dllaunch initng_plugins_envparser initng_plugins_find initng_plugins_fstat initng_plugins_history initng_plugins_idleprobe initng_plugins_initctl initng_plugins_interactive initng_plugins_iparser initng_plugins_last initng_plugins_limit initng_plugins_logfile initng_plugins_netprobe initng_plugins_ngc2 initng_plugins_pause initng_plugins_pidfile initng_plugins_reload initng_plugins_renice initng_plugins_rlparser initng_plugins_simple_launcher initng_plugins_stcmd initng_plugins_stdout initng_plugins_suid initng_plugins_syncron initng_plugins_syslog initng_plugins_unneeded input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LINGUAS

Before we start the flame war on my ldflags etc, i already tried without ldflags and all general insanity. http://forums.gentoo.org/viewtopic-p-3214812.html
Comment 1 John N. Laliberte (RETIRED) gentoo-dev 2006-03-29 05:14:10 UTC

*** This bug has been marked as a duplicate of 93015 ***