Ad Widget

Collapse

Pb compiling zabbix_sucker on Solaris 8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chocho63
    Member
    • Jun 2005
    • 53

    #1

    Pb compiling zabbix_sucker on Solaris 8

    Hello,

    I cannot compile Zabbix 1.0 on Solaris 8.
    I've installed opennssl 0.97g, netsnmp 5.1.1.
    The compiling hangs up.


    ./configure --prefix=/zabbix --exec-prefix=/zabbix --with-mysql=/zabbix/mysql --with-net-snmp


    make
    gcc -o ../../bin/zabbix_suckerd -g -O2 -I../../include -I/zabbix/mysql/include/mysql -I/usr/local/include zabbix_sucker.c ../../include/db.c ../../include/functions.c ../../include/expression.c ../../include/cfg.c ../../include/log.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c ../zabbix_agent/sysinfo.c alerter.c pinger.c housekeeper.c -Wall -lnsl -lkstat -lsocket -L/zabbix/mysql/lib/mysql -lmysqlclient -lm -lz -L/usr/local/lib -lnetsnmp
    cc1: warning: changing search order for system directory "/usr/local/include"
    cc1: warning: as it has already been specified as a non-system directory
    In file included from zabbix_sucker.c:46:
    /usr/local/include/net-snmp/net-snmp-config.h:854:1: warning: "PACKAGE_BUGREPORT" redefined
    In file included from zabbix_sucker.c:20:
    ../../include/config.h:223:1: warning: this is the location of the previous definition
    In file included from zabbix_sucker.c:46:
    /usr/local/include/net-snmp/net-snmp-config.h:857:1: warning: "PACKAGE_NAME" redefined
    In file included from zabbix_sucker.c:20:
    ../../include/config.h:226:1: warning: this is the location of the previous definition
    In file included from zabbix_sucker.c:46:
    /usr/local/include/net-snmp/net-snmp-config.h:860:1: warning: "PACKAGE_STRING" redefined
    In file included from zabbix_sucker.c:20:
    ../../include/config.h:229:1: warning: this is the location of the previous definition
    In file included from zabbix_sucker.c:46:
    /usr/local/include/net-snmp/net-snmp-config.h:863:1: warning: "PACKAGE_TARNAME" redefined
    In file included from zabbix_sucker.c:20:
    ../../include/config.h:232:1: warning: this is the location of the previous definition
    In file included from zabbix_sucker.c:46:
    /usr/local/include/net-snmp/net-snmp-config.h:866:1: warning: "PACKAGE_VERSION" redefined
    In file included from zabbix_sucker.c:20:
    ../../include/config.h:235:1: warning: this is the location of the previous definition
    In file included from ../../include/db.h:26,
    from zabbix_sucker.c:59:
    ../../include/config.h:223:1: warning: "PACKAGE_BUGREPORT" redefined
    In file included from zabbix_sucker.c:46:
    /usr/local/include/net-snmp/net-snmp-config.h:854:1: warning: this is the location of the previous definition
    In file included from ../../include/db.h:26,
    from zabbix_sucker.c:59:
    ../../include/config.h:226:1: warning: "PACKAGE_NAME" redefined
    In file included from zabbix_sucker.c:46:
    /usr/local/include/net-snmp/net-snmp-config.h:857:1: warning: this is the location of the previous definition
    In file included from ../../include/db.h:26,
    from zabbix_sucker.c:59:
    ../../include/config.h:229:1: warning: "PACKAGE_STRING" redefined
    In file included from zabbix_sucker.c:46:
    /usr/local/include/net-snmp/net-snmp-config.h:860:1: warning: this is the location of the previous definition
    In file included from ../../include/db.h:26,
    from zabbix_sucker.c:59:
    ../../include/config.h:232:1: warning: "PACKAGE_TARNAME" redefined
    In file included from zabbix_sucker.c:46:
    /usr/local/include/net-snmp/net-snmp-config.h:863:1: warning: this is the location of the previous definition
    In file included from ../../include/db.h:26,
    from zabbix_sucker.c:59:
    ../../include/config.h:235:1: warning: "PACKAGE_VERSION" redefined
    In file included from zabbix_sucker.c:46:
    /usr/local/include/net-snmp/net-snmp-config.h:866:1: warning: this is the location of the previous definition
    cc1: warning: changing search order for system directory "/usr/local/include"
    cc1: warning: as it has already been specified as a non-system directory
    cc1: warning: changing search order for system directory "/usr/local/include"
    cc1: warning: as it has already been specified as a non-system directory
    cc1: warning: changing search order for system directory "/usr/local/include"
    cc1: warning: as it has already been specified as a non-system directory
    cc1: warning: changing search order for system directory "/usr/local/include"
    cc1: warning: as it has already been specified as a non-system directory
    cc1: warning: changing search order for system directory "/usr/local/include"
    cc1: warning: as it has already been specified as a non-system directory
    cc1: warning: changing search order for system directory "/usr/local/include"
    cc1: warning: as it has already been specified as a non-system directory
    cc1: warning: changing search order for system directory "/usr/local/include"
    cc1: warning: as it has already been specified as a non-system directory
    cc1: warning: changing search order for system directory "/usr/local/include"
    cc1: warning: as it has already been specified as a non-system directory
    cc1: warning: changing search order for system directory "/usr/local/include"
    cc1: warning: as it has already been specified as a non-system directory
    cc1: warning: changing search order for system directory "/usr/local/include"
    cc1: warning: as it has already been specified as a non-system directory
    cc1: warning: changing search order for system directory "/usr/local/include"
    cc1: warning: as it has already been specified as a non-system directory
    cc1: warning: changing search order for system directory "/usr/local/include"
    cc1: warning: as it has already been specified as a non-system directory
    Undefined first referenced
    symbol in file
    EVP_md5 /usr/local/lib/libnetsnmp.so
    EVP_DigestFinal_ex /usr/local/lib/libnetsnmp.so
    EVP_DigestFinal /usr/local/lib/libnetsnmp.so
    EVP_DigestUpdate /usr/local/lib/libnetsnmp.so
    EVP_MD_CTX_cleanup /usr/local/lib/libnetsnmp.so
    DES_ncbc_encrypt /usr/local/lib/libnetsnmp.so
    EVP_MD_CTX_init /usr/local/lib/libnetsnmp.so
    SSLeay /usr/local/lib/libnetsnmp.so
    DES_key_sched /usr/local/lib/libnetsnmp.so
    DES_cbc_encrypt /usr/local/lib/libnetsnmp.so
    EVP_sha1 /usr/local/lib/libnetsnmp.so
    EVP_DigestInit /usr/local/lib/libnetsnmp.so
    AES_cfb128_encrypt /usr/local/lib/libnetsnmp.so
    RAND_bytes /usr/local/lib/libnetsnmp.so
    AES_set_encrypt_key /usr/local/lib/libnetsnmp.so
    HMAC /usr/local/lib/libnetsnmp.so
    ld: fatal: Symbol referencing errors. No output written to ../../bin/zabbix_suckerd
    collect2: ld returned 1 exit status
    make: *** [all] Error 1


    I have seen the message of "Compiling on Solaris 10" in archive forum, hence i've tried to install openssl and netsnmp with packages from sunfreeware.com, and after i've tried to compile these packages with sources (for openssl ./Configure shared, for netsnmp ./configure --with-openssl=/usr/local/ssl --with-mib-modules=host), but nothing works, the problem remains.
    I use gcc 3.2 and GNU make 3.80.

    I have the same problem with the latest version of Zabbix 1.1 alpha 10

    Can someone help me ?
    Last edited by chocho63; 30-06-2005, 10:52.
  • fab
    Junior Member
    • Jun 2005
    • 22

    #2
    Re: Pb compiling zabbix_sucker on Solaris 8

    I had to append -lpkcs11 to LIBS in src/zabbix_sucker/Makefile

    Regards,
    Frank.

    Comment

    • chocho63
      Member
      • Jun 2005
      • 53

      #3
      Pb compiling zabbix_sucker on Solaris 8

      That doesn't work. The library pkcs11 is not found.

      ld: fatal: library -lpkcs11: not found
      ld: fatal: File processing errors. No output written to ../../bin/zabbix_suckerd
      collect2: ld returned 1 exit status
      make[1]: *** [all] Error 1
      make[1]: Leaving directory `/zabbix/install/zabbix-1.0/src/zabbix_sucker'
      make: *** [all] Error 1

      Comment

      • fab
        Junior Member
        • Jun 2005
        • 22

        #4
        Re: Pb compiling zabbix_sucker on Solaris 8

        The symbols are defined in the pkcs11 library, IIRC. Look if the library is present on your system. Maybe ld just can't find it. Else install the appropriate package. Ah, and I forgot, that I compiled zabbix on a Solaris 10 machine here.

        Regards,
        Frank.

        Comment

        • chocho63
          Member
          • Jun 2005
          • 53

          #5
          Pb compiling zabbix_sucker on Solaris 8

          I don't understand how to install pkcs11 ? I've tried opensc, but compilation doesn't work.
          Does anyone can help me ?

          Comment

          • fab
            Junior Member
            • Jun 2005
            • 22

            #6
            Re: Pb compiling zabbix_sucker on Solaris 8

            If I grep for llib-lpkcs11 in the pkgmap for each package on the Solaris10 DVD I get the following result:

            SUNWarc

            But I don't know if there's a SUNWarc package for Solaris 8 and if it fixes your problem when you 'pkgadd -d /path/to/packages SUNWarc' on your system.


            Regards,
            Frank.

            Comment

            • chocho63
              Member
              • Jun 2005
              • 53

              #7
              Pb compiling zabbix_sucker on Solaris 8

              This package is already installed on my Solaris 8 server.

              Comment

              • fab
                Junior Member
                • Jun 2005
                • 22

                #8
                Re: Pb compiling zabbix_sucker on Solaris 8

                Hm,

                try find /usr -type f | grep llib-lpkcs

                and see what it will find. Maybe the library is in a location where ld can't find it. If not, I don't know what to do else.

                Regards,
                Frank.

                Comment

                • chocho63
                  Member
                  • Jun 2005
                  • 53

                  #9
                  Pb compiling zabbix_sucker on Solaris 8

                  The library is not installed, find returns no result.
                  Thanks for your advices, may be Zabbix cannot be installed on Solaris 8 ?

                  Comment

                  • fab
                    Junior Member
                    • Jun 2005
                    • 22

                    #10
                    Pb compiling zabbix_sucker on Solaris 8

                    Code:
                    host:/mnt/sol08/sol08js/Solaris_8/Product
                    # for pkg in *; do grep pkcs ${pkg}/pkgmap ; if [ $? -eq 0 ]; then echo "Package: $pkg" ; fi ; done
                    host:/mnt/sol08/sol08js/Solaris_8/Product
                    #
                    Seems that there are no pkcs libraries included in Solaris 8. Maybe you can find a third-party package for pkcs11 or you have to compile it from source.

                    Regards,
                    Frank.

                    Comment

                    Working...