Re: Gnome 2.0.1 compiling problems
- From: Tony Mobily <merc mobily com>
- To: Thomas Vander Stichele <thomas apestaart org>
- Cc: desktop-devel-list gnome org, <gnome-libs-devel gnome org>
- Subject: Re: Gnome 2.0.1 compiling problems
- Date: Wed, 04 Sep 2002 00:48:29 +0800
Hi,
here are some comments after playing with Linux:
> While compiling...
>
> GDM:
> ve-misc.c
> ve-misc.c: In function `ve_locale_exists':
> ve-misc.c:375: warning: implicit declaration of function `setlocale'
> ve-misc.c:375: `LC_ALL' undeclared (first use in this function)
> ve-misc.c:375: (Each undeclared identifier is reported only once
> ve-misc.c:375: for each function it appears in.)
> ve-misc.c:375: warning: passing arg 1 of `g_strdup' makes pointer from
> integer without a cast
> ve-misc.c:376: `LC_MESSAGES' undeclared (first use in this function)
> ve-misc.c:376: warning: comparison between pointer and integer
>either you don't have glibc development files installed (notably, the
>langinfo.h or something equivalent), or ve-misc forgot to include it.
>You can check both cases yourself and let us know if ve-misc.c doesn't
>include it.
Woops... it doesn't. I added:
#include <langinfo.h>
And still didn't work. After a bit of grepping in /usr/include, I added:
#include <locale.h>
...and it worked! Beautiful :-)
> GNOME-PRINT:
> ../libgnomeprint/.libs/libgnomeprint-2.so: undefined reference to `deflate'
> ../libgnomeprint/.libs/libgnomeprint-2.so: undefined reference to
> `deflateInit_'../libgnomeprint/.libs/libgnomeprint-2.so: undefined
> reference to `deflateEnd'
> collect2: ld returned 1 exit status
> make[2]: *** [generate] Error 1
>deflate and deflateEnd should be defined in zlib. Check if
>libgnomeprint's configure was able to pick up libz and you have the zlib
>development stuff installed.
LOVELY :-)
Zlib wasn't included. I added in the Makefile:
LIBGNOMEPRINT_LIBS = -Wl,--export-dynamic -L/opt/gnome//lib
-lart_lgpl_2 -lpango-1.0 -lbonobo-2 -lbonobo-activation -lORBit-2 -lxml2 -lm
-llinc -lgmodule-2.0 -ldl -lgobject-2.0 -lgthread-2.0 -lpthread -lglib-2.0
-lfreetype -lz
...and it worked!
Err... I had exactly the same problem with gedit (and I fixed it the same
way). I this an issue it would be
worth looking at?
> yelp-window.c: In function `window_populate':
> yelp-window.c:265: `gettext' undeclared (first use in this function)
> yelp-window.c:265: (Each undeclared identifier is reported only once
> yelp-window.c:265: for each function it appears in.)
> make[2]: *** [yelp-window.o] Error 1
> make[2]: Leaving directory `/root/gnome-2.0.1/yelp-1.0.4/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/gnome-2.0.1/yelp-1.0.4'
> make: *** [all-recursive-am] Error 2
>same issue as the first, you might not have libintl.h installed from
>glibc-devel.
>gnome hackers, any idea why configure isn't checking this ? If it really
>isn't, I'm willing to add these checks in.
Arghh... I didn't make it in this case...
I added:
#include <locale.h>
#include <libintl.h>
TO the file yelp-window.c, only to have this result:
In file included from yelp-window.c:49:
/usr/include/libintl.h:35: syntax error before `extern'
/usr/include/libintl.h:35: parse error before `__const'
/usr/include/libintl.h:39: parse error before `__const'
/usr/include/libintl.h:46: parse error before `__const'
/usr/include/libintl.h:76: parse error before `__const'
/usr/include/libintl.h:80: parse error before `__const'
yelp-window.c: In function `window_populate':
yelp-window.c:269: `gettext' undeclared (first use in this function)
yelp-window.c:269: (Each undeclared identifier is reported only once
yelp-window.c:269: for each function it appears in.)
make[2]: *** [yelp-window.o] Error 1
Grepping in /usr/include didn't help this time... :-(
> SAWFISH:
>
> Well... sawfish compiles, but I don't get the "configuration applet" and I
> am not quire sure how to configure it.
> I was wondering if maybe this was the problem:
>
> configure: WARNING: Can't load rep's libglade wrapper, not building themer
> checking for rep-gtk GNOME wrappers... no
> configure: WARNING: Can't load rep's gnome wrappers
> checking for malloc_get_state... yes
>That looks easy, you don't have rep-gtk installed ;)
I *guarantee* it's installed! It's in /opt/gnome...
If you don't believe me :-) :
---------------------------------------------------
[root localhost rep-gtk-0.16]# make install
/bin/sh ./mkinstalldirs /opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2
set -e; for f in gtk-2/types.la gtk-2/gtk.la gtk-2/libglade.la; do \
/opt/gnome/libexec/rep/i686-pc-linux-gnu/libtool --mode=install
/usr/bin/install -c $f /opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2; \
done
/usr/bin/install -c gtk-2/.libs/types.so
/opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2/types.so
/usr/bin/install -c gtk-2/.libs/types.lai
/opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2/types.la
/usr/bin/install -c gtk-2/.libs/types.a
/opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2/types.a
ranlib /opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2/types.a
chmod 644 /opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2/types.a
libtool: install: warning: remember to run `libtool --finish
/usr/libexec/rep/i386-redhat-linux'
/usr/bin/install -c gtk-2/.libs/gtk.so
/opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2/gtk.so
/usr/bin/install -c gtk-2/.libs/gtk.lai
/opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2/gtk.la
/usr/bin/install -c gtk-2/.libs/gtk.a
/opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2/gtk.a
ranlib /opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2/gtk.a
chmod 644 /opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2/gtk.a
libtool: install: warning: remember to run `libtool --finish
/usr/libexec/rep/i386-redhat-linux'
/usr/bin/install -c gtk-2/.libs/libglade.so
/opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2/libglade.so
/usr/bin/install -c gtk-2/.libs/libglade.lai
/opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2/libglade.la
/usr/bin/install -c gtk-2/.libs/libglade.a
/opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2/libglade.a
ranlib /opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2/libglade.a
chmod 644 /opt/gnome/libexec/rep/i686-pc-linux-gnu/gui/gtk-2/libglade.a
libtool: install: warning: remember to run `libtool --finish
/usr/libexec/rep/i386-redhat-linux'
set -e; for f in gui/gtk-2/types.la gui/gtk-2/gtk.la gui/gtk-2/libglade.la;
do \
case $f in \
gui/gtk-2/gtk.la|gui/gtk-2/gnome-lib.la) \
printf "\nrep_requires='gui.gtk-2.types'\n"
>>/opt/gnome/libexec/rep/i686-pc-linux-gnu/$f ;; \
gui/gkt-2/libglade.la|gui/gtk-2/gnome-ui.la|gui/gtk-2/gdk-pixbuf.la) \
printf "\nrep_requires='gui.gtk-2.gtk'\n"
>>/opt/gnome/libexec/rep/i686-pc-linux-gnu/$f ;; \
gui/gtk-2/gnome-canvas*.la) \
printf "\nrep_requires='gui.gtk-2.gnome-ui'\n"
>>/opt/gnome/libexec/rep/i686-pc-linux-gnu/$f ;; \
esac; \
done
for f in gui/gtk-2/types.la gui/gtk-2/gtk.la gui/gtk-2/libglade.la; do \
printf "\nrep_open_globally=yes\n"
>>/opt/gnome/libexec/rep/i686-pc-linux-gnu/$f; \
done
/opt/gnome/libexec/rep/i686-pc-linux-gnu/install-aliases -c .
/opt/gnome/libexec/rep/i686-pc-linux-gnu
-------------------------------------------------
Could it be because I installed everything in /opt...?
Thanks a lot Thomas, I really appreciate your help!
Merc.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]