Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-14751

Cross-compiling not working on OpenWRT/EntWare

    Details

    • Team:
      Team A
    • Sprint:
      Sprint 41
    • Story Points:
      0.5

      Description

      Steps to reproduce:
      Prepare buildroot for OpenWRT/EntWare (Ubuntu 16.04/18.04):

      sudo apt-get install git-core build-essential libssl-dev libncurses5-dev unzip gawk zlib1g-dev
      git clone https://github.com/Entware/Entware
      cd Entware
      echo "src-git keendev3x https://github.com/The-BB/keendev-3x.git" >> ./feeds.conf
      cp configs/mipsel-3.4.config .config
      make package/symlinks
      make menuconfig
      ### enable libpthread
      make tools/install
      make toolchain/install
      make target/compile
      ### adjust ./feeds/packages/admin/zabbix/Makefile to 4.0.0alpha9 with DEPENDS += $(ICONV_DEPENDS) $(INTL_DEPENDS) +libcurl +libnetsnmp +libevent2 +unixodbc +zlib +libpthread +libpcre +libopenssl
      ### remove uclibc/old-libc patch set 002/500* from the ./feeds/packages/admin/zabbix/patches/
      make package/zabbix/compile
      

      Result:

      configure:4669: checking pthread.h usability
      configure:4669: mipsel-openwrt-linux-gnu-gcc -c -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float  -I/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib/libiconv-full/include -I/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib/libintl-full/include  -I/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/include -I/home/dante/entware/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-7.3.0_glibc-2.27/include -I/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib/libiconv-full/include -I/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib/libintl-full/include  conftest.c >&5
      configure:4669: $? = 0
      configure:4669: result: yes
      configure:4669: checking pthread.h presence
      configure:4669: mipsel-openwrt-linux-gnu-gcc -E -I/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/include -I/home/dante/entware/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-7.3.0_glibc-2.27/include -I/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib/libiconv-full/include -I/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib/libintl-full/include  conftest.c
      configure:4669: $? = 0
      configure:4669: result: yes
      configure:4669: checking for pthread.h
      configure:4669: result: yes
      menus
      configure:10411: checking for process shared libpthread support
      configure:10473: mipsel-openwrt-linux-gnu-gcc -o conftest -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float  -I/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib/libiconv-full/include -I/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib/libintl-full/include  -I/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/include -I/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/include -I/home/dante/entware/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-7.3.0_glibc-2.27/include -I/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib/libiconv-full/include -I/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib/libintl-full/include  -rdynamic -L/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib -Wl,--dynamic-linker=/opt/lib/ld.so.1 -L/home/dante/entware/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-7.3.0_glibc-2.27/lib -L/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib/libiconv-full/lib -Wl,-rpath-link=/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib/libiconv-full/lib -L/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib/libintl-full/lib -Wl,-rpath-link=/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib/libintl-full/lib  -L/home/dante/entware/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib conftest.c -lm -ldl  -lresolv -lpthread >&5
      configure:10473: $? = 0
      configure:10481: error: in `/home/dante/entware/Entware/build_dir/target-mipsel_mips32r2_glibc-2.27/zabbix-4.0.0alpha9':
      configure:10483: error: cannot run test program while cross compiling
      See `config.log' for more details
      

      Expected:
      IPK packages for Server or Proxy like for 3.4 version.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vso Vladislavs Sokurenko
                Reporter:
                edgar.akhmetshin Edgar Akhmetshin
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: