LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-27-2013, 01:25 PM   #1
gearonlinux
LQ Newbie
 
Registered: Jan 2011
Location: India
Distribution: ubuntu
Posts: 11

Rep: Reputation: 0
libpango-1.0.so: undefined reference to `g_type_init'


Hi

Compiling pango in fedora for powerpc target.

I installed all the dependency libraries for pango.
but sill i am getting the below error. looks like some thing missing in Makefile.

Code:
/bin/sh ../libtool --tag=CC   --mode=link powerpc-linux-gnu-gcc  -g -O2 -Wall -lglib-2.0   -o dump-boundaries dump-boundaries.o ../pango/libpango-1.0.la
powerpc-linux-gnu-gcc -g -O2 -Wall -o .libs/dump-boundaries dump-boundaries.o  /usr/local/lib/libglib-2.0.so -lpthread -lrt ../pango/.libs/libpango-1.0.so -lm  -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/opt/gtkdfb/usr/local/lib
../pango/.libs/libpango-1.0.so: undefined reference to `g_type_module_get_type'
../pango/.libs/libpango-1.0.so: undefined reference to `g_type_qname'
../pango/.libs/libpango-1.0.so: undefined reference to `g_type_module_use'
../pango/.libs/libpango-1.0.so: undefined reference to `g_flags_register_static'
../pango/.libs/libpango-1.0.so: undefined reference to `g_object_get_data'
../pango/.libs/libpango-1.0.so: undefined reference to `g_object_unref'
../pango/.libs/libpango-1.0.so: undefined reference to `g_module_close'
../pango/.libs/libpango-1.0.so: undefined reference to `g_object_set_data_full'
../pango/.libs/libpango-1.0.so: undefined reference to `g_enum_register_static'
../pango/.libs/libpango-1.0.so: undefined reference to `g_enum_get_value'
../pango/.libs/libpango-1.0.so: undefined reference to `g_object_new'
../pango/.libs/libpango-1.0.so: undefined reference to `g_object_ref'
../pango/.libs/libpango-1.0.so: undefined reference to `g_type_module_unuse'
../pango/.libs/libpango-1.0.so: undefined reference to `g_type_init'
../pango/.libs/libpango-1.0.so: undefined reference to `g_type_register_static'
../pango/.libs/libpango-1.0.so: undefined reference to `g_module_symbol'
../pango/.libs/libpango-1.0.so: undefined reference to `g_type_check_instance_is_a'
../pango/.libs/libpango-1.0.so: undefined reference to `g_type_name'
../pango/.libs/libpango-1.0.so: undefined reference to `g_type_instance_get_private'
../pango/.libs/libpango-1.0.so: undefined reference to `g_enum_get_value_by_nick'
../pango/.libs/libpango-1.0.so: undefined reference to `g_type_register_static_simple'
../pango/.libs/libpango-1.0.so: undefined reference to `g_type_class_unref'
../pango/.libs/libpango-1.0.so: undefined reference to `g_object_set_qdata_full'
../pango/.libs/libpango-1.0.so: undefined reference to `g_module_open'
../pango/.libs/libpango-1.0.so: undefined reference to `g_module_error'
../pango/.libs/libpango-1.0.so: undefined reference to `g_type_class_ref'
../pango/.libs/libpango-1.0.so: undefined reference to `g_object_get_qdata'
../pango/.libs/libpango-1.0.so: undefined reference to `g_type_class_add_private'
../pango/.libs/libpango-1.0.so: undefined reference to `g_type_class_peek_parent'
../pango/.libs/libpango-1.0.so: undefined reference to `g_boxed_type_register_static'
collect2: ld returned 1 exit status
make: *** [dump-boundaries] Error 1
Please help to come out from the above error.
Thanks
 
Old 01-27-2013, 03:35 PM   #2
gearonlinux
LQ Newbie
 
Registered: Jan 2011
Location: India
Distribution: ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
Solved by adding "--lglib-2.0" in linker line all makefiles
Actually Pango has so many makefiles internally, which is bit confusing. any way my problem solved.

Last edited by gearonlinux; 01-27-2013 at 03:38 PM. Reason: modified
 
Old 01-27-2013, 03:37 PM   #3
gearonlinux
LQ Newbie
 
Registered: Jan 2011
Location: India
Distribution: ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
Solved by adding "--lglib-2.0" in linker line all makefiles
Actually Pango has so many makefiles internally, which is bit confusing. any way my problem solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Undefined reference, why? george_mercury Programming 4 05-07-2009 01:15 AM
./firefox-bin: symbol lookup error: /usr/lib/libpango-1.0.so.0: undefined symbol: g_s cb8100 Slackware 3 10-05-2006 11:55 AM
undefined reference vkmgeek Programming 1 05-11-2006 07:37 AM
Undefined Reference ChemicalBurn Programming 2 02-14-2005 04:01 AM
undefined reference mp4-10 Programming 3 01-25-2005 01:38 PM


All times are GMT -5. The time now is 07:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration