[collectd] Compile problem on Fedora Core 5 64bit

Daniel bart at istnet.net.au
Sun Apr 30 06:00:02 CEST 2006


Hi

The output of curl-config --libs on this system is:

[root at bajor src]# curl-config --libs
-L/usr/kerberos/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto 
-lkrb5support -lcom_err -lresolv -lidn -lssl -lcrypto -lz

The line in the Makefile reads:

BUILD_WITH_LIBCURL_LIBS = -L/usr/kerberos/lib64 -lcurl -ldl 
-lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv -lidn 
-lssl -lcrypto -lz

So it all looks OK? What do you think?

Regards
Daniel

Hi Daniel, On Sat, Apr 29, 2006 at 11:30:07AM +0800, Daniel wrote:
 > > I'm getting this compile error on Fedora Core 5 64bit. I'm using 
version
 > > collectd-3.9.1. Shouldn't '/usr/lib/libidn.so' be 
'/usr/lib64/libidn.so'
 > > to match the 64bit environment?

 > > gcc -shared  .libs/apache.o  -L/usr/kerberos/lib64 -lcurl -ldl
 > > -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv
 > > /usr/lib/libidn.so -lssl -lcrypto -lz  -Wl,-soname -Wl,apache.so -o
 > > .libs/apache.so
 > > gcc: /usr/lib/libidn.so: No such file or directory

what's the output of `curl-config --libs` on your system? This output is
taken by the build system and appended to the `LDFLAGS' when linking the
apache plugin. If this output explicitely lists `/usr/lib/libidn.so'
then this is a bug by the Fedora people.

You can do the following to build collectd nonetheless:
- Run the configure script
- Open `src/Makefile' in your favorite editor
- Search for the definition of `BUILD_WITH_LIBCURL_LIBS'
- Replace `/usr/lib/libidn.so' with `-lidn'
- Save and `make'



More information about the collectd mailing list