From owner-freebsd-ports Thu Apr 8 9:29:29 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freed.libdns.qc.ca (derby.JSP.UMontreal.CA [132.204.45.26]) by hub.freebsd.org (Postfix) with ESMTP id 8F6FA152CB for ; Thu, 8 Apr 1999 09:28:49 -0700 (PDT) (envelope-from spidey@libdns.qc.ca) Received: from localhost (spidey@localhost) by freed.libdns.qc.ca (8.9.2/8.9.2) with SMTP id MAA24222; Thu, 8 Apr 1999 12:25:03 -0400 (EDT) (envelope-from spidey@libdns.qc.ca) X-Authentication-Warning: freed.libdns.qc.ca: spidey owned process doing -bs Date: Thu, 8 Apr 1999 12:25:03 -0400 (EDT) From: Spidey Reply-To: Spidey To: Jeremy Lea Cc: ports@FreeBSD.ORG Subject: Re: Using multiple versions of gtk. In-Reply-To: <19990408181931.P1798@shale.csir.co.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 8 Apr 1999, Jeremy Lea wrote: > Hi, > > On Thu, Apr 08, 1999 at 11:49:12AM -0400, Spidey wrote: > > checking for gtk-config... /usr/X11R6/bin/gtk12-config > > checking for GTK - version >= 1.1.13... 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/X11R6/bin/gtk12-config > > configure: error: Test for GTK failed. > > What would be much more useful are the error messages out of > config.log... Normally right down the end. Your probably missing a > library. this doesn't make very much sense... I have install these gtgk libs, but anyways, here ya go: configure:6389: checking for gtk-config configure:6420: checking for GTK - version >= 1.1.13 configure:6521: gcc -o conftest -O -DMOZ_TOOLKIT=gtk -DMOZ_DLL_SUFFIX=so -I/usr/ X11R6/include/gtk12 -I/usr/X11R6/include -I/usr/local/include/glib12 conftest. c -ll -lutil -lm -lc -L/usr/X11R6/lib -L/usr/X11R6/lib -lgtk12 -lgdk12 -L/usr/l ocal/lib -Wl,-E -lgmodule12 -lglib12 -lintl -lXext -lX11 -lm 1>&5 /usr/X11R6/lib/libgtk12.so: undefined reference to `dgettext' configure: failed program was: #line 6443 "configure" #include "confdefs.h" #include #include #include 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.1.13"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "1.1.13"); exit(1); } if ((gtk_major_version != 1) || (gtk_minor_version != 2) || (gtk_micro_version != 0)) { printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d )\n", 1, 2, 0, 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 fi x the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by e diting\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_CONF IG\n"); printf("*** to point to the correct copy of gtk-config, and remove the fil e config.cache\n"); printf("*** before re-running configure\n"); } #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_M ICRO_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_mi cro_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 v ersion 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, th is error\n"); printf("*** probably means that the wrong copy of the gtk-config shell s cript is\n"); printf("*** being found. The easiest way to fix this is to remove the ol d 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 /et c/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } configure:6565: gcc -o conftest -O -DMOZ_TOOLKIT=gtk -DMOZ_DLL_SUFFIX=so -I/usr/ X11R6/include/gtk12 -I/usr/X11R6/include -I/usr/local/include/glib12 conftest. c -ll -lutil -lm -lc -L/usr/X11R6/lib -L/usr/X11R6/lib -lgtk12 -lgdk12 -L/usr/l ocal/lib -Wl,-E -lgmodule12 -lglib12 -lintl -lXext -lX11 -lm 1>&5 /usr/X11R6/lib/libgtk12.so: undefined reference to `dgettext' configure: failed program was: #line 6555 "configure" #include "confdefs.h" #include #include int main() { return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ; return 0; } Hope this is enough!!! Si l'image donne l'illusion de savoir C'est que l'adage pretend que pour croire, L'important ne serait que de voir To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message