LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-20-2018, 02:25 AM   #1
BerzinTehvs
Member
 
Registered: Mar 2005
Location: Latvia
Distribution: Slackware
Posts: 63

Rep: Reputation: 17
clamav 0.100.0 on Slackware 14.1 with lvvm enabled


Hi!

I am trying to build clamav 0.100.0 on Slack64 14.1 with lvvm 3.3 (from patches) installed, but i get an error:
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: cannot find -lLLVM-3.3

ld -lLLVM-3.3 --verbose gives:

attempt to open /usr/x86_64-slackware-linux/lib64/libLLVM-3.3.so failed
attempt to open /usr/x86_64-slackware-linux/lib64/libLLVM-3.3.a failed
attempt to open /usr/local/lib64/libLLVM-3.3.so failed
attempt to open /usr/local/lib64/libLLVM-3.3.a failed
attempt to open /lib64/libLLVM-3.3.so failed
attempt to open /lib64/libLLVM-3.3.a failed
attempt to open /usr/lib64/libLLVM-3.3.so failed
attempt to open /usr/lib64/libLLVM-3.3.a failed
attempt to open /usr/x86_64-slackware-linux/lib/libLLVM-3.3.so failed
attempt to open /usr/x86_64-slackware-linux/lib/libLLVM-3.3.a failed
attempt to open /usr/lib64/libLLVM-3.3.so failed
attempt to open /usr/lib64/libLLVM-3.3.a failed
attempt to open /usr/local/lib/libLLVM-3.3.so failed
attempt to open /usr/local/lib/libLLVM-3.3.a failed
attempt to open /lib/libLLVM-3.3.so failed
attempt to open /lib/libLLVM-3.3.a failed
attempt to open /usr/lib/libLLVM-3.3.so failed
attempt to open /usr/lib/libLLVM-3.3.a failed
ld: cannot find -lLLVM-3.3

the configure summary:

configure: Summary of detected features follows
OS : linux-gnu
pthreads : yes (-lpthread)
configure: Summary of miscellaneous features
check : no (auto)
fanotify : yes
fdpassing : 1
IPv6 : yes
configure: Summary of optional tools
clamdtop : -L/usr/lib64 -lncurses
milter : yes
clamsubmit : yes (libjson-c-dev found at /usr), libcurl-devel found at /usr)
configure: Summary of engine performance features
release mode: yes
llvm : yes (3.3), from /usr/bin/llvm-config (dynamic) (auto)
mempool : yes
configure: Summary of engine detection features
bzip2 : ok
zlib : /usr
unrar : no (disabled)
preclass : yes (libjson-c-dev found at /usr)
pcre : /usr
libmspack : yes (Internal)
libxml2 : yes, from /usr
yara : yes
fts : yes (internal, libc's is not LFS compatible)

===============


If I disable the use of lvvm, the package gets built, but it is 3 times smaller than with lvvm enabled (tested on 0.99.4 both ways).

So, the questions:
1. What the package gets better using lvvm
2. How could I achieve the use of lvvm for building of 0.100.0?

Last edited by BerzinTehvs; 05-20-2018 at 02:40 AM. Reason: additional info
 
Old 05-21-2018, 02:28 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
regarding the usefulness of llvm with clamav you can have a look at

https://blog.talosintelligence.com/2...low-level.html

as why the new 0.100.0 version isn't using the system's llvm on slackware 14.1 that's because that version has been deprecated by the clamav people

https://blog.clamav.net/2018/04/clam...-released.html

Quote:
Originally Posted by clamav developers
Deprecating internal LLVM code support. The configure script has changed to search the system for an installed instance of the LLVM development libraries, and to otherwise use the bytecode interpreter for ClamAV bytecode signatures. To use the LLVM Just-In-Time compiler for executing bytecode signatures, please ensure that the LLVM development package at version 3.6 or lower is installed. Using the deprecated LLVM code is possible with the command: ./configure --with-system-llvm=no, but it no longer compiles on all platforms.
so passing "--with-system-llvm=no" you will actually still using the deprecated llvm code.
for more insight on this, IMHO, you are better off writing a question on the clamav-users mailing list.
 
  


Reply

Tags
clamav, llvm



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Clamav 0.100 for Ubuntu 16.04 LTS johnnyreb Linux - Software 4 07-04-2018 04:15 PM
[ignore] clamav 0.100.0 on Slackware 14.1 with lvvm enabled BerzinTehvs Slackware 1 05-21-2018 12:22 AM
ClamAV & KlamAV - Slackware system crashes Interdictor Linux - Software 0 09-19-2006 02:53 AM
slackware: sendmail, clamAV, MIMEDefang, spamassassin aubrey-calm2 Linux - Newbie 4 03-09-2006 11:44 PM
Slackware 10.1 -- DMA not enabled Pozican Linux - Hardware 2 06-16-2005 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration