Installation fails on Synology DS220j

23 views
Skip to first unread message

Wolf Heidrich

unread,
Jul 1, 2020, 12:46:15 PM7/1/20
to nokogiri-talk

So, I tried to install nokogiri on a Synology DS220j. The following log is the farthest I got.

sudo gem install nokogiri
Password:
Building native extensions. This could take a while...
ERROR:  Error installing nokogiri:
        ERROR: Failed to build gem native extension.
    current directory: /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.10.9/ext/nokogiri
/opt/bin/ruby -I /volume1/@entware/lib/ruby/2.7 -r ./siteconf20200701-23130-11dallb.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
Using mini_portile version 2.4.0
checking for gzdopen() in -lz... yes
checking for iconv using --with-iconv-* flags... yes
************************************************************************
IMPORTANT NOTICE:
Building Nokogiri with a packaged version of libxml2-2.9.10
with the following patches applied:
        - 0001-Revert-Do-not-URI-escape-in-server-side-includes.patch
        - 0002-Remove-script-macro-support.patch
        - 0003-Update-entities-to-remove-handling-of-ssi.patch
        - 0004-libxml2.la-is-in-top_builddir.patch
        - 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch
Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:
    gem install nokogiri -- --use-system-libraries
        [--with-xml2-config=/path/to/xml2-config]
        [--with-xslt-config=/path/to/xslt-config]
If you are using Bundler, tell it to use the option:
    bundle config build.nokogiri --use-system-libraries
    bundle install
Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.10.tar.gz into tmp/aarch64-openwrt-linux/ports/libxml2/2.9.10... OK
Running git apply with /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.10.9/patches/libxml2/0001-Revert-Do-not-URI-escape-in-server-side-includes.patch... OK
Running git apply with /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.10.9/patches/libxml2/0002-Remove-script-macro-support.patch... OK
Running git apply with /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.10.9/patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi.patch... OK
Running git apply with /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.10.9/patches/libxml2/0004-libxml2.la-is-in-top_builddir.patch... OK
Running git apply with /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.10.9/patches/libxml2/0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch... OK
Running 'configure' for libxml2 2.9.10... OK
Running 'compile' for libxml2 2.9.10... OK
Running 'install' for libxml2 2.9.10... OK
Activating libxml2 2.9.10 (from /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.10.9/ports/aarch64-openwrt-linux/libxml2/2.9.10)...
************************************************************************
IMPORTANT NOTICE:
Building Nokogiri with a packaged version of libxslt-1.1.34.
Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:
    gem install nokogiri -- --use-system-libraries
        [--with-xml2-config=/path/to/xml2-config]
        [--with-xslt-config=/path/to/xslt-config]
If you are using Bundler, tell it to use the option:
    bundle config build.nokogiri --use-system-libraries
    bundle install
************************************************************************
Extracting libxslt-1.1.34.tar.gz into tmp/aarch64-openwrt-linux/ports/libxslt/1.1.34... OK
Running 'configure' for libxslt 1.1.34... OK
Running 'compile' for libxslt 1.1.34... OK
Running 'install' for libxslt 1.1.34... OK
Activating libxslt 1.1.34 (from /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.10.9/ports/aarch64-openwrt-linux/libxslt/1.1.34)...
checking for -llzma... yes
checking for xmlParseDoc() in libxml/parser.h... no
checking for xmlParseDoc() in -lxml2... no
checking for xmlParseDoc() in -llibxml2... no
-----
libxml2 is missing.  Please locate mkmf.log to investigate how it is failing.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/opt/bin/$(RUBY_BASE_NAME)
        --help
        --clean
        --use-system-libraries
        --enable-static
        --with-zlib-dir
        --without-zlib-dir
        --with-zlib-include
        --without-zlib-include=${zlib-dir}/include
        --with-zlib-lib
        --without-zlib-lib=${zlib-dir}/lib
        --enable-cross-build
        --disable-cross-build
        --with-xml2-dir
        --without-xml2-dir
        --with-xml2-include
        --without-xml2-include=${xml2-dir}/include
        --with-xml2-lib
        --without-xml2-lib=${xml2-dir}/lib
        --with-xml2lib
        --without-xml2lib
        --with-libxml2-dir
        --without-libxml2-dir
        --with-libxml2-include
        --without-libxml2-include=${libxml2-dir}/include
        --with-libxml2-lib
        --without-libxml2-lib=${libxml2-dir}/lib
        --with-libxml2lib
        --without-libxml2lib
To see why this extension failed to compile, please check the mkmf.log which can be found here:
  /volume1/@entware/lib/ruby/gems/2.7/extensions/aarch64-linux/2.7/nokogiri-1.10.9/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.10.9 for inspection.
Results logged to /volume1/@entware/lib/ruby/gems/2.7/extensions/aarch64-linux/2.7/nokogiri-1.10.9/gem_make.out
.7/nokogiri-1.10.9/mkmf.log@entware/lib/ruby/gems/2.7/extensions/aarch64-linux/2

mkmf.log
"aarch64-openwrt-linux-gnu-gcc -o conftest -I/volume1/@entware/include/ruby-2.7/aarch64-linux-gnu -I/volume1/@entware/include/ruby-2.7/ruby/backward -I/volume1/@entware/include/ruby-2.7 -I. -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/include -I/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include    -O2 -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result  -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include  -fPIC  conftest.c  -L. -L/opt/lib -L. -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux-aarch64.so.1 -L/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -L/media/ware3/Entware.2020.05/build_dir/target-aarch64_cortex-a53_glibc-2.27/ruby-2.7.1  -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -lruby  -lm   -lc "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */
"aarch64-openwrt-linux-gnu-gcc -I/volume1/@entware/include/ruby-2.7/aarch64-linux-gnu -I/volume1/@entware/include/ruby-2.7/ruby/backward -I/volume1/@entware/include/ruby-2.7 -I. -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/include -I/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include    -O2 -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result  -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include  -fPIC    -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */
have_library: checking for gzdopen() in -lz... -------------------- yes
"aarch64-openwrt-linux-gnu-gcc -o conftest -I/volume1/@entware/include/ruby-2.7/aarch64-linux-gnu -I/volume1/@entware/include/ruby-2.7/ruby/backward -I/volume1/@entware/include/ruby-2.7 -I. -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/include -I/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include    -O2 -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result  -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include  -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline conftest.c  -L. -L/opt/lib -L. -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux-aarch64.so.1 -L/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -L/media/ware3/Entware.2020.05/build_dir/target-aarch64_cortex-a53_glibc-2.27/ruby-2.7.1  -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -lruby -lz  -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: #include <zlib.h>
 4:
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     int (* volatile tp)(void)=(int (*)(void))&t;
11:     printf("%d", (*tp)());
12:   }
13:
14:   return !!argv[argc];
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))gzdopen; return !p; }
/* end */
--------------------
have_iconv?: checking for iconv using --with-iconv-* flags... -------------------- yes
"aarch64-openwrt-linux-gnu-gcc -o conftest -I/volume1/@entware/include/ruby-2.7/aarch64-linux-gnu -I/volume1/@entware/include/ruby-2.7/ruby/backward -I/volume1/@entware/include/ruby-2.7 -I. -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/include -I/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include    -O2 -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result  -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include  -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline conftest.c  -L. -L/opt/lib -L. -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux-aarch64.so.1 -L/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -L/media/ware3/Entware.2020.05/build_dir/target-aarch64_cortex-a53_glibc-2.27/ruby-2.7.1  -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -lruby  -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: #include <stdlib.h>
 4: #include <iconv.h>
 5:
 6: int main(void)
 7: {
 8:     iconv_t cd = iconv_open("", "");
 9:     iconv(cd, NULL, NULL, NULL, NULL);
10:     return EXIT_SUCCESS;
11: }
/* end */
--------------------
have_library: checking for -llzma... -------------------- yes
"aarch64-openwrt-linux-gnu-gcc -o conftest -I/volume1/@entware/include/ruby-2.7/aarch64-linux-gnu -I/volume1/@entware/include/ruby-2.7/ruby/backward -I/volume1/@entware/include/ruby-2.7 -I. -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/include -I/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include    -O2 -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result  -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include  -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/opt/lib -L. -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux-aarch64.so.1 -L/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -L/media/ware3/Entware.2020.05/build_dir/target-aarch64_cortex-a53_glibc-2.27/ruby-2.7.1  -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -lruby -llzma  -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11:
12:   return !!argv[argc];
13: }
14:
15: int t(void) { ; return 0; }
/* end */
--------------------
have_func: checking for xmlParseDoc() in libxml/parser.h... -------------------- no
"aarch64-openwrt-linux-gnu-gcc -o conftest -I/volume1/@entware/include/ruby-2.7/aarch64-linux-gnu -I/volume1/@entware/include/ruby-2.7/ruby/backward -I/volume1/@entware/include/ruby-2.7 -I. -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/include/libxml2 -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/include -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/include/libxml2 -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/include -I/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include    "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result  -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include  -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/opt/lib -L/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib -L/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib -L/opt/lib -L. -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux-aarch64.so.1 -L/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -L/media/ware3/Entware.2020.05/build_dir/target-aarch64_cortex-a53_glibc-2.27/ruby-2.7.1  -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libexslt.a -lm -ldl -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libxslt.a -ldl -lm -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libexslt.a -lm -ldl -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libxslt.a -ldl -lm -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a -llzma -lm   -lc "
sh: relocation error: /opt/lib/libc.so.6: symbol _dl_exception_create, version GLIBC_PRIVATE not defined in file ld-linux-aarch64.so.1 with link time reference
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: #include <libxml/parser.h>
 4:
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     int (* volatile tp)(void)=(int (*)(void))&t;
11:     printf("%d", (*tp)());
12:   }
13:
14:   return !!argv[argc];
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlParseDoc; return !p; }
/* end */
"aarch64-openwrt-linux-gnu-gcc -o conftest -I/volume1/@entware/include/ruby-2.7/aarch64-linux-gnu -I/volume1/@entware/include/ruby-2.7/ruby/backward -I/volume1/@entware/include/ruby-2.7 -I. -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/include/libxml2 -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/include -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/include/libxml2 -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/include -I/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include    "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result  -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include  -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/opt/lib -L/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib -L/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib -L/opt/lib -L. -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux-aarch64.so.1 -L/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -L/media/ware3/Entware.2020.05/build_dir/target-aarch64_cortex-a53_glibc-2.27/ruby-2.7.1  -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libexslt.a -lm -ldl -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libxslt.a -ldl -lm -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libexslt.a -lm -ldl -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libxslt.a -ldl -lm -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a -llzma -lm   -lc "
sh: relocation error: /opt/lib/libc.so.6: symbol _dl_exception_create, version GLIBC_PRIVATE not defined in file ld-linux-aarch64.so.1 with link time reference
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: #include <libxml/parser.h>
 4:
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     int (* volatile tp)(void)=(int (*)(void))&t;
11:     printf("%d", (*tp)());
12:   }
13:
14:   return !!argv[argc];
15: }
16: extern void xmlParseDoc();
17: int t(void) { xmlParseDoc(); return 0; }
/* end */
--------------------
have_library: checking for xmlParseDoc() in -lxml2... -------------------- no
"aarch64-openwrt-linux-gnu-gcc -o conftest -I/volume1/@entware/include/ruby-2.7/aarch64-linux-gnu -I/volume1/@entware/include/ruby-2.7/ruby/backward -I/volume1/@entware/include/ruby-2.7 -I. -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/include/libxml2 -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/include -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/include/libxml2 -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/include -I/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include    "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result  -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include  -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/opt/lib -L/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib -L/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib -L/opt/lib -L. -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux-aarch64.so.1 -L/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -L/media/ware3/Entware.2020.05/build_dir/target-aarch64_cortex-a53_glibc-2.27/ruby-2.7.1  -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libexslt.a -lm -ldl -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libxslt.a -ldl -lm -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a -llzma -lruby -lxml2 /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libexslt.a -lm -ldl -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libxslt.a -ldl -lm -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a -llzma -lm   -lc "
sh: relocation error: /opt/lib/libc.so.6: symbol _dl_exception_create, version GLIBC_PRIVATE not defined in file ld-linux-aarch64.so.1 with link time reference
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: #include <libxml/parser.h>
 4:
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     int (* volatile tp)(void)=(int (*)(void))&t;
11:     printf("%d", (*tp)());
12:   }
13:
14:   return !!argv[argc];
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlParseDoc; return !p; }
/* end */
"aarch64-openwrt-linux-gnu-gcc -o conftest -I/volume1/@entware/include/ruby-2.7/aarch64-linux-gnu -I/volume1/@entware/include/ruby-2.7/ruby/backward -I/volume1/@entware/include/ruby-2.7 -I. -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/include/libxml2 -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/include -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/include/libxml2 -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/include -I/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include    "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result  -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include  -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/opt/lib -L/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib -L/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib -L/opt/lib -L. -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux-aarch64.so.1 -L/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -L/media/ware3/Entware.2020.05/build_dir/target-aarch64_cortex-a53_glibc-2.27/ruby-2.7.1  -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libexslt.a -lm -ldl -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libxslt.a -ldl -lm -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a -llzma -lruby -lxml2 /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libexslt.a -lm -ldl -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libxslt.a -ldl -lm -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a -llzma -lm   -lc "
sh: relocation error: /opt/lib/libc.so.6: symbol _dl_exception_create, version GLIBC_PRIVATE not defined in file ld-linux-aarch64.so.1 with link time reference
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: #include <libxml/parser.h>
 4:
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     int (* volatile tp)(void)=(int (*)(void))&t;
11:     printf("%d", (*tp)());
12:   }
13:
14:   return !!argv[argc];
15: }
16: extern void xmlParseDoc();
17: int t(void) { xmlParseDoc(); return 0; }
/* end */
--------------------
have_library: checking for xmlParseDoc() in -llibxml2... -------------------- no
"aarch64-openwrt-linux-gnu-gcc -o conftest -I/volume1/@entware/include/ruby-2.7/aarch64-linux-gnu -I/volume1/@entware/include/ruby-2.7/ruby/backward -I/volume1/@entware/include/ruby-2.7 -I. -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/include/libxml2 -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/include -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/include/libxml2 -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/include -I/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include    "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result  -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include  -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/opt/lib -L/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib -L/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib -L/opt/lib -L. -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux-aarch64.so.1 -L/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -L/media/ware3/Entware.2020.05/build_dir/target-aarch64_cortex-a53_glibc-2.27/ruby-2.7.1  -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libexslt.a -lm -ldl -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libxslt.a -ldl -lm -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a -llzma -lruby -llibxml2 /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libexslt.a -lm -ldl -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libxslt.a -ldl -lm -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a -llzma -lm   -lc "
sh: relocation error: /opt/lib/libc.so.6: symbol _dl_exception_create, version GLIBC_PRIVATE not defined in file ld-linux-aarch64.so.1 with link time reference
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: #include <libxml/parser.h>
 4:
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     int (* volatile tp)(void)=(int (*)(void))&t;
11:     printf("%d", (*tp)());
12:   }
13:
14:   return !!argv[argc];
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlParseDoc; return !p; }
/* end */
"aarch64-openwrt-linux-gnu-gcc -o conftest -I/volume1/@entware/include/ruby-2.7/aarch64-linux-gnu -I/volume1/@entware/include/ruby-2.7/ruby/backward -I/volume1/@entware/include/ruby-2.7 -I. -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/include/libxml2 -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/include -I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/include/libxml2 -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/include -I/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include    "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result  -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/include -I/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/include  -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/opt/lib -L/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib -L/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib -L/opt/lib -L. -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux-aarch64.so.1 -L/media/ware3/Entware.2020.05/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc-2.27/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libiconv-full/lib -L/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -Wl,-rpath-link=/media/ware3/Entware.2020.05/staging_dir/target-aarch64_cortex-a53_glibc-2.27/opt/lib/libintl-full/lib -L/media/ware3/Entware.2020.05/build_dir/target-aarch64_cortex-a53_glibc-2.27/ruby-2.7.1  -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libexslt.a -lm -ldl -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libxslt.a -ldl -lm -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a -llzma -lruby -llibxml2 /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libexslt.a -lm -ldl -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxslt/1.1.34/lib/libxslt.a -ldl -lm -lz /volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.11.0.rc2/ports/aarch64-openwrt-linux/libxml2/2.9.10/lib/libxml2.a -llzma -lm   -lc "
sh: relocation error: /opt/lib/libc.so.6: symbol _dl_exception_create, version GLIBC_PRIVATE not defined in file ld-linux-aarch64.so.1 with link time reference
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: #include <libxml/parser.h>
 4:
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     int (* volatile tp)(void)=(int (*)(void))&t;
11:     printf("%d", (*tp)());
12:   }
13:
14:   return !!argv[argc];
15: }
16: extern void xmlParseDoc();
17: int t(void) { xmlParseDoc(); return 0; }
/* end */
--------------------

It says it compiled, installed and activated libxml2 just fine. I do not understand why it then says it would be missing. Any hints would be very appreciated.

Message has been deleted

Mike Dalessio

unread,
Jul 1, 2020, 1:11:40 PM7/1/20
to nokogiri-talk
Hi,

Thanks for asking this question, and apologies that you're having trouble. I'll try to help.

The key error message, from mkmf.log, is this:

sh: relocation error: /opt/lib/libc.so.6: symbol _dl_exception_create, version GLIBC_PRIVATE not defined in file ld-linux-aarch64.so.1 with link time reference

This tells me that there may be something unexpected going on with the version of libc that your device is using. Can you tell us more about the linux distro that's installed on the device? I can't find much on the Synology implementation, and so this might be a topic better suited for a synology-specific forum.

--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nokogiri-talk/faf561bf-516e-4af4-9c2b-5700d88947b6o%40googlegroups.com.

Wayne Brissette

unread,
Jul 1, 2020, 1:16:51 PM7/1/20
to nokogi...@googlegroups.com, Wolf Heidrich
interesting... this is running on an Arm processor. I wonder if there are any known issues there.

-Wayne

Wolf Heidrich wrote on 2020-07-01 11:42:
"aarch64-openwrt-linux-gnu-gcc -o conftest -I/volume1/@entware/include/ruby-2.7/aarch64-linux-gnu

Wolf Heidrich

unread,
Jul 1, 2020, 3:05:44 PM7/1/20
to nokogiri-talk
Hi Mike,

sure, from dmesg:

[    0.000000] Linux version 4.4.59+ (root@build1) (gcc version 4.9.4 20150629 (prerelease) (crosstool-NG crosstool-ng-1.22.0-169-g87eb166) ) #25426 SMP Tue May 12 04:40:54 CST 2020
[    0.000000] Boot CPU: AArch64 Processor [410fd034]


CPU is a Realtek RTD1296 SoC which is an ARMv8.

gcc and libc have been installed from https://bin.entware.net/aarch64-k3.10/

The part about
sh: relocation error: /opt/lib/libc.so.6: symbol _dl_exception_create, version GLIBC_PRIVATE not defined in file ld-linux-aarch64.so.1 with link time reference..
is odd. 

However I am wondering about
have_func: checking for xmlParseDoc() in libxml/parser.h... -------------------- no
before, as the header file has been generated properly before at 
-I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.10.9/ports/aarch64-openwrt-linux/libxml2/2.9.10/include/libxml2
which is then correctly included before the linker fails.

Am Mittwoch, 1. Juli 2020 19:11:40 UTC+2 schrieb Mike Dalessio:
Hi,

Thanks for asking this question, and apologies that you're having trouble. I'll try to help.

The key error message, from mkmf.log, is this:

sh: relocation error: /opt/lib/libc.so.6: symbol _dl_exception_create, version GLIBC_PRIVATE not defined in file ld-linux-aarch64.so.1 with link time reference

This tells me that there may be something unexpected going on with the version of libc that your device is using. Can you tell us more about the linux distro that's installed on the device? I can't find much on the Synology implementation, and so this might be a topic better suited for a synology-specific forum.

To unsubscribe from this group and stop receiving emails from it, send an email to nokogi...@googlegroups.com.

Mike Dalessio

unread,
Jul 1, 2020, 3:12:16 PM7/1/20
to nokogiri-talk
Hi,


However I am wondering about
have_func: checking for xmlParseDoc() in libxml/parser.h... -------------------- no
before, as the header file has been generated properly before at 
-I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.10.9/ports/aarch64-openwrt-linux/libxml2/2.9.10/include/libxml2
which is then correctly included before the linker fails.

To clarify, mkmf.log is the log of the work being done behind the scenes by `have_func` ... the libc error is generated by have_func when running this check.

Can you cat `/etc/lsb-release` for us?

Are you able to compile and install any other C extension gems (like bcrypt)?

To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nokogiri-talk/4a6cb194-12ce-4288-9970-3e2cdc3ac73bo%40googlegroups.com.

Wolf Heidrich

unread,
Jul 2, 2020, 2:44:58 PM7/2/20
to nokogiri-talk
Hi Mike, 

unfortunately, neither lsb-release nor os-release are available. The only thing, I can get something from is uname:
Wolf@Fels:/$ lsb_release
-sh: lsb_release: command not found
Wolf@Fels:/
$ cat etc/*-release
cat: etc/*-release: No such file or directory
Wolf@Fels:/$ cat etc/*-version
cat: etc/*-version: No such file or directory
Wolf@Fels:/$ cat etc/*_release
cat: etc/*_release: No such file or directory
Wolf@Fels:/$ cat etc/*version
cat: etc/*version: No such file or directory
Wolf@Fels:/$ uname -a
Linux Fels 4.4.59+ #25426 SMP Tue May 12 04:40:54 CST 2020 aarch64 GNU/Linux synology_rtd1296_ds220j


I am able to install bcrypt just fine: 
Wolf@Fels:/$ sudo gem install bcrypt
Fetching bcrypt-3.1.13.gem

Building native extensions. This could take a while...
Successfully installed bcrypt-3.1.13
Parsing documentation for bcrypt-3.1.13
Installing ri documentation for bcrypt-3.1.13
Done installing documentation for bcrypt after 4 seconds
1 gem installed


Am Mittwoch, 1. Juli 2020 21:12:16 UTC+2 schrieb Mike Dalessio:
Hi,

However I am wondering about
have_func: checking for xmlParseDoc() in libxml/parser.h... -------------------- no
before, as the header file has been generated properly before at 
-I/volume1/@entware/lib/ruby/gems/2.7/gems/nokogiri-1.10.9/ports/aarch64-openwrt-linux/libxml2/2.9.10/include/libxml2
which is then correctly included before the linker fails.

To clarify, mkmf.log is the log of the work being done behind the scenes by `have_func` ... the libc error is generated by have_func when running this check.

Can you cat `/etc/lsb-release` for us?

Are you able to compile and install any other C extension gems (like bcrypt)?

Mike Dalessio

unread,
Jul 6, 2020, 9:01:01 AM7/6/20
to nokogiri-talk
Hi Wolf,

I'm sorry, I'm not sure I'm going to be able to help you out here. You may want to ask about this on a Synology-focused forum, because my guess is that the linux distro that's installed is nonstandard or an optimized build (or both) -- that's just based on the libc linking error emitted in mkmf.log.

To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nokogiri-talk/76b1a148-1cb4-4b86-acfd-98619b256b82o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages