Ad Widget

Collapse

Zabbix 1.1.1 -- Re:problem with --enable-static

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thebrowser
    Junior Member
    • Jul 2006
    • 9

    #1

    Zabbix 1.1.1 -- Re:problem with --enable-static

    hi,
    this bug still exists in the 1.1.1 release.


    I used the following patch:
    Originally posted by matt_voss
    After running ./configure edit the file src/zabbix_agent/Makefile

    On these lines append /usr/lib/libresolv.a (FYI libresolv.a is part of the glibc-devel package).

    zabbix_agent_LDADD = ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/linux/libzbxsysinfo2.a \
    ../libs/zbxlog/libzbxlog.a \
    ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a ../libs/zbxconf/libzbxconf.a \
    ../libs/zbxcommon/libzbxcommon.a /usr/lib/libresolv.a

    zabbix_agentd_LDADD = ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/linux/libzbxsysinfo2.a ../libs/zbxlog/libzbxlog.a ../libs/zbxcrypto/libzbxcrypto.a \
    ../libs/zbxpid/libzbxpid.a ../libs/zbxnet/libzbxnet.a ../libs/zbxconf/libzbxconf.a \
    ../libs/zbxcommon/libzbxcommon.a /usr/lib/libresolv.a
    It has allowed the compilation to finish without error. ( Only 1 warning ).

    thebrowser
  • abi
    Member
    • Jun 2006
    • 81

    #2
    i can confirm this bug is still there in 1.1.1. However, linking
    shared is recommended way to go (if you dont depend on static
    linked binaries).

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Does it mean that the libresolv.a must be unconditionally added when compiling with --enable-static?
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      Working...