LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   libpango-1.0.so: undefined reference to `g_type_init' (http://www.linuxquestions.org/questions/linux-general-1/libpango-1-0-so-undefined-reference-to-%60g_type_init-4175447430/)

gearonlinux 01-27-2013 12:25 PM

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

gearonlinux 01-27-2013 02:35 PM

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.

gearonlinux 01-27-2013 02:37 PM

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.


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