Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requires C++11 but doesn't declare it #231

Closed
krlmlr opened this issue Sep 27, 2018 · 4 comments

Comments

@krlmlr
Copy link
Member

@krlmlr krlmlr commented Sep 27, 2018

The package fails to install with -std=c++98, which I have by default for CXX on my system.

withr::with_makevars(c(CXX = "g++ -std=c++98"), install.packages("xml2", verbose = TRUE))
#> Installing package into '/home/kirill/R/x86_64-pc-linux-gnu-library/3.5'
#> (as 'lib' is unspecified)
#> system (cmd0): /usr/lib/R/bin/R CMD INSTALL
#> foundpkgs: xml2, /opt/cran/src/contrib/xml2_1.2.0.tar.gz
#> files: /opt/cran/src/contrib/xml2_1.2.0.tar.gz
#> Warning in install.packages("xml2", verbose = TRUE): installation of
#> package 'xml2' had non-zero exit status

standard output and standard error

* installing *source* package ‘xml2’ ...
** package ‘xml2’ successfully unpacked and MD5 sums checked
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/usr/include/libxml2
Using PKG_LIBS=-lxml2
** libs
g++ -std=c++98 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I/usr/include/libxml2 -I"/home/kirill/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include"   -fvisibility=hidden -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-oNcpyf/r-base-3.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c xml2_doc.cpp -o xml2_doc.o
/usr/lib/R/etc/Makeconf:168: recipe for target 'xml2_doc.o' failed
In file included from /usr/include/unicode/utypes.h:38:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from xml2_doc.cpp:4:
/usr/include/unicode/umachine.h:347:13: error: ‘char16_t’ does not name a type; did you mean ‘wchar_t’?
     typedef char16_t UChar;
             ^~~~~~~~
             wchar_t
In file included from /usr/include/unicode/utypes.h:39:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from xml2_doc.cpp:4:
/usr/include/unicode/uversion.h:167:55: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
                                                       ^~~~~
                                                       UChar32
In file included from /usr/include/unicode/ucnv.h:52:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from xml2_doc.cpp:4:
/usr/include/unicode/ucnv_err.h:198:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *source;        /**< Pointer to the source source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:199:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *sourceLimit;   /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:216:5: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     UChar *target;              /**< Pointer to the target buffer. @stable ICU 2.0    */
     ^~~~~
     UChar32
/usr/include/unicode/ucnv_err.h:217:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *targetLimit;   /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0     */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:239:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:290:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:320:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:376:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from xml2_doc.cpp:4:
/usr/include/unicode/uenum.h:112:16: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 U_STABLE const UChar* U_EXPORT2
                ^~~~~
                UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from xml2_doc.cpp:4:
/usr/include/unicode/uenum.h:190:41: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 uenum_openUCharStringsEnumeration(const UChar* const strings[], int32_t count,
                                         ^~~~~
                                         UChar32
In file included from /usr/include/libxml2/libxml/encoding.h:31:0,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from xml2_doc.cpp:4:
/usr/include/unicode/ucnv.h:226:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar* codeUnits,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:397:18: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 ucnv_openU(const UChar *name,
                  ^~~~~
                  UChar32
/usr/include/unicode/ucnv.h:669:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar *s,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:707:23: error: ‘UChar’ has not been declared
                       UChar *errUChars,
                       ^~~~~
/usr/include/unicode/ucnv.h:846:21: error: ‘UChar’ has not been declared
                     UChar *displayName,
                     ^~~~~
/usr/include/unicode/ucnv.h:1147:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar ** source,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1148:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar * sourceLimit,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1214:16: error: ‘UChar’ has not been declared
                UChar **target,
                ^~~~~
/usr/include/unicode/ucnv.h:1215:22: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                const UChar *targetLimit,
                      ^~~~~
                      UChar32
/usr/include/unicode/ucnv.h:1252:23: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                 const UChar *src, int32_t srcLength,
                       ^~~~~
                       UChar32
/usr/include/unicode/ucnv.h:1283:15: error: ‘UChar’ has not been declared
               UChar *dest, int32_t destCapacity,
               ^~~~~
/usr/include/unicode/ucnv.h:1505:16: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                ^~~~~
/usr/include/unicode/ucnv.h:1505:35: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                                   ^~~~~
/usr/include/unicode/ucnv.h:1506:16: error: ‘UChar’ has not been declared
                UChar **pivotTarget, const UChar *pivotLimit,
                ^~~~~
/usr/include/unicode/ucnv.h:1506:43: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                UChar **pivotTarget, const UChar *pivotLimit,
                                           ^~~~~
                                           UChar32
/usr/include/unicode/ucnv.h:1916:46: error: ‘UChar’ has not been declared
 ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen);
                                              ^~~~~
make: *** [xml2_doc.o] Error 1
make: *** Waiting for unfinished jobs....
g++ -std=c++98 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I/usr/include/libxml2 -I"/home/kirill/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include"   -fvisibility=hidden -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-oNcpyf/r-base-3.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c xml2_schema.cpp -o xml2_schema.o
/usr/lib/R/etc/Makeconf:168: recipe for target 'xml2_schema.o' failed
In file included from /usr/include/unicode/utypes.h:38:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from /usr/include/libxml2/libxml/xmlschemas.h:19,
                 from xml2_schema.cpp:4:
/usr/include/unicode/umachine.h:347:13: error: ‘char16_t’ does not name a type; did you mean ‘wchar_t’?
     typedef char16_t UChar;
             ^~~~~~~~
             wchar_t
In file included from /usr/include/unicode/utypes.h:39:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from /usr/include/libxml2/libxml/xmlschemas.h:19,
                 from xml2_schema.cpp:4:
/usr/include/unicode/uversion.h:167:55: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
                                                       ^~~~~
                                                       UChar32
In file included from /usr/include/unicode/ucnv.h:52:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from /usr/include/libxml2/libxml/xmlschemas.h:19,
                 from xml2_schema.cpp:4:
/usr/include/unicode/ucnv_err.h:198:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *source;        /**< Pointer to the source source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:199:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *sourceLimit;   /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:216:5: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     UChar *target;              /**< Pointer to the target buffer. @stable ICU 2.0    */
     ^~~~~
     UChar32
/usr/include/unicode/ucnv_err.h:217:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *targetLimit;   /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0     */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:239:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:290:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:320:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:376:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from /usr/include/libxml2/libxml/xmlschemas.h:19,
                 from xml2_schema.cpp:4:
/usr/include/unicode/uenum.h:112:16: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 U_STABLE const UChar* U_EXPORT2
                ^~~~~
                UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from /usr/include/libxml2/libxml/xmlschemas.h:19,
                 from xml2_schema.cpp:4:
/usr/include/unicode/uenum.h:190:41: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 uenum_openUCharStringsEnumeration(const UChar* const strings[], int32_t count,
                                         ^~~~~
                                         UChar32
In file included from /usr/include/libxml2/libxml/encoding.h:31:0,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from /usr/include/libxml2/libxml/xmlschemas.h:19,
                 from xml2_schema.cpp:4:
/usr/include/unicode/ucnv.h:226:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar* codeUnits,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:397:18: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 ucnv_openU(const UChar *name,
                  ^~~~~
                  UChar32
/usr/include/unicode/ucnv.h:669:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar *s,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:707:23: error: ‘UChar’ has not been declared
                       UChar *errUChars,
                       ^~~~~
/usr/include/unicode/ucnv.h:846:21: error: ‘UChar’ has not been declared
                     UChar *displayName,
                     ^~~~~
/usr/include/unicode/ucnv.h:1147:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar ** source,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1148:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar * sourceLimit,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1214:16: error: ‘UChar’ has not been declared
                UChar **target,
                ^~~~~
/usr/include/unicode/ucnv.h:1215:22: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                const UChar *targetLimit,
                      ^~~~~
                      UChar32
/usr/include/unicode/ucnv.h:1252:23: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                 const UChar *src, int32_t srcLength,
                       ^~~~~
                       UChar32
/usr/include/unicode/ucnv.h:1283:15: error: ‘UChar’ has not been declared
               UChar *dest, int32_t destCapacity,
               ^~~~~
/usr/include/unicode/ucnv.h:1505:16: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                ^~~~~
/usr/include/unicode/ucnv.h:1505:35: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                                   ^~~~~
/usr/include/unicode/ucnv.h:1506:16: error: ‘UChar’ has not been declared
                UChar **pivotTarget, const UChar *pivotLimit,
                ^~~~~
/usr/include/unicode/ucnv.h:1506:43: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                UChar **pivotTarget, const UChar *pivotLimit,
                                           ^~~~~
                                           UChar32
/usr/include/unicode/ucnv.h:1916:46: error: ‘UChar’ has not been declared
 ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen);
                                              ^~~~~
make: *** [xml2_schema.o] Error 1
g++ -std=c++98 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I/usr/include/libxml2 -I"/home/kirill/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include"   -fvisibility=hidden -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-oNcpyf/r-base-3.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c xml2_namespace.cpp -o xml2_namespace.o
/usr/lib/R/etc/Makeconf:168: recipe for target 'xml2_namespace.o' failed
In file included from /usr/include/unicode/utypes.h:38:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_namespace.cpp:2:
/usr/include/unicode/umachine.h:347:13: error: ‘char16_t’ does not name a type; did you mean ‘wchar_t’?
     typedef char16_t UChar;
             ^~~~~~~~
             wchar_t
In file included from /usr/include/unicode/utypes.h:39:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_namespace.cpp:2:
/usr/include/unicode/uversion.h:167:55: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
                                                       ^~~~~
                                                       UChar32
In file included from /usr/include/unicode/ucnv.h:52:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_namespace.cpp:2:
/usr/include/unicode/ucnv_err.h:198:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *source;        /**< Pointer to the source source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:199:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *sourceLimit;   /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:216:5: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     UChar *target;              /**< Pointer to the target buffer. @stable ICU 2.0    */
     ^~~~~
     UChar32
/usr/include/unicode/ucnv_err.h:217:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *targetLimit;   /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0     */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:239:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:290:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:320:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:376:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_namespace.cpp:2:
/usr/include/unicode/uenum.h:112:16: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 U_STABLE const UChar* U_EXPORT2
                ^~~~~
                UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_namespace.cpp:2:
/usr/include/unicode/uenum.h:190:41: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 uenum_openUCharStringsEnumeration(const UChar* const strings[], int32_t count,
                                         ^~~~~
                                         UChar32
In file included from /usr/include/libxml2/libxml/encoding.h:31:0,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_namespace.cpp:2:
/usr/include/unicode/ucnv.h:226:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar* codeUnits,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:397:18: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 ucnv_openU(const UChar *name,
                  ^~~~~
                  UChar32
/usr/include/unicode/ucnv.h:669:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar *s,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:707:23: error: ‘UChar’ has not been declared
                       UChar *errUChars,
                       ^~~~~
/usr/include/unicode/ucnv.h:846:21: error: ‘UChar’ has not been declared
                     UChar *displayName,
                     ^~~~~
/usr/include/unicode/ucnv.h:1147:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar ** source,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1148:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar * sourceLimit,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1214:16: error: ‘UChar’ has not been declared
                UChar **target,
                ^~~~~
/usr/include/unicode/ucnv.h:1215:22: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                const UChar *targetLimit,
                      ^~~~~
                      UChar32
/usr/include/unicode/ucnv.h:1252:23: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                 const UChar *src, int32_t srcLength,
                       ^~~~~
                       UChar32
/usr/include/unicode/ucnv.h:1283:15: error: ‘UChar’ has not been declared
               UChar *dest, int32_t destCapacity,
               ^~~~~
/usr/include/unicode/ucnv.h:1505:16: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                ^~~~~
/usr/include/unicode/ucnv.h:1505:35: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                                   ^~~~~
/usr/include/unicode/ucnv.h:1506:16: error: ‘UChar’ has not been declared
                UChar **pivotTarget, const UChar *pivotLimit,
                ^~~~~
/usr/include/unicode/ucnv.h:1506:43: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                UChar **pivotTarget, const UChar *pivotLimit,
                                           ^~~~~
                                           UChar32
/usr/include/unicode/ucnv.h:1916:46: error: ‘UChar’ has not been declared
 ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen);
                                              ^~~~~
make: *** [xml2_namespace.o] Error 1
g++ -std=c++98 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I/usr/include/libxml2 -I"/home/kirill/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include"   -fvisibility=hidden -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-oNcpyf/r-base-3.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c xml2_init.cpp -o xml2_init.o
/usr/lib/R/etc/Makeconf:168: recipe for target 'xml2_init.o' failed
In file included from /usr/include/unicode/utypes.h:38:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/xmlerror.h:10,
                 from xml2_init.cpp:5:
/usr/include/unicode/umachine.h:347:13: error: ‘char16_t’ does not name a type; did you mean ‘wchar_t’?
     typedef char16_t UChar;
             ^~~~~~~~
             wchar_t
In file included from /usr/include/unicode/utypes.h:39:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/xmlerror.h:10,
                 from xml2_init.cpp:5:
/usr/include/unicode/uversion.h:167:55: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
                                                       ^~~~~
                                                       UChar32
In file included from /usr/include/unicode/ucnv.h:52:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/xmlerror.h:10,
                 from xml2_init.cpp:5:
/usr/include/unicode/ucnv_err.h:198:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *source;        /**< Pointer to the source source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:199:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *sourceLimit;   /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:216:5: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     UChar *target;              /**< Pointer to the target buffer. @stable ICU 2.0    */
     ^~~~~
     UChar32
/usr/include/unicode/ucnv_err.h:217:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *targetLimit;   /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0     */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:239:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:290:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:320:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:376:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/xmlerror.h:10,
                 from xml2_init.cpp:5:
/usr/include/unicode/uenum.h:112:16: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 U_STABLE const UChar* U_EXPORT2
                ^~~~~
                UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/xmlerror.h:10,
                 from xml2_init.cpp:5:
/usr/include/unicode/uenum.h:190:41: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 uenum_openUCharStringsEnumeration(const UChar* const strings[], int32_t count,
                                         ^~~~~
                                         UChar32
In file included from /usr/include/libxml2/libxml/encoding.h:31:0,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/xmlerror.h:10,
                 from xml2_init.cpp:5:
/usr/include/unicode/ucnv.h:226:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar* codeUnits,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:397:18: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 ucnv_openU(const UChar *name,
                  ^~~~~
                  UChar32
/usr/include/unicode/ucnv.h:669:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar *s,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:707:23: error: ‘UChar’ has not been declared
                       UChar *errUChars,
                       ^~~~~
/usr/include/unicode/ucnv.h:846:21: error: ‘UChar’ has not been declared
                     UChar *displayName,
                     ^~~~~
/usr/include/unicode/ucnv.h:1147:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar ** source,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1148:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar * sourceLimit,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1214:16: error: ‘UChar’ has not been declared
                UChar **target,
                ^~~~~
/usr/include/unicode/ucnv.h:1215:22: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                const UChar *targetLimit,
                      ^~~~~
                      UChar32
/usr/include/unicode/ucnv.h:1252:23: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                 const UChar *src, int32_t srcLength,
                       ^~~~~
                       UChar32
/usr/include/unicode/ucnv.h:1283:15: error: ‘UChar’ has not been declared
               UChar *dest, int32_t destCapacity,
               ^~~~~
/usr/include/unicode/ucnv.h:1505:16: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                ^~~~~
/usr/include/unicode/ucnv.h:1505:35: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                                   ^~~~~
/usr/include/unicode/ucnv.h:1506:16: error: ‘UChar’ has not been declared
                UChar **pivotTarget, const UChar *pivotLimit,
                ^~~~~
/usr/include/unicode/ucnv.h:1506:43: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                UChar **pivotTarget, const UChar *pivotLimit,
                                           ^~~~~
                                           UChar32
/usr/include/unicode/ucnv.h:1916:46: error: ‘UChar’ has not been declared
 ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen);
                                              ^~~~~
make: *** [xml2_init.o] Error 1
g++ -std=c++98 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I/usr/include/libxml2 -I"/home/kirill/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include"   -fvisibility=hidden -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-oNcpyf/r-base-3.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c xml2_output.cpp -o xml2_output.o
/usr/lib/R/etc/Makeconf:168: recipe for target 'xml2_output.o' failed
In file included from /usr/include/unicode/utypes.h:38:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_output.cpp:28:
/usr/include/unicode/umachine.h:347:13: error: ‘char16_t’ does not name a type; did you mean ‘wchar_t’?
     typedef char16_t UChar;
             ^~~~~~~~
             wchar_t
In file included from /usr/include/unicode/utypes.h:39:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_output.cpp:28:
/usr/include/unicode/uversion.h:167:55: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
                                                       ^~~~~
                                                       UChar32
In file included from /usr/include/unicode/ucnv.h:52:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_output.cpp:28:
/usr/include/unicode/ucnv_err.h:198:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *source;        /**< Pointer to the source source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:199:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *sourceLimit;   /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:216:5: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     UChar *target;              /**< Pointer to the target buffer. @stable ICU 2.0    */
     ^~~~~
     UChar32
/usr/include/unicode/ucnv_err.h:217:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *targetLimit;   /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0     */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:239:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:290:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:320:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:376:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_output.cpp:28:
/usr/include/unicode/uenum.h:112:16: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 U_STABLE const UChar* U_EXPORT2
                ^~~~~
                UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_output.cpp:28:
/usr/include/unicode/uenum.h:190:41: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 uenum_openUCharStringsEnumeration(const UChar* const strings[], int32_t count,
                                         ^~~~~
                                         UChar32
In file included from /usr/include/libxml2/libxml/encoding.h:31:0,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_output.cpp:28:
/usr/include/unicode/ucnv.h:226:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar* codeUnits,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:397:18: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 ucnv_openU(const UChar *name,
                  ^~~~~
                  UChar32
/usr/include/unicode/ucnv.h:669:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar *s,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:707:23: error: ‘UChar’ has not been declared
                       UChar *errUChars,
                       ^~~~~
/usr/include/unicode/ucnv.h:846:21: error: ‘UChar’ has not been declared
                     UChar *displayName,
                     ^~~~~
/usr/include/unicode/ucnv.h:1147:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar ** source,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1148:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar * sourceLimit,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1214:16: error: ‘UChar’ has not been declared
                UChar **target,
                ^~~~~
/usr/include/unicode/ucnv.h:1215:22: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                const UChar *targetLimit,
                      ^~~~~
                      UChar32
/usr/include/unicode/ucnv.h:1252:23: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                 const UChar *src, int32_t srcLength,
                       ^~~~~
                       UChar32
/usr/include/unicode/ucnv.h:1283:15: error: ‘UChar’ has not been declared
               UChar *dest, int32_t destCapacity,
               ^~~~~
/usr/include/unicode/ucnv.h:1505:16: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                ^~~~~
/usr/include/unicode/ucnv.h:1505:35: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                                   ^~~~~
/usr/include/unicode/ucnv.h:1506:16: error: ‘UChar’ has not been declared
                UChar **pivotTarget, const UChar *pivotLimit,
                ^~~~~
/usr/include/unicode/ucnv.h:1506:43: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                UChar **pivotTarget, const UChar *pivotLimit,
                                           ^~~~~
                                           UChar32
/usr/include/unicode/ucnv.h:1916:46: error: ‘UChar’ has not been declared
 ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen);
                                              ^~~~~
make: *** [xml2_output.o] Error 1
g++ -std=c++98 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I/usr/include/libxml2 -I"/home/kirill/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include"   -fvisibility=hidden -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-oNcpyf/r-base-3.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RcppExports.cpp -o RcppExports.o
/usr/lib/R/etc/Makeconf:168: recipe for target 'RcppExports.o' failed
In file included from /usr/include/unicode/utypes.h:38:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from ../inst/include/xml2_types.h:4,
                 from RcppExports.cpp:4:
/usr/include/unicode/umachine.h:347:13: error: ‘char16_t’ does not name a type; did you mean ‘wchar_t’?
     typedef char16_t UChar;
             ^~~~~~~~
             wchar_t
In file included from /usr/include/unicode/utypes.h:39:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from ../inst/include/xml2_types.h:4,
                 from RcppExports.cpp:4:
/usr/include/unicode/uversion.h:167:55: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
                                                       ^~~~~
                                                       UChar32
In file included from /usr/include/unicode/ucnv.h:52:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from ../inst/include/xml2_types.h:4,
                 from RcppExports.cpp:4:
/usr/include/unicode/ucnv_err.h:198:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *source;        /**< Pointer to the source source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:199:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *sourceLimit;   /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:216:5: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     UChar *target;              /**< Pointer to the target buffer. @stable ICU 2.0    */
     ^~~~~
     UChar32
/usr/include/unicode/ucnv_err.h:217:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *targetLimit;   /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0     */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:239:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:290:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:320:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:376:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from ../inst/include/xml2_types.h:4,
                 from RcppExports.cpp:4:
/usr/include/unicode/uenum.h:112:16: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 U_STABLE const UChar* U_EXPORT2
                ^~~~~
                UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from ../inst/include/xml2_types.h:4,
                 from RcppExports.cpp:4:
/usr/include/unicode/uenum.h:190:41: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 uenum_openUCharStringsEnumeration(const UChar* const strings[], int32_t count,
                                         ^~~~~
                                         UChar32
In file included from /usr/include/libxml2/libxml/encoding.h:31:0,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from ../inst/include/xml2_types.h:4,
                 from RcppExports.cpp:4:
/usr/include/unicode/ucnv.h:226:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar* codeUnits,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:397:18: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 ucnv_openU(const UChar *name,
                  ^~~~~
                  UChar32
/usr/include/unicode/ucnv.h:669:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar *s,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:707:23: error: ‘UChar’ has not been declared
                       UChar *errUChars,
                       ^~~~~
/usr/include/unicode/ucnv.h:846:21: error: ‘UChar’ has not been declared
                     UChar *displayName,
                     ^~~~~
/usr/include/unicode/ucnv.h:1147:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar ** source,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1148:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar * sourceLimit,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1214:16: error: ‘UChar’ has not been declared
                UChar **target,
                ^~~~~
/usr/include/unicode/ucnv.h:1215:22: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                const UChar *targetLimit,
                      ^~~~~
                      UChar32
/usr/include/unicode/ucnv.h:1252:23: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                 const UChar *src, int32_t srcLength,
                       ^~~~~
                       UChar32
/usr/include/unicode/ucnv.h:1283:15: error: ‘UChar’ has not been declared
               UChar *dest, int32_t destCapacity,
               ^~~~~
/usr/include/unicode/ucnv.h:1505:16: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                ^~~~~
/usr/include/unicode/ucnv.h:1505:35: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                                   ^~~~~
/usr/include/unicode/ucnv.h:1506:16: error: ‘UChar’ has not been declared
                UChar **pivotTarget, const UChar *pivotLimit,
                ^~~~~
/usr/include/unicode/ucnv.h:1506:43: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                UChar **pivotTarget, const UChar *pivotLimit,
                                           ^~~~~
                                           UChar32
/usr/include/unicode/ucnv.h:1916:46: error: ‘UChar’ has not been declared
 ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen);
                                              ^~~~~
make: *** [RcppExports.o] Error 1
g++ -std=c++98 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I/usr/include/libxml2 -I"/home/kirill/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include"   -fvisibility=hidden -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-oNcpyf/r-base-3.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c xml2_node.cpp -o xml2_node.o
/usr/lib/R/etc/Makeconf:168: recipe for target 'xml2_node.o' failed
In file included from /usr/include/unicode/utypes.h:38:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_node.cpp:2:
/usr/include/unicode/umachine.h:347:13: error: ‘char16_t’ does not name a type; did you mean ‘wchar_t’?
     typedef char16_t UChar;
             ^~~~~~~~
             wchar_t
In file included from /usr/include/unicode/utypes.h:39:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_node.cpp:2:
/usr/include/unicode/uversion.h:167:55: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
                                                       ^~~~~
                                                       UChar32
In file included from /usr/include/unicode/ucnv.h:52:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_node.cpp:2:
/usr/include/unicode/ucnv_err.h:198:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *source;        /**< Pointer to the source source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:199:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *sourceLimit;   /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:216:5: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     UChar *target;              /**< Pointer to the target buffer. @stable ICU 2.0    */
     ^~~~~
     UChar32
/usr/include/unicode/ucnv_err.h:217:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *targetLimit;   /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0     */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:239:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:290:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:320:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:376:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_node.cpp:2:
/usr/include/unicode/uenum.h:112:16: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 U_STABLE const UChar* U_EXPORT2
                ^~~~~
                UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_node.cpp:2:
/usr/include/unicode/uenum.h:190:41: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 uenum_openUCharStringsEnumeration(const UChar* const strings[], int32_t count,
                                         ^~~~~
                                         UChar32
In file included from /usr/include/libxml2/libxml/encoding.h:31:0,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from xml2_node.cpp:2:
/usr/include/unicode/ucnv.h:226:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar* codeUnits,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:397:18: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 ucnv_openU(const UChar *name,
                  ^~~~~
                  UChar32
/usr/include/unicode/ucnv.h:669:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar *s,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:707:23: error: ‘UChar’ has not been declared
                       UChar *errUChars,
                       ^~~~~
/usr/include/unicode/ucnv.h:846:21: error: ‘UChar’ has not been declared
                     UChar *displayName,
                     ^~~~~
/usr/include/unicode/ucnv.h:1147:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar ** source,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1148:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar * sourceLimit,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1214:16: error: ‘UChar’ has not been declared
                UChar **target,
                ^~~~~
/usr/include/unicode/ucnv.h:1215:22: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                const UChar *targetLimit,
                      ^~~~~
                      UChar32
/usr/include/unicode/ucnv.h:1252:23: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                 const UChar *src, int32_t srcLength,
                       ^~~~~
                       UChar32
/usr/include/unicode/ucnv.h:1283:15: error: ‘UChar’ has not been declared
               UChar *dest, int32_t destCapacity,
               ^~~~~
/usr/include/unicode/ucnv.h:1505:16: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                ^~~~~
/usr/include/unicode/ucnv.h:1505:35: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                                   ^~~~~
/usr/include/unicode/ucnv.h:1506:16: error: ‘UChar’ has not been declared
                UChar **pivotTarget, const UChar *pivotLimit,
                ^~~~~
/usr/include/unicode/ucnv.h:1506:43: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                UChar **pivotTarget, const UChar *pivotLimit,
                                           ^~~~~
                                           UChar32
/usr/include/unicode/ucnv.h:1916:46: error: ‘UChar’ has not been declared
 ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen);
                                              ^~~~~
make: *** [xml2_node.o] Error 1
g++ -std=c++98 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I/usr/include/libxml2 -I"/home/kirill/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include"   -fvisibility=hidden -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-oNcpyf/r-base-3.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c connection.cpp -o connection.o
ERROR: compilation failed for package ‘xml2’
* removing ‘/home/kirill/R/x86_64-pc-linux-gnu-library/3.5/xml2’
* restoring previous ‘/home/kirill/R/x86_64-pc-linux-gnu-library/3.5/xml2’

The downloaded source packages are in
	'/tmp/RtmpOmE4Md/downloaded_packages'

Created on 2018-09-27 by the reprex package (v0.2.1)

@roelicaal

This comment has been minimized.

Copy link

@roelicaal roelicaal commented Nov 20, 2018

Same problem and error message here. For now, is there any way to work around this?

@jimhester

This comment has been minimized.

Copy link
Member

@jimhester jimhester commented Nov 20, 2018

These errors seem to be coming from your system unicode headers, not from code in this package.

@gaborcsardi

This comment has been minimized.

Copy link
Member

@gaborcsardi gaborcsardi commented Feb 4, 2019

Here is a workaround:

withr::with_makevars(c(CXX = "g++ -std=c++11"), 
   install.packages("xml2", verbose = TRUE))
@tersmitten

This comment has been minimized.

Copy link

@tersmitten tersmitten commented Jul 10, 2019

Relates to #250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.