Brian Morrison said the following, On 4/19/2008 12:21 PM:
> On Sat, 19 Apr 2008 12:08:17 -0500
> Eric Hoeve <[EMAIL PROTECTED]> wrote:
>
>   
>> In the spec for ClamAV file you need to add the following two lines:
>>   --without-libbz2-prefix
>>   --without-libgmp-prefix
>> That will prevent -L/usr/dir being added when relinking libclamav.so.4 
>> thereby not linking to the libclamunrar_iface library in /usr/lib (wrong 
>> version).
>>     
>
> Does this ensure correct linking to libgmp.so.3 and libbz2.so.1?
>
>   
In my case it does, because they are located in /usr/lib (standard place 
to look) so you should see -lz -lgmp searching the standard lib 
locations. You can always check it by doing ldd /path/to/libclamav.so.4.0.1
ldd libclamav.so.4.0.1 should produce something similar output:
        libz.so.1 => /usr/lib/libz.so.1 (0x00aa3000)
        libbz2.so.1 => /usr/lib/libbz2.so.1 (0x00d01000)
        libgmp.so.3 => /usr/lib/libgmp.so.3 (0x008a3000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00880000)
        libclamunrar_iface.so.4 => /usr/lib/libclamunrar_iface.so.4 
(0x00fcf000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00d97000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x009e7000)
        libclamunrar.so.4 => /usr/lib/libclamunrar.so.4 (0x003ec000)
If libbz2 and libgmp are not in standard locations then you can specify 
them with:
    --with-libbz2-prefix[=DIR]
    --with-libgmp-prefix[=DIR]
in a similar fashion as I did with --without-libgmp-prefix, just be 
careful that you don't have libclamunrar_iface libraries in that 
directory that could be linked to inadvertently.

-Eric

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to