Bug 2775

Summary: Solaris 9 <sparc arch>, fontconfig-2.3.1 - "fc-cache] Error" ? please help
Product: fontconfig Reporter: maurizio <mauric>
Component: fc-cacheAssignee: Keith Packard <keithp>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: high CC: john
Version: 2.2   
Hardware: SPARC   
OS: Solaris   
Whiteboard:
i915 platform: i915 features:

Description maurizio 2005-03-19 15:33:06 UTC
i have update the version of libiconv to 1.9.2 and freetype-2.1.9 
the ./configure <with options> from fontconfig-2.3.1 run's without problems but 
if i run gmake i become this strange error.

<snip>
/bin/bash ../libtool --mode=link gcc  -g -O2    -o fc-cache  fc-cache.o ../src/l
ibfontconfig.la
gcc -g -O2 -o .libs/fc-cache fc-cache.o  ../src/.libs/libfontconfig.so -L/usr/lo
cal/lib /usr/local/lib/libfreetype.so -lz /usr/lib/libexpat.so -R/usr/local/lib
Undefined                       first referenced
 symbol                             in file
libiconv_open                       ../src/.libs/libfontconfig.so
libiconv                            ../src/.libs/libfontconfig.so
ld: fatal: Symbol referencing errors. No output written to .libs/fc-cache
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `fc-cache'
blade /usr/comp/fontconfig-2.3.1/fc-cache 23:33:57 > gmake
/bin/bash ../libtool --mode=link gcc  -g -O2   -o fc-cache  fc-
cache.o ../src/libfontconfig.la
gcc -g -O2 -o .libs/fc-cache fc-cache.o  ../src/.libs/libfontconfig.so -
L/usr/local/lib /usr/local/lib/libfreetype.so -lz /usr/lib/libexpat.so -
R/usr/local/lib
Undefined                       first referenced
 symbol                             in file
libiconv_open                       ../src/.libs/libfontconfig.so
libiconv                            ../src/.libs/libfontconfig.so
ld: fatal: Symbol referencing errors. No output written to .libs/fc-cache
collect2: ld returned 1 exit status
gmake: *** [fc-cache] Error 1

i don't know now how i can solve this problem,
can you please give me any more brain tips to 
made a succesfuly Compilation for me fontconfig ver.

thanks in advance
best regards
Maurizio
Comment 1 Alexander 2005-03-21 00:50:07 UTC
Duplicate of #2774
Workaround: replace line 

 LDFLAGS = @LDFLAGS@

in fc-cache/Makefile.in, fc-list/Makefile.in and fc-match/Makefile.in with

 LDFLAGS = @LDFLAGS@ -liconv

rerun ./configure && make
Comment 2 maurizio 2005-03-21 08:09:57 UTC
Thanks whery much, i have log time searched for this error (without success)
bevor i have posted here, but from how i can learn or see that this is 
missing ...... ???

THANKS FOR THIS HELP
best regards 
Maurizio
Comment 3 John Berger 2005-10-26 08:40:17 UTC
*** Bug 4893 has been marked as a duplicate of this bug. ***
Comment 4 Patrick Lam 2006-02-22 02:08:09 UTC
Marking duplicate of 2774.

*** This bug has been marked as a duplicate of 2774 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.