Ad Widget

Collapse

Issues with --enable-static for Debian packages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nappyt
    Junior Member
    • Aug 2012
    • 1

    #1

    Issues with --enable-static for Debian packages

    I need to package Zabbix 2.0.2 into Server, Proxy and Agent deb packages. I'm trying to do this with --enable-static and getting a number of issues with various dependancies that don't seem to be static compatible.

    Has anyone built static packages of these and if so how did you get the various options to work? I'm starting to build custom packages of things like libcurl but even SSH2 and LDAP have problems.

    I would like to roll these with all the options enabled, so we have them when we need them in the future.

    Wondering if I need to enable things like curl in the build or can I point it to curl on the localhost.

    Any help with this is appreciated.
  • ghusson
    Junior Member
    • Jul 2012
    • 16

    #2
    It is not possible to compile because one lib (dependance with LDAP it I remember) is not available as static (the lib project team do not provide static lib anymore for security reasons).

    Bu I don' think you need curl and ldap on client.
    Personnaly I generate static agent with :

    ./configure \
    --prefix=/opt/zabbix_agent \
    --exec-prefix=/opt/zabbix_agent \
    --enable-static \
    --enable-agent
    make install

    Needed packages for zabbix agent and server compilation :
    apt-get install build-essential mysql-server libmysqlclient-dev php5 php5-gd php5-mysql snmp libsnmp-dev snmpd libcurl4-openssl-dev fping libiksemel3 sysstat libiksemel-dev

    Comment

    Working...