[poppler] Fontconfig issue whilst building Poppler 0.62.0

Simon Shugar simon.shugar at veeva.com
Fri Mar 23 17:14:41 UTC 2018


Hi Germán, Suzuki,

Thanks for your help. As part of my build process I actually do set the pkg
path. I must of unset it before running the patch (no clue why). When I set
the path again and run it with the patch it got past the point of failure.

I've gone past the point of failure at 62% to 96%. I get a new issue now
which I'll continue to look into.

Also thanks for the advice on root Germán.

*Error Output*

*Scanning dependencies of target poppler-cpp*
make[2]: Leaving directory `/root/Poppler_Update/poppler-0.62.0/build'
make -f cpp/CMakeFiles/poppler-cpp.dir/build.make
cpp/CMakeFiles/poppler-cpp.dir/build
make[2]: Entering directory `/root/Poppler_Update/poppler-0.62.0/build'
[ 90%] Building CXX object
cpp/CMakeFiles/poppler-cpp.dir/poppler-document.cpp.o
cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
-Dpoppler_cpp_EXPORTS -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/root/Poppler_Update/poppler-0.62.0/cpp
-I/root/Poppler_Update/poppler-0.62.0/build/cpp -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-new -fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG  -fPIC   -std=c++11 -o
CMakeFiles/poppler-cpp.dir/poppler-document.cpp.o -c
/root/Poppler_Update/poppler-0.62.0/cpp/poppler-document.cpp
[ 90%] Building CXX object
cpp/CMakeFiles/poppler-cpp.dir/poppler-embedded-file.cpp.o
cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
-Dpoppler_cpp_EXPORTS -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/root/Poppler_Update/poppler-0.62.0/cpp
-I/root/Poppler_Update/poppler-0.62.0/build/cpp -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-new -fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG  -fPIC   -std=c++11 -o
CMakeFiles/poppler-cpp.dir/poppler-embedded-file.cpp.o -c
/root/Poppler_Update/poppler-0.62.0/cpp/poppler-embedded-file.cpp
[ 91%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir/poppler-font.cpp.o
cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
-Dpoppler_cpp_EXPORTS -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/root/Poppler_Update/poppler-0.62.0/cpp
-I/root/Poppler_Update/poppler-0.62.0/build/cpp -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-new -fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG  -fPIC   -std=c++11 -o
CMakeFiles/poppler-cpp.dir/poppler-font.cpp.o -c
/root/Poppler_Update/poppler-0.62.0/cpp/poppler-font.cpp
[ 91%] Building CXX object
cpp/CMakeFiles/poppler-cpp.dir/poppler-global.cpp.o
cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
-Dpoppler_cpp_EXPORTS -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/root/Poppler_Update/poppler-0.62.0/cpp
-I/root/Poppler_Update/poppler-0.62.0/build/cpp -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-new -fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG  -fPIC   -std=c++11 -o
CMakeFiles/poppler-cpp.dir/poppler-global.cpp.o -c
/root/Poppler_Update/poppler-0.62.0/cpp/poppler-global.cpp
[ 92%] Building CXX object
cpp/CMakeFiles/poppler-cpp.dir/poppler-image.cpp.o
cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
-Dpoppler_cpp_EXPORTS -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/root/Poppler_Update/poppler-0.62.0/cpp
-I/root/Poppler_Update/poppler-0.62.0/build/cpp -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-new -fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG  -fPIC   -std=c++11 -o
CMakeFiles/poppler-cpp.dir/poppler-image.cpp.o -c
/root/Poppler_Update/poppler-0.62.0/cpp/poppler-image.cpp
[ 92%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir/poppler-page.cpp.o
cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
-Dpoppler_cpp_EXPORTS -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/root/Poppler_Update/poppler-0.62.0/cpp
-I/root/Poppler_Update/poppler-0.62.0/build/cpp -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-new -fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG  -fPIC   -std=c++11 -o
CMakeFiles/poppler-cpp.dir/poppler-page.cpp.o -c
/root/Poppler_Update/poppler-0.62.0/cpp/poppler-page.cpp
[ 93%] Building CXX object
cpp/CMakeFiles/poppler-cpp.dir/poppler-page-renderer.cpp.o
cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
-Dpoppler_cpp_EXPORTS -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/root/Poppler_Update/poppler-0.62.0/cpp
-I/root/Poppler_Update/poppler-0.62.0/build/cpp -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-new -fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG  -fPIC   -std=c++11 -o
CMakeFiles/poppler-cpp.dir/poppler-page-renderer.cpp.o -c
/root/Poppler_Update/poppler-0.62.0/cpp/poppler-page-renderer.cpp
[ 93%] Building CXX object
cpp/CMakeFiles/poppler-cpp.dir/poppler-page-transition.cpp.o
cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
-Dpoppler_cpp_EXPORTS -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/root/Poppler_Update/poppler-0.62.0/cpp
-I/root/Poppler_Update/poppler-0.62.0/build/cpp -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-new -fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG  -fPIC   -std=c++11 -o
CMakeFiles/poppler-cpp.dir/poppler-page-transition.cpp.o -c
/root/Poppler_Update/poppler-0.62.0/cpp/poppler-page-transition.cpp
[ 94%] Building CXX object
cpp/CMakeFiles/poppler-cpp.dir/poppler-private.cpp.o
cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
-Dpoppler_cpp_EXPORTS -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/root/Poppler_Update/poppler-0.62.0/cpp
-I/root/Poppler_Update/poppler-0.62.0/build/cpp -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-new -fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG  -fPIC   -std=c++11 -o
CMakeFiles/poppler-cpp.dir/poppler-private.cpp.o -c
/root/Poppler_Update/poppler-0.62.0/cpp/poppler-private.cpp
[ 95%] Building CXX object
cpp/CMakeFiles/poppler-cpp.dir/poppler-rectangle.cpp.o
cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
-Dpoppler_cpp_EXPORTS -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/root/Poppler_Update/poppler-0.62.0/cpp
-I/root/Poppler_Update/poppler-0.62.0/build/cpp -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-new -fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG  -fPIC   -std=c++11 -o
CMakeFiles/poppler-cpp.dir/poppler-rectangle.cpp.o -c
/root/Poppler_Update/poppler-0.62.0/cpp/poppler-rectangle.cpp
[ 95%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir/poppler-toc.cpp.o
cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
-Dpoppler_cpp_EXPORTS -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/root/Poppler_Update/poppler-0.62.0/cpp
-I/root/Poppler_Update/poppler-0.62.0/build/cpp -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-new -fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG  -fPIC   -std=c++11 -o
CMakeFiles/poppler-cpp.dir/poppler-toc.cpp.o -c
/root/Poppler_Update/poppler-0.62.0/cpp/poppler-toc.cpp
[ 96%] Building CXX object
cpp/CMakeFiles/poppler-cpp.dir/poppler-version.cpp.o
cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
-Dpoppler_cpp_EXPORTS -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/root/Poppler_Update/poppler-0.62.0/cpp
-I/root/Poppler_Update/poppler-0.62.0/build/cpp -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-new -fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG  -fPIC   -std=c++11 -o
CMakeFiles/poppler-cpp.dir/poppler-version.cpp.o -c
/root/Poppler_Update/poppler-0.62.0/cpp/poppler-version.cpp
[ 96%] Linking CXX shared library libpoppler-cpp.so
cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/local/bin/cmake -E
cmake_link_script CMakeFiles/poppler-cpp.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -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-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG
 -Wl,--as-needed -shared -Wl,-soname,libpoppler-cpp.so.0 -o
libpoppler-cpp.so.0.3.0 CMakeFiles/poppler-cpp.dir/poppler-document.cpp.o
CMakeFiles/poppler-cpp.dir/poppler-embedded-file.cpp.o
CMakeFiles/poppler-cpp.dir/poppler-font.cpp.o
CMakeFiles/poppler-cpp.dir/poppler-global.cpp.o
CMakeFiles/poppler-cpp.dir/poppler-image.cpp.o
CMakeFiles/poppler-cpp.dir/poppler-page.cpp.o
CMakeFiles/poppler-cpp.dir/poppler-page-renderer.cpp.o
CMakeFiles/poppler-cpp.dir/poppler-page-transition.cpp.o
CMakeFiles/poppler-cpp.dir/poppler-private.cpp.o
CMakeFiles/poppler-cpp.dir/poppler-rectangle.cpp.o
CMakeFiles/poppler-cpp.dir/poppler-toc.cpp.o
CMakeFiles/poppler-cpp.dir/poppler-version.cpp.o -Wl,-rpath,/usr/local/lib:
../libpoppler.a -lc /usr/local/lib/libfreetype.so -L/usr/local/lib
-lfontconfig -luuid -lxml2 -lm -lfreetype -lz /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/bin/ld: ../libpoppler.a(GooString.cc.o): relocation R_X86_64_32
against `.rodata' can not be used when making a shared object; recompile
with -fPIC
../libpoppler.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [cpp/libpoppler-cpp.so.0.3.0] Error 1
make[2]: Leaving directory `/root/Poppler_Update/poppler-0.62.0/build'
make[1]: *** [cpp/CMakeFiles/poppler-cpp.dir/all] Error 2
make[1]: Leaving directory `/root/Poppler_Update/poppler-0.62.0/build'
make: *** [all] Error 2




Kind regards,
Simon Lee Shugar

--

[image: Veeva Systems - Zinc Team]

*Simon Shugar*
Software Engineer
*Veeva Systems *
simon.shugar at veeva.com
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.*

On Fri, Mar 23, 2018 at 9:56 AM, Germán Poo-Caamaño <gpoo at gnome.org> wrote:

> On Fri, 2018-03-23 at 09:30 -0700, Simon Shugar wrote:
> > Dear Suzuki,
> >
> > I am using a CentOS linux distro. Running the pkg command does show
> > that it
> > doesn't seem to find fontconfig. The output is below. I'll continue
> > to look
> > at it my end and see if I can rebuild fontconfig so it registers with
> > pkg.
> >
> > *Output*
> > [root at localhost build]# pkg-config fontconfig --libs --static
> > Package fontconfig was not found in the pkg-config search path.
> > Perhaps you should add the directory containing `fontconfig.pc'
> > to the PKG_CONFIG_PATH environment variable
> > No package 'fontconfig' found
>
> Hi Simon,
>
> Do as it says:
>
> "Perhaps you should add the directory containing `fontconfig.pc'
>  to the PKG_CONFIG_PATH environment variable"
>
> Likely, you have to do something like:
>
> $ export PKG_CONFIG_PATH=$PGK_CONFIG_PATH:/usr/local/share
>
> Assuming you are installing in /usr/local as the previous log show.
>
> PS: it is a bad practice to user 'root' as a regular user, as it seems
> you are doing for building the applications.
>
> --
> Germán Poo-Caamaño
> http://calcifer.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20180323/6da1e1d1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2034 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20180323/6da1e1d1/attachment-0001.jpg>


More information about the poppler mailing list