> On Wed, 8 Dec 2010 15:43:23 +0000
> "Armitage, Jon" <[email protected]> wrote:
> 
> > 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_cre...@sunw_0.9' ../libclamav/.libs/libclamav.so:
> > undefined reference to
> 
> Looks like you are using broken version of binutils:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26014
> 
> What do these commands output, and is the output different between the
> 2 machines:
> $ nm -D /lib/libc.so | grep pthread_key_create
> $ nm -D /lib/libpthread.so | grep pthread_key_create
> $ find . -name '*.la' -exec egrep 
> dependency_libs=\|relink_command {} \;
> 
> Best regards,
> --Edwin
>
On the machine which does not work:

-bash-3.00$ nm -D /lib/libc.so | grep pthread_key_create 
[2019]  |    783792|     260|FUNC |WEAK |0    |9      |_pthread_key_create
[2809]  |    783792|     260|FUNC |WEAK |0    |9      |pthread_key_create
-bash-3.00$ nm -D /lib/libpthread.so | grep pthread_key_create 
[3]     |         0|       0|FUNC |GLOB |0    |ABS    |_pthread_key_create
[184]   |         0|       0|FUNC |GLOB |0    |ABS    |pthread_key_create
-bash-3.00$ find . -name '*.la' -exec egrep \|relink_command {} \;
relink_command="(cd /export/home/jon/clamav-0.96.5/libclamav; /bin/bash 
/export/home/jon/clamav-0.96.5/libtool  --silent --tag CC --mode=relink gcc -g 
-O2 -module -thread-safe -version-info 7:7:1 -no-undefined 
-Wl,--version-script,../libclamunrar_iface/libclamunrar_iface.map 
-L/usr/local/lib -o libclamunrar_iface.la -rpath /usr/local/lib unrar_iface.lo 
libclamunrar.la -liconv -lsocket @inst_prefix_dir@)"

On the machine which does work:

-bash-3.00$ nm -D /lib/libc.so | grep pthread_key_create 
[2839]  |    819564|     264|FUNC |WEAK |0    |9      |_pthread_key_create
[221]   |    819564|     264|FUNC |WEAK |0    |9      |pthread_key_create
-bash-3.00$ nm -D /lib/libpthread.so | grep pthread_key_create 
[3]     |         0|       0|FUNC |GLOB |0    |ABS    |_pthread_key_create
[184]   |         0|       0|FUNC |GLOB |0    |ABS    |pthread_key_create
-bash-3.00$ find . -name '*.la' -exec egrep \|relink_command {} \;
relink_command="(cd /export/home/jon/clamav-0.96.5/libclamav; /bin/bash 
/export/home/jon/clamav-0.96.5/libtool  --silent --tag CC --mode=relink gcc -g 
-O2 -module -thread-safe -version-info 7:7:1 -no-undefined 
-Wl,-M,../libclamunrar_iface/libclamunrar_iface.map -L/usr/local/lib -o 
libclamunrar_iface.la -rpath /usr/local/lib unrar_iface.lo libclamunrar.la 
-lnsl -liconv -lgmp -lbz2 -lsocket @inst_prefix_dir@)"

Edwin, I hope this makes sense to you, I'm a sysadmin, not a programmer, so I'm 
not sure what the differences mean.

Jon.

Apologies for the sig below, I'll sort this evening.






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

Reply via email to