[poppler_dev 0005283]: poppler_dev is outdated and C++ API fails to link with GCC5

Mantis Bug Tracker via bug-notifications bug-notifications at lists.opencsw.org
Fri Sep 9 15:39:06 CEST 2016


A NOTE has been added to this issue. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=5283 
====================================================================== 
Reported By:                jeroenooms
Assigned To:                dam
====================================================================== 
Project:                    poppler_dev
Issue ID:                   5283
Category:                   upgrade
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2016-09-09 10:53 CEST
Last Modified:              2016-09-09 15:39 CEST
====================================================================== 
Summary:                    poppler_dev is outdated and C++ API fails to link
with GCC5
Description: 
I would like to build an R package which uses poppler_dev but it gives the
following linking error: http://pastebin.com/raw/H3yxQVt1

The reason might be that libpoppler_dev was built with Solaris Studio which
is not binary compatible with GCC5. It would be great if OpenCSW could
provide a version of libpoppler that works with GCC5.

Moreover, libpoppler_dev on OpenCSW is about 20 releases behind on
upstream; an upgrade would be great:
https://poppler.freedesktop.org/releases.html


====================================================================== 

---------------------------------------------------------------------- 
 (0011183) dam (administrator) - 2016-09-09 15:39
 https://www.opencsw.org/mantis/view.php?id=5283#c11183 
---------------------------------------------------------------------- 
>From pastebin::

> install.packages("pdftools")
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://cloud.r-project.org/src/contrib/pdftools_0.5.tar.gz'
Content type 'application/x-gzip' length 8501 bytes
==================================================
downloaded 8501 bytes

[1] "/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/en_US.UTF-8"
* installing *source* package ‘pdftools’ ...
** package ‘pdftools’ successfully unpacked and MD5 sums checked
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/opt/csw/include/poppler/cpp -I/opt/csw/include/poppler 

Using PKG_LIBS=-L/opt/csw/lib -lpoppler-cpp  
** libs
/opt/csw/bin/g++-5.2 -I/opt/csw/lib/R/include -DNDEBUG
-I/opt/csw/include/poppler/cpp -I/opt/csw/include/poppler
-I/opt/csw/include -I"/opt/csw/lib/R/library/Rcpp/include"   -fPIC  -O2
-pipe -fno-omit-frame-pointer -m32 -march=pentiumpro  -c RcppExports.cpp -o
RcppExports.o
/opt/csw/bin/g++-5.2 -I/opt/csw/lib/R/include -DNDEBUG
-I/opt/csw/include/poppler/cpp -I/opt/csw/include/poppler
-I/opt/csw/include -I"/opt/csw/lib/R/library/Rcpp/include"   -fPIC  -O2
-pipe -fno-omit-frame-pointer -m32 -march=pentiumpro  -c bindings.cpp -o
bindings.o
/opt/csw/bin/g++-5.2 -I/opt/csw/lib/R/include -DNDEBUG
-I/opt/csw/include/poppler/cpp -I/opt/csw/include/poppler
-I/opt/csw/include -I"/opt/csw/lib/R/library/Rcpp/include"   -fPIC  -O2
-pipe -fno-omit-frame-pointer -m32 -march=pentiumpro  -c init.cpp -o
init.o
/opt/csw/bin/g++-5.2 -shared -m32 -march=pentiumpro -L/opt/csw/lib -o
pdftools.so RcppExports.o bindings.o init.o -L/opt/csw/lib -lpoppler-cpp
installing to /opt/csw/lib/R/library/pdftools/libs
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
[1] "/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/en_US.UTF-8"
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object
'/opt/csw/lib/R/library/pdftools/libs/pdftools.so':
  ld.so.1: R: fatal: relocation error: file
/opt/csw/lib/R/library/pdftools/libs/pdftools.so: symbol
_ZNK7poppler7ustring9to_latin1B5cxx11Ev: referenced symbol not found
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/opt/csw/lib/R/library/pdftools’



More information about the bug-notifications mailing list