FYI... the fix is to download expat from http://expat.sourceforge.net and build/install that. Worked fine for me, and built with no issues. Then after a make clean, fontconfig and such built. Mike Michael Prentice wrote:> I''m running into the same problem. I tried just removing the -lexpat > from the build. And that causes fontconfig.so to build. But then > when I try to build fc-cache: > > > gcc -g -O2 -DHAVE_CONFIG_H -DFONTCONFIG_PATH=\"/etc/fonts\" -I.. -I. > -I/net/acrolein/export/home/mprentic/include/freetype > -I/net/acrolein/export/home/mprentic/include > -I/net/acrolein/export/home/mprentic/include > -I/net/acrolein/export/home/mprentic/include/freetype2 -o fc-cache > fc-cache.o -L../src -lfontconfig > Undefined first referenced > symbol in file > XML_SetCharacterDataHandler ../src/libfontconfig.so > XML_SetDoctypeDeclHandler ../src/libfontconfig.so > XML_GetBuffer ../src/libfontconfig.so > XML_GetErrorCode ../src/libfontconfig.so > XML_ErrorString ../src/libfontconfig.so > XML_ParserCreate ../src/libfontconfig.so > XML_ParserFree ../src/libfontconfig.so > XML_GetCurrentLineNumber ../src/libfontconfig.so > XML_SetUserData ../src/libfontconfig.so > XML_ParseBuffer ../src/libfontconfig.so > XML_SetElementHandler ../src/libfontconfig.so > ld: fatal: Symbol referencing errors. No output written to fc-cache > collect2: ld returned 1 exit status > *** Error code 1 > make: Fatal error: Command failed for target `fc-cache'' > > > So I assume that expat is all the XML stuff that I need... > > > I guess there''s been no resolution to this in the last month? > > Mike > > > ------------------------------------------------ > > Brent Bice fontconfig@fontconfig.org > Tue, 4 Mar 2003 14:51:42 -0800 (PST) > > I''m havin'' trouble getting fontconfig to compile on solaris. I''ve > compiled expat (I *think* it''s ok - ar -t shows all the .o files) but > when > I try to compile fontconfig, I get: > > Text relocation remains referenced > against symbol offset in file > <unknown> 0x19dc > /usr/local/lib/libexpat.a(xmlparse.o) > (and a jillion or so other <unknown>''s. - grin) > > I assume that this means something is wrong with my expat lib? There > was no install for it, but it compiled with no errors. And I just copied > the resulting .a file to /usr/local/lib and a handful of the .h files to > /usr/local include. That oughta be ok, right? > > Thanks in advance for any tips you can offer...... > > Brent > >-- Michael Prentice - Software Engineer IBM Software Group - Rational Software Configuration Management - Clearcase Web Lexington, MA 781-676-2754 617-650-4556 mailto:mprentice@rational.com
I''m running into the same problem. I tried just removing the -lexpat
from the build. And that causes fontconfig.so to build. But then when
I try to build fc-cache:
gcc -g -O2 -DHAVE_CONFIG_H -DFONTCONFIG_PATH=\"/etc/fonts\" -I.. -I.
-I/net/acrolein/export/home/mprentic/include/freetype
-I/net/acrolein/export/home/mprentic/include
-I/net/acrolein/export/home/mprentic/include
-I/net/acrolein/export/home/mprentic/include/freetype2 -o fc-cache
fc-cache.o -L../src -lfontconfig
Undefined first referenced
symbol in file
XML_SetCharacterDataHandler ../src/libfontconfig.so
XML_SetDoctypeDeclHandler ../src/libfontconfig.so
XML_GetBuffer ../src/libfontconfig.so
XML_GetErrorCode ../src/libfontconfig.so
XML_ErrorString ../src/libfontconfig.so
XML_ParserCreate ../src/libfontconfig.so
XML_ParserFree ../src/libfontconfig.so
XML_GetCurrentLineNumber ../src/libfontconfig.so
XML_SetUserData ../src/libfontconfig.so
XML_ParseBuffer ../src/libfontconfig.so
XML_SetElementHandler ../src/libfontconfig.so
ld: fatal: Symbol referencing errors. No output written to fc-cache
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `fc-cache''
So I assume that expat is all the XML stuff that I need...
I guess there''s been no resolution to this in the last month?
Mike
------------------------------------------------
Brent Bice fontconfig@fontconfig.org
Tue, 4 Mar 2003 14:51:42 -0800 (PST)
I''m havin'' trouble getting fontconfig to compile on solaris.
I''ve
compiled expat (I *think* it''s ok - ar -t shows all the .o files) but
when
I try to compile fontconfig, I get:
Text relocation remains referenced
against symbol offset in file
<unknown> 0x19dc
/usr/local/lib/libexpat.a(xmlparse.o)
(and a jillion or so other <unknown>''s. - grin)
I assume that this means something is wrong with my expat lib? There
was no install for it, but it compiled with no errors. And I just copied
the resulting .a file to /usr/local/lib and a handful of the .h files to
/usr/local include. That oughta be ok, right?
Thanks in advance for any tips you can offer......
Brent
--
Michael Prentice - Software Engineer
IBM Software Group - Rational Software
Configuration Management - Clearcase Web
Lexington, MA 781-676-2754 617-650-4556
mailto:mprentice@rational.com