c-icap=0.6.1 need a link to libmath "-lm"
Status: Beta
Brought to you by:
chtsanti
stats.c includes math.h and it bring needs for linking libm to libicapapi.so manually.
libtool: link: gcc -fvisibility=hidden -I./include/ -I./include/ -DCI_CONFDIR=\"/usr/local/etc\" -DCI_MODSDIR=\"/usr/local/lib/c_icap/\" -DCI_SERVDIR=\"/usr/local/lib/c_icap/\" -DCI_LOGDIR=\"/usr/local/var/log/\" -DCI_DATADIR=\"/usr/local/share/c_icap/\" -DCI_USE_INLINE_OBJECT_METHODS -D_REENTRANT -g -O2 -Wall -D_FILE_OFFSET_BITS=64 -rdynamic -o .libs/c-icap c_icap-aserver.o c_icap-request.o c_icap-cfg_param.o c_icap-proc_threads_queues.o c_icap-http_auth.o c_icap-access.o c_icap-log.o c_icap-service.o c_icap-module.o c_icap-commands.o c_icap-mpmt_server.o c_icap-dlib.o c_icap-info.o c_icap-default_acl.o c_icap-port.o c_icap-http_server.o os/unix/c_icap-proc_utils.o c_icap-_autoconf_table.o c_icap-_c_icap_conf_table.o ./.libs/libicapapi.so -ldl -lpthread -lrt -latomic
/usr/bin/ld: ./.libs/libicapapi.so: undefined reference to `exp'
/usr/bin/ld: ./.libs/libicapapi.so: undefined reference to `log'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:859: c-icap] Error 1
make[2]: Leaving directory '/root/docker-sslbump-proxy/c_icap-0.6.1'
make[1]: *** [Makefile:1549: all-recursive] Error 1
make[1]: Leaving directory '/root/docker-sslbump-proxy/c_icap-0.6.1'
make: *** [Makefile:682: all] Error 2
Anonymous
The new c-icap-0.6.2 release should solve this issue.
Hi chtsanti.
I confirmed the issue fixed on 0.6.2 .
Now I'm going to close this ticket.
Thank you.
syakesaba