Thanks for getting back to me.

After a bit of trial and error, I realised that the -D JSONC_LIBRARY define had to point to the static library file rather than the directory so this issue went away.
Now I'm battling ssl/ssh versions. Hopefully I can sort this out.

Cheers,
Stephen

On 3/12/25 03:34, David Raynor via clamav-users wrote:
It is strange that Cmake is not automatically detecting libjson-c like it usually should.

We do have notes in the Install.md file ( see https://github.com/Cisco- Talos/clamav/blob/main/INSTALL.md#libjson-c <https://github.com/Cisco- Talos/clamav/blob/main/INSTALL.md#libjson-c> ) which can tell you how to directly point the build to a set location. Make sure to set the pair of defined values correctly. One is for the directory for includes, the other is for the compiled libjson-c library binary itself.

Not much else we can do for an EOL platform, but hope this helps if you still have not gotten this resolved.

Dave R.

On Mon, Nov 17, 2025 at 1:31 AM Stephen Davies via clamav-users <clamav- [email protected] <mailto:[email protected]>> wrote:

    Hello.
    I am trying to build clamav 1.5.1 from source on my Centos box.
    (I know that Centos is EOL. That is why I am trying to build rather
    than
    just update from repository.)
    The cmake process fails with:
    CMake Error at
    /usr/local/lib64/python3.6/site-packages/cmake/data/share/
    cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230
    (message):
        Could NOT find JSONC (missing: JSONC_LIBRARIES)
    Call Stack (most recent call first):

    /usr/local/lib64/python3.6/site-packages/cmake/data/share/
    cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600
    (_FPHSA_FAILURE_MESSAGE)
        cmake/FindJSONC.cmake:34 (find_package_handle_standard_args)
        CMakeLists.txt:492 (find_package)

    The jsonc V18 package has been installed in /usr/lib and /usr/include.

    What am I missing?

    Cheers and thanks,
    Stephen
    _______________________________________________

    Manage your clamav-users mailing list subscription / unsubscribe:
    https://lists.clamav.net/mailman/listinfo/clamav-users <https://
    lists.clamav.net/mailman/listinfo/clamav-users>


    Help us build a comprehensive ClamAV guide:
    https://github.com/Cisco-Talos/clamav-documentation <https://
    github.com/Cisco-Talos/clamav-documentation>

    https://docs.clamav.net/#mailing-lists-and-chat <https://
    docs.clamav.net/#mailing-lists-and-chat>



--
---
Dave Raynor
Talos Security Intelligence and Research Group
[email protected] <mailto:[email protected]>

_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat
_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat

Reply via email to