Ad Widget

Collapse

1.3: still links superflously against openssl and zlib1g

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abi
    Member
    • Jun 2006
    • 81

    #1

    1.3: still links superflously against openssl and zlib1g

    hi,

    zabbix 1.1.x used to link directly against openssl (libcrypto) and libz. As
    zabbix itself doesnt use any of those libraries directly its okey to strip
    those checks from the configure.in (they turn into inderect library
    dependencies then.). We (the debian zabbix maintainers) already doing
    so for 1.1.x.

    See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=375810
    for the full story.

    Patches:

    Code:
    --- configure.in.deb    2006-07-07 10:31:29.000000000 +0200
    +++ zabbix-1.1.1/configure.in   2006-07-27 12:54:03.000000000 +0200
    @@ -729,8 +729,6 @@
            fi
            fi
    
    -dnl    AC_CHECK_LIB(crypto, main,  SNMP_LFLAGS="-lcrypto $SNMP_LFLAGS")
    -    AC_CHECK_LIB(crypto, main,  SNMP_LIBS="$SNMP_LIBS -lcrypto")
    
         SNMP_INCLUDE=-I$SNMP_INCDIR
         SNMP_LFLAGS="-L$SNMP_LIBDIR $SNMP_LFLAGS"
    @@ -796,8 +794,6 @@
                AC_MSG_ERROR(Invalid UCD-SNMP directory - unable to find ucd-snmp-config.h under $withval)
            fi
            fi
    -dnl    AC_CHECK_LIB(crypto, main,  SNMP_LFLAGS="-lcrypto $SNMP_LFLAGS")
    -    AC_CHECK_LIB(crypto, main,  SNMP_LIBS="$SNMP_LIBS -lcrypto")
    
         SNMP_INCLUDE=-I$SNMP_INCDIR
         SNMP_LFLAGS="-L$SNMP_LIBDIR $SNMP_LFLAGS"
    and:

    Code:
    --- configure.in.deb    2006-07-07 10:31:29.000000000 +0200
    +++ zabbix-1.1.1/configure.in   2006-07-27 13:01:39.000000000 +0200
    @@ -600,9 +600,6 @@
            AC_CHECK_FUNC(floor, , AC_CHECK_LIB(m, floor, MYSQL_LIBS="$MYSQL_LIBS -lm"))
            dnl MySQL 3.23 requires -lz sometime
        dnl This does not work for some reason
    -   dnl    AC_CHECK_FUNC(compress, , AC_CHECK_LIB(z, compress, MYSQL_LFLAGS="$MYSQL_LFLAGS -lz"))
    -   dnl AC_CHECK_LIB(z, compress, MYSQL_LFLAGS="$MYSQL_LFLAGS -lz")
    -       AC_CHECK_LIB(z, compress, MYSQL_LIBS="$MYSQL_LIBS -lz")
    
            else
                AC_MSG_RESULT(no)
Working...