Compilation Problem



Good morning all,

First of  all, I should introduce myself, as I have just joined the
list. My name is Paul Jewell, and I am not a computer professional,
although I have used computers in various forms for the last 18 years. I
have recently installed Linux on my PC, as a viable alternative to
Windows simply because I wanted a Unix system. Having used unix
mainframes in University, and later having installed much of the GNU
software on my Amiga, I was never entirely happy with Windows. Anyway,
having installed Linux from the latest Slackware distribution, I quickly
moved to using a graphical interface. First of all fwm95, then with
tkdesk on top, and latterly Kde. When I installed Kde, I was aware of
Enlightenment, but decided to try K first. Well, I then decided to
install Jazz (a midi sequencer program). This went OK, until I pressed
"Help". After locking for about 15 seconds the program complained
"Unable to find wxhelp" (or words to that effect)  and shut down with a
segmentation fault. "mmm Wxhelp" - I thought "I wonder that that is?". A
quick web search found wxwindows - a rather useful looking package which
allows programs to compile for multiple systems. "This means I can write
programs and use them on a PC under Windows as well? - Great". Big
download later, and I have wxWindows 1.68 on my system (including the
Windows version!). After a few minor problems compiling some of the
programs, I decided to contact the author, and ask for some assistance
(and to thank him for development). The upshot of the response was that
I should consider version 2.0, which works with gtk+. So, if I am to
load gtk+, I could go the whole hog and install E as well. I downloaded
all the files shown in the  Enlightenment web page, and then proceeded
to compile. (is anyone still with me?!).

This is where I come to the problem, which I believe is not related to
gtk+, but to the configuration of the libraries on my system. Hopefully
one of you is able to point me in the right direction.

When compiling in the gtk subdirectory, the following happens:
--------------8<-------------------------------------
Making all in gtk
make[2]: Entering directory `/usr/local/src/gtk+-1.1.9/gtk'
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall  -o testgtk  testgtk.o
libgtk.la ../gdk/libgdk.la -L/usr/X11/lib -lXext -lX11 -L/usr/local/lib
-rdynamic -lgmodule -lgthread -lglib -ldl -lm -lintl
gcc -g -O2 -Wall -o .libs/testgtk testgtk.o -Wl,--rpath
-Wl,/usr/local/lib .libs/libgtk.so -L/usr/local/lib -lgmodule -lgthread
-lglib -ldl -L/usr/X11/lib -lXext -lX11 -lm -lintl -Wl,--rpath
-Wl,/usr/local/lib ../gdk/.libs/libgdk.so -L/usr/local/lib -lgmodule
-lgthread -lglib -ldl -L/usr/X11/lib -lXext -lX11 -lm -lintl
-L/usr/X11/lib -lXext -lX11 -L/usr/local/lib -rdynamic -lgmodule
-lgthread -lglib -ldl -lm -lintl
.libs/libgtk.so: undefined reference to `dgettext'
collect2: ld returned 1 exit status
make[2]: *** [testgtk] Error 1
make[2]: Leaving directory `/usr/local/src/gtk+-1.1.9/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gtk+-1.1.9'
make: *** [all-recursive-am] Error 2
---------------------8<-------------------------------

As you can see, I am compiling gtk+-1.1.9. A bit of digging has shown me
that the relevant reference is in the library libintl, which resides in
/usr/local/lib. This directory is referenced in /etc/ld.so.conf, and
hasn't just been installed. I then traced the installation of this
library to the installation of the gettext-0.10.tar.gz package. The file
only existed as a static library, so I compiled an ELF format version as
well, in case that was the problem. No change.

I have compiled gtk+-1.0.6 without any problems, but the above problem
has also manifested itself when compiling the freetype-1.2.tar.gz
package. glib-1.1.9 compiled and installed without any problems.

Has anyone seen this problem before, or is anyone able to throw some
light on possible causes?

Thanks in advance!

Regards,
Paul Jewell

PS: I don't think it is relevant, but I am using kernel 2.0.36. I am
quite prepared to move to a more recent kernel, but would rather get
some of the other programs running first.

PPS: Merry Christmas to you all!



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