[Fontconfig] fc-list weirdness in fontconfig 2.3.0: FcFini

greg smith gasmith3 at wisc.edu
Wed Apr 13 06:40:25 EST 2005


Seriously, any ideas would be greatly appreciated here.

There's more weirdness. I installed on both Linux (despite the failed
test) and Solaris (whose test passed without any problems). For some
reason, the installed binary works FINE under Linux, but now BREAKS
under Solaris with the same error messages I was seeing in Linux during
the test. What is going on here??

----------

[solaris] & ldd -d ./bin/fc-list
        libfontconfig.so.1 =>    /usr/lib/libfontconfig.so.1
        libiconv.so.2 =>         /afs/engr.wisc.edu/oss/lib/libiconv.so.2
        libfreetype.so.6 =>      /afs/engr.wisc.edu/oss/lib/libfreetype.so.6
        libexpat.so.0 =>         /afs/engr.wisc.edu/oss/lib/libexpat.so.0
        libc.so.1 =>     /usr/lib/libc.so.1
        libz.so.1 =>     /usr/lib/libz.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        /usr/platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1
[solaris] & ./bin/fc-list
<...normal output...>
ld.so.1: ../../bin/fc-list: fatal: relocation error: file
../../bin/fc-list: symbol FcFini: referenced symbol not found
Killed

----------

[linux] & ldd -d ./bin/fc-list
        libiconv.so.2 => /afs/engr.wisc.edu/oss/lib/libiconv.so.2
(0x40018000)
        libfontconfig.so.1 =>
/afs/engr.wisc.edu/oss/fontconfig-2.3.0/i386_linux24/lib/libfontconfig.so.1
(0x400f1000)
        libc.so.6 => /lib/libc.so.6 (0x4012b000)
        libfreetype.so.6 =>
/afs/engr.wisc.edu/oss/freetype-2.1.5/i386_linux24/lib/libfreetype.so.6
(0x4025f000)
        libexpat.so.0 =>
/afs/engr.wisc.edu/oss/expat-1.95.6/i386_linux24/lib/libexpat.so.0
(0x402c4000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libz.so.1 => /usr/lib/libz.so.1 (0x402e4000)
[linux] & ./bin/fc-list
<...normal output...>

----------

I'm particularly interested in finding out why the Solaris ldd -d output
does NOT find any broken dependencies or unresolved symbols... but
running fc-list throws out an unresolved symbol error.

-Greg


----- Original Message -----
From: greg smith <gasmith3 at wisc.edu>
Date: Thursday, April 7, 2005 5:54 pm
Subject: [Fontconfig] c-list weirdness in fontconfig 2.3.0 regarding FcFini

> Hello,
> 
> I've been trying to install fontconfig 2.3.0 on a distributed system,
> and I'm having a bit of trouble doing so. First, I should explain that
> all OSS software is kept on an AFS server. Linux & Solaris machines 
> arehooked up to this server, and the links are craftily arranged so 
> thateach system only sees its own binaries, libraries, etc.
> 
> As you might imagine, it's a nightmare. However, I generally don't 
> havetoo many problems getting things to work properly.
> 
> 
> Anyways, here's my problem:
> 
> When I try to build fontconfig under Linux, it compiles and links
> properly - but the test fails. I currently have things configured 
> thusly:
> ./configure --prefix=/afs/engr.wisc.edu/oss/fontconfig-
> 2.3.0/i386_linux24
> I have also tried: (as well as many other combinations of the below 
> flags)
> ./configure
> --prefix=/afs/engr.wisc.edu/oss/fontconfig-2.3.0/i386_linux24
> --enable-dependency-tracking --disable-fast-install
> --disable-libtool-lock
> --with-freetype-config=/afs/engr.wisc.edu/oss/bin/freetype-config
> 
> 
> 
> I do not recieve any errors or warnings during compile/link time, but
> when it comes time for the testing, this is the output from run-
> test.sh:
> /afs/engr.wisc.edu/oss/fontconfig-2.3.0/src/fontconfig-2.3.0/fc-
> list/.libs/lt-fc-list:
> relocation error:
> /afs/engr.wisc.edu/oss/fontconfig-2.3.0/src/fontconfig-2.3.0/fc-
> list/.libs/lt-fc-list:
> undefined symbol: FcFini
> /afs/engr.wisc.edu/oss/fontconfig-2.3.0/src/fontconfig-2.3.0/fc-
> list/.libs/lt-fc-list:
> relocation error:
> /afs/engr.wisc.edu/oss/fontconfig-2.3.0/src/fontconfig-2.3.0/fc-
> list/.libs/lt-fc-list:
> undefined symbol: FcFini
> /afs/engr.wisc.edu/oss/fontconfig-2.3.0/src/fontconfig-2.3.0/fc-
> list/.libs/lt-fc-list:
> relocation error:
> /afs/engr.wisc.edu/oss/fontconfig-2.3.0/src/fontconfig-2.3.0/fc-
> list/.libs/lt-fc-list:
> undefined symbol: FcFini
> *** Test failed: Basic check
> *** output is in 'out', expected output in 'out.expected'
> 
> 
> 
> I am using freetype2, but an older version of freetype is installed in
> the system for the sake of old dependencies.
> 
> I have tried using cc and gcc, with both make and gmake.
> 
> These are the applicable environment variables:
> 
> # directory crap to make the following more readable
> OSS="/afs/engr.wisc.edu/oss"
> GNU="/afs/engr.wisc.edu/gnu"
> OSSRW="/afs/.engr.wisc.edu/oss"
> ARCH=`/usr/afsws/bin/fs sysname | cut -d \' -f2`
> FOLDER="fontconfig-2.3.0"
> 
> # C(++) compiler
> CC="gcc"
> CXX="gcc"
> 
> # compiler/linker flags, etc
> CPPFLAGS="-I$OSS/include/freetype2 -I$OSS/include"
> CXXFLAGS="$CPPFLAGS"
> C_INCLUDE_PATH=""
> CPP_INCLUDE_PATH="$C_INCLUDE_PATH"
> LD_LIBRARY_PATH="$OSS/lib"
> LIBRARY_PATH="$LD_LIBRARY_PATH"
> LD_OPTIONS=""
> CFLAGS="-O2 -Wall"
> LDFLAGS="-Wl,--rpath -Wl,$OSS/$FOLDER/$ARCH/lib
> -Wl,-L$OSS/$FOLER/$ARCH/lib -Wl,--rpath -Wl,$OSS/lib -Wl,-L$OSS/lib
> -Wl,-liconv"
> PKG_CONFIG_PATH="$OSS/lib/pkgconfig"
> 
> # path
>
PATH="$OSS/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/bin:/usr/local/bin:/opt/csw/bin:/usr/sfw/bin:/usr/afsws/bin:/usr/afsws/sbin:/usr/openwin/bin"
> 
> 
> 
> I decided to try running src/.libs/fc-list for myself, and I found 
> thatthe output it produced was **IDENTICAL** to that of fc-list 
> from my
> previous installation of fontconfig - the only obvious difference 
> beingthe "relocation error"/"undefined symbol" message at the end.
> 
> 
> Another (perhaps unrelated problem) is that gcc was not linking 
> properlywith libiconv; hence the manual "-Wl,-liconv" in the 
> LDFLAGS environment
> variable.
> 
> 
> Please help, this installation has given me no end of frustration 
> in the
> past couple days.
> Thanks,
> 
> -Greg
> _______________________________________________
> fontconfig mailing list
> fontconfig at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/fontconfig
> 



More information about the Fontconfig mailing list