<div dir="ltr">Dear Suziki,<br><br>Thank you for your assistance. This is the verbose log for the specific error I am running into. Let me know if you'd need more (the log gets pretty big). I tried researching ways to ensure uuid is linked to the build but I wasn't confident on any solution. We build to /usr/local/ by default with the VM I'm running so fontconfig and all the libraries seem to build fine from that location. I install fontconfig myself as part of Poppler's dependencies.<br><br><b>Verbose Log</b><br>

<pre class="gmail-code-java" style="margin:0px;padding:0px;max-height:30em;overflow:auto;white-space:pre-wrap;word-wrap:normal;color:rgb(51,51,51);font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(245,245,245);text-decoration-style:initial;text-decoration-color:initial">Scanning dependencies of target pdftoppm
make[2]: Leaving directory `/root/Poppler_Update/poppler-0.62.0/build'
make -f utils/CMakeFiles/pdftoppm.dir/build.make utils/CMakeFiles/pdftoppm.dir/build
make[2]: Entering directory `/root/Poppler_Update/poppler-0.62.0/build'
[ 60%] Building CXX object utils/CMakeFiles/pdftoppm.dir/parseargs.cc.o
cd /root/Poppler_Update/poppler-0.62.0/build/utils && /usr/bin/c++ -I/root/Poppler_Update/poppler-0.62.0 -I/root/Poppler_Update/poppler-0.62.0/fofi -I/root/Poppler_Update/poppler-0.62.0/goo -I/root/Poppler_Update/poppler-0.62.0/poppler -I/root/Poppler_Update/poppler-0.62.0/build -I/root/Poppler_Update/poppler-0.62.0/build/poppler -I/usr/local/include -I/usr/local/include/freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-<span class="gmail-code-keyword" style="color:rgb(0,0,145)">new</span> -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -std=c++11 -o CMakeFiles/pdftoppm.dir/parseargs.cc.o -c /root/Poppler_Update/poppler-0.62.0/utils/parseargs.cc
[ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/Win32Console.cc.o
cd /root/Poppler_Update/poppler-0.62.0/build/utils && /usr/bin/c++ -I/root/Poppler_Update/poppler-0.62.0 -I/root/Poppler_Update/poppler-0.62.0/fofi -I/root/Poppler_Update/poppler-0.62.0/goo -I/root/Poppler_Update/poppler-0.62.0/poppler -I/root/Poppler_Update/poppler-0.62.0/build -I/root/Poppler_Update/poppler-0.62.0/build/poppler -I/usr/local/include -I/usr/local/include/freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-<span class="gmail-code-keyword" style="color:rgb(0,0,145)">new</span> -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -std=c++11 -o CMakeFiles/pdftoppm.dir/Win32Console.cc.o -c /root/Poppler_Update/poppler-0.62.0/utils/Win32Console.cc
[ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/pdftoppm.cc.o
cd /root/Poppler_Update/poppler-0.62.0/build/utils && /usr/bin/c++ -I/root/Poppler_Update/poppler-0.62.0 -I/root/Poppler_Update/poppler-0.62.0/fofi -I/root/Poppler_Update/poppler-0.62.0/goo -I/root/Poppler_Update/poppler-0.62.0/poppler -I/root/Poppler_Update/poppler-0.62.0/build -I/root/Poppler_Update/poppler-0.62.0/build/poppler -I/usr/local/include -I/usr/local/include/freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-<span class="gmail-code-keyword" style="color:rgb(0,0,145)">new</span> -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -std=c++11 -o CMakeFiles/pdftoppm.dir/pdftoppm.cc.o -c /root/Poppler_Update/poppler-0.62.0/utils/pdftoppm.cc
[ 62%] Linking CXX executable pdftoppm
cd /root/Poppler_Update/poppler-0.62.0/build/utils && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/pdftoppm.dir/link.txt --verbose=1
/usr/bin/c++ -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-<span class="gmail-code-keyword" style="color:rgb(0,0,145)">new</span> -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -Wl,--as-needed -rdynamic CMakeFiles/pdftoppm.dir/parseargs.cc.o CMakeFiles/pdftoppm.dir/Win32Console.cc.o CMakeFiles/pdftoppm.dir/pdftoppm.cc.o -o pdftoppm -Wl,-rpath,/usr/local/lib: ../libpoppler.a /usr/local/lib/libfreetype.so /usr/local/lib/libfontconfig.a /usr/local/lib/libjpeg.a -lz /usr/local/lib/liblcms2.a /usr/local/lib/libpng.a -lz /usr/local/lib/liblcms2.a /usr/local/lib/libpng.a -pthread
/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[2]: Leaving directory `/root/Poppler_Update/poppler-0.62.0/build'
make[1]: *** [utils/CMakeFiles/pdftoppm.dir/all] Error 2
make[1]: Leaving directory `/root/Poppler_Update/poppler-0.62.0/build'
make: *** [all] Error 2</pre>

<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><p><span style="font-size:10.5pt;line-height:105%;font-family:"Arial","sans-serif"">Kind regards,</span><br><font face="Arial, sans-serif"><span style="font-size:14px;line-height:14.7px">Simon Lee Shugar</span></font><br>
<br>
<span style="font-size:10.5pt;line-height:105%;font-family:"Arial","sans-serif"">--</span><br style="font-size:12.8px"></p><div style="font-size:12.8px"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p><span style="font-size:12.8px"><img width="96" height="22" src="cid:image001.jpg@01D0FFA2.70341270" alt="Veeva Systems - Zinc Team"></span><br></p></div></div></div></div></div></div></div></div></div></div></div><p>
<span style="font-size:10.5pt;line-height:105%;font-family:"Arial","sans-serif""><b><font color="#666666">Simon Shugar</font></b></span><br><font face="Arial, sans-serif"><span style="font-size:14px;line-height:14.7px">Software Engineer</span></font><br>
<span style="font-size:10.5pt;line-height:105%;font-family:"Arial","sans-serif""><font color="#e69138"><b>Veeva
Systems </b></font></span><br>
<span style="font-size:10.5pt;line-height:105%;font-family:"Arial","sans-serif";color:#4e87a0"><a href="mailto:simon.shugar@veeva.com" target="_blank"><span style="color:#4e87a0">simon.shugar@veeva.com</span></a></span><br>
<span style="font-size:10.5pt;line-height:105%;font-family:"Arial","sans-serif";color:#4e87a0"><a href="http://www.veeva.com" target="_blank"><span style="color:#4e87a0">www.veeva.com</span></a></span><br>
<br>
<i><span style="font-size:7.5pt;line-height:105%;font-family:"Arial","sans-serif";color:#717171">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.</span></i><br>
<i><span style="font-size:7.5pt;line-height:105%;font-family:"Arial","sans-serif";color:#717171">If you have received this email in error, please notify us
immediately by reply email and delete this message from your computer.</span></i><br>
<i><span style="font-size:7.5pt;line-height:105%;font-family:"Arial","sans-serif";color:#717171">Please do not retain, copy or distribute this email.</span></i><span style="color:#1f497d"></span></p></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Mar 19, 2018 at 7:05 PM, suzuki toshiya <span dir="ltr"><<a href="mailto:mpsuzuki@hiroshima-u.ac.jp" target="_blank">mpsuzuki@hiroshima-u.ac.jp</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Simon,<br>
<br>
could you upload the verbose log (by "make VERBOSE=1") to somewhere<br>
and post the link there? we cannot see the detailed commandline<br>
options to the compiler/linker and it's hard to guess what's going<br>
on.<br>
<br>
In my impression, it seems that the linker slipped to add several<br>
external libraries required by libfontconfig (and caused unresolved<br>
symbols for libuuid and libxml2). The point looking strange for me<br>
is "why libfontconfig.a is placed under /usr/local/lib?". I think,<br>
fontconfig is quite widely used libraries, even on the systems without<br>
GUI environment, so it could be found in /usr tree...<br>
<br>
Regards,<br>
mpsuzuki<br>
<div><div class="h5"><br>
Simon Shugar wrote:<br>
> Hi,<br>
><br>
> 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?<br>
><br>
> I am roughly following instructions from <a href="http://www.linuxfromscratch.org/blfs/view/svn/general/poppler.html" rel="noreferrer" target="_blank">http://www.linuxfromscratch.<wbr>org/blfs/view/svn/general/<wbr>poppler.html</a> I'm building everything statically as our we are using an old OS.<br>
><br>
> I've already installed all dependencies and using pkg-config as my dependency management tool.<br>
><br>
> I originally had an issue with UUID when building fontconfig but got round it by installing util-linux.<br>
><br>
> Command<br>
> This is the command(s) I am using.<br>
><br>
> "mkdir -v build &&<br>
> cd       build<br>
><br>
><br>
> cmake  -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/usr/<wbr>local -DENABLE_QT5=OFF -DENABLE_LIBOPENJPEG=none .. && make<br>
> make install"<br>
><br>
> Output<br>
> This is the error I am receiving.<br>
><br>
> "Scanning dependencies of target pdftoppm<br>
> [ 60%] Building CXX object utils/CMakeFiles/pdftoppm.dir/<wbr>parseargs.cc.o<br>
> [ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/<wbr>Win32Console.cc.o<br>
> [ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/<wbr>pdftoppm.cc.o<br>
> [ 62%] Linking CXX executable pdftoppm<br>
> /usr/local/lib/libfontconfig.<wbr>a(fchash.o): In function `FcHashUuidCopy':<br>
> fchash.c:(.text+0x6e): undefined reference to `uuid_copy'<br>
> /usr/local/lib/libfontconfig.<wbr>a(fcxml.o): In function `FcConfigMessage':<br>
> fcxml.c:(.text+0x760): undefined reference to `xmlSAX2GetLineNumber'<br>
> fcxml.c:(.text+0x7a5): undefined reference to `xmlSAX2GetLineNumber'<br>
> /usr/local/lib/libfontconfig.<wbr>a(fcxml.o): In function `<wbr>FcConfigParseAndLoadFromMemory<wbr>Internal':<br>
> fcxml.c:(.text+0x55ce): undefined reference to `xmlCreatePushParserCtxt'<br>
> fcxml.c:(.text+0x5635): undefined reference to `xmlParseChunk'<br>
> fcxml.c:(.text+0x5645): undefined reference to `xmlCtxtGetLastError'<br>
> fcxml.c:(.text+0x57bc): undefined reference to `xmlFreeParserCtxt'<br>
> /usr/local/lib/libfontconfig.<wbr>a(fccache.o): In function `IA__FcDirCacheCreateUUID':<br>
> fccache.c:(.text+0x20b): undefined reference to `uuid_generate_random'<br>
> fccache.c:(.text+0x26b): undefined reference to `uuid_unparse'<br>
> /usr/local/lib/libfontconfig.<wbr>a(fccache.o): In function `FcDirCacheReadUUID':<br>
> fccache.c:(.text+0x484): undefined reference to `uuid_parse'<br>
> /usr/local/lib/libfontconfig.<wbr>a(fccache.o): In function `FcDirCacheBasenameUUID':<br>
> fccache.c:(.text+0x780): undefined reference to `uuid_unparse'<br>
> collect2: error: ld returned 1 exit status<br>
> make[2]: *** [utils/pdftoppm] Error 1<br>
> make[1]: *** [utils/CMakeFiles/pdftoppm.<wbr>dir/all] Error 2<br>
> make: *** [all] Error 2<br>
> "<br>
><br>
> Kind regards,<br>
> Simon Lee Shugar<br>
><br>
> --<br>
><br>
</div></div>> [Veeva Systems - Zinc Team]<br>
<span class="">><br>
> Simon Shugar<br>
> Software Engineer<br>
> Veeva Systems<br>
</span>> <a href="mailto:simon.shugar@veeva.com">simon.shugar@veeva.com</a><mailto:<a href="mailto:simon.shugar@veeva.com"><wbr>simon.shugar@veeva.com</a>><br>
> <a href="http://www.veeva.com" rel="noreferrer" target="_blank">www.veeva.com</a><<a href="http://www.veeva.com" rel="noreferrer" target="_blank">http://www.<wbr>veeva.com</a>><br>
<div class="HOEnZb"><div class="h5">><br>
> 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.<br>
> If you have received this email in error, please notify us immediately by reply email and delete this message from your computer.<br>
> Please do not retain, copy or distribute this email.<br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>