When linking with fontconfig, expat must be linked as well. Currently (as of version 2.3.1), "pkg-config --libs fontconfig" is missing -lexpat.
This depends on platform. On some platforms expat library can be automatically brought in during linking, but for other platforms it doesn't.
Added @EXPAT_LIBS@ to Libs.private in fontconfig.pc.in
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.