On Wednesday 28 July 2021 14:24:46 G.W. Haywood via clamav-users wrote: > 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` lrwxrwxrwx 1 root root 18 Feb 6 2019 /lib32/libpthread.so.0 -> libpthread-2.24.so lrwxrwxrwx 1 root root 18 Feb 6 2019 /lib/x86_64-linux-gnu/libpthread.so.0 -> libpthread-2.24.so -rw-r--r-- 1 root root 252 Feb 6 2019 /usr/lib/x86_64-linux-gnu/libpthread.so
> ldconfig -p | grep pthread [sudo] password for gene: libpthread_workqueue.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpthread_workqueue.so.0 libpthread_workqueue.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpthread_workqueue.so libpthread.so.0 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib/x86_64-linux-gnu/libpthread.so.0 libpthread.so.0 (libc6, OS ABI: Linux 2.6.32) => /lib32/libpthread.so.0 libevent_pthreads-2.0.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libevent_pthreads-2.0.so.5 > ldd `which clamscan` | grep pthread libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc1d4f17000) > 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. I may need some help on that. Can I assume its looking in /usr/local, and not in /usr? > Sorry, I'm out of time for today now. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ 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