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

Compiling error: "ld: error: undefined symbol: duk_repl_isnan" on FreeBSD 13

XMLWordPrintable

    • Team B
    • Sprint 85 (Feb 2022)
    • 0.5

      Hi!
      According to this topic on forum (Russian language), there is a problem with compiling a new versions of Zabbix server on the FreeBSD 13 platform using a standard cc compiler. Author of this topic tells that the previous releases (at least, 5.4.9 and 5.4.8) had no this problem. Maybe, ZBXNEXT-7101 (implemented just in version 5.4.10) could affect?

      Steps to reproduce:

      1. Download a sources onto FreeBSD system;
      2. Use the following command:
        ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-ssh2 --with-openipmi --with-libxml2 --with-openssl --with-iconv
        

        (it completes successfully)

      1. Try to build server using make command.

      Result:
      The following error:

      rc/libs/zbxvault/libzbxvault.a ../../src/libs/zbxavailability/libzbxavailability.a ipmi/libipmi.a -lmariadb -lnetsnmp -lssh2 -lOpenIPMI -lOpenIPMIposix -lz -lpthread -levent -lssl -lcrypto -lcurl -lkvm -lm -lexecinfo -ldevstat -lxml2 -lpcre -liconv
      ld: error: undefined symbol: duk_repl_isnan
      >>> referenced by zabbix.c:144
      >>> zabbix.o: (es_zabbix_sleep) in archive ../../src/libs/zbxembed/libzbxembed.a
      cc: error: linker command failed with exit code 1 (use -v to see invocation)
      *** Error code 1
      

      The similar error with the version 6.0.0rc1:

      e.a ipmi/libipmi.a -lmariadb -lnetsnmp -lssh2 -lOpenIPMI -lOpenIPMIposix -lz -lpthread -levent -lssl -lcrypto -lcurl -lkvm -lm -lexecinfo -ldevstat -lxml2 -lpcre -liconv
      ld: error: undefined symbol: duk_repl_isnan
      >>> referenced by zabbix.c:138
      >>> zabbix.o: (es_zabbix_sleep) in archive ../../src/libs/zbxembed/libzbxembed.a
      cc: error: linker command failed with exit code 1 (use -v to see invocation)
      *** Error code 1
      

      At the same time, the version 5.4.9 on the same system could be built successfully.

      Expected:
      No compilation errors.

            asestakovs Aleksejs Sestakovs
            constantin.oshmyan Constantin Oshmyan
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: