Re: Error compiling GNOME



On Mon, Dec 18, 2000 at 03:04:38PM +0100, Heinrich Rebehn wrote:
> has anyone succeeded in compiling GNOME stable under 2.8?

Yup.  I just did it last week.  I haven't actually used it
yet, but the remote runs of various GNOME progs have all
been fine.

> After repairing the Makefile manually,

You should use GNU Make (gmake) to build GNOME.

>After repairing the Makefile manually, the next error shows up:
>
> gcc -g -O2 -Wall -Wunused -o .libs/gnome-name-service
>  gnome-name-server.o -L.libs -lgnorbagtk -lz -lm -lname-server
>  -L/usr/local/lib -lORBitCosNaming -lORBit -lIIOP -lwrap -lORBitutil
>  -lglib -lm -L/usr/X11R6/lib -lX11 -lz -lm -R/usr/local/lib
> gnome-name-server.c:229: Undefined symbol `_gettext' referenced from
>  text segment
> gnome-name-server.c:246: Undefined symbol `_gettext' referenced from
>  text segment
> collect2: ld returned 1 exit status

That was the one I was expecting :)  I ran configure on all the GNOME.
builds with the --disable-nls switch, which fixes the build problem
but doesn't help much if you actually need NLS support. (Hmmm.... a
.de root domain.  I wonder if you speak a language besides English ;)

Not wanting to appear more idiotic than usual, I went back and
tracked down the problem. Seems that in most cases, -lintl (which
is where the _gettext stuff commeth from), is included.  But, it
is only included with UI libs. In cases where UI libs are not needed,
there are no flags set to include libintl.  A bit of digging turned
up a Makefile variable called "INTLLIBS".  If you set INTLLIBS to
"-lintl", presto! It links!  So, when you configure try:

INTLLIBS="-lintl" ./configure --prefix=/usr/local --enable-blah --without-pickles etc..

You will need to have the gettext-0.10.35 package installed.
I don't have the time to try a full build with it right now, but
INTLLIBS seems to be in all the GNOME base packages, so it should
work. gnome-libs just built with NLS support fine.

One final note, don't run GNOME without a firewall between it
and the internet, or at least without some local IPF filtering
on the ports GNOME components listen on. (TCP:8248 and 
TCP:21325 are what I see up now.)  Outsiders don't need to
know, or be able to attempt access to, what you run on
your desktop.

-Paul

-- 
/Paul M. Hirsch              /
/elektrosatan voltagenoir org/
/GPGPGPkeyID: 0xD11A250E     /




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