Török Edwin wrote:
> On 2008-07-24 20:40, Forrest Aldrich wrote:
>   
>> Török Edwin wrote:
>>   
>>     
>>> On 2008-07-24 20:20, Forrest Aldrich wrote:
>>>   
>>>     
>>>       
>>>> Prior to posting, I searched Google and found some reports like this - 
>>>> though they referred to previous installations needing to be removed 
>>>> (which I do not have).
>>>>
>>>> I'm trying to compile the latest stable release on Solaris 10  x86, in 
>>>> 64bit -- though compiling it standard with regular GCC still gets the 
>>>> same error:
>>>>
>>>> /usr/sfw/bin/gcc -shared -Wl,-h -Wl,libclamunrar.so.4 -o 
>>>> .libs/libclamunrar.so.4.0.4  .libs/unrar15.o .libs/unrar.o 
>>>> .libs/unrar20.o .libs/unrarppm.o .libs/unrarvm.o .libs/unrarcmd.o 
>>>> .libs/unrarfilter.o .libs/unrarhlp.o  -lz -lnsl -lsocket -lc  -m64 
>>>> -Wl,-M -Wl,../libclamunrar/libclamunrar.map
>>>> (cd .libs && rm -f libclamunrar.so.4 && ln -s libclamunrar.so.4.0.4 
>>>> libclamunrar.so.4)
>>>> (cd .libs && rm -f libclamunrar.so && ln -s libclamunrar.so.4.0.4 
>>>> libclamunrar.so)
>>>> false cru .libs/libclamunrar.a  unrar15.o unrar.o unrar20.o unrarppm.o 
>>>> unrarvm.o unrarcmd.o unrarfilter.o unrarhlp.o
>>>>   
>>>>     
>>>>       
>>>>         
>>> It is supposed to call 'ar' here,  is it in your path?
>>> I remember having to edit my $PATH to include all the stuff in
>>> /usr/xpg4/bin, and some other Solaris specific directories.
>>>
>>> Best regards,
>>> --Edwin
>>>     
>>>       
>> Thanks, Edwin.  I'm a little new to Solairs, so this is very helpful.
>>
>> I managed to get past that and now I've a different sort of error:
>>
>> mkdir .libs
>> /usr/sfw/bin/gcc -m64 -o .libs/clamscan output.o getopt.o cfgparser.o 
>> misc.o options.o clamscan.o others.o manager.o treewalk.o  
>> ../libclamav/.libs/libclamav.so 
>> /usr/local/src/clamav/clamav-0.93.3/libclamunrar_iface/.libs/libclamunrar_iface.so
>>  
>> /usr/local/src/clamav/clamav-0.93.3/libclamunrar/.libs/libclamunrar.so 
>> -L/usr/local/lib -lbz2 -lz -lnsl -lsocket -lpthread  -R/usr/local/lib
>> ld: warning: file /usr/local/lib/libbz2.a(bzlib.o): wrong ELF class: 
>> ELFCLASS32
>> Undefined                       first referenced
>>  symbol                             in file
>> BZ2_bzDecompress                    ../libclamav/.libs/libclamav.so
>> BZ2_bzRead                          ../libclamav/.libs/libclamav.so
>> BZ2_bzDecompressEnd                 ../libclamav/.libs/libclamav.so
>> BZ2_bzReadOpen                      ../libclamav/.libs/libclamav.so
>> BZ2_bzDecompressInit                ../libclamav/.libs/libclamav.so
>> BZ2_bzReadClose                     ../libclamav/.libs/libclamav.so
>> ld: fatal: Symbol referencing errors. No output written to .libs/clamscan
>> collect2: ld returned 1 exit status
>> gmake[2]: *** [clamscan] Error 1
>> gmake[2]: Leaving directory `/usr/local/src/clamav/clamav-0.93.3/clamscan'
>> gmake[1]: *** [all-recursive] Error 1
>> gmake[1]: Leaving directory `/usr/local/src/clamav/clamav-0.93.3'
>> gmake: *** [all] Error 2
>>
>> I think this is because I'm trying to compile in 64bit mode, so I may 
>> have to give that up...
>>
>> Feedback welcomed.
>>   
>>     
>
> Hmm, I thought configure was already catching this kind of bzip2 problems.
> If you do have a 64-bit bzip2, try ./configure
> --with-libbz2-prefix=<prefix-for-64-bz2>,
> for example: ./configure --with-libbz2-prefix= /usr/local/lib64
>
> If you don't have 64-bit bzip2, you can either download&build it, and
> install it alongside clamav,
> or use ./configure --disable-bzip2
>
> Best regards,
> --Edwin
>
>   
/usr/sfw doesn't have bzip2 -- /usr/bin/bzip2 is a 32 bit application - 
so I would have to alter my PATH and then possibly install a -m64 
compiled (via SUNWspro) version under /usr/sfw.  Odd that the binaries 
for the system wouldn't at least be 64bit.


Unless there is some other clever way.


Thanks.

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

Reply via email to