On 2008-09-03 04:09, René Berber wrote:
> Hello,
>
> Sorry for the long post.
>
> The following command and error stops clamav build, any ideas?
>
> gcc -shared -Wl,-h -Wl,libclamav.so.5 -o .libs/libclamav.so.5.0.1
> .libs/matcher-ac.o .libs/matcher-bm.o .libs/matcher.o .libs/md5.o
> .libs/others.o .libs/readdb.o .libs/cvd.o .libs/dsig.o .libs/str.o
> .libs/scanners.o .libs/textdet.o .libs/filetypes.o .libs/rtf.o
> .libs/blob.o .libs/mbox.o .libs/message.o .libs/table.o .libs/text.o
> .libs/ole2_extract.o .libs/vba_extract.o .libs/msexpand.o .libs/pe.o
> .libs/disasm.o .libs/upx.o .libs/htmlnorm.o .libs/chmunpack.o
> .libs/rebuildpe.o .libs/petite.o .libs/wwunpack.o .libs/unsp.o
> .libs/aspack.o .libs/packlibs.o .libs/fsg.o .libs/mew.o .libs/upack.o
> .libs/line.o .libs/untar.o .libs/unzip.o .libs/inflate64.o
> .libs/special.o .libs/binhex.o .libs/is_tar.o .libs/tnef.o
> .libs/autoit.o .libs/strlcpy.o .libs/regcomp.o .libs/regerror.o
> .libs/regexec.o .libs/regfree.o .libs/unarj.o .libs/bzlib.o
> .libs/nulsft.o .libs/infblock.o .libs/pdf.o .libs/spin.o .libs/yc.o
> .libs/elf.o .libs/sis.o .libs/uuencode.o .libs/phishcheck.o
> .libs/phish_domaincheck_db.o .libs/phish_whitelist.o .libs/regex_list.o
> .libs/regex_suffix.o .libs/mspack.o .libs/cab.o .libs/entconv.o
> .libs/hashtab.o .libs/dconf.o .libs/lzma_iface.o .libs/explode.o
> .libs/textnorm.o .libs/dlp.o .libs/js-norm.o .libs/uniq.o
> .libs/version.o -Wl,-z -Wl,allextract lzma/.libs/liblzma.a -Wl,-z
> -Wl,defaultextract
> -R/usr/share/src/clamav-0.94/libclamunrar_iface/.libs -R/usr/local/lib
> -R/usr/local/lib ../libclamunrar_iface/.libs/libclamunrar_iface.so
> -L/usr/share/src/clamav-0.94/libclamunrar/.libs -L/usr/local/lib -lz
> -lbz2 /usr/local/lib/libgmp.so /usr/local/lib/libiconv.so -L/usr/lib
> -L/usr/openwin/lib -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib
> -lpthread -lnsl -lsocket -lc  -Wl,-M -Wl,../libclamav/libclamav.map
> ld: fatal: ../libclamav/libclamav.map: 109: symbol `uniq_get' is already
> defined in file: ../libclamav/libclamav.map
>
> The file libclamav.map does indeed have uniq_get twice, I can't find
> where the duplicate comes from, it's not duplicated on clamav's code.
>   

Please remove one of the 'uniq_get' entries in libclamav.map.

On 2008-09-03 08:00, René Berber wrote:
> Additional info:
>
> gcc is version 3.4.6, ld in not GNU ld, it is Sun's version 5.9-1.378 .
>
> In fact, ld's -M parameter seems to have different meaning, and it also
> could be a bug (ld itself added the symbol twice).
>   

Hmm, it built on Solaris 10 just fine, looks like your ld is stricter.

Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to