From owner-freebsd-questions Sat Oct 9 18:22:39 1999 Delivered-To: freebsd-questions@freebsd.org Received: from kremvax.demos.su (kremvax.demos.su [194.87.0.20]) by hub.freebsd.org (Postfix) with ESMTP id 856BC14C37 for ; Sat, 9 Oct 1999 18:22:33 -0700 (PDT) (envelope-from sinbin.demos.su!yormungandr.demos.su!mishania@kremvax.demos.su) Received: by kremvax.demos.su (8.6.13/D) from 0@sinbin.demos.su [194.87.5.31] with ESMTP id FAA18299; Sun, 10 Oct 1999 05:22:29 +0400 Received: from yormungandr.demos.su by sinbin.demos.su with ESMTP id FAA23482; (8.6.12/D) Sun, 10 Oct 1999 05:21:56 +0400 Received: (from mishania@localhost) by yormungandr.demos.su (8.9.3/8.9.2) id FAA01325; Sun, 10 Oct 1999 05:20:45 +0400 (MSD) (envelope-from mishania) Date: Sun, 10 Oct 1999 05:20:45 +0400 From: "Mikhail A. Sokolov" To: Jeroen Ruigrok/Asmodai Cc: "Mikhail A. Sokolov" , questions@freebsd.org Subject: Re: GTK+ failures to be detected. Message-ID: <19991010052045.A752@demos.su> References: <19991009230845.A91126@demos.su> <19991010025300.H38786@daemon.ninth-circle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.95.4i In-Reply-To: <19991010025300.H38786@daemon.ninth-circle.org>; from Jeroen Ruigrok/Asmodai on Sun, Oct 10, 1999 at 02:53:00AM +0200 X-Point-of-View: Gravity is myth, - the earth sucks. Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 Ok, I've made a symlink to , which I missed. # >#include # >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 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