Pango 1.8.0 install issues (mdk 10.0)
I need to install latest GTK+ 2.6.2, which requires GLib >= 2.6.0 , ATK and pango. I had problems with GLib, but I read some threads on this forum and I got a bit further with my installation... but I've encountered new problems. This time with pango 1.8.0 compilation. I run ./configure, it reports no errors and everything seems to be ok. Then I run make, and at one point it ends with an error:
Code:
gcc -g -O2 -Wall -o .libs/pango-querymodules querymodules.o ./.libs/libpangox-1.0.so -L/usr/local/lib -L/usr/X11R6/lib ./.libs/libpangoxft-1.0.so /dane/pango-1.8.0/pango/.libs/libpangoft2-1.0.so -lXft -lX11 -lXrender ./.libs/libpangoft2-1.0.so /dane/pango-1.8.0/pango/.libs/libpango-1.0.so /usr/lib/libfontconfig.so /usr/lib/libexpat.so /usr/lib/libfreetype.so -lz /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so ./.libs/libpango-1.0.so -lm /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libglib-2.0.so -Wl,--rpath -Wl,/opt/lib |
Great . . . I have the same problem your having, and I hate to hijack your thread, but I just realized you have 30+ views with no replys. There goes hope for me solving my problem. Can't somebody help at all??
edit: I just realized I'm in the Mandrake section but I'm runing SuSE - I'll go post over there (if it exists - I haven't checked yet) |
I think you got glib installed OK but the pango can't find it so it uses the old lib.
It's a bit weird that your compilation line tries to link both /usr/lib/libglib-2.0.so and /usr/local/lib/libglib-2.0.so. If you infact have a /usr/local/lib/libglib-2.0.so you could try 'export LDFLAGS=-Wl,-R/usr/local/lib' before running ./configure - Peder |
When I run ./configure I see some output that says "checking for glib >= 2.4.0 (yes glib=2.6.2)" so its strange that it sees that as the version but still could use an older version.
Quote:
|
Did you install glib to /usr/local or somewhere else?
If so, have you added /usr/local/lib to the top of /etc/ld.so.conf? Sometimes it seems like the linker chooses the one in /usr/lib despite the above and the only way I've got it to work was by setting LDFLAGS=-Wl,-R/usr/local/lib I think ./configure perorms its own black magic to determine versions and might not pass the location down to the linker. - Peder |
If glib is the case, then just install it to /usr. I did that and have never had any problems when compiling other programs that look for glib
|
I tried setting LDFLAGS=-Wl,-R/usr/local/lib, still get the same error. I'm allowing glib to install to its default location, which I believe is /usr/local/lib. That path is already in /etc/ld.so.conf. I read somewhere that I could just install it to /usr, but that if anything goes wrong in the future, they *really* go wrong and that doesn't sound attractive to me as I'm still fairly green to linux. Thanks for your help so far guys please keep the idea's coming ...
Quote:
|
Hmm, you could try uninstalling the development packages for gtk2 and glib2. They're not needed unless you want to compile
anything agains them (wich in this case you don't). Try Code:
urpme libgtk+2.0_0-devel Edit: Of cause if you run Suse you'll have to use Yast or whatever to remove the packages - Peder |
Wasn't Pango available on the URPMI repositories for 10.0?
I thought it was? |
I also had this problem and I didnt want to replace my system glib/gtk while compiling 2.6.2 (I needed the framebuffer version)
So here is what you must do. I don't know if this is a pango problem or a libtool problem, but anyways this works, although its not too handy to do automatic builds. Compile as usual. As soon as you get that error, open libpangoft2-1.0.la with a editor and change: Code:
dependency_libs=' /home/zap/src/gtk-2.6.0/pango-1.8.0/pango/libpango-1.0.la -L/usr/local/lib /usr/local/lib/libgobject-2.0.la /usr/local/lib/libgmodule-2.0.la /usr/local/lib/libglib-2.0.la -lfontconfig /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../..//libfreetype.la -lz /usr/lib/libgobject-2.0.la /usr/lib/libgmodule-2.0.la -ldl /usr/lib/libglib-2.0.la -lm ' Code:
dependency_libs=' /home/zap/src/gtk-2.6.0/pango-1.8.0/pango/libpango-1.0.la -L/usr/local/lib /usr/local/lib/libgobject-2.0.la /usr/local/lib/libgmodule-2.0.la /usr/local/lib/libglib-2.0.la -lfontconfig /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../..//libfreetype.la -lz /usr/local/lib/libgobject-2.0.la /usr/local/lib/libgmodule-2.0.la -ldl /usr/local/lib/libglib-2.0.la -lm ' |
Hey thanks for the reply anpaza, after reading your post and making changes, this is what I have in libpangoft2-1.0.la
dependency_libs= ' /home/Carlos/Documents/Downloads/pango/pango-1.8.0/pango/libpango-1.0.la -L/usr/local/lib /usr/local/lib/libgobject-2.0.la /usr/local/lib/libgmodule-2.0.la /usr/local/lib/libglib-2.0.la -lfontconfig /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../..//libfreetype.la -lz /usr/local/lib/libgobject-2.0.la /usr/local/lib/libgmodule-2.0.la -ldl /usr/local/lib/libglib-2.0.la -lm ' and this is the same BS I get back ( I wanna throw my laptop across the room when I see it ) ./.libs/libpangoxft-1.0.so: undefined reference to `g_assert_warning' /home/Carlos/Documents/Downloads/pango/pango-1.8.0/pango/.libs/libpango-1.0.so: undefined reference to `g_fopen' ./.libs/libpangox-1.0.so: undefined reference to `g_return_if_fail_warning' collect2: ld returned 1 exit status make[4]: *** [pango-querymodules] Error 1 make[4]: Leaving directory `/home/Carlos/Documents/Downloads/pango/pango-1.8.0/pango' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/Carlos/Documents/Downloads/pango/pango-1.8.0/pango' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/Carlos/Documents/Downloads/pango/pango-1.8.0/pango' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/Carlos/Documents/Downloads/pango/pango-1.8.0' make: *** [all] Error 2 this is identical to what I was getting before I made any changes to libpangoft2.1.0.la Quote:
|
bump still need help please
|
one last bump somebody please help me!! I'm gonna die!!
|
I know this doesn't help, but I am experiencing the exact error on Mandrake 10.
Anyone have a solution yet? |
man where is the thread that you learned how to solve installation problem with glib. im trying to install gtk and i installed latest glib and when i was installing pango its sayin me that glib is installed incorrectly. how did u pass this problem???
|
All times are GMT -5. The time now is 12:30 PM. |