[poppler] Fontconfig issue whilst building Poppler 0.62.0

suzuki toshiya mpsuzuki at hiroshima-u.ac.jp
Tue Mar 20 02:05:30 UTC 2018


Dear Simon,

could you upload the verbose log (by "make VERBOSE=1") to somewhere
and post the link there? we cannot see the detailed commandline
options to the compiler/linker and it's hard to guess what's going
on.

In my impression, it seems that the linker slipped to add several
external libraries required by libfontconfig (and caused unresolved
symbols for libuuid and libxml2). The point looking strange for me
is "why libfontconfig.a is placed under /usr/local/lib?". I think,
fontconfig is quite widely used libraries, even on the systems without
GUI environment, so it could be found in /usr tree...

Regards,
mpsuzuki

Simon Shugar wrote:
> Hi,
> 
> I'm trying to build Poppler 0.62.0 and running into the following error when using CMake. I've not much experience with CMake or building libraries on linux. Has anyone seen the following issue and would be able to point me in the right direction?
> 
> I am roughly following instructions from http://www.linuxfromscratch.org/blfs/view/svn/general/poppler.html I'm building everything statically as our we are using an old OS.
> 
> I've already installed all dependencies and using pkg-config as my dependency management tool.
> 
> I originally had an issue with UUID when building fontconfig but got round it by installing util-linux.
> 
> Command
> This is the command(s) I am using.
> 
> "mkdir -v build &&
> cd       build
> 
> 
> cmake  -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_QT5=OFF -DENABLE_LIBOPENJPEG=none .. && make
> make install"
> 
> Output
> This is the error I am receiving.
> 
> "Scanning dependencies of target pdftoppm
> [ 60%] Building CXX object utils/CMakeFiles/pdftoppm.dir/parseargs.cc.o
> [ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/Win32Console.cc.o
> [ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/pdftoppm.cc.o
> [ 62%] Linking CXX executable pdftoppm
> /usr/local/lib/libfontconfig.a(fchash.o): In function `FcHashUuidCopy':
> fchash.c:(.text+0x6e): undefined reference to `uuid_copy'
> /usr/local/lib/libfontconfig.a(fcxml.o): In function `FcConfigMessage':
> fcxml.c:(.text+0x760): undefined reference to `xmlSAX2GetLineNumber'
> fcxml.c:(.text+0x7a5): undefined reference to `xmlSAX2GetLineNumber'
> /usr/local/lib/libfontconfig.a(fcxml.o): In function `FcConfigParseAndLoadFromMemoryInternal':
> fcxml.c:(.text+0x55ce): undefined reference to `xmlCreatePushParserCtxt'
> fcxml.c:(.text+0x5635): undefined reference to `xmlParseChunk'
> fcxml.c:(.text+0x5645): undefined reference to `xmlCtxtGetLastError'
> fcxml.c:(.text+0x57bc): undefined reference to `xmlFreeParserCtxt'
> /usr/local/lib/libfontconfig.a(fccache.o): In function `IA__FcDirCacheCreateUUID':
> fccache.c:(.text+0x20b): undefined reference to `uuid_generate_random'
> fccache.c:(.text+0x26b): undefined reference to `uuid_unparse'
> /usr/local/lib/libfontconfig.a(fccache.o): In function `FcDirCacheReadUUID':
> fccache.c:(.text+0x484): undefined reference to `uuid_parse'
> /usr/local/lib/libfontconfig.a(fccache.o): In function `FcDirCacheBasenameUUID':
> fccache.c:(.text+0x780): undefined reference to `uuid_unparse'
> collect2: error: ld returned 1 exit status
> make[2]: *** [utils/pdftoppm] Error 1
> make[1]: *** [utils/CMakeFiles/pdftoppm.dir/all] Error 2
> make: *** [all] Error 2
> "
> 
> Kind regards,
> Simon Lee Shugar
> 
> --
> 
> [Veeva Systems - Zinc Team]
> 
> Simon Shugar
> Software Engineer
> Veeva Systems
> simon.shugar at veeva.com<mailto:simon.shugar at veeva.com>
> www.veeva.com<http://www.veeva.com>
> 
> This email and the information it contains are intended for the intended recipient only, are confidential and may be privileged information exempt from disclosure by law.
> If you have received this email in error, please notify us immediately by reply email and delete this message from your computer.
> Please do not retain, copy or distribute this email.
> 
> 



More information about the poppler mailing list