Re: GTK not found configuring gnome-libs
- From: Craig Small <csmall scooter o i net>
- To: tromey cygnus com
- Cc: gnome-list gnome org (Gnome Mailling List)
- Subject: Re: GTK not found configuring gnome-libs
- Date: Tue, 31 Mar 1998 08:07:37 +1000 (EST)
Tom Tromey wrote:
> Craig> I still cannot, without major fiddling, get around the fact
> Craig> that gtktty in gnome-libs cannot find gtk, even though the top
> Craig> level aclocal can. Weird by true!
>
> What does happen? What does configure print as it runs? Are there
> obvious failures in config.log?
Hmm, I should of known, I get bug reports as obscure and know how hard it is
to work out what's wrong, ok some "more input".
I start the whole thing up with rm'ing config.cache and then ./autogen.sh
It seems to be quite happy with the toplevel Makefile and configure scripts.
Then it steps down into libgtktty:
: configuring in libgtktty
: running /bin/sh ./configure --enable-maintainer-mode --cache-file=.././config.cache --srcdir=.
: loading cache .././config.cache
: checking for a BSD compatible install... (cached) /usr/bin/install -c
So it gurgles along through the configure script, doing the standard stuff
until it gets to the Gtk specific tests:
: creating libtool
: checking for gtk-config... (cached) /usr/local/bin/gtk-config
: checking for GTK - version >= 0.99.7... no
: configure: error: Cannot find GTK: is gtk-config in path?
: configure: error: ./configure failed for libgtktty
OK, so what does config.log say?
In libgtktty:
configure:2037: checking for GTK - version >= 0.99.7
configure:2072: gcc -o conftest -g -Wall -Wmissing-prototypes -Wstrict-prototype
s -Winline -Wpointer-arith -O6 -fstrength-reduce -fexpensive-optimizations -finl
ine-functions -frerun-cse-after-loop -freg-struct-return -fnonnull-objects -I/us
r/local/lib/glib/include -I/usr/local/include -I/usr/X11R6/include conftest.c
-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext -lX11 -lm 1>&5
configure:2057: warning: function declaration isn't a prototype
configure: failed program was:
#line 2050 "configure"
#include "confdefs.h"
#include <gtk/gtk.h>
#include <stdio.h>
int
main ()
{
int major, minor, micro;
if (sscanf("0.99.7", "%d.%d.%d", &major, &minor, µ) != 3) {
printf("%s, bad version string\n", "0.99.7");
exit(1);
}
return !((gtk_major_version > major) ||
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
}
test.c:5: warning: function declaration isn't a prototype
conftest.c:9: warning: return-type defaults to `int'
conftest.c:9: warning: function declaration isn't a prototype
ltconfig:964: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.* [ABCDGISTUW] \([_A-Za-z][_A-Za-z0-9]*\)$/\1 \1/p' > conftest.nm"
ltconfig:1022: gcc -o conftest -g -Wall -Wmissing-prototypes -Wstrict-prototypes
-Winline -Wpointer-arith -O6 -fstrength-reduce -fexpensive-optimizations -finline-functions -frerun-cse-after-loop -freg-struct-return -fnonnull-objects -fno-builtin conftest.c conftestm.o 1>&5
> It seems to work for me.
OK, let's see what is different.
Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2.3/specs
gcc version 2.7.2.3
aclocal (GNU automake) 1.2
automake (GNU automake) 1.2
Autoconf version 2.12 <----- This came from autoheader --version, wierd!
ltmain.sh (GNU libtool) 1.0h
Linux scooter 2.0.32 #3 Thu Dec 18 13:22:24 EST 1997 i586 unknown
It's a Debian GNU/Linux system, roughly 2.0
If I fiddle with the configure script in libgtktty so that the test for
crossporting is always true so it skips this test, it works ok.
- Craig
--
Craig Small VK2XLZ, PGP: AD 8D D8 63 6E BF C3 C7 47 41 B1 A2 1F 46 EC 90
|@work: csmall@scooter.o.i.net, @play: vk2xlz@vk2xlz.ampr.org|
|@home: csmall@small.dropbear.id.au, @debian:csmall@debian.org|
|@web: http://www.triode.net.au/~csmall @spam:root@localhost|
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]