Re: gnome-libs-1.0.5 and gtk+1.2.1



In message <199903290106.UAA14236@coco.comstar.net>, Gregory McLean
<gregm@comstar.net> writes
>> In message <rPGHGBAcfW$2EwdW@cyberstorm.demon.co.uk>, James Green
>> <gnome@cyberstorm.demon.co.uk> writes
>> 
>[ snip ]
>> 
>> Perhaps this is a bug somewhere? Anyone else managed to get gnome-libs-
>> 1.0.5 to compile with GTK+-1.2.1?
>> 
>
>Yes it works just fine, a tail of your config.log from the failed 
>configuration would help pin down whats going on.

Done.

The config.log is appended, as is the bit o' code that gives the error.

I have definitely got /usr/local/:/usr/local/bin in my path at the
start, gtk-config resides in /usr/local/bin (IIRC) and it reports 1.2.1
as the version. Both GLib and GTK were upgraded to 1.2.1.


configure:2637: checking for gtk-config
configure:2672: checking for GTK - version >= 1.2.0
configure:2773: gcc -o conftest -g -O2 -Wall -Wno-unused  -
I/usr/X11R6/include -I/usr/local/lib/glib/include -I/usr/local/include
conftest.c -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -
lgmodule -lglib -ldl -lXext -lX11 -lm  1>&5
configure: failed program was:
#line 2695 "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 != 1))
    {
      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+
(%d.%d.%d)\n", 
             1, 2, 1,
             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");
    } 


-- 
James Green



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