Help needed for r-cran-hunspell to link with Debian packaged libhunspell
Hi,
we could need r-cran-spelling which depends r-cran-hunspell for some test
suites. I injected both into Git but I have trouble with r-cran-hunspell:
...
dh_auto_install -O--buildsystem=R
I: R packages needed for DEP8: testthat
I: R Package: hunspell Version: 3.0
I: Building using R version 3.6.3-1
I: R API version: r-api-3.5
I: Using built-time from d/changelog: Tue, 24 Mar 2020 17:25:33 +0100
mkdir -p /build/r-cran-hunspell-3.0\+dfsg/debian/r-cran-hunspell/usr/lib/R/site-library
R CMD INSTALL -l /build/r-cran-hunspell-3.0\+dfsg/debian/r-cran-hunspell/usr/lib/R/site-library --clean . "--built-timestamp='Tue, 24 Mar 2020 17:25:33 +0100'"
* installing *source* package 'hunspell' ...
files 'src/hunspell/affentry.cc', 'src/hunspell/affentry.hxx', 'src/hunspell/affixmgr.cc', 'src/hunspell/affixmgr.hxx', 'src/hunspell/atypes.hxx', 'src/hunspell/baseaffix.hxx', 'src/hunspell/csutil.cc', 'src/hunspell/filemgr.cc', 'src/hunspell/filemgr.hxx', 'src/hunspell/hashmgr.cc', 'src/hunspell/hashmgr.hxx', 'src/hunspell/hunspell.cc', 'src/hunspell/hunspell.h', 'src/hunspell/hunspell.hxx', 'src/hunspell/hunvisapi.h', 'src/hunspell/hunzip.cc', 'src/hunspell/hunzip.hxx', 'src/hunspell/langnum.hxx', 'src/hunspell/phonet.cc', 'src/hunspell/phonet.hxx', 'src/hunspell/replist.cc', 'src/hunspell/replist.hxx', 'src/hunspell/suggestmgr.cc', 'src/hunspell/suggestmgr.hxx', 'src/hunspell/utf_info.cxx', 'src/hunspell/utf_info.hxx', 'src/hunspell/w_char.hxx' are missing
file 'src/Makevars' has the wrong MD5 checksum
** using staged installation
** libs
make[1]: Entering directory '/build/r-cran-hunspell-3.0+dfsg/src'
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I. -I/usr/include/hunspell -DBUILDING_LIBHUNSPELL -I"/usr/lib/R/site-library/Rcpp/include" -fvisibility=hidden -fpic -g -O2 -fdebug-prefix-map=/build/r-base-GLgnFl/r-base-3.6.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I. -I/usr/include/hunspell -DBUILDING_LIBHUNSPELL -I"/usr/lib/R/site-library/Rcpp/include" -fvisibility=hidden -fpic -g -O2 -fdebug-prefix-map=/build/r-base-GLgnFl/r-base-3.6.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c dictionary.cpp -o dictionary.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I. -I/usr/include/hunspell -DBUILDING_LIBHUNSPELL -I"/usr/lib/R/site-library/Rcpp/include" -fvisibility=hidden -fpic -g -O2 -fdebug-prefix-map=/build/r-base-GLgnFl/r-base-3.6.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c parser.cpp -o parser.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I. -I/usr/include/hunspell -DBUILDING_LIBHUNSPELL -I"/usr/lib/R/site-library/Rcpp/include" -fvisibility=hidden -fpic -g -O2 -fdebug-prefix-map=/build/r-base-GLgnFl/r-base-3.6.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c parsers/textparser.cc -o parsers/textparser.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I. -I/usr/include/hunspell -DBUILDING_LIBHUNSPELL -I"/usr/lib/R/site-library/Rcpp/include" -fvisibility=hidden -fpic -g -O2 -fdebug-prefix-map=/build/r-base-GLgnFl/r-base-3.6.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c parsers/latexparser.cc -o parsers/latexparser.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I. -I/usr/include/hunspell -DBUILDING_LIBHUNSPELL -I"/usr/lib/R/site-library/Rcpp/include" -fvisibility=hidden -fpic -g -O2 -fdebug-prefix-map=/build/r-base-GLgnFl/r-base-3.6.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c parsers/manparser.cc -o parsers/manparser.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I. -I/usr/include/hunspell -DBUILDING_LIBHUNSPELL -I"/usr/lib/R/site-library/Rcpp/include" -fvisibility=hidden -fpic -g -O2 -fdebug-prefix-map=/build/r-base-GLgnFl/r-base-3.6.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c parsers/xmlparser.cc -o parsers/xmlparser.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I. -I/usr/include/hunspell -DBUILDING_LIBHUNSPELL -I"/usr/lib/R/site-library/Rcpp/include" -fvisibility=hidden -fpic -g -O2 -fdebug-prefix-map=/build/r-base-GLgnFl/r-base-3.6.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c parsers/htmlparser.cc -o parsers/htmlparser.o
ar rcs hunspell/libstathunspell.a parsers/textparser.o parsers/latexparser.o parsers/manparser.o parsers/xmlparser.o parsers/htmlparser.o
g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-z,relro -o hunspell.so RcppExports.o dictionary.o parser.o -lhunspell -L/usr/lib/R/lib -lR
make[1]: Leaving directory '/build/r-cran-hunspell-3.0+dfsg/src'
make[1]: Entering directory '/build/r-cran-hunspell-3.0+dfsg/src'
make[1]: Leaving directory '/build/r-cran-hunspell-3.0+dfsg/src'
installing to /build/r-cran-hunspell-3.0+dfsg/debian/r-cran-hunspell/usr/lib/R/site-library/00LOCK-r-cran-hunspell-3.0+dfsg/00new/hunspell/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for 'hunspell' in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/build/r-cran-hunspell-3.0+dfsg/debian/r-cran-hunspell/usr/lib/R/site-library/00LOCK-r-cran-hunspell-3.0+dfsg/00new/hunspell/libs/hunspell.so':
/build/r-cran-hunspell-3.0+dfsg/debian/r-cran-hunspell/usr/lib/R/site-library/00LOCK-r-cran-hunspell-3.0+dfsg/00new/hunspell/libs/hunspell.so: undefined symbol: _ZN10TextParser8put_lineEPKc
Error: loading failed
Execution halted
ERROR: loading failed
* removing '/build/r-cran-hunspell-3.0+dfsg/debian/r-cran-hunspell/usr/lib/R/site-library/hunspell'
dh_auto_install: error: R CMD INSTALL -l /build/r-cran-hunspell-3.0\+dfsg/debian/r-cran-hunspell/usr/lib/R/site-library --clean . "--built-timestamp='Tue, 24 Mar 2020 17:25:33 +0100'" returned exit code 1
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
I have excluded the code copy of libhunspell
Files-Excluded: */src/hunspell
Is anybody able to successfully link with the Debian packaged
libhunspell?
Kind regards
Andreas.
--
http://fam-tille.de
Reply to: