Mailing List Archive

ClamAV 0.105.0 and Solaris no rustup
Hello,

Before I start searching or looking at rustup website, has anyone
compiled 0.105.0 on Solaris yet?

Solaris does have rustc and cargo but the rustup command does not like
SunOS.

# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash
rustup: unrecognized OS type: SunOS

and the ClamAV error I get is:
[ 42%] Built target bytecode_runtime
[ 43%] Building clamav_rust in
/export/home/defang/clamav-0.105.0/libclamav_rust with: /usr/bin/cargo
build --target x86_64-pc-solaris --release --target-dir
/export/home/defang/clamav-0.105.0/build/libclamav_rust
error: failed to get `flate2` as a dependency of package `clamav_rust
v0.0.1 (/export/home/defang/clamav-0.105.0/libclamav_rust)`

Caused by:
  failed to load source for dependency `flate2`

Caused by:
  Unable to update registry `https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to update replaced source registry
`https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to parse manifest at
`/export/home/defang/clamav-0.105.0/libclamav_rust/.cargo/vendor/nanorand/Cargo.toml`

Caused by:
  feature `edition2021` is required

  consider adding `cargo-features = ["edition2021"]` to the manifest
gmake[2]: ***
[libclamav_rust/CMakeFiles/clamav_rust_target.dir/build.make:2935:
libclamav_rust/x86_64-pc-solaris/release/libclamav_rust.a] Error 101
gmake[1]: *** [CMakeFiles/Makefile2:1592:
libclamav_rust/CMakeFiles/clamav_rust_target.dir/all] Error 2
gmake: *** [Makefile:166: all] Error 2

Thanks,

Andrew

On 05/05/2022 00:53, Micah Snyder (micasnyd) wrote:
>
> Read this post online, at:
> https://blog.clamav.net/2022/05/clamav-01050-01043-01036-released.html
> <https://blog.clamav.net/2022/05/clamav-01050-01043-01036-released.html>
>
>
>
> ClamAV 0.105.0, 0.104.3, 0.103.6 released
>
> The ClamAV 0.105.0 feature release is now stable and available for
> download on ClamAV.net <https://www.clamav.net/downloads> or through
> Docker Hub <https://hub.docker.com/r/clamav/clamav/>.
>
> Today, we're also publishing the 0.104.3 and 0.103.6 security patch
> versions, including several CVE fixes. These fixes have also been
> included in the 0.105 feature release. The source package and
> installer packages for these versions can be found under the "Previous
> Stable Releases" section of our Downloads
> <https://www.clamav.net/downloads> page.
>
> As a reminder, the 0.105 and 0.104 release files now include the
> following install packages:
>
> *
>
> x86_64 and i686 RPM packages are compatible with RPM-based Linux
> distributions running glibc version 2.17 or newer.
>
> *
>
> x86_64 and i686 DEB packages are compatible with Debian-based
> Linux distributions running glibc version 2.23 or newer.
>
> *
>
> An x86_64/ARM64 macOS installer package is compatible with Intel
> and Apple M1 systems.
>
> *
>
> x64 and win32 Windows packages are compatible with Windows 7 and
> newer.
>
> Keep reading to find out what is in each version.
>
>
--
**************************************************
**** At home during the crisis trying to work ****
**************************************************
**** Support Request tosg@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)
Re: ClamAV 0.105.0 and Solaris no rustup [ In reply to ]
On Thu, May 05, 2022 at 11:58:32AM +0100, Andrew Watkins wrote:
>
> Hello,
>
> Before I start searching or looking at rustup website, has anyone compiled
> 0.105.0 on Solaris yet?
>
> Solaris does have rustc and cargo but the rustup command does not like SunOS.

Solaris support for Rust is non-existent.

I managed to use the Solaris provided 1.53 version to compile 1.56 (which is
required for ClamAV).

It was painstakingly long process. I literally had to incrementally compile
all versions sequentially up to 1.56, skipping any would result in all sorts
of Rust errors.

Basically repeated this for each 1.54, 1.55, 1.56 sources:

export PATH=/usr/local/rust:$PATH
./configure --prefix=/usr/local/rust --enable-local-rust --enable-extended
python x.py build
python x.py install
# ... as a final slap in the face, of course the installer fails, so have to
# manually find and copy bin+lib stuff into /usr/local/rust

After that 0.105.1 compiled fine and seems to work.

_______________________________________________

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/Cisco-Talos/clamav-documentation

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