The option for setting the curses library and include directories are:
  -D CURSES_INCLUDE_DIR="_path to curses header directory_"
  -D CURSES_LIBRARY="_filepath of curses library_"

Your command had NCURSES_INCLUDE_DIR instead of CURSES_INCLUDE_DIR.

Also, it's great to hear that Mark's fix for the format string macros fixed 
things for you.  His patches were merged yesterday, here: 
https://github.com/Cisco-Talos/clamav/pull/231, so the second release candidate 
should have that issue resolved.

Regards,
Micah



Micah Snyder
ClamAV Development
Talos
Cisco Systems, Inc.
________________________________
From: clamav-users <clamav-users-boun...@lists.clamav.net> on behalf of Andrew 
Watkins via clamav-users <clamav-users@lists.clamav.net>
Sent: Friday, August 6, 2021 5:14 AM
To: clamav-users@lists.clamav.net <clamav-users@lists.clamav.net>; h...@hege.li 
<h...@hege.li>
Cc: Andrew Watkins <and...@dcs.bbk.ac.uk>
Subject: Re: [clamav-users] ClamAV® blog: ClamAV 0.104.0 Release Candidate is 
here!


On 05/08/2021 10:53, Henrik K wrote:
> On Sat, Jul 24, 2021 at 08:17:19PM +0000, Micah Snyder (micasnyd) via 
> clamav-users wrote:
>
> No problems on Solaris 11.4.32.0.1.88.3 (SPARC) here with latest fixes,
> 0.104 actually works stable and fast so far.  Some more ancient versions
> just kept crashing and were sloow (then again older Solaris versions had
> ancient gcc etc).
>
> Oracle DOES maintain Solaris, current 11.4 has quite recent GCC (10.2) and
> other libraries (curl 7.71 etc).  All requirements except libcheck are OS
> provided, just pkg install them.
>
> Only thing that needed some manual fixing was some curses paths.
>
> mkdir build
> cd build
> cmake .. \
>    -D CMAKE_BUILD_TYPE="Release" \
>    -D ENABLE_TESTS=OFF \
>    -D PCRE2_INCLUDE_DIR=/usr/include/pcre \
>    -D NCURSES_INCLUDE_DIR=/usr/include/ncurses \
>    -D CURSES_LIBRARY=/usr/lib/64/libncurses.so
>
> # Seems NCURSES_INCLUDE_DIR isn't used here..
> sed -i 's#<ncurses.h>#<ncurses/ncurses.h>#' clamav-config.h

Thanks I tried the above it worked, but failed to build. Any ideas?

$ cmake --build .  --config Release
[ 13%] Linking CXX shared library libclamunrar.so
[ 13%] Built target clamunrar
Scanning dependencies of target unrar_iface_obj
[ 14%] Building CXX object
libclamunrar_iface/CMakeFiles/unrar_iface_obj.dir/unrar_iface.cpp.o
/export/home/defang/clamav-0.104.0-rc/libclamunrar_iface/unrar_iface.cpp:
In function 'cl_unrar_error_t libceader(void*, unrar_metadata_t*)':
/export/home/defang/clamav-0.104.0-rc/libclamunrar_iface/unrar_iface.cpp:349:62:
error: expected ')' before
   349 |     unrar_dbgmsg("unrar_peek_file_header:   Packed Size: %"
PRIu64 "\n", file_metadata->pack_size)
       | ~                                            ^
|                                                              )
/export/home/defang/clamav-0.104.0-rc/libclamunrar_iface/unrar_iface.cpp:350:62:
error: expected ')' before
   350 |     unrar_dbgmsg("unrar_peek_file_header:   Unpacked Size: %"
PRIu64 "\n", file_metadata->unpack_siz
       | ~                                            ^
|                                                              )
gmake[2]: ***
[libclamunrar_iface/CMakeFiles/unrar_iface_obj.dir/build.make:63:
libclamunrar_iface/CMakeFilep.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1062:
libclamunrar_iface/CMakeFiles/unrar_iface_obj.dir/all] Error 2
gmake: *** [Makefile:163: all] Error 2

Thanks

--

**************************************************
**** At home during the crisis trying to work ****
**************************************************
****   Support Request to s...@dcs.bbk.ac.uk    ****
**************************************************
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
::e-mails are only read & actioned between 0900 and 1730 hours (Monday - Friday)


_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to