Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Oct 1999 05:20:45 +0400
From:      "Mikhail A. Sokolov" <mishania@demos.net>
To:        Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
Cc:        "Mikhail A. Sokolov" <mishania@demos.net>, questions@freebsd.org
Subject:   Re: GTK+ failures to be detected.
Message-ID:  <19991010052045.A752@demos.su>
In-Reply-To: <19991010025300.H38786@daemon.ninth-circle.org>; from Jeroen Ruigrok/Asmodai <asmodai@wxs.nl> on Sun, Oct 10, 1999 at 02:53:00AM %2B0200
References:  <19991009230845.A91126@demos.su> <19991010025300.H38786@daemon.ninth-circle.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Oct 10, 1999 at 02:53:00AM +0200, Jeroen Ruigrok/Asmodai wrote:
# On [19991009 21:49], Mikhail A. Sokolov (mishania@demos.net) wrote:
# 
# >whilst compiling ports, such as wmakerconf, as for instance, xmms or whatever
# >would need  gtk+ >1.2.x I come up with a failure of this toolkit to be 
# >detected, no matter what gtk version is installed. Checked are: 1.2.{0-5}.
# >*** Could not run GTK test program, checking why...
# >*** may want to edit the gtk-config script: /usr/X11R6/bin/gtk-config
# >configure: error: *** GTK >= 1.2.0 not installed - please install first ***
# What do you have? gtk12-config or gtk-config? Makes a world of
# difference.  If you have gtk12-config, try making a symlink of
# gtk-config to gtk12-config.

I have both, of course. Besides:
# gtk-config --version --libs
1.2.5
-L/usr/X11R6/lib -L/usr/X11R6/lib -lgtk -lgdk -L/usr/local/lib -lgmodule12 -lglib12 -lintl -lxpg4 -lXext -lX11 -lm

# >configure: failed program was:
# >#line 1966 "configure"
# >#include "confdefs.h"
# >#include <gtk/gtk.h>

Ok, I've made a symlink <gtk> to <gtk12>, which I missed.

# >#include <stdio.h>
# >int main() {
# > return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
# >; return 0; }
#    0 lrwxr-xr-x  1 root  wheel  -       15 Aug 14 18:10 libgtk-1.2.so@ -> libgtk-1.2.so.2
# 4728 -rwxr-xr-x  1 root  wheel  -  4828637 Feb 28  1999 libgtk-1.2.so.0*
# 3240 -rwxr-xr-x  1 root  wheel  -  3306965 Aug 14 18:10 libgtk-1.2.so.2*
# That is how I have them, but I made them from the sources myself.

what is 1.2.so.0 ? Anyway, not to mention that we have libs of very different
sizes, here's what I have now:

# l libgtk*
lrwxr-xr-x  1 root  wheel       13 10 ΟΛΤ 04:57 libgtk-1.2.so -> libgtk12.so.2
lrwxr-xr-x  1 root  wheel       13 10 ΟΛΤ 04:57 libgtk-1.2.so.2 -> libgtk12.so.2
lrwxr-xr-x  1 root  wheel       10 10 ΟΛΤ 02:40 libgtk.a -> libgtk12.a
lrwxr-xr-x  1 root  wheel       13 10 ΟΛΤ 05:04 libgtk.so -> libgtk12.so.2
-rw-r--r--  1 root  wheel  1776952  6 ΟΛΤ 13:51 libgtk12.a
lrwxr-xr-x  1 root  wheel       13  6 ΟΛΤ 13:51 libgtk12.so -> libgtk12.so.2
-rwxr-xr-x  1 root  wheel  1363166  6 ΟΛΤ 13:51 libgtk12.so.2

# Do you update your ports tree regularly?  If so then I cannot actually
# see what is going wrong here and will have to delve deeper into it.  If
# not, could you please try to cvsup the ports to the latest?

Once/hour. Though, I didn't wait for 1.2.5 to appear in ports and patched it
myself (and then lost with make clean ;-() And, what are these strange 
syntax errors, they aren't real.

Tough luck with new port of 1.2.5, which is from 'official' port, 

configure:1974: cc -o conftest -O3 -pipe -I/usr/X11R6/include/gtk12 -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include/glib12  -I/usr/local/include -I/usr/X11/include/ -I/usr/X11R6/include/ -I/usr/X11R6/include/X11 -I/usr/openwin/include -I/usr/X11R6/include  -L/usr/local/lib -L/usr/X11/lib -L/usr/X11R6/lib -L/usr/openwin/lib -L/usr/X11R6/lib conftest.c -lPropList -lm  -L/usr/X11R6/lib -L/usr/X11R6/lib -lgtk -lgdk -L/usr/local/lib -lgmodule12 -lglib12 -lintl -lxpg4 -lXext -lX11 -lm 1>&5
In file included from /usr/X11R6/include/gtk12/gtk/gtk.h:31,
                 from configure:1966:
/usr/X11R6/include/gtk12/gdk/gdk.h:67: parse error before `GDestroyNotify'
/usr/X11R6/include/gtk12/gdk/gdk.h:392: parse error before `GDestroyNotify'
/usr/X11R6/include/gtk12/gdk/gdk.h:996: parse error before `*'
/usr/X11R6/include/gtk12/gdk/gdk.h:996: warning: data definition has no type or storage class

Not to mention I don't really see no need to have libgtk.a symlinked to libgtk12.a, errors are still a) the same, b) strange. Besides, if we have different 
versioning, shouldn't ports, which use GTK+, configure be pathced so it knows 
where're <gtk> and appropriate libs?

# HTH,

Thank you,

# Jeroen Ruigrok van der Werven/Asmodai                  asmodai(at)wxs.nl

-- 
-mishania

P.S. are you the one who introduced timing to squid 1.1.18 some years ago? 


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




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