os-c-icap and os-clamav Incompatibility - clamd_mod.so Fails to Load

Started by Dreu, December 30, 2025, 07:12:34 AM

Previous topic - Next topic
  Hello,

  I am having trouble integrating Squid, C-ICAP, and ClamAV on OPNsense version 25.7.10. The Squid service is consistently crashing, and I believe the root cause is a version
  incompatibility between the os-c-icap and os-clamav plugins.

  Symptoms:
   * The Squid service crashes on startup with a "signal 11 (segmentation fault)" error.
   * The "ICAP Settings" section is completely missing from the Web Proxy administration page, even in advanced mode.
   * The clamav_mod configuration section is missing from the C-ICAP advanced settings page.

  Relevant Log Entries:

  The C-ICAP logs show a versioning error when trying to load the ClamAV module:

   1 main proc, WARNING: Can not check the used c-icap release to build service clamd_mod.so
  It also shows a subsequent connection error because the service is not running correctly:

   1 main proc, clamd_connect: Can not connect to clamd server on 127.0.0.1:3310!
  The main system log confirms the Squid crash:
   1 pid XXXXX (squid), jid 0, uid 100: exited on signal 11 (no core dump - bad address)

  Troubleshooting Steps Taken:
   * Verified all three plugins (os-squid, os-c-icap, os-clamav) are installed.
   * Performed multiple reboots.
   * Performed a full uninstall of all three plugins, refreshed the package repositories via the UI, and did a clean reinstall of all three plugins. The problem persists even after a clean
     install.

  It appears the versions of the C-ICAP and ClamAV plugins currently in the repository for my OPNsense version are not compatible. Any guidance on how to resolve this would be greatly
  appreciated.

  Thank you.