LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-18-2005, 10:31 AM   #1
killy9999
Member
 
Registered: Feb 2005
Location: Poland
Distribution: openSUSE 11.3/11.4 x64
Posts: 114

Rep: Reputation: 15
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
./.libs/libpangoxft-1.0.so: undefined reference to `g_type_instance_get_private'
./.libs/libpangoxft-1.0.so: undefined reference to `g_type_class_add_private'
./.libs/libpangoxft-1.0.so: undefined reference to `g_assert_warning'
/dane/pango-1.8.0/pango/.libs/libpango-1.0.so: undefined reference to `g_unichar_get_mirror_char'
/dane/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 `/dane/pango-1.8.0/pango'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/dane/pango-1.8.0/pango'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/dane/pango-1.8.0/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/dane/pango-1.8.0'
make: *** [all] Error 2
Can someone help me with this?
 
Old 02-22-2005, 07:09 PM   #2
slylos
LQ Newbie
 
Registered: Feb 2005
Distribution: SuSE 9.1
Posts: 21

Rep: Reputation: 15
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)

Last edited by slylos; 02-22-2005 at 07:11 PM.
 
Old 02-23-2005, 01:55 AM   #3
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
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
 
Old 02-23-2005, 07:44 AM   #4
slylos
LQ Newbie
 
Registered: Feb 2005
Distribution: SuSE 9.1
Posts: 21

Rep: Reputation: 15
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:
Originally posted by bunnadik
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
 
Old 02-23-2005, 08:36 AM   #5
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
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
 
Old 02-23-2005, 06:15 PM   #6
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
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
 
Old 02-23-2005, 11:40 PM   #7
slylos
LQ Newbie
 
Registered: Feb 2005
Distribution: SuSE 9.1
Posts: 21

Rep: Reputation: 15
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:
Originally posted by bunnadik
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
 
Old 02-24-2005, 01:51 AM   #8
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
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
urpme libglib2.0_0-devel
You also might have to uninstall libpango1.0_0-devel and libatk1.0_0-devel further on.

Edit: Of cause if you run Suse you'll have to use Yast or whatever to remove the packages

- Peder

Last edited by bunnadik; 02-24-2005 at 04:18 AM.
 
Old 02-24-2005, 04:06 AM   #9
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Wasn't Pango available on the URPMI repositories for 10.0?

I thought it was?
 
Old 02-25-2005, 09:08 AM   #10
anpaza
LQ Newbie
 
Registered: Feb 2005
Posts: 1

Rep: Reputation: 0
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  '
to:

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  '
After this compilation continues without errors.
 
Old 02-25-2005, 05:11 PM   #11
slylos
LQ Newbie
 
Registered: Feb 2005
Distribution: SuSE 9.1
Posts: 21

Rep: Reputation: 15
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:
Originally posted by anpaza
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  '
to:

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  '
After this compilation continues without errors.

Last edited by slylos; 02-25-2005 at 05:18 PM.
 
Old 02-26-2005, 11:31 PM   #12
slylos
LQ Newbie
 
Registered: Feb 2005
Distribution: SuSE 9.1
Posts: 21

Rep: Reputation: 15
bump still need help please
 
Old 02-28-2005, 03:07 PM   #13
slylos
LQ Newbie
 
Registered: Feb 2005
Distribution: SuSE 9.1
Posts: 21

Rep: Reputation: 15
one last bump somebody please help me!! I'm gonna die!!
 
Old 03-01-2005, 10:47 PM   #14
bcamper
LQ Newbie
 
Registered: Mar 2005
Posts: 1

Rep: Reputation: 0
I know this doesn't help, but I am experiencing the exact error on Mandrake 10.

Anyone have a solution yet?
 
Old 03-02-2005, 06:22 AM   #15
burki
Member
 
Registered: Oct 2004
Distribution: Mandrake 10.1, Ubuntu 5.04
Posts: 65

Rep: Reputation: 15
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???
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error in the creation of `etc/pango/pango.modules` okeyla Linux - Newbie 3 07-02-2011 08:06 PM
Pango install issues with X backend MilesGloriosus Linux - Software 1 04-29-2005 03:48 PM
Installation issues under MDK 9.2. A botched attempted harddrive install scuzzman Linux - Newbie 3 05-31-2004 10:50 PM
WEP for PrismII wireless Mdk 9.1/ new install issues. theoldman Mandriva 6 09-19-2003 08:50 PM
installing GTK+2.2.0 (issues with atk-1.2.0 & pango-1.2.0) jlewis_linux Linux - Software 6 06-10-2003 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration