GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Mon Jul 28, 2014 10:33 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: pango-1.20.0/tests/dump-boundaries.c:39: undefined reference
PostPosted: Sat Jan 26, 2013 9:15 pm 
Offline
Familiar Face

Joined: Wed Jan 23, 2013 5:18 pm
Posts: 26
Hi,

I am getting the error while compiling pango for my cross platform.
It looks like the error is at test folder files in pango

Code:
/bin/sh ../libtool --tag=CC   --mode=link powerpc-linux-gnu-gcc  -g -O2 -Wall -lrt   -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  -lrt ../pango/.libs/libpango-1.0.so -lm  -Wl,--rpath -Wl,/opt/gtkdfb/usr/local/lib
dump-boundaries.o: In function `fail':
/home/power/arief/pango-1.20.0/tests/dump-boundaries.c:39: undefined reference to `g_strdup_vprintf'
/home/power/arief/pango-1.20.0/tests/dump-boundaries.c:44: undefined reference to `g_free'
dump-boundaries.o: In function `main':
/home/power/arief/pango-1.20.0/tests/dump-boundaries.c:118: undefined reference to `g_setenv'
/home/power/arief/pango-1.20.0/tests/dump-boundaries.c:123: undefined reference to `g_file_get_contents'
dump-boundaries.o: In function `dump_text':
/home/power/arief/pango-1.20.0/tests/dump-boundaries.c:57: undefined reference to `g_utf8_validate'


Any suggestion will be helpful.

Thanks

_________________
Thanks,
Arief.
None of us is stronger than all of us


Top
 Profile  
 
 Post subject: Re: pango-1.20.0/tests/dump-boundaries.c:39: undefined refer
PostPosted: Sun Jan 27, 2013 4:14 am 
Offline
Never Seen the Sunlight

Joined: Thu Mar 24, 2011 2:10 pm
Posts: 328
Location: Sydney, Australia
all of the functions in the error list are from glib. You might want to make sure the glib headers are included (or potentially that you should compile glib first and install it's headers to a place where pango expects them).


Top
 Profile  
 
 Post subject: Re: pango-1.20.0/tests/dump-boundaries.c:39: undefined refer
PostPosted: Sun Jan 27, 2013 5:13 pm 
Offline
Familiar Face

Joined: Wed Jan 23, 2013 5:18 pm
Posts: 26
Hi Paul,
Thanks for the response.

I added --lglib-2.0 in linker line and came out of the current error but now i am getting similar error as below

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


any suggestions ?

_________________
Thanks,
Arief.
None of us is stronger than all of us


Top
 Profile  
 
 Post subject: RE:pango-1.20.0/tests/dump-boundaries.c:39: undefined refere
PostPosted: Sun Jan 27, 2013 8:32 pm 
Offline
Familiar Face

Joined: Wed Jan 23, 2013 5:18 pm
Posts: 26
Solved by adding the same lib flag in another makefile
Actually Pango has so many makefiles internally, which is bit confusing. any way my problem solved.
Thank supporters.

_________________
Thanks,
Arief.
None of us is stronger than all of us


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group