clamav-users December 2010 archive
Main Archive Page > Month Archives  > clamav-users archives
clamav-users: [clamav-users] 0.96.5 compilation problem on Solar

[clamav-users] 0.96.5 compilation problem on Solaris 10

From: Armitage, Jon <Jon.Armitage_at_nospam>
Date: Wed Dec 08 2010 - 15:43:23 GMT
To: "clamav-users@lists.clamav.net" <clamav-users@lists.clamav.net>

I am trying to upgrade from 0.96.3 on a box running Solaris 10.

I used this configure command, which worked with 0.96.3, and has worked with 0.96.5 on another Solaris 10 box:

./configure --with-user=exim --with-group=exim LDFLAGS=-L/usr/local/lib LIBS=-liconv

The make fails with the following error:

  CCLD clamscan
../libclamav/.libs/libclamav.so: undefined reference to `pthread_key_create@SUNW_0.9'
../libclamav/.libs/libclamav.so: undefined reference to `dlerror@SUNW_1.22'
../libclamav/.libs/libclamav.so: undefined reference to `write@SUNW_0.9'
../libclamav/.libs/libclamav.so: undefined reference to `pthread_key_delete@SUNW_0.9'
../libclamav/.libs/libclamav.so: undefined reference to `pread@SUNW_1.2'
../libclamav/.libs/libclamav.so: undefined reference to `pthread_setspecific@SUNW_0.9'
../libclamav/.libs/libclamav.so: undefined reference to `open@SUNW_0.9'
../libclamav/.libs/libclamav.so: undefined reference to `dlopen@SUNW_1.22'
../libclamav/.libs/libclamav.so: undefined reference to `close@SUNW_0.9'
../libclamav/.libs/libclamav.so: undefined reference to `read@SUNW_0.9'
../libclamav/.libs/libclamav.so: undefined reference to `pthread_getspecific@SUNW_0.9'
../libclamav/.libs/libclamav.so: undefined reference to `dlsym@SUNW_1.22'
../libclamav/.libs/libclamav.so: undefined reference to `dlclose@SUNW_1.22'
../libclamav/.libs/libclamav.so: undefined reference to `pthread_once@SUNW_0.9'
collect2: ld returned 1 exit status
*** Error code 1
The following command caused the error:
echo " CCLD " clamscan;/bin/bash ../libtool --silent --tag=CC --mode=link gcc -g -O2 -L/usr/local/lib -o clamscan output.o getopt.o optparser.o actions.o misc.o clamscan.o others.o manager.o ../libclamav/libclamav.la -lpthread
make: Fatal error: Command failed for target `clamscan'
Current working directory /export/home/jon/clamav-0.96.5/clamscan

I have googled extensively, but the closest suggestion I can find is that libtool is linking the libraries in the wrong order.

Please does anyone have any suggestions?

Jon
Information in this email including any attachments may be privileged, confidential and is intended exclusively for the addressee. The views expressed may not be official policy, but the personal views of the originator. If you have received it in error, please notify the sender by return e-mail and delete it from your system. You should not reproduce, distribute, store, retransmit, use or disclose its contents to anyone. Please note we reserve the right to monitor all e-mail communication through our internal and external networks. SKY and the SKY marks are trade marks of British Sky Broadcasting Group plc and are used under licence. British Sky Broadcasting Limited (Registration No. 2906991), Sky Interactive Limited (Registration No. 3554332), Sky-In-Home Service Limited (Registration No. 2067075) and Sky Subscribers Services Limited (Registration No. 2340150) are direct or indirect subsidiaries of British Sky Broadcasting Group plc (Registration No. 2247735). All of the co
 mpanies mentioned in this paragraph are incorporated in England and Wales and share the same registered office at Grant Way, Isleworth, Middlesex TW7 5QD.

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml