<div dir="ltr">Dear Suzuki,<br><br><br><div>No problem at all I will continue to look into it on my end in the mean time, once again thank you for your assistance. <br><br>

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">libfreetype<span> is part of our environment so there was no need to build a static version. <br></span></span><br>Let me know if there is any more information I can provide to help in the investigation.</div></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 Tue, Mar 20, 2018 at 8:08 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>
Thank you for detailed log.<br>
Could I ask why libfreetype is shared libary in your development but others like<br>
libfontconfig, libjpeg, libpng, libcms2 are archive libraries?<br>
<br>
I'm afraid there is a similarity with the missing dependency issue reported by<br>
Jeroen,<br>
so please let me try to resolve this issue as a part of it.<br>
I apologize that I cannot help your immediately and I'm looking like as if I<br>
help the issue posted after yours.<br>
<span class=""><br>
Regards,<br>
mpsuzuki<br>
<br>
Simon Shugar wrote:<br>
</span><span class="">> 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>
> Verbose Log<br>
><br>
</span><span class="">> Scanning dependencies of target pdftoppm<br>
</span><span class="">> make[2]: Leaving directory `/root/Poppler_Update/poppler-<wbr>0.62.0/build'<br>
> make -f utils/CMakeFiles/pdftoppm.dir/<wbr>build.make utils/CMakeFiles/pdftoppm.dir/<wbr>build<br>
> make[2]: Entering directory `/root/Poppler_Update/poppler-<wbr>0.62.0/build'<br>
</span><span class="">> [ 60%] Building CXX object utils/CMakeFiles/pdftoppm.dir/<wbr>parseargs.cc.o<br>
</span><span class="">> cd /root/Poppler_Update/poppler-<wbr>0.62.0/build/utils && /usr/bin/c++ -I/root/Poppler_Update/<wbr>poppler-0.62.0 -I/root/Poppler_Update/<wbr>poppler-0.62.0/fofi -I/root/Poppler_Update/<wbr>poppler-0.62.0/goo -I/root/Poppler_Update/<wbr>poppler-0.62.0/poppler -I/root/Poppler_Update/<wbr>poppler-0.62.0/build -I/root/Poppler_Update/<wbr>poppler-0.62.0/build/poppler -I/usr/local/include -I/usr/local/include/freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-<wbr>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-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -std=c++11 -o CMakeFiles/pdftoppm.dir/<wbr>parseargs.cc.o -c /root/Poppler_Update/poppler-<wbr>0.62.0/utils/parseargs.cc<br>
</span><span class="">> [ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/<wbr>Win32Console.cc.o<br>
</span><span class="">> cd /root/Poppler_Update/poppler-<wbr>0.62.0/build/utils && /usr/bin/c++ -I/root/Poppler_Update/<wbr>poppler-0.62.0 -I/root/Poppler_Update/<wbr>poppler-0.62.0/fofi -I/root/Poppler_Update/<wbr>poppler-0.62.0/goo -I/root/Poppler_Update/<wbr>poppler-0.62.0/poppler -I/root/Poppler_Update/<wbr>poppler-0.62.0/build -I/root/Poppler_Update/<wbr>poppler-0.62.0/build/poppler -I/usr/local/include -I/usr/local/include/freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-<wbr>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-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -std=c++11 -o CMakeFiles/pdftoppm.dir/<wbr>Win32Console.cc.o -c /root/Poppler_Update/poppler-<wbr>0.62.0/utils/Win32Console.cc<br>
</span><span class="">> [ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/<wbr>pdftoppm.cc.o<br>
</span><span class="">> cd /root/Poppler_Update/poppler-<wbr>0.62.0/build/utils && /usr/bin/c++ -I/root/Poppler_Update/<wbr>poppler-0.62.0 -I/root/Poppler_Update/<wbr>poppler-0.62.0/fofi -I/root/Poppler_Update/<wbr>poppler-0.62.0/goo -I/root/Poppler_Update/<wbr>poppler-0.62.0/poppler -I/root/Poppler_Update/<wbr>poppler-0.62.0/build -I/root/Poppler_Update/<wbr>poppler-0.62.0/build/poppler -I/usr/local/include -I/usr/local/include/freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-<wbr>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-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -std=c++11 -o CMakeFiles/pdftoppm.dir/<wbr>pdftoppm.cc.o -c /root/Poppler_Update/poppler-<wbr>0.62.0/utils/pdftoppm.cc<br>
</span><span class="">> [ 62%] Linking CXX executable pdftoppm<br>
</span><span class="">> cd /root/Poppler_Update/poppler-<wbr>0.62.0/build/utils && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/pdftoppm.dir/link.<wbr>txt --verbose=1<br>
> /usr/bin/c++ -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-<wbr>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-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -Wl,--as-needed -rdynamic CMakeFiles/pdftoppm.dir/<wbr>parseargs.cc.o CMakeFiles/pdftoppm.dir/<wbr>Win32Console.cc.o CMakeFiles/pdftoppm.dir/<wbr>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<br>
</span><span class="">> /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>
</span>> make[2]: Leaving directory `/root/Poppler_Update/poppler-<wbr>0.62.0/build'<br>
<span class="">> make[1]: *** [utils/CMakeFiles/pdftoppm.<wbr>dir/all] Error 2<br>
</span>> make[1]: Leaving directory `/root/Poppler_Update/poppler-<wbr>0.62.0/build'<br>
<span class="">> make: *** [all] Error 2<br>
><br>
><br>
><br>
> Kind regards,<br>
> Simon Lee Shugar<br>
><br>
> --<br>
><br>
> [Veeva Systems - Zinc Team]<br>
><br>
> Simon Shugar<br>
> Software Engineer<br>
> Veeva Systems<br>
> <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>
><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>
</span><div><div class="h5">> On Mon, Mar 19, 2018 at 7:05 PM, suzuki toshiya <<a href="mailto:mpsuzuki@hiroshima-u.ac.jp">mpsuzuki@hiroshima-u.ac.jp</a><<wbr>mailto:<a href="mailto:mpsuzuki@hiroshima-u.ac.jp">mpsuzuki@hiroshima-u.<wbr>ac.jp</a>>> wrote:<br>
> 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>
><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>
>> [Veeva Systems - Zinc Team]<br>
>><br>
>> Simon Shugar<br>
>> Software Engineer<br>
>> Veeva Systems<br>
</div></div>>> <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>><<wbr>mailto:<a href="mailto:simon.shugar@veeva.com">simon.shugar@veeva.com</a><<wbr>mailto:<a href="mailto:simon.shugar@veeva.com">simon.shugar@veeva.com</a>><wbr>><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>><<a href="http://www.veeva.com" rel="noreferrer" target="_blank">http://www.veeva.<wbr>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>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>