[clamav-users] can't cmake 1.0.4rc
G.W. Haywood
clamav at jubileegroup.co.uk
Wed Jul 28 18:24:46 UTC 2021
Hi Gene,
On Wed, 28 Jul 2021, Gene Heskett via clamav-users wrote:
> /usr/bin/ld: cannot find -lpthreads
>
> But pthread is installed. "sudo ldconfg -v|grep pthread" comes back empty
>
> Now what?
I'm guessing you have the stable version of ClamAV already installed
on the box, and so clamscan is installed? Assuming so, please post
the output of the commands
ls -l `locate libpthread.so`
ldconfig -p | grep pthread
ldd `which clamscan` | grep pthread
Note in the commands those are backticks, not single quotes. Here's
the output on my ClamAV box:
# ls -l `locate libpthread.so`
lrwxrwxrwx 1 root root 40 May 14 2019 /usr/lib/arm-linux-gnueabihf/libpthread.so -> /lib/arm-linux-gnueabihf/libpthread.so.0
lrwxrwxrwx 1 root root 18 May 14 2019 /lib/arm-linux-gnueabihf/libpthread.so.0 -> libpthread-2.28.so
# ldconfig -p | grep pthread
libpthread.so.0 (libc6,hard-float, OS ABI: Linux 3.2.0) => /lib/arm-linux-gnueabihf/libpthread.so.0
libpthread.so (libc6,hard-float, OS ABI: Linux 3.2.0) => /usr/lib/arm-linux-gnueabihf/libpthread.so
# ldd `which clamscan` | grep pthread
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb69b6000)
As you can see the shared object is where it's expected to be by the
executable. You should see something similar for your setup, but of
course you haven't got a 0.104 clamscan yet so you can't do this part
showing the release candidate version using the same shared object:
# ldd /home/ged/clamav-0.104.0-rc/build/clamscan/clamscan | grep pthread
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6c8d000)
You may need to upgrade the library if the version of libpthread is
not accepted by the build, otherwise I guess you'll have to tell the
ClamAV build process where to find the shared object.
Sorry, I'm out of time for today now.
--
73,
Ged.
More information about the clamav-users
mailing list