Dear Richard, 

Yes your right, i did not find "BZ2_bzDecompress*"  in my solaris 8 box, So is 
there any way we can install missing decompressors to resolve this problem, 
pleas your help is highly appreciated.  

Thanks in advance


Following is output 

bash-2.03# nm /usr/lib/libbz2.so | grep -i bzdecompress
[160]   |     36724|     464|FUNC |GLOB |0    |9      |bzDecompress
[173]   |     37188|     172|FUNC |GLOB |0    |9      |bzDecompressEnd
[158]   |     32656|     232|FUNC |GLOB |0    |9      |bzDecompressInit



Ejaz 

bash-2.03# 
----- Original Message ----- 
From: "Richard.Hall" <[EMAIL PROTECTED]>
To: "ClamAV users ML" <clamav-users@lists.clamav.net>
Sent: Sunday, April 27, 2008 6:40 PM
Subject: Re: [Clamav-users] Help


> Mohammed,
> 
> Having just been trying to build 0.93 on Solaris 8 myself, I can perhaps
> shed a bit more light on this.
> 
> There appear to be (at least) four distinct issues here
> 
> 1) libbz2.so exists on native Solaris since Solaris 8 (maybe 7?). The
> version on Sol8 is old:-
> 
> $ bzip2 -V
> bzip2, a block-sorting file compressor.  Version 0.9.0c, 18-Oct-98.
> 
> and does not include the BZ2_ interfaces that you are seeking:-
> 
> $ nm /usr/lib/libbz2.so | grep -i bzdecompress
> [160]   |     36724|     464|FUNC |GLOB |0    |9      |bzDecompress
> [173]   |     37188|     172|FUNC |GLOB |0    |9      |bzDecompressEnd
> [158]   |     32656|     232|FUNC |GLOB |0    |9      |bzDecompressInit
> 
> Contrast this with Solaris 9 and 10:-
> 
> $ bzip2 -V
> bzip2, a block-sorting file compressor.  Version 1.0.2, 30-Dec-2001.
> 
> $ /usr/ccs/bin/nm /usr/lib/libbz2.so | grep -i bzdecompress
> [133]   |     46756|     520|FUNC |GLOB |0    |9      |BZ2_bzDecompress
> [174]   |     47276|     180|FUNC |GLOB |0    |9      |BZ2_bzDecompressEnd
> [181]   |     42760|     276|FUNC |GLOB |0    |9      |BZ2_bzDecompressInit
> [158]   |     52400|      12|FUNC |GLOB |0    |9      |bzDecompress
> [161]   |     52412|      12|FUNC |GLOB |0    |9      |bzDecompressEnd
> [199]   |     52388|      12|FUNC |GLOB |0    |9      |bzDecompressInit
> 
> where the interfaces are defined both with and without a BZ2_ prefix
> 
> 2) There is code in the 'configure' script which decides whether to define
> NOBZ2PREFIX in clamav-config.h. This decision is based on the existence on
> the interface bzReadOpen() [in the library libz2.so]. For Sol 8/9/10 it is
> going to set
> 
>  #define NOBZ2PREFIX 1
> 
> To my mind it ought instead to base the decision, at least in part, on the
> NON-existence of the interface BZ2_bzReadOpen. This would give different
> answers for 8 vs 9/10 (where nm gives results analogous to those for
> bzcompress above).  (Caveat: that would work for Solaris; I can't speak
> for any other OS).  However, fixing this would not help you, since it is
> already making the correct decision for Sol 8.
> 
> 3) Based on some comparable code that I found in libclamav/scanners.c, I
> have applied the following patch to libclamav/unzip.c:-
> 
> $ diff -c libclamav/unzip.c.orig libclamav/unzip.c
> *** libclamav/unzip.c.orig      Wed Apr  2 21:17:27 2008
> --- libclamav/unzip.c   Sun Apr 27 15:28:33 2008
> ***************
> *** 177,182 ****
> --- 177,189 ----
> 
> 
>  #if HAVE_BZLIB_H
> +
> + #ifdef NOBZ2PREFIX
> + #define BZ2_bzDecompressInit bzDecompressInit
> + #define BZ2_bzDecompressEnd bzDecompressEnd
> + #define BZ2_bzDecompress bzDecompress
> + #endif
> +
>    case ALG_BZIP2: {
>      bz_stream strm;
>      memset(&strm, 0, sizeof(strm));
> 
> ... and 'make' now runs to completion. (Caveat: I haven't run 'make
> install' yet, for unrelated reasons, so cannot say for certain that this
> fixes anything)
> 
> 4) What I do not understand at all is the relationship, if any, between
> all of the above and the code in libclamav/nsis/, which appears to include
> source code for bzip2/libbz2 (version 1.0.4). If the latter is supposed to
> be used, why is 'configure' even looking at system versions? And it always
> bothers me when code is potentially included from two different locations.
> (It may be perfectly ok; I don't know enough to know one way or the other)
> 
> HTH,
> Richard
> 
> 
> 
> On Sun, 27 Apr 2008, Mohammed Ejaz wrote:
> 
>> Many thanks for the reply
>>
>> As per the instruction I found "libbz2" in a /usr/lib, then I  set the path 
>> as follows. after that also the same message which i have mentioned in my 
>> previous Email,
>>
>> bash-2.03# echo $PATH
>> /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/export/home/mg1:/usr/ccs/bin:/usr/lib:/usr/local/lib
>>
>> bash-2.03# echo $LD_LIBRARY_PATH
>> /usr/lib:/usr/local/lib
>>
>>
>> Regards
>> Ejaz
>>
>>
>> bash-2.03#
>> ----- Original Message -----
>> From: "Oscar Usifer" <[EMAIL PROTECTED]>
>> To: "ClamAV users ML" <clamav-users@lists.clamav.net>
>> Sent: Saturday, April 26, 2008 11:20 PM
>> Subject: Re: [Clamav-users] Help
>>
>>
>> > looks like -lbz2 is looking in -L/usr/local/lib to resolve
>> >
>> > find libbz2.[soa], use nm to validate undefined symbols are defined there, 
>> > add that to the compile line and see if everything is good.
>> >
>> > i would guess your ./configure step could not find this lib
>> >
>> > do you have LD_LIBRARY_PATH unset or set correctly?
>> >
>> > you would need to add the location of this lib in the form of e.g. 
>> > -L/usr/lib
>> >
>> >
>> >
>> >> ----- Original Message -----
>> >> From: "Mohammed Ejaz" <[EMAIL PROTECTED]>
>> >> To: "ClamAV users ML" <clamav-users@lists.clamav.net>
>> >> Subject: [Clamav-users] Help
>> >> Date: Sat, 26 Apr 2008 17:39:16 +0300
>> >>
>> >>
>> >> Hi, all,
>> >>
>> >> Trying to compile the current Clamav 0.93 from 09.2.1 of clamav on
>> >> a solaris 5.8  Solaris SPARC-box, i am getting some error-messages
>> >> which Ican't resolve it.
>> >>
>> >>
>> >> Regards
>> >> Ejaz
>> >>
>> >>
>> >>
>> >>
>> >> mv -f .deps/manager.Tpo .deps/manager.Po
>> >> gcc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I..  -I.. -I../shared
>> >> -I../libclamav -I/usr/local/include  -g -O2 -MT treewalk.o -MD -MP
>> >> -MF .deps/treewalk.Tpo -c -o treewalk.o treewalk.c
>> >> mv -f .deps/treewalk.Tpo .deps/treewalk.Po
>> >> /bin/bash ../libtool --tag=CC   --mode=link gcc  -g -O2   -o
>> >> clamscan output.o getopt.o cfgparser.o misc.o options.o clamscan.o
>> >> others.o manager.o treewalk.o  ../libclamav/libclamav.la -lpthread
>> >> mkdir .libs
>> >> gcc -g -O2 -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 -L/usr/local/lib -lz -lbz2
>> >> /usr/local/lib/libgmp.so
>> >> /export/home/mg2/clamav-0.93/libclamunrar_iface/.libs/libclamunrar_iface.so
>> >> /export/home/mg2/clamav-0.93/libclamunrar/.libs/libclamunrar.so
>> >> -lnsl -lsocket -lpthread  -R/usr/local/lib
>> >> Undefined                       first referenced
>> >>   symbol                             in file
>> >> BZ2_bzDecompress                    ../libclamav/.libs/libclamav.so
>> >> BZ2_bzDecompressEnd                 ../libclamav/.libs/libclamav.so
>> >> BZ2_bzDecompressInit                ../libclamav/.libs/libclamav.so
>> >> ld: fatal: Symbol referencing errors. No output written to .libs/clamscan
>> >> collect2: ld returned 1 exit status
>> >> make[2]: *** [clamscan] Error 1
>> >> make[2]: Leaving directory `/export/home/mg2/clamav-0.93/clamscan'
>> >> make[1]: *** [all-recursive] Error 1
>> >> make[1]: Leaving directory `/export/home/mg2/clamav-0.93'
>> >> make: *** [all] Error 2
>> >> _______________________________________________
>> >> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
>> >> http://lurker.clamav.net/list/clamav-users.html
>> >
>> >>
>> >
>> >
>> > --
>> > Want an e-mail address like mine?
>> > Get a free e-mail account today at www.mail.com!
>> >
>> > _______________________________________________
>> > Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
>> > http://lurker.clamav.net/list/clamav-users.html
>> >
>> _______________________________________________
>> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
>> http://lurker.clamav.net/list/clamav-users.html
>>
> 
> 
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://lurker.clamav.net/list/clamav-users.html
>
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to