<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Greetings -<div><br></div><div>I'm trying to build fontconfig for Adobe's FlasCC, and am running into an issue with the build system…</div><div><br></div><div>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).</div><div><br></div><div>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:</div><div><br></div><div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">      </span>FREETYPE_CFLAGS="-I/MyStuff/dev/external/FreeType/freetype-2.4.8/include"</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>FREETYPE_LIBS=/MyStuff/dev/lib/Flash/build-flascc/lib/libfreetype.a</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>EXPAT_LIBS=/MyStuff/dev/lib/Flash/build-flascc/lib/libexpat.a</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">      </span>EXPAT_CFLAGS="-I/MyStuff/dev/external/expat/expat/expat/lib"</font></div></div><div><br></div><div><br></div><div>The configuration goes OK, and all the compilation, until the end, when I get this failure:</div><div><br></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><font face="Courier">*** Warning: Linking the shared library libfontconfig.la against the</font></div></div><div><div><font face="Courier">*** static library /MyStuff/dev/lib/Flash/build-flascc/lib/libfreetype.a is not portable!</font></div></div><div><div><font face="Courier"><br></font></div></div><div><div><font face="Courier">*** Warning: Linking the shared library libfontconfig.la against the</font></div></div><div><div><font face="Courier">*** static library /MyStuff/dev/lib/Flash/build-flascc/lib/libexpat.a is not portable!</font></div></div><div><div><font face="Courier">make[5]: Leaving directory `/MyStuff/dev/external/fontconfig/build/fontconfig/src'</font></div></div><div><div><font face="Courier">make[4]: Leaving directory `/MyStuff/dev/external/fontconfig/build/fontconfig/src'</font></div></div><div><div><font face="Courier">Making all in fc-cache</font></div></div><div><div><font face="Courier">make[4]: Entering directory `/MyStuff/dev/external/fontconfig/build/fontconfig/fc-cache'</font></div></div><div><div><font face="Courier">  CC       fc-cache.o</font></div></div><div><div><font face="Courier">  CCLD     fc-cache</font></div></div><div><div><font face="Courier">../src/.libs/libfontconfig.a: error: undefined reference to '_FT_Get_Sfnt_Name'</font></div></div><div><div><font face="Courier">[Various other similar errors…]</font></div></div><div><div><font face="Courier">../src/.libs/libfontconfig.a: error: undefined reference to '_XML_ParserCreate'</font></div></div><div><div><font face="Courier">[Various other similar errors…]</font></div></div><div><div><font face="Courier">collect2: ld returned 1 exit status</font></div></div><div><div><font face="Courier">make[4]: *** [fc-cache] Error 1</font></div></div><div><div><font face="Courier">make[4]: Leaving directory `/MyStuff/dev/external/fontconfig/build/fontconfig/fc-cache'</font></div></div><div><div><font face="Courier">make[3]: *** [all-recursive] Error 1</font></div></div><div><div><font face="Courier">make[3]: Leaving directory `/MyStuff/dev/external/fontconfig/build/fontconfig'</font></div></div><div><div><font face="Courier">make[2]: *** [all] Error 2</font></div></div><div><div><font face="Courier">make[2]: Leaving directory `/MyStuff/dev/external/fontconfig/build/fontconfig'</font></div></div></blockquote><div><br></div><div>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. </div><div><br></div><div>Any advice on where to look for the source of this confusion would be most helpful.</div><div><br></div><div>Thanks!</div><div><br></div><div>-- Philip</div><div><br></div></body></html>