64bit RH ES5 Compile Error for Clamav 0.95.3

View: New views
8 Messages — Rating Filter:   Alert me  

64bit RH ES5 Compile Error for Clamav 0.95.3

by George R. Kasica :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

With the following configure after make clean and then a make 0.95.3
fails to build on Red Hat Enterprise Server 5 64 bit. Error bits
below:

./configure --prefix=/usr/local/clamav-0.95.3

Error:
=====

libtool: link: rm
-f .libs/libclamav.nm .libs/libclamav.nmS .libs/libclamav.nmT
libtool: link: (cd .libs && gcc -g -O2 -c -fno-builtin  -fPIC -DPIC
"libclamavS.c")
libtool: link: rm -f ".libs/libclamavS.c" ".libs/libclamav.nm"
".libs/libclamav.nmS" ".libs/libclamav.nmT"
libtool: link: gcc
-shared  .libs/libclamav_la-matcher-ac.o
.libs/libclamav_la-matcher-bm.o .libs/libclamav_la-matcher.o
.libs/libclamav_la-others.o .libs/libclamav_la-readdb.o
.libs/libclamav_la-cvd.o .libs/libclamav_la-dsig.o
.libs/libclamav_la-scanners.o .libs/libclamav_la-textdet.o
.libs/libclamav_la-filetypes.o .libs/libclamav_la-rtf.o
.libs/libclamav_la-blob.o .libs/libclamav_la-mbox.o
.libs/libclamav_la-message.o .libs/libclamav_la-table.o
.libs/libclamav_la-text.o .libs/libclamav_la-ole2_extract.o
.libs/libclamav_la-vba_extract.o .libs/libclamav_la-msexpand.o
.libs/libclamav_la-pe.o .libs/libclamav_la-disasm.o
.libs/libclamav_la-upx.o .libs/libclamav_la-htmlnorm.o
.libs/libclamav_la-chmunpack.o .libs/libclamav_la-rebuildpe.o
.libs/libclamav_la-petite.o .libs/libclamav_la-wwunpack.o
.libs/libclamav_la-unsp.o .libs/libclamav_la-aspack.o
.libs/libclamav_la-packlibs.o .libs/libclamav_la-fsg.o
.libs/libclamav_la-mew.o .libs/libclamav_la-upack.o
.libs/libclamav_la-line.o .libs/libclamav_la-untar.o
.libs/libclamav_la-unzip.o .libs/libclamav_la-inflate64.o
.libs/libclamav_la-special.o .libs/libclamav_la-binhex.o
.libs/libclamav_la-is_tar.o .libs/libclamav_la-tnef.o
.libs/libclamav_la-autoit.o .libs/libclamav_la-unarj.o
.libs/libclamav_la-bzlib.o .libs/libclamav_la-nulsft.o
.libs/libclamav_la-infblock.o .libs/libclamav_la-pdf.o
.libs/libclamav_la-spin.o .libs/libclamav_la-yc.o
.libs/libclamav_la-elf.o .libs/libclamav_la-sis.o
.libs/libclamav_la-uuencode.o .libs/libclamav_la-phishcheck.o
.libs/libclamav_la-phish_domaincheck_db.o
.libs/libclamav_la-phish_whitelist.o .libs/libclamav_la-regex_list.o
.libs/libclamav_la-regex_suffix.o .libs/libclamav_la-mspack.o
.libs/libclamav_la-cab.o .libs/libclamav_la-entconv.o
.libs/libclamav_la-hashtab.o .libs/libclamav_la-dconf.o
.libs/libclamav_la-lzma_iface.o .libs/libclamav_la-explode.o
.libs/libclamav_la-textnorm.o .libs/libclamav_la-dlp.o
.libs/libclamav_la-js-norm.o .libs/libclamav_la-uniq.o
.libs/libclamav_la-version.o
.libs/libclamav_la-mpool.o .libs/libclamav_la-sha256.o
.libs/libclamav_la-bignum.o .libs/libclamavS.o
 -Wl,--whole-archive ../libltdl/.libs/libltdlc.a
lzma/.libs/liblzma.a ./.libs/libclamav_internal_utils.a
-Wl,--no-whole-archive  -L/usr/local/lib -lz -lpthread -ldl
-Wl,--version-script -Wl,../libclamav/libclamav.map   -Wl,-soname
-Wl,libclamav.so.6 -o .libs/libclamav.so.6.0.5
/usr/bin/ld: /usr/local/lib/libz.a(adler32.o): relocation R_X86_64_32
against `a local symbol' can not be used when making a shared object;
recompile with -fPIC
/usr/local/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [libclamav.la] Error 1
make[4]: Leaving directory `/opt/clamav-0.95.3/libclamav'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/clamav-0.95.3/libclamav'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/clamav-0.95.3/libclamav'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/clamav-0.95.3'
make: *** [all] Error 2


--
===[George R. Kasica]===        +1 262 677 0766
President                       +1 206 374 6482 FAX
Netwrx Consulting Inc.          Jackson, WI USA
http://www.netwrx1.com
georgek@...
ICQ #12862186
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Re: 64bit RH ES5 Compile Error for Clamav 0.95.3

by Gianluigi Tiesi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 30/10/2009 20.35, George R. Kasica wrote:

> With the following configure after make clean and then a make 0.95.3
> fails to build on Red Hat Enterprise Server 5 64 bit. Error bits
> below:
>
> ./configure --prefix=/usr/local/clamav-0.95.3
>
> Error:
> =====
>
> libtool: link: rm
> -f .libs/libclamav.nm .libs/libclamav.nmS .libs/libclamav.nmT
> libtool: link: (cd .libs && gcc -g -O2 -c -fno-builtin  -fPIC -DPIC
> "libclamavS.c")
> libtool: link: rm -f ".libs/libclamavS.c" ".libs/libclamav.nm"
> ".libs/libclamav.nmS" ".libs/libclamav.nmT"
> libtool: link: gcc
> -shared  .libs/libclamav_la-matcher-ac.o
> .libs/libclamav_la-matcher-bm.o .libs/libclamav_la-matcher.o
> .libs/libclamav_la-others.o .libs/libclamav_la-readdb.o
> .libs/libclamav_la-cvd.o .libs/libclamav_la-dsig.o
> .libs/libclamav_la-scanners.o .libs/libclamav_la-textdet.o
> .libs/libclamav_la-filetypes.o .libs/libclamav_la-rtf.o
> .libs/libclamav_la-blob.o .libs/libclamav_la-mbox.o
> .libs/libclamav_la-message.o .libs/libclamav_la-table.o
> .libs/libclamav_la-text.o .libs/libclamav_la-ole2_extract.o
> .libs/libclamav_la-vba_extract.o .libs/libclamav_la-msexpand.o
> .libs/libclamav_la-pe.o .libs/libclamav_la-disasm.o
> .libs/libclamav_la-upx.o .libs/libclamav_la-htmlnorm.o
> .libs/libclamav_la-chmunpack.o .libs/libclamav_la-rebuildpe.o
> .libs/libclamav_la-petite.o .libs/libclamav_la-wwunpack.o
> .libs/libclamav_la-unsp.o .libs/libclamav_la-aspack.o
> .libs/libclamav_la-packlibs.o .libs/libclamav_la-fsg.o
> .libs/libclamav_la-mew.o .libs/libclamav_la-upack.o
> .libs/libclamav_la-line.o .libs/libclamav_la-untar.o
> .libs/libclamav_la-unzip.o .libs/libclamav_la-inflate64.o
> .libs/libclamav_la-special.o .libs/libclamav_la-binhex.o
> .libs/libclamav_la-is_tar.o .libs/libclamav_la-tnef.o
> .libs/libclamav_la-autoit.o .libs/libclamav_la-unarj.o
> .libs/libclamav_la-bzlib.o .libs/libclamav_la-nulsft.o
> .libs/libclamav_la-infblock.o .libs/libclamav_la-pdf.o
> .libs/libclamav_la-spin.o .libs/libclamav_la-yc.o
> .libs/libclamav_la-elf.o .libs/libclamav_la-sis.o
> .libs/libclamav_la-uuencode.o .libs/libclamav_la-phishcheck.o
> .libs/libclamav_la-phish_domaincheck_db.o
> .libs/libclamav_la-phish_whitelist.o .libs/libclamav_la-regex_list.o
> .libs/libclamav_la-regex_suffix.o .libs/libclamav_la-mspack.o
> .libs/libclamav_la-cab.o .libs/libclamav_la-entconv.o
> .libs/libclamav_la-hashtab.o .libs/libclamav_la-dconf.o
> .libs/libclamav_la-lzma_iface.o .libs/libclamav_la-explode.o
> .libs/libclamav_la-textnorm.o .libs/libclamav_la-dlp.o
> .libs/libclamav_la-js-norm.o .libs/libclamav_la-uniq.o
> .libs/libclamav_la-version.o
> .libs/libclamav_la-mpool.o .libs/libclamav_la-sha256.o
> .libs/libclamav_la-bignum.o .libs/libclamavS.o
>  -Wl,--whole-archive ../libltdl/.libs/libltdlc.a
> lzma/.libs/liblzma.a ./.libs/libclamav_internal_utils.a
> -Wl,--no-whole-archive  -L/usr/local/lib -lz -lpthread -ldl
> -Wl,--version-script -Wl,../libclamav/libclamav.map   -Wl,-soname
> -Wl,libclamav.so.6 -o .libs/libclamav.so.6.0.5
> /usr/bin/ld: /usr/local/lib/libz.a(adler32.o): relocation R_X86_64_32
> against `a local symbol' can not be used when making a shared object;
> recompile with -fPIC
> /usr/local/lib/libz.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status

why do you have zlib in /usr/local/lib ? custom compiled?



- --
Gianluigi Tiesi <sherpya@...>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrrT04ACgkQ3UE5cRfnO04v+ACfZBwknpeBfuCaJsrP1eIHjS2R
oVcAn1XDuY/jqxQd7f8jvyz5HSLKtsdW
=p8VN
-----END PGP SIGNATURE-----
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Re: 64bit RH ES5 Compile Error for Clamav 0.95.3

by George R. Kasica :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>On Fri, 30 Oct 2009 21:40:46 +0100, you wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On 30/10/2009 20.35, George R. Kasica wrote:
>> With the following configure after make clean and then a make 0.95.3
>> fails to build on Red Hat Enterprise Server 5 64 bit. Error bits
>> below:
>>
>> ./configure --prefix=/usr/local/clamav-0.95.3
>>
>> Error:
>> =====
>>
>> libtool: link: rm
>> -f .libs/libclamav.nm .libs/libclamav.nmS .libs/libclamav.nmT
>> libtool: link: (cd .libs && gcc -g -O2 -c -fno-builtin  -fPIC -DPIC
>> "libclamavS.c")
>> libtool: link: rm -f ".libs/libclamavS.c" ".libs/libclamav.nm"
>> ".libs/libclamav.nmS" ".libs/libclamav.nmT"
>> libtool: link: gcc
>> -shared  .libs/libclamav_la-matcher-ac.o
>> .libs/libclamav_la-matcher-bm.o .libs/libclamav_la-matcher.o
>> .libs/libclamav_la-others.o .libs/libclamav_la-readdb.o
>> .libs/libclamav_la-cvd.o .libs/libclamav_la-dsig.o
>> .libs/libclamav_la-scanners.o .libs/libclamav_la-textdet.o
>> .libs/libclamav_la-filetypes.o .libs/libclamav_la-rtf.o
>> .libs/libclamav_la-blob.o .libs/libclamav_la-mbox.o
>> .libs/libclamav_la-message.o .libs/libclamav_la-table.o
>> .libs/libclamav_la-text.o .libs/libclamav_la-ole2_extract.o
>> .libs/libclamav_la-vba_extract.o .libs/libclamav_la-msexpand.o
>> .libs/libclamav_la-pe.o .libs/libclamav_la-disasm.o
>> .libs/libclamav_la-upx.o .libs/libclamav_la-htmlnorm.o
>> .libs/libclamav_la-chmunpack.o .libs/libclamav_la-rebuildpe.o
>> .libs/libclamav_la-petite.o .libs/libclamav_la-wwunpack.o
>> .libs/libclamav_la-unsp.o .libs/libclamav_la-aspack.o
>> .libs/libclamav_la-packlibs.o .libs/libclamav_la-fsg.o
>> .libs/libclamav_la-mew.o .libs/libclamav_la-upack.o
>> .libs/libclamav_la-line.o .libs/libclamav_la-untar.o
>> .libs/libclamav_la-unzip.o .libs/libclamav_la-inflate64.o
>> .libs/libclamav_la-special.o .libs/libclamav_la-binhex.o
>> .libs/libclamav_la-is_tar.o .libs/libclamav_la-tnef.o
>> .libs/libclamav_la-autoit.o .libs/libclamav_la-unarj.o
>> .libs/libclamav_la-bzlib.o .libs/libclamav_la-nulsft.o
>> .libs/libclamav_la-infblock.o .libs/libclamav_la-pdf.o
>> .libs/libclamav_la-spin.o .libs/libclamav_la-yc.o
>> .libs/libclamav_la-elf.o .libs/libclamav_la-sis.o
>> .libs/libclamav_la-uuencode.o .libs/libclamav_la-phishcheck.o
>> .libs/libclamav_la-phish_domaincheck_db.o
>> .libs/libclamav_la-phish_whitelist.o .libs/libclamav_la-regex_list.o
>> .libs/libclamav_la-regex_suffix.o .libs/libclamav_la-mspack.o
>> .libs/libclamav_la-cab.o .libs/libclamav_la-entconv.o
>> .libs/libclamav_la-hashtab.o .libs/libclamav_la-dconf.o
>> .libs/libclamav_la-lzma_iface.o .libs/libclamav_la-explode.o
>> .libs/libclamav_la-textnorm.o .libs/libclamav_la-dlp.o
>> .libs/libclamav_la-js-norm.o .libs/libclamav_la-uniq.o
>> .libs/libclamav_la-version.o
>> .libs/libclamav_la-mpool.o .libs/libclamav_la-sha256.o
>> .libs/libclamav_la-bignum.o .libs/libclamavS.o
>>  -Wl,--whole-archive ../libltdl/.libs/libltdlc.a
>> lzma/.libs/liblzma.a ./.libs/libclamav_internal_utils.a
>> -Wl,--no-whole-archive  -L/usr/local/lib -lz -lpthread -ldl
>> -Wl,--version-script -Wl,../libclamav/libclamav.map   -Wl,-soname
>> -Wl,libclamav.so.6 -o .libs/libclamav.so.6.0.5
>> /usr/bin/ld: /usr/local/lib/libz.a(adler32.o): relocation R_X86_64_32
>> against `a local symbol' can not be used when making a shared object;
>> recompile with -fPIC
>> /usr/local/lib/libz.a: could not read symbols: Bad value
>> collect2: ld returned 1 exit status
>
>why do you have zlib in /usr/local/lib ? custom compiled?

that's where the zlib package put it on install by default.
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Re: 64bit RH ES5 Compile Error for Clamav 0.95.3

by Török Edwin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2009-10-30 23:55, George R. Kasica wrote:

>> On Fri, 30 Oct 2009 21:40:46 +0100, you wrote:
>>    
>
>  
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 30/10/2009 20.35, George R. Kasica wrote:
>>    
>>> With the following configure after make clean and then a make 0.95.3
>>> fails to build on Red Hat Enterprise Server 5 64 bit. Error bits
>>> below:
>>>
>>> ./configure --prefix=/usr/local/clamav-0.95.3
>>>
>>> Error:
>>> =====
>>>
>>> libtool: link: rm
>>> -f .libs/libclamav.nm .libs/libclamav.nmS .libs/libclamav.nmT
>>> libtool: link: (cd .libs && gcc -g -O2 -c -fno-builtin  -fPIC -DPIC
>>> "libclamavS.c")
>>> libtool: link: rm -f ".libs/libclamavS.c" ".libs/libclamav.nm"
>>> ".libs/libclamav.nmS" ".libs/libclamav.nmT"
>>> libtool: link: gcc
>>> -shared  .libs/libclamav_la-matcher-ac.o
>>> .libs/libclamav_la-matcher-bm.o .libs/libclamav_la-matcher.o
>>> .libs/libclamav_la-others.o .libs/libclamav_la-readdb.o
>>> .libs/libclamav_la-cvd.o .libs/libclamav_la-dsig.o
>>> .libs/libclamav_la-scanners.o .libs/libclamav_la-textdet.o
>>> .libs/libclamav_la-filetypes.o .libs/libclamav_la-rtf.o
>>> .libs/libclamav_la-blob.o .libs/libclamav_la-mbox.o
>>> .libs/libclamav_la-message.o .libs/libclamav_la-table.o
>>> .libs/libclamav_la-text.o .libs/libclamav_la-ole2_extract.o
>>> .libs/libclamav_la-vba_extract.o .libs/libclamav_la-msexpand.o
>>> .libs/libclamav_la-pe.o .libs/libclamav_la-disasm.o
>>> .libs/libclamav_la-upx.o .libs/libclamav_la-htmlnorm.o
>>> .libs/libclamav_la-chmunpack.o .libs/libclamav_la-rebuildpe.o
>>> .libs/libclamav_la-petite.o .libs/libclamav_la-wwunpack.o
>>> .libs/libclamav_la-unsp.o .libs/libclamav_la-aspack.o
>>> .libs/libclamav_la-packlibs.o .libs/libclamav_la-fsg.o
>>> .libs/libclamav_la-mew.o .libs/libclamav_la-upack.o
>>> .libs/libclamav_la-line.o .libs/libclamav_la-untar.o
>>> .libs/libclamav_la-unzip.o .libs/libclamav_la-inflate64.o
>>> .libs/libclamav_la-special.o .libs/libclamav_la-binhex.o
>>> .libs/libclamav_la-is_tar.o .libs/libclamav_la-tnef.o
>>> .libs/libclamav_la-autoit.o .libs/libclamav_la-unarj.o
>>> .libs/libclamav_la-bzlib.o .libs/libclamav_la-nulsft.o
>>> .libs/libclamav_la-infblock.o .libs/libclamav_la-pdf.o
>>> .libs/libclamav_la-spin.o .libs/libclamav_la-yc.o
>>> .libs/libclamav_la-elf.o .libs/libclamav_la-sis.o
>>> .libs/libclamav_la-uuencode.o .libs/libclamav_la-phishcheck.o
>>> .libs/libclamav_la-phish_domaincheck_db.o
>>> .libs/libclamav_la-phish_whitelist.o .libs/libclamav_la-regex_list.o
>>> .libs/libclamav_la-regex_suffix.o .libs/libclamav_la-mspack.o
>>> .libs/libclamav_la-cab.o .libs/libclamav_la-entconv.o
>>> .libs/libclamav_la-hashtab.o .libs/libclamav_la-dconf.o
>>> .libs/libclamav_la-lzma_iface.o .libs/libclamav_la-explode.o
>>> .libs/libclamav_la-textnorm.o .libs/libclamav_la-dlp.o
>>> .libs/libclamav_la-js-norm.o .libs/libclamav_la-uniq.o
>>> .libs/libclamav_la-version.o
>>> .libs/libclamav_la-mpool.o .libs/libclamav_la-sha256.o
>>> .libs/libclamav_la-bignum.o .libs/libclamavS.o
>>>  -Wl,--whole-archive ../libltdl/.libs/libltdlc.a
>>> lzma/.libs/liblzma.a ./.libs/libclamav_internal_utils.a
>>> -Wl,--no-whole-archive  -L/usr/local/lib -lz -lpthread -ldl
>>> -Wl,--version-script -Wl,../libclamav/libclamav.map   -Wl,-soname
>>> -Wl,libclamav.so.6 -o .libs/libclamav.so.6.0.5
>>> /usr/bin/ld: /usr/local/lib/libz.a(adler32.o): relocation R_X86_64_32
>>> against `a local symbol' can not be used when making a shared object;
>>> recompile with -fPIC
>>> /usr/local/lib/libz.a: could not read symbols: Bad value
>>> collect2: ld returned 1 exit status
>>>      
>> why do you have zlib in /usr/local/lib ? custom compiled?
>>    
>
> that's where the zlib package put it on install by default.
>  

Why isn't there a .so file? Linking a .a file (compiled without -fPIC)
into a .so file (compiled with -fPIC) is not going to work on x86_64.

Best regards,
--Edwin

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

Re: 64bit RH ES5 Compile Error for Clamav 0.95.3

by George R. Kasica :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>On Fri, 30 Oct 2009 23:56:35 +0200, you wrote:

>On 2009-10-30 23:55, George R. Kasica wrote:
>>> On Fri, 30 Oct 2009 21:40:46 +0100, you wrote:
>>>    
>>
>>  
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> On 30/10/2009 20.35, George R. Kasica wrote:
>>>    
>>>> With the following configure after make clean and then a make 0.95.3
>>>> fails to build on Red Hat Enterprise Server 5 64 bit. Error bits
>>>> below:
>>>>
>>>> ./configure --prefix=/usr/local/clamav-0.95.3
>>>>
>>>> Error:
>>>> =====
>>>>
>>>> libtool: link: rm
>>>> -f .libs/libclamav.nm .libs/libclamav.nmS .libs/libclamav.nmT
>>>> libtool: link: (cd .libs && gcc -g -O2 -c -fno-builtin  -fPIC -DPIC
>>>> "libclamavS.c")
>>>> libtool: link: rm -f ".libs/libclamavS.c" ".libs/libclamav.nm"
>>>> ".libs/libclamav.nmS" ".libs/libclamav.nmT"
>>>> libtool: link: gcc
>>>> -shared  .libs/libclamav_la-matcher-ac.o
>>>> .libs/libclamav_la-matcher-bm.o .libs/libclamav_la-matcher.o
>>>> .libs/libclamav_la-others.o .libs/libclamav_la-readdb.o
>>>> .libs/libclamav_la-cvd.o .libs/libclamav_la-dsig.o
>>>> .libs/libclamav_la-scanners.o .libs/libclamav_la-textdet.o
>>>> .libs/libclamav_la-filetypes.o .libs/libclamav_la-rtf.o
>>>> .libs/libclamav_la-blob.o .libs/libclamav_la-mbox.o
>>>> .libs/libclamav_la-message.o .libs/libclamav_la-table.o
>>>> .libs/libclamav_la-text.o .libs/libclamav_la-ole2_extract.o
>>>> .libs/libclamav_la-vba_extract.o .libs/libclamav_la-msexpand.o
>>>> .libs/libclamav_la-pe.o .libs/libclamav_la-disasm.o
>>>> .libs/libclamav_la-upx.o .libs/libclamav_la-htmlnorm.o
>>>> .libs/libclamav_la-chmunpack.o .libs/libclamav_la-rebuildpe.o
>>>> .libs/libclamav_la-petite.o .libs/libclamav_la-wwunpack.o
>>>> .libs/libclamav_la-unsp.o .libs/libclamav_la-aspack.o
>>>> .libs/libclamav_la-packlibs.o .libs/libclamav_la-fsg.o
>>>> .libs/libclamav_la-mew.o .libs/libclamav_la-upack.o
>>>> .libs/libclamav_la-line.o .libs/libclamav_la-untar.o
>>>> .libs/libclamav_la-unzip.o .libs/libclamav_la-inflate64.o
>>>> .libs/libclamav_la-special.o .libs/libclamav_la-binhex.o
>>>> .libs/libclamav_la-is_tar.o .libs/libclamav_la-tnef.o
>>>> .libs/libclamav_la-autoit.o .libs/libclamav_la-unarj.o
>>>> .libs/libclamav_la-bzlib.o .libs/libclamav_la-nulsft.o
>>>> .libs/libclamav_la-infblock.o .libs/libclamav_la-pdf.o
>>>> .libs/libclamav_la-spin.o .libs/libclamav_la-yc.o
>>>> .libs/libclamav_la-elf.o .libs/libclamav_la-sis.o
>>>> .libs/libclamav_la-uuencode.o .libs/libclamav_la-phishcheck.o
>>>> .libs/libclamav_la-phish_domaincheck_db.o
>>>> .libs/libclamav_la-phish_whitelist.o .libs/libclamav_la-regex_list.o
>>>> .libs/libclamav_la-regex_suffix.o .libs/libclamav_la-mspack.o
>>>> .libs/libclamav_la-cab.o .libs/libclamav_la-entconv.o
>>>> .libs/libclamav_la-hashtab.o .libs/libclamav_la-dconf.o
>>>> .libs/libclamav_la-lzma_iface.o .libs/libclamav_la-explode.o
>>>> .libs/libclamav_la-textnorm.o .libs/libclamav_la-dlp.o
>>>> .libs/libclamav_la-js-norm.o .libs/libclamav_la-uniq.o
>>>> .libs/libclamav_la-version.o
>>>> .libs/libclamav_la-mpool.o .libs/libclamav_la-sha256.o
>>>> .libs/libclamav_la-bignum.o .libs/libclamavS.o
>>>>  -Wl,--whole-archive ../libltdl/.libs/libltdlc.a
>>>> lzma/.libs/liblzma.a ./.libs/libclamav_internal_utils.a
>>>> -Wl,--no-whole-archive  -L/usr/local/lib -lz -lpthread -ldl
>>>> -Wl,--version-script -Wl,../libclamav/libclamav.map   -Wl,-soname
>>>> -Wl,libclamav.so.6 -o .libs/libclamav.so.6.0.5
>>>> /usr/bin/ld: /usr/local/lib/libz.a(adler32.o): relocation R_X86_64_32
>>>> against `a local symbol' can not be used when making a shared object;
>>>> recompile with -fPIC
>>>> /usr/local/lib/libz.a: could not read symbols: Bad value
>>>> collect2: ld returned 1 exit status
>>>>      
>>> why do you have zlib in /usr/local/lib ? custom compiled?
>>>    
>>
>> that's where the zlib package put it on install by default.
>>  
>
>Why isn't there a .so file? Linking a .a file (compiled without -fPIC)
>into a .so file (compiled with -fPIC) is not going to work on x86_64.

I have no idea - I just followed the zlib instructions to run

./configure
make
make install

You're getting into things I don't know - I'm no programmer here,
please keep this simple, I'm just the system admin.

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

Re: 64bit RH ES5 Compile Error for Clamav 0.95.3

by Chuck Swiger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi--

On Oct 30, 2009, at 4:46 PM, George R. Kasica wrote:

>> Why isn't there a .so file? Linking a .a file (compiled without -
>> fPIC)
>> into a .so file (compiled with -fPIC) is not going to work on x86_64.
>
> I have no idea - I just followed the zlib instructions to run
>
> ./configure
> make
> make install
>
> You're getting into things I don't know - I'm no programmer here,
> please keep this simple, I'm just the system admin.

You need to run "./configure --shared" instead; that should compile  
the code with -fPIC and create a .so object...

Regards,
--
-Chuck

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

Re: 64bit RH ES5 Compile Error for Clamav 0.95.3

by Kelson Vibber :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

George R. Kasica wrote:
> I have no idea - I just followed the zlib instructions to run
>
> ./configure
> make
> make install
>
> You're getting into things I don't know - I'm no programmer here,
> please keep this simple, I'm just the system admin.

It sounds like you installed zlib separately instead of using the
package that comes with Red Hat. Is that correct?

RHEL's package installs in /usr/lib and /usr/lib64, not in /usr/local/lib.

It's also simpler to install.  Just run "yum install zlib zlib-devel"
and it'll download and install automatically, including any dependencies.

--
Kelson Vibber
SpeedGate Communications <www.speed.net>
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Re: 64bit RH ES5 Compile Error for Clamav 0.95.3

by George R. Kasica :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>On Fri, 30 Oct 2009 16:56:43 -0700, you wrote:

>George R. Kasica wrote:
>> I have no idea - I just followed the zlib instructions to run
>>
>> ./configure
>> make
>> make install
>>
>> You're getting into things I don't know - I'm no programmer here,
>> please keep this simple, I'm just the system admin.
>
>It sounds like you installed zlib separately instead of using the
>package that comes with Red Hat. Is that correct?
>
>RHEL's package installs in /usr/lib and /usr/lib64, not in /usr/local/lib.
>
>It's also simpler to install.  Just run "yum install zlib zlib-devel"
>and it'll download and install automatically, including any dependencies.

That got it going.

Thanks alot....now to get the fedora core 10 version to work....sadly
this isn't its problem :(

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