On Jul 28, 2005, at 06:59 PM, Dale Walsh wrote:


On Jul 28, 2005, at 06:26 PM, OpenMacNews wrote:


It looks like you have installed different versions of clamav in / usr and
/usr/local



oops. missed that, sorry ... nice catch.

r


One of the biggest issues I've seen is when building ClamAV on a Mac prior to 10.4.x

The majority of the problem comes from supplied ltmain.sh, I've been substituting the supplied one from libxml2-2.6.17 and finding I get a much more stable build and it builds proper shared libraries in 10.2.x - 10.3.x.

As well, I've gone a step further and have started using a newer libzzip (0.13.38) than the one supplied (0.10.27 - severely outdated).

I've generated a patch that solves this problem.

Of course if you haven't installed zzip it will still use the internal supplied zzip so other than an additional configure option (--with-zzip), nothing has changed if you don't use it or don't want to use an external zzip library.

I've submitted the patch to the ClamAV dev team and we'll see if these improvements can be utilized.

-- Dale

For those interested in the build differences (aside from being significantly smaller).

OLD BUILD:

1384 -rwxr-xr-x 1 root wheel 705508 Jul 19 22:48 /usr/local/lib/ libclamav.1..dylib

/usr/local/lib/libclamav.dylib:
/usr/local/lib/libclamav.1.dylib (compatibility version 2.0.0, current version 2.16.0) /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.2) /usr/local/lib/libgmp.3.dylib (compatibility version 7.0.0, current version 7.3.0) /usr/lib/libcurl.3.dylib (compatibility version 4.0.0, current version 4.0.0) /usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7) /usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7) /usr/local/lib/libz.1.2.2.dylib (compatibility version 1.2.0, current version 1.2.2) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.0.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 92.0.0)

/usr/local/lib/libclamav.dylib:
Table of contents (250 entries)
module name      symbol name
md5.lo           _MD5_Final
md5.lo           _MD5_Init
md5.lo           _MD5_Update
zzip-zip.lo      ___zzip_aligned4
zzip-zip.lo      ___zzip_find_disk_trailer
zzip-zip.lo      ___zzip_get16
zzip-zip.lo      ___zzip_get32
zzip-zip.lo      ___zzip_parse_root_directory
zzip-zip.lo      ___zzip_try_open
message.lo       _binhexBegin
blob.lo          _blobAddData
blob.lo          _blobArrayDestroy
blob.lo          _blobClose
blob.lo          _blobCreate
blob.lo          _blobDestroy
blob.lo          _blobGetData
blob.lo          _blobGetDataSize
blob.lo          _blobGetFilename
blob.lo          _blobGrow
blob.lo          _blobSetFilename
blob.lo          _blobcmp
message.lo       _bounceBegin
chmunpack.lo     _chm_copy_file_data
chmunpack.lo     _chm_read_data
chmunpack.lo     _chm_unpack
matcher.lo       _cl_build
matcher.lo       _cl_buildtrie
cvd.lo           _cl_cvdfree
cvd.lo           _cl_cvdhead
cvd.lo           _cl_cvdparse
cvd.lo           _cl_cvdverify
others.lo        _cl_debug
matcher.lo       _cl_dup
matcher.lo       _cl_free
matcher.lo       _cl_freetrie
readdb.lo        _cl_loaddb
readdb.lo        _cl_loaddbdir
others.lo        _cl_perror
readdb.lo        _cl_retdbdir
others.lo        _cl_retflevel
others.lo        _cl_retver
matcher.lo       _cl_scanbuff
scanners.lo      _cl_scandesc
scanners.lo      _cl_scanfile
others.lo        _cl_settempdir
readdb.lo        _cl_statchkdir
readdb.lo        _cl_statfree
readdb.lo        _cl_statinidir
others.lo        _cl_strerror
matcher-ac.lo    _cli_ac_addpatt
matcher-ac.lo    _cli_ac_buildtrie
matcher-ac.lo    _cli_ac_free
matcher-ac.lo    _cli_ac_scanbuff
filetypes.lo     _cli_addtypesigs
binhex.lo        _cli_binhex
matcher-bm.lo    _cli_bm_addpatt
matcher-bm.lo    _cli_bm_free
matcher-bm.lo    _cli_bm_init
matcher-bm.lo    _cli_bm_scanbuff
others.lo        _cli_calloc
special.lo       _cli_check_jpeg_exploit
special.lo       _cli_check_mydoom_log
special.lo       _cli_check_riff_exploit
matcher.lo       _cli_checkfp
str.lo           _cli_chomp
cvd.lo           _cli_cvdload
cvd.lo           _cli_cvdverify
others.lo        _cli_dbgmsg
others.lo        _cli_debug_flag
others.lo        _cli_errmsg
others.lo        _cli_filecopy
filetypes.lo     _cli_filetype
filetypes.lo     _cli_filetype2
others.lo        _cli_gentemp
str.lo           _cli_hex2num
str.lo           _cli_hex2si
str.lo           _cli_hex2str
others.lo        _cli_leavetemps_flag
scanners.lo      _cli_magic_scandesc
others.lo        _cli_malloc
mbox.lo          _cli_mbox
others.lo        _cli_md5digest
others.lo        _cli_md5file
others.lo        _cli_md5stream
str.lo           _cli_memstr
msexpand.lo      _cli_msexpand
ole2_extract.lo  _cli_ole2_extract
readdb.lo        _cli_parse_add
pe.lo            _cli_peheader
others.lo        _cli_readint32
others.lo        _cli_readn
others.lo        _cli_realloc
others.lo        _cli_rmdirs
others.lo        _cli_rndnum
matcher.lo       _cli_scanbuff
matcher.lo       _cli_scandesc
pe.lo            _cli_scanpe
scanners.lo      _cli_scanrar_inuse
str.lo           _cli_str2hex
str.lo           _cli_strbcasestr
str.lo           _cli_strtok
str.lo           _cli_strtokbuf
tnef.lo          _cli_tnef
untar.lo         _cli_untar
cvd.lo           _cli_untgz
matcher.lo       _cli_validatesig
dsig.lo          _cli_versig
others.lo        _cli_warnmsg
others.lo        _cli_writeint32
others.lo        _cli_writen
message.lo       _decodeLine
htmlnorm.lo      _decrypt_tables
message.lo       _encodingLine
blob.lo          _fileblobAddData
blob.lo          _fileblobCreate
blob.lo          _fileblobDestroy
blob.lo          _fileblobGetFilename
blob.lo          _fileblobSetFilename
htmlnorm.lo      _html_normalise_fd
htmlnorm.lo      _html_normalise_mem
htmlnorm.lo      _html_screnc_decode
htmlnorm.lo      _html_tag_arg_free
is_tar.lo        _is_tar
message.lo       _isuuencodebegin
line.lo          _lineCreate
line.lo          _lineGetData
line.lo          _lineGetRefCount
line.lo          _lineLink
line.lo          _lineUnlink
lzxd.lo          _lzxd_decompress
lzxd.lo          _lzxd_free
lzxd.lo          _lzxd_init
lzxd.lo          _lzxd_set_output_length
ole2_extract.lo  _magic_id
message.lo       _messageAddArgument
message.lo       _messageAddArguments
message.lo       _messageAddLine
message.lo       _messageAddStr
message.lo       _messageAddStrAtTop
message.lo       _messageClean
message.lo       _messageClearMarkers
message.lo       _messageCreate
message.lo       _messageDestroy
message.lo       _messageFindArgument
message.lo       _messageGetBody
message.lo       _messageGetDispositionType
message.lo       _messageGetEncoding
message.lo       _messageGetMimeSubtype
message.lo       _messageGetMimeType
message.lo       _messageReset
message.lo       _messageSetDispositionType
message.lo       _messageSetEncoding
message.lo       _messageSetMimeSubtype
message.lo       _messageSetMimeType
message.lo       _messageToBlob
message.lo       _messageToFileblob
message.lo       _messageToText
cabd.lo          _mspack_create_cab_decompressor
system.lo        _mspack_default_system
cabd.lo          _mspack_destroy_cab_decompressor
system.lo        _mspack_sys_filelen
system.lo        _mspack_sys_selftest_internal
system.lo        _mspack_valid_system
system.lo        _mspack_version
mszipd.lo        _mszipd_decompress
mszipd.lo        _mszipd_free
mszipd.lo        _mszipd_init
upx.lo           _pefromupx
petite.lo        _petite_inflate2x_1to9
vba_extract.lo   _ppt_vba_read
qtmd.lo          _qtmd_decompress
qtmd.lo          _qtmd_free
qtmd.lo          _qtmd_init
rebuildpe.lo     _rebuildpe
blob.lo          _sanitiseName
strrcpy.lo       _strrcpy
mbox.lo          _strstrip
table.lo         _tableCreate
table.lo         _tableDestroy
table.lo         _tableFind
table.lo         _tableInsert
htmlnorm.lo      _table_order
text.lo          _textAdd
text.lo          _textAddMessage
text.lo          _textClean
text.lo          _textDestroy
text.lo          _textToBlob
text.lo          _textToFileblob
fsg.lo           _unfsg_133
fsg.lo           _unfsg_200
upx.lo           _upx_inflate2b
upx.lo           _upx_inflate2d
upx.lo           _upx_inflate2e
unrarlib.lo      _urarlib_freelist
unrarlib.lo      _urarlib_get
unrarlib.lo      _urarlib_list
message.lo       _uuencodeBegin
vba_extract.lo   _vba56_dir_read
vba_extract.lo   _vba_decompress
vba_extract.lo   _vba_version
vba_extract.lo   _wm_decrypt_macro
vba_extract.lo   _wm_dir_read
message.lo       _yEncBegin
zzip-file.lo     _zzip_close
zzip-dir.lo      _zzip_closedir
zzip-info.lo     _zzip_compr_str
zzip-zip.lo      _zzip_dir_alloc
zzip-zip.lo      _zzip_dir_alloc_ext_io
zzip-zip.lo      _zzip_dir_close
zzip-zip.lo      _zzip_dir_fdopen
zzip-zip.lo      _zzip_dir_fdopen_ext_io
zzip-zip.lo      _zzip_dir_free
zzip-zip.lo      _zzip_dir_open
zzip-zip.lo      _zzip_dir_open_ext_io
zzip-zip.lo      _zzip_dir_read
zzip-info.lo     _zzip_dir_real
zzip-stat.lo     _zzip_dir_stat
zzip-info.lo     _zzip_dirfd
zzip-info.lo     _zzip_dirhandle
zzip-err.lo      _zzip_errno
zzip-info.lo     _zzip_error
zzip-file.lo     _zzip_fclose
zzip-file.lo     _zzip_file_close
zzip-file.lo     _zzip_file_open
zzip-file.lo     _zzip_file_read
zzip-info.lo     _zzip_file_real
zzip-io.lo       _zzip_filesize
zzip-file.lo     _zzip_fopen
zzip-file.lo     _zzip_fread
zzip-file.lo     _zzip_freopen
zzip-io.lo       _zzip_get_default_io
zzip-io.lo       _zzip_init_io
zzip-file.lo     _zzip_open
zzip-file.lo     _zzip_open_ext_io
zzip-file.lo     _zzip_open_shared_io
zzip-dir.lo      _zzip_opendir
zzip-dir.lo      _zzip_opendir_ext_io
zzip-file.lo     _zzip_read
zzip-dir.lo      _zzip_readdir
zzip-info.lo     _zzip_realdir
zzip-info.lo     _zzip_realfd
zzip-file.lo     _zzip_rewind
zzip-dir.lo      _zzip_rewinddir
zzip-file.lo     _zzip_seek
zzip-dir.lo      _zzip_seekdir
zzip-info.lo     _zzip_seterror
zzip-err.lo      _zzip_strerror
zzip-err.lo      _zzip_strerror_of
zzip-file.lo     _zzip_tell
zzip-dir.lo      _zzip_telldir


NEW BUILD:

512 -rwxr-xr-x 1 root admin 259964 Jul 28 19:31 /usr/local/clamav/ lib/libclamav.1.dylib

/usr/local/clamav/lib/libclamav.dylib:
/usr/local/clamav/lib/libclamav.1.dylib (compatibility version 2.0.0, current version 2.16.0) /usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7) /usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7) /usr/local/clamav/lib/libmpfr.1.dylib (compatibility version 2.0.0, current version 2.0.0) /usr/local/clamav/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.0.0) /usr/local/clamav/lib/libzzip-0.13.dylib (compatibility version 14.0.0, current version 14.38.0) /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.2) /usr/local/clamav/lib/libgmp.3.dylib (compatibility version 7.0.0, current version 7.3.0) /usr/local/clamav/lib/libcurl.3.dylib (compatibility version 4.0.0, current version 4.0.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 92.0.0)

/usr/local/clamav/lib/libclamav.dylib:
Table of contents (197 entries)
module name      symbol name
md5.o            _MD5_Final
md5.o            _MD5_Init
md5.o            _MD5_Update
message.o        _binhexBegin
blob.o           _blobAddData
blob.o           _blobArrayDestroy
blob.o           _blobClose
blob.o           _blobCreate
blob.o           _blobDestroy
blob.o           _blobGetData
blob.o           _blobGetDataSize
blob.o           _blobGetFilename
blob.o           _blobGrow
blob.o           _blobSetFilename
blob.o           _blobcmp
message.o        _bounceBegin
chmunpack.o      _chm_copy_file_data
chmunpack.o      _chm_read_data
chmunpack.o      _chm_unpack
matcher.o        _cl_build
matcher.o        _cl_buildtrie
cvd.o            _cl_cvdfree
cvd.o            _cl_cvdhead
cvd.o            _cl_cvdparse
cvd.o            _cl_cvdverify
others.o         _cl_debug
matcher.o        _cl_dup
matcher.o        _cl_free
matcher.o        _cl_freetrie
readdb.o         _cl_loaddb
readdb.o         _cl_loaddbdir
others.o         _cl_perror
readdb.o         _cl_retdbdir
others.o         _cl_retflevel
others.o         _cl_retver
matcher.o        _cl_scanbuff
scanners.o       _cl_scandesc
scanners.o       _cl_scanfile
others.o         _cl_settempdir
readdb.o         _cl_statchkdir
readdb.o         _cl_statfree
readdb.o         _cl_statinidir
others.o         _cl_strerror
matcher-ac.o     _cli_ac_addpatt
matcher-ac.o     _cli_ac_buildtrie
matcher-ac.o     _cli_ac_free
matcher-ac.o     _cli_ac_scanbuff
filetypes.o      _cli_addtypesigs
binhex.o         _cli_binhex
matcher-bm.o     _cli_bm_addpatt
matcher-bm.o     _cli_bm_free
matcher-bm.o     _cli_bm_init
matcher-bm.o     _cli_bm_scanbuff
others.o         _cli_calloc
special.o        _cli_check_jpeg_exploit
special.o        _cli_check_mydoom_log
special.o        _cli_check_riff_exploit
matcher.o        _cli_checkfp
str.o            _cli_chomp
cvd.o            _cli_cvdload
cvd.o            _cli_cvdverify
others.o         _cli_dbgmsg
others.o         _cli_debug_flag
others.o         _cli_errmsg
others.o         _cli_filecopy
filetypes.o      _cli_filetype
filetypes.o      _cli_filetype2
others.o         _cli_gentemp
str.o            _cli_hex2num
str.o            _cli_hex2si
str.o            _cli_hex2str
others.o         _cli_leavetemps_flag
scanners.o       _cli_magic_scandesc
others.o         _cli_malloc
mbox.o           _cli_mbox
others.o         _cli_md5digest
others.o         _cli_md5file
others.o         _cli_md5stream
str.o            _cli_memstr
msexpand.o       _cli_msexpand
ole2_extract.o   _cli_ole2_extract
readdb.o         _cli_parse_add
pe.o             _cli_peheader
others.o         _cli_readint32
others.o         _cli_readn
others.o         _cli_realloc
others.o         _cli_rmdirs
others.o         _cli_rndnum
matcher.o        _cli_scanbuff
matcher.o        _cli_scandesc
pe.o             _cli_scanpe
scanners.o       _cli_scanrar_inuse
str.o            _cli_str2hex
str.o            _cli_strbcasestr
str.o            _cli_strtok
str.o            _cli_strtokbuf
tnef.o           _cli_tnef
untar.o          _cli_untar
cvd.o            _cli_untgz
matcher.o        _cli_validatesig
dsig.o           _cli_versig
others.o         _cli_warnmsg
others.o         _cli_writeint32
others.o         _cli_writen
message.o        _decodeLine
htmlnorm.o       _decrypt_tables
message.o        _encodingLine
blob.o           _fileblobAddData
blob.o           _fileblobCreate
blob.o           _fileblobDestroy
blob.o           _fileblobGetFilename
blob.o           _fileblobSetFilename
htmlnorm.o       _html_normalise_fd
htmlnorm.o       _html_normalise_mem
htmlnorm.o       _html_screnc_decode
htmlnorm.o       _html_tag_arg_free
is_tar.o         _is_tar
message.o        _isuuencodebegin
line.o           _lineCreate
line.o           _lineGetData
line.o           _lineGetRefCount
line.o           _lineLink
line.o           _lineUnlink
lzxd.o           _lzxd_decompress
lzxd.o           _lzxd_free
lzxd.o           _lzxd_init
lzxd.o           _lzxd_set_output_length
ole2_extract.o   _magic_id
message.o        _messageAddArgument
message.o        _messageAddArguments
message.o        _messageAddLine
message.o        _messageAddStr
message.o        _messageAddStrAtTop
message.o        _messageClean
message.o        _messageClearMarkers
message.o        _messageCreate
message.o        _messageDestroy
message.o        _messageFindArgument
message.o        _messageGetBody
message.o        _messageGetDispositionType
message.o        _messageGetEncoding
message.o        _messageGetMimeSubtype
message.o        _messageGetMimeType
message.o        _messageReset
message.o        _messageSetDispositionType
message.o        _messageSetEncoding
message.o        _messageSetMimeSubtype
message.o        _messageSetMimeType
message.o        _messageToBlob
message.o        _messageToFileblob
message.o        _messageToText
cabd.o           _mspack_create_cab_decompressor
system.o         _mspack_default_system
cabd.o           _mspack_destroy_cab_decompressor
system.o         _mspack_sys_filelen
system.o         _mspack_sys_selftest_internal
system.o         _mspack_valid_system
system.o         _mspack_version
mszipd.o         _mszipd_decompress
mszipd.o         _mszipd_free
mszipd.o         _mszipd_init
upx.o            _pefromupx
petite.o         _petite_inflate2x_1to9
vba_extract.o    _ppt_vba_read
qtmd.o           _qtmd_decompress
qtmd.o           _qtmd_free
qtmd.o           _qtmd_init
rebuildpe.o      _rebuildpe
blob.o           _sanitiseName
strrcpy.o        _strrcpy
mbox.o           _strstrip
table.o          _tableCreate
table.o          _tableDestroy
table.o          _tableFind
table.o          _tableInsert
htmlnorm.o       _table_order
text.o           _textAdd
text.o           _textAddMessage
text.o           _textClean
text.o           _textDestroy
text.o           _textToBlob
text.o           _textToFileblob
fsg.o            _unfsg_133
fsg.o            _unfsg_200
upx.o            _upx_inflate2b
upx.o            _upx_inflate2d
upx.o            _upx_inflate2e
unrarlib.o       _urarlib_freelist
unrarlib.o       _urarlib_get
unrarlib.o       _urarlib_list
message.o        _uuencodeBegin
vba_extract.o    _vba56_dir_read
vba_extract.o    _vba_decompress
vba_extract.o    _vba_version
vba_extract.o    _wm_decrypt_macro
vba_extract.o    _wm_dir_read
message.o        _yEncBegin


_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to