Re: gnome compile error




On Wed, 24 Jun 1998, Tom Jenkins wrote:
> Hello all,
> A friend of mine is attempting to compile GNOME.  This is the output he
> received.  Any help would be appreciated.
> 
> >Mail-For: <TomJenkins@zentuit.com>
> >Date: Wed, 24 Jun 1998 17:04:17 -0400 (EDT)
> >From: Matt Eaton <matthewe@bellatlantic.net>
> >X-Sender: matthewe@oberon
> >To: rvglug@salem.k12.va.us
> >Subject: gnome
> >
> >any ideas on this... I'm compiling the gnome lib
> >/bin/sh ../libtool --mode=link gcc -g -O2  -o htmltest  test.o
> >../gtk-xmhtml/libgtkxmhtml.la -lXpm -ljpeg -lpng -lz -lSM -lICE
> >-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext -lX11 -lm  -lm
> >gcc -g -O2 -o .libs/htmltest test.o -Wl,-rpath -Wl,/usr/local/lib
> >../gtk-xmhtml/.libs/libgtkxmhtml.so -lXpm -ljpeg -lpng -lz -lSM -lICE
> >-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext -lX11 -lm -lm
> >../gtk-xmhtml/.libs/libgtkxmhtml.so: undefined reference to `uncompress'
> >../gtk-xmhtml/.libs/libgtkxmhtml.so: undefined reference to `compress'
> >make[2]: *** [htmltest] Error 1
> >make[2]: Leaving directory `/root/gnome-libs-0.20/gtk-xmhtml'
> >make[1]: *** [all-recursive] Error 1
> >make[1]: Leaving directory `/root/gnome-libs-0.20'
> >make: *** [all-recursive-am] Error 2

Hmm, first thing your friend should do is make sure there is one and only
one copy of libz.  Some programs install another libz in the X11 library
directories, and this confuses the makefile.  If there are two libz's,
delete one, probably the X11 one.

Run ldconfig and try the make again.

If the problem persists, take a look at the libz file.  Mine is version
1.1.2, from the RPMs zlib-1.1.2-2.i386.rpm and
zlib-devel-1.1.2-2.i386.rpm, it works fine.  If it is an older version,
try upgrading.  Make sure your version of libz has the functions you are
looking for:

   $ nm libz.a |grep compress
   compress.o:
   000000a4 T compress
   00000000 T compress2
   00000000 T uncompress
   00001b90 t compress_block

   $ nm libz.so |grep compress
   000017bc T compress
   00001718 T compress2
   00006910 t compress_block
   000030d8 T uncompress 

Both libz.a and libz.so should be present, they should have the same
functions listed with the same spelling.  The order and the hexadecimal
number to the left don't matter.  If this isn't the case, definately
upgrade or reinstall libz.

Run ldconfig and try the make again.

If it still doesn't work, post back here.  You might need to rebuild libz,
you might need new versions of the compiler and auxiliary programs.

Best of Luck,
-Gleef



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