Ad Widget

Collapse

1.4.4 Compiling with --enable-static Ubuntu 7.10

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ttherkelsen
    Junior Member
    • Feb 2008
    • 2

    #1

    1.4.4 Compiling with --enable-static Ubuntu 7.10

    Hi all,

    I thought I'd share my experiences and the solution that I came up with to solve the problem that compiling with --enable-static fails on Ubuntu 7.10. This solution may be portable to other linux distributions.

    It's caused by libcurl needing to be linked against libgssapi_krb5.a which doesn't exist. It's not there because the version of kerberos (1.5.3 aka 5.3) doesn't support static linking; at least not the sources Ubuntu uses (I veryfied this by trying to manually build the kerberos package with apt-build).

    However, all is not lost. It's really only the agent that needs to be statically linked for easy copying to other hosts using the same architechture. So what I did was first compile with (I run my zabbix up against MySQL)

    Code:
    ./configure --enable-server --with-mysql && make install
    Next, I compiled just the agent with static linking, remembering to take out the libcurl dependancy which is only needed by the server (for Web scenarios)

    Code:
    ./configure --enable-agent --enable-static --without-libcurl && make
    Voila, I now have a statically linked agent I can copy to all my other hosts which share the same architechture.
  • qix
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2006
    • 423

    #2
    Thanks, this will come in very handy.
    I ran into the same problems with Debian.

    I'd love to be able to statically link the server as well (We use multiple servers and I like to use the same version everywhere to ease troubleshooting etc.) but just being able to statically link the agent is a great step forward for us!

    Thanks again!
    With kind regards,

    Raymond

    Comment

    Working...