On 03/11/2021 18:44, Liston, Daniel (DLISTON) via clamav-users wrote:
I need some help.  The clamav.net site does not offer downloads for Solaris and 
the link for Solaris directs us to the OpenCSW.org site.

Does anyone have a contact at CSW?  ClamAV 0.100.2 is the newest version 
available to Solaris users, and has not been updated in time to prevent a cut 
off from signature update downloads.  I have spent the weekend, and the better 
part of Mon/Tue trying to get userland tools to compile on Solaris 11.3 
(unsuccessfully), which seems to be a prerequisite to compiling clamav from 
source.

Can anyone offer a instructions for getting the 103/104 source to compile on 
Solaris (preferably 11.3) or work-around (that won't get me fired)?

This worked on 11.3 and 11.4 to build 0.103.3.

I had previously built GCC 10 from source, and have Studio as well.

The four shared objects in /usr/local: I like to keep OpenSSL right up to date, and I have libiconv for other reasons, the libbz2 may be a hang-over from 10. :-)

        Cheers,
                Gary    B-)

-----------------------------------------------------
#! /bin/bash
#
# Fix PATH...
export PATH=/bin:/usr/bin:/sbin:/opt/developerstudio12.6/bin:/usr/local/bin:.
echo $PATH
hash -r
#
# Fix configure files.
echo edit ... find . -name configure replace BDRT with BCDRT

for i in `find . -name configure`
do
        sed 's/BDRT/BCDRT/' $i > /tmp/configure.$$
        mv /tmp/configure.$$ $i
        chmod a+x $i
done

env CONFIG_SHELL=/bin/bash \
        /bin/bash ./configure \
        CONFIG_SHELL=/bin/bash \
        CFLAGS="-m32 -I/usr/local/include" \
        CXXFLAGS="-m32 -I/usr/local/include" \
        LDFLAGS="-m32 -L/usr/local/lib -R/usr/local/lib" \
        --disable-ipv6 \
        --disable-silent-rules \
        --disable-check \
        --prefix=/usr/local


RR=$?
if [ $RR != 0 ]
then
        echo "Bad conf!"
        exit $RR
fi

exit $?

-----------------------------------------------------


To Install:
sudo svcadm disable svc:/network/postfix:default
sudo /etc/init.d/freshclam stop
sudo /etc/init.d/clamsmtp stop
sudo /etc/init.d/clamd stop

sudo gmake install

sudo /etc/init.d/clamd start
sleep 60
sudo /etc/init.d/freshclam start
sudo /etc/init.d/clamsmtp start
sudo svcadm enable svc:/network/postfix:default

-----------------------------------------------------


        /usr/local/lib/libiconv.so.2
        /usr/local/lib/libbz2.so.1.0
        /usr/local/lib/libssl.so.1.1
        /usr/local/lib/libcrypto.so.1.1


        Cheers,
                Gary    B-)

_______________________________________________

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