compile ecap_clamav_adapter on freebsd

Asked by Marcello coutinho

How to get around this? I have libclamav installed by clamav ports but configure process can't find it.

checking for LIBECAP... yes
checking libecap/adapter/service.h usability... no
checking libecap/adapter/service.h presence... no
checking for libecap/adapter/service.h... no
checking clamav.h usability... no
checking clamav.h presence... no
checking for clamav.h... no
checking for main in -lclamav... no
configure: error: in `/usr/local/src/ecap_clamav_adapter-0.2.1':
configure: error: libclamav is not found or unusable

 ls /usr/local/lib/ | grep clamav
libclamav.la
libclamav.so
libclamav.so.7

Question information

Language:
English Edit question
Status:
Answered
For:
eCAP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alex Rousskov (rousskov) said :
#1

You probably need to tell your compiler where ClamAV (and eCAP?) header files are. Then you need to tell your linker where libclamav (and libecap?) libraries are. The former can be done using CPPFLAGS. The latter using LDFLAGS (or by running ldconfig). Both flags can be passed to ./configure like this:

  CPPFLAGS="-I/where/you/put/headers/include" LDFLAGS="-L/usr/local/lib" ./configure

Please note that you may need to install a separate ClamAV port/package with the header files. I do not remember whether the development headers come from the main/primary ClamAV package. If you do not have those header files on the build system, then you need to install more packages.

Can you help with this problem?

Provide an answer of your own, or ask Marcello coutinho for more information if necessary.

To post a message you must log in.