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)
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)
Voila, I now have a statically linked agent I can copy to all my other hosts which share the same architechture.
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
Code:
./configure --enable-agent --enable-static --without-libcurl && make

Comment