LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   libfontconfig.so: undefined reference (https://www.linuxquestions.org/questions/linux-software-2/libfontconfig-so-undefined-reference-4175447203/)

gearonlinux 01-25-2013 12:59 PM

libfontconfig.so: undefined reference
 
I am building GTK with DriectFB for powerpc platform. my host PC is running under fedora

with the help of http://directfb.org/wiki/index.php/P...bedded_Systems

i could able to compile and install the packages according to the above link. but
while compiling pango i am getting the error
Code:

powerpc-linux-gnu-gcc -g -O2 -Wall -o harfbuzz-dump harfbuzz-dump.o harfbuzz-dump-main.o /opt/gtkdfb/usr/local/lib/libfreetype.so /opt/gtkdfb/usr/local/lib/libfontconfig.so  ./.libs/libharfbuzz-1.a
/home/power/js2toolchain/gcc-4.6.1-eglibc-2.14/powerpc-linux-gnu/lib/gcc/powerpc-linux-gnu/4.6.1/../../../../powerpc-linux-gnu/bin/ld: warning: libxml2.so.2, needed by /opt/gtkdfb/usr/local/lib/libfontconfig.so, not found (try using -rpath or -rpath-link)
/opt/gtkdfb/usr/local/lib/libfontconfig.so: undefined reference to `xmlSAX2GetLineNumber'
/opt/gtkdfb/usr/local/lib/libfontconfig.so: undefined reference to `xmlCtxtGetLastError'
/opt/gtkdfb/usr/local/lib/libfontconfig.so: undefined reference to `xmlFreeParserCtxt'
/opt/gtkdfb/usr/local/lib/libfontconfig.so: undefined reference to `xmlParseChunk'
/opt/gtkdfb/usr/local/lib/libfontconfig.so: undefined reference to `xmlCreatePushParserCtxt'
collect2: ld returned 1 exit status
gmake[4]: *** [harfbuzz-dump] Error 1
gmake[4]: Leaving directory `/home/power/arief/pango-1.20.0/pango/opentype'

there are similar problems discussed in other forums but that did not helped me to resolve.
please share your ideas.

John VV 01-25-2013 08:26 PM

fedora 18 uses gcc 4.7
and 4.7 is WAY more "strict" in codding standards than say gcc 4.1

it is a very common issue that software will not ( YET ) build on a current fedora 18 because of the very VERY newest of the new version gcc

one very often needs to hack software to ( even if it is only 6 mo. old ) to get it into compliance with the very new gcc

--- this is only a guess so...----

you will need to add "-lfontconfig"to the linker line

that is easier said than done

it might be buried deep in the "configure" or one of the "Makefile's"

if i had to guess in the Makefile in "/home/power/arief/pango-1.20.0/pango/opentype"

however
pango IS in the fedora 18 repos
Code:

su -
yum search pango
---- then from the list install it
yum install pango pango-devel


gearonlinux 01-26-2013 02:14 PM

Thank you very very much i added "-lfontconfig" in CFLAGS linker line in /pango-1.20.0/pango/opentype/Makefile.
Now make moved to next step with some other error.

Got right answer for current thread - solved, Thanks John


All times are GMT -5. The time now is 09:44 AM.