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 23:56:58 +0200

At 23:25 08.08.2003 +0200, Jim Segrave wrote:
On Fri 08 Aug 2003 (22:54 +0200), Holger wrote:
> 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

As you note later, there's no X11 libraries being pulled in, so this
isn't surprising. I wonder how configure got through its tests without
getting similar errors.

This and why pkg-config doesn't give -lX11 for gtk2.

> >> 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

This is a totally different compiler invocation, this time asking for
gtk-1.2.

I'm very confused. Some of these compiles are running gcc with gtk-2

Sorry for confusing you. As I wrote I have both tried with gtk-2 and then 1.2 in order to see if this would work. So yes, you are right, that these are different outputs. Please note that I wrote this in different mails.

paths, some with gtk-1.2 paths. When you re-ran configure to change
from one version of gtk to the other, did you do a 'make clean'? I

Yes. Probably even deleted everything and started from scratch. I've tried lots of times.

would have expected everything to be rebuilt because of the changes to
config.h, but if there are files that don't include it, the .o files
might not be rebuilt and you would see this gtk-2/gtk-1.2 conflict.

No, it's not this.

> 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?

I'd do that.

% export LDFLAGS=-X11
% ./configure 2>&1 | tee configure.out
% make clean
% make 2>&1 | tee make.out

Tried it already before and it works. :)

I think I'd recommend setting LDFLAGS, doing a configure for gtk-2,
doing a make clean and see what happens. I'm almost sure that you have
a mixture of .o files built from Makefiles with different configure
options.

From gnubg? No, see above. I just don't know why pkg-config omits -lX11.

Thanks a lot, Jim.

Regards,

Holger




reply via email to

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