bug-gnubg
[Top][All Lists]
Advanced

[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: Fri, 08 Aug 2003 22:54:21 +0200

At 02:23 08.08.2003 +0200, Jim Segrave wrote:
On Fri 08 Aug 2003 (00:50 +0200), Holger wrote:
> > locate libgtk           # (locate requires a parameter here)
> Lots... in home and ftp directories only
> The only sensible location is however:
> /home/pub/lib/libgtk-1.2.so.0
> /home/pub/lib/libgtk-1.2.so.0.9.0
> /home/pub/lib/libgtk-1.2.so.0.9.1
> /home/pub/lib/libgtk.a
> /home/pub/lib/libgtk.la
> /home/pub/lib/libgtk.so
> Nothing gtk2-related. If you really want I can send you the output.
>
> find in $LD_LIBRARY_PATH` for '*libgtk*' gives among others this:
> /usr/local/lib/netscape/6.2.3/dist/lib/libgtk-1.2.so.0
> /usr/local/lib/netscape/6.2.3/dist/lib/libgtk.so
> /usr/local/lib/netscape/6.2.3/dist/lib/libgtk-1.2.so.0.9.1
> /usr/lib/libgtk-x11-2.0.so
> /usr/lib/libgtk-x11-2.0.so.0
> /usr/lib/libgtk-x11-2.0.so.0.100.0
> /home/pub/lib/gtk+-1.2.10/lib/libgtk.so
> /home/pub/lib/gtk+-1.2.10/lib/libgtk-1.2.so.0.9.1
> /home/pub/lib/gtk+-1.2.10/lib/libgtk-1.2.so.0
> /home/pub/lib/gtk+-1.2.10/lib/libgtk.la
> /home/pub/lib/gtk+-1.2.10/lib/libgtk.a
> /home/pub/lib/libgtk-1.2.so.0
> /home/pub/lib/libgtk.so

OK this is not a problem, if you ask it to build using gtk-2.0, the
package file will point you at /usr/lib/libgtk-x11-2.0.so.0, if you
ask for gtk1.2 I'm not sure which of the several gtk1.2 libs you will
pick up

those under /home/pub/lib/gtk+-1.2.10/lib and for glib under /home/pub/lib/glib-1.2.10/lib

> >It may be a package installation problem - perhaps someone building
> >the package for gtk didn't arrange for different include directories
>
> Should I really need to try to build gtk2 myself? Doesn't seem overly easy.

It could be an intersting undertaking - building gtk2.2 under FreeBSD
(as opposed to using the ports version where someone else had done all
the dependancies) was not easy - it involved, as I recall, building
libpng, libjpg, libpango, libintl, and glib in more or less that
order.

I could almost predict that I'd show up here immediately then. But if nothing else helps, maybe...

> >for differnt versons. I only see the above declared in gtk-2 includes
>
> Yes, that's (also) why I wrote the mail. I think it's a bug and maybe
> better leave it to someone else. I'm not that sure what to replace it with.

Can you capture the output of the compile of gtk-multiview.c? I'd like
to see what the include path is there

source='gtk-multiview.c' object='gtk-multiview.o' libtool=no \
depfile='.deps/gtk-multiview.Po' tmpdepfile='.deps/gtk-multiview.TPo' \
depmode=gcc3 /bin/bash ./depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./lib -I/usr/include/libxml2 -I./intl -DLOCALEDIR=\"/home/pub/lib/gnubg-030808/share/locale\" -I/usr/KDE/3.1/include -I/usr/KDE/3.1/include/freetype2 -I/usr/python/include/python2.2 -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 -I/home/pub/include -v -g -O2 -c `test -f 'gtk-multiview.c' || echo './'`gtk-multiview.c
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/specs
Configured with: ../configure --disable-nls --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
Thread model: posix
gcc version 3.3
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/cc1 -quiet -v -I. -I. -I. -I./lib -I/usr/include/libxml2 -I./intl -I/usr/KDE/3.1/include -I/usr/KDE/3.1/include/freetype2 -I/usr/python/include/python2.2 -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 -I/home/pub/include -MD gtk-multiview.d -MF .deps/gtk-multiview.TPo -MP -MT gtk-multiview.o -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -Dsparc -D__sparc__ -D__sparc -D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc -DHAVE_CONFIG_H -DLOCALEDIR="/home/pub/lib/gnubg-030808/share/locale" gtk-multiview.c -quiet -dumpbase gtk-multiview.c -auxbase gtk-multiview -g -O2 -version -o /var/tmp//cc2WFfIX.s
GNU C version 3.3 (sparc-sun-solaris2.9)
        compiled by GNU C version 3.3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/sparc-sun-solaris2.9/include"
ignoring duplicate directory "."
ignoring duplicate directory "."
#include "..." search starts here:
#include <...> search starts here:
 .
 lib
 /usr/include/libxml2
 intl
 /usr/KDE/3.1/include
 /usr/KDE/3.1/include/freetype2
 /usr/python/include/python2.2
 /usr/include/gtk-2.0
 /usr/lib/gtk-2.0/include
 /usr/include/atk-1.0
 /usr/include/pango-1.0
 /usr/openwin/include
 /usr/include/glib-2.0
 /usr/lib/glib-2.0/include
 /home/pub/include
 /usr/local/include
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/include
 /usr/include
End of search list.
 /usr/ccs/bin/as -V -Qy -s -o gtk-multiview.o /var/tmp//cc2WFfIX.s
/usr/ccs/bin/as: Sun WorkShop 6 update 2 Compiler Common 6.2 Solaris_9_CBE 2001/04/02


the linking step being:

/usr/ccs/bin/as: Sun WorkShop 6 update 2 Compiler Common 6.2 Solaris_9_CBE 2001/04/02 gcc -v -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 -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 -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
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/specs
Configured with: ../configure --disable-nls --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
Thread model: posix
gcc version 3.3
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/collect2 -V -Y P,/usr/ccs/lib:/usr/lib -Qy -o gnubg /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/crt1.o /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/crti.o /usr/ccs/lib/values-Xa.o /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/crtbegin.o -Llib -L/usr/KDE/3.1/lib -L/home/pub/lib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3 -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/../../.. 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 -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 -levent ./intl/libintl.a -liconv -lxml2 -lpthread -lz -lm -lsocket -lnsl -lfreetype -lsocket -lnsl -ldl -lpthread -lthread /usr/python/lib/python2.2/config/libpython2.2.a -lpng -lz -lart_lgpl -lm -lpng -lresolv -lnsl -lsocket -ldl -lgdbm -lreadline -ltermcap -lm -lgcc -lgcc_eh -lc -lgcc -lgcc_eh -lc /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/crtend.o /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/crtn.o
ld: Software Generation Utilities - Solaris Link Editors: 5.9-1.376
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)
ld: fatal: Symbol referencing errors. No output written to gnubg


The other nasty possibility is that I'd guess you've got gtk sources
in your home directory tree and I would assume you also have gnubg
there.

At least not that I know of. For compiling I make a fresh folder under /tmp and do a new checkout from CVS.

> gcc -DHAVE_CONFIG_H -I. -I. -I. -I./lib  -I/usr/include/libxml2 -I./intl
> -DLOCALEDIR=\"/home/pub/lib/gnubg-030807/share/locale\"
> -I/usr/KDE/3.1/include
> -I/usr/KDE/3.1/include/freetype2  -I/usr/python/include/python2.2
> -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  -I/home/pub/include    -g -O2 -c `test -f
> 'gtkoptions.c' || echo './'`gtkoptions.c

If, when compiling gnubg, the current working directory (-I.), or your
local lib directory (-I./lib) has any gtk-2 include files, they will
get pulled in.

Yes, but there aren't any.

Maybe if you add '-v' to CFLAGS in the Makefile and do a make clean,
make > make.out >2>&1, you can see exactly which include files
gtk-multiview.c is using, for example, doing this I get for the compile of

see above

I just wonder if somehow you have some gtk-2 files in the directory tree
which are getting pulled in with fatal results. The killer looks to be
gtype.h

If I edit Makefile after configure and add:
gnubg_LDFLAGS = -lX11
it links without problems.

I'm not sure if Makefile.am should be changed since it seems to be just this system. What is the best option to set it up? Just setting LDFLAGS=-X11 before configure?

Regards,

Holger




reply via email to

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