[Fontconfig] Build issue help needed...

Philip Schneider philip at pixologic.com
Sat Mar 16 11:07:48 PDT 2013

Greetings -

I'm trying to build fontconfig for Adobe's FlasCC, and am running into an issue with the build system…

For those who don't know what FlasCC is: basically the traditional Unix/Linux-family tools for compiling and linking C++, but instead of producing native code, it produces Actionscript bytecode static libraries. So, typically I can use the typical "./configure; make install" sorts of build processes (with occasional manual editing of config.h-type files).

In any case, with FlasCC, I'm of course building static libs, and so I specify "--enable-static=yes --enable-shared=no" when running autogen.sh or configure. Because I have some compilation-time dependencies on expat and freetype, I set up environment variables:


The configuration goes OK, and all the compilation, until the end, when I get this failure:

*** Warning: Linking the shared library libfontconfig.la against the
*** static library /MyStuff/dev/lib/Flash/build-flascc/lib/libfreetype.a is not portable!

*** Warning: Linking the shared library libfontconfig.la against the
*** static library /MyStuff/dev/lib/Flash/build-flascc/lib/libexpat.a is not portable!
make[5]: Leaving directory `/MyStuff/dev/external/fontconfig/build/fontconfig/src'
make[4]: Leaving directory `/MyStuff/dev/external/fontconfig/build/fontconfig/src'
Making all in fc-cache
make[4]: Entering directory `/MyStuff/dev/external/fontconfig/build/fontconfig/fc-cache'
  CC       fc-cache.o
  CCLD     fc-cache
../src/.libs/libfontconfig.a: error: undefined reference to '_FT_Get_Sfnt_Name'
[Various other similar errors…]
../src/.libs/libfontconfig.a: error: undefined reference to '_XML_ParserCreate'
[Various other similar errors…]
collect2: ld returned 1 exit status
make[4]: *** [fc-cache] Error 1
make[4]: Leaving directory `/MyStuff/dev/external/fontconfig/build/fontconfig/fc-cache'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/MyStuff/dev/external/fontconfig/build/fontconfig'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/MyStuff/dev/external/fontconfig/build/fontconfig'

While I have some experience using Makefiles, etc., I don't have the expert-level knowledge in scripts like configure or lib tool to track down what's going wrong. My assumption is that some difference in the FlasCC versions of some tools (gcc, ld, nm, other?) have caused some confusion to "configure" or "libtool" or similar, resulting in libtool thinking it that a shared library is involved at all. It should be noted that the desired libfontconfig.a is indeed being constructed, so the error is occurring after that point. 

Any advice on where to look for the source of this confusion would be most helpful.


-- Philip

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20130316/85cf1136/attachment.html>

More information about the Fontconfig mailing list