LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


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

Rep: Reputation: 0
Question 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.
 
Old 01-25-2013, 08:26 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,502

Rep: Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617
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

Last edited by John VV; 01-25-2013 at 08:27 PM.
 
Old 01-26-2013, 02:14 PM   #3
gearonlinux
LQ Newbie
 
Registered: Jan 2011
Location: India
Distribution: ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
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

Last edited by gearonlinux; 01-26-2013 at 02:19 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yet another undefined reference CollieJim Linux - General 2 12-17-2010 11:08 PM
Undefined reference, why? george_mercury Programming 4 05-07-2009 12:15 AM
Undefined reference to: ashlesha Programming 5 11-08-2006 01:07 PM
undefined reference? Sharky01252 Programming 3 11-07-2006 11:36 AM
X errors: libfontconfig.so.1 undefined symbol: FT_Get_PS_Font_Info Don_Quixote Slackware 0 04-25-2004 03:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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