[Top][All Lists]

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

Re: [Bug-gnubg] Compile: Solaris 9

From: Holger
Subject: Re: [Bug-gnubg] Compile: Solaris 9
Date: Thu, 07 Aug 2003 23:34:45 +0200

At 06:25 05.08.2003 +0000, Joern Thyssen wrote:
On Tue, Aug 05, 2003 at 01:56:28AM +0200, Holger wrote
> At 20:18 04.08.2003 +0000, Joern Thyssen wrote:
> >On Mon, Aug 04, 2003 at 10:08:12PM +0200, Holger wrote
> >> Undefined                       first referenced
> >>  symbol                             in file
> >> XFlush                              gnubg.o  (symbol belongs to implicit
> >> dependency /usr/lib/libX11.so.4)
> >> XEventsQueued                       gnubg.o  (symbol belongs to implicit
> >> dependency /usr/lib/libX11.so.4)
> >I'm just guessing: try adding -lX11 to the link list (COMMON_LIBS in
> >Makefile).
> Yes, that did the trick. However, I guess adding it to gnubg_LDADD in the
> USE_GTK block is better. I can't commit from here though, due to problems

I'm not sure it's correct to add it like that. We need some autoconf
magic to detect it. Anyway, for gtk1.2 "gtk-config --libs" returns,
among other libraries, -lX11, but "pkg-config --libs gtk-2.0" doesn't. I
don't know why, but apparently it's not necessary on my box, so now I'm
guessing that "pkg-config --libs gtk-2.0" is broken on Solaris...

After the interlude with the include path I've arrived at this error again. :-/

It reports the following:
> pkg-config gtk+-2.0 --modversion
> pkg-config gtk+-2.0 --cflags
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> pkg-config gtk+-2.0 --libs
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0

For GTK+ 1.2 it reports:
> pkg-config --modversion gtk+
> pkg-config --cflags gtk+
-I/home/pub/lib/gtk+-1.2.10/include/gtk-1.2 -I/home/pub/lib/glib-1.2.10/include/glib-1.2 -I/home/pub/lib/glib-1.2.10/lib/glib/include -I/usr/openwin/include
> pkg-config --libs gtk+
-R/usr/openwin/lib -L/home/pub/lib/gtk+-1.2.10/lib -L/usr/openwin/lib -L/home/pub/lib/glib-1.2.10/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lsocket -lnsl -lm

So I suppose it's a similar output like on your machine. However, please note those '-X11-' with GTK+ 2. Can someone confirm that this is ok?

I've also tried to compile with GTK+ 1.2 (--without-gtk2). But then gnubg restricts itself to glib 1.2 as well and has problems with linking. Hmm, but then why did it find the definitions of the glib2 calls in the first place?

gcc -g -O2 -o gnubg gnubg.o getopt.o getopt1.o eval.o play.o positionid.o drawboard.o pub_eval.o set.o show.o database.o dice.o rollout.o copying.o kleinman.o matchequity.o analysis.o sgf.o sgfp.o sgfl.o guile.o import.o external.o credits.o latex.o postscript.o html.o matchid.o i18n.o text.o export.o record.o osr.o bearoffgammon.o bearoff.o onechequer.o path.o render.o htmlimages.o speed.o renderprefs.o boardpos.o progress.o format.o gtkboard.o gtkgame.o gtkprefs.o gtk-multiview.o gtktheory.o gtktexi.o gtkexport.o gtkcube.o gtkchequer.o gtkrace.o gtkmovefilter.o gtkmet.o gtkcolour.o gtksplash.o gtkrolls.o openurl.o gtktempmap.o gtkbearoff.o gtkoptions.o gtkpath.o gtktoolbar.o luxi.o gnubgmodule.o -L/home/pub/lib/gtk+-1.2.10/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk -L/home/pub/lib/glib-1.2.10/lib -lgmodule -lglib -ldl -lXext -lX11 -lsocket -lnsl -lm -Llib -levent ./intl/libintl.a -liconv -lxml2 -lpthread -lz -lm -lsocket -lnsl -L/usr/KDE/3.1/lib -lfreetype -lsocket -lnsl -ldl -lpthread -lthread /usr/python/lib/python2.2/config/libpython2.2.a -lpng -lz -L/home/pub/lib -lart_lgpl -lm -lpng -lresolv -lnsl -lsocket -ldl -lgdbm -lreadline -ltermcap -lm
Undefined                       first referenced
 symbol                             in file
g_type_check_instance_is_a          gtk-multiview.o
g_type_check_instance_cast          gtk-multiview.o

I'm out of business here. :(



reply via email to

[Prev in Thread] Current Thread [Next in Thread]