Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#62718 closed defect (fixed)

LibClamAV Warning: Cannot dlopen libclamunrar_iface

Reported by: pdvnl Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc:
Port: clamav

Description

freshclam --debug --show-progress --foreground

LibClamAV Warning: Cannot dlopen libclamunrar_iface: dlopen(libclamunrar_iface.a, 2): no suitable image found.  Did find:
	libclamunrar_iface.a: stat() failed with errno=13
	/var/root/lib/libclamunrar_iface.a: stat() failed with errno=13 - unrar support unavailable

this means freshclam cannot update its database so the main function of clamav is not working.

sw_vers
ProductName:	Mac OS X
ProductVersion:	10.14.6
BuildVersion:	18G8022
port version
Version: 2.6.4
port echo installed |grep clamav
clamav                         @0.103.2_0

in the very old ticket #15070 the solution was

sudo port -f uninstall clamav; sudo port clean --all clamav; sudo port install clamav

i tried that but it didnt work.

Change History (20)

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Owner: set to danielluke
Status: newassigned

comment:2 Changed 3 years ago by danielluke (Daniel J. Luke)

I don't have a 10.14 host to test on, but on my 10.13.6 system and my 11.2.3 systems I can't replicate this.

can you confirm that the 'freshclam' you're running is the one installed by the port (/opt/local/bin/freshclam) and not some other binary? (which freshclam will tell you).

comment:3 Changed 3 years ago by pdvnl

the system is an old mac, imac 27" mid 2011, running osx 10.13.6 high sierra. using paralllels desktop 16.5.0 pro for osx 10.14.6. the host mac is too old to upgrade after 10.13.

# which freshclam
/opt/local/bin/freshclam
# locate freshclam
/opt/local/bin/freshclam
/opt/local/etc/freshclam.conf
/opt/local/etc/freshclam.conf.sample
/opt/local/include/libfreshclam.h
/opt/local/lib/libfreshclam.2.dylib
/opt/local/lib/libfreshclam.dylib
/opt/local/share/man/man1/freshclam.1.gz
/opt/local/share/man/man5/freshclam.conf.5.gz
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/sysutils/clamav-server/files/patch-etc-freshclam-conf-
macports.diff

there is no difference is executing freshclam with or without an explicit path.

however, today, after a few days of non-activity, i see this:

# /opt/local/bin/freshclam --debug --show-progress --foreground
LibClamAV Warning: Cannot dlopen libclamunrar_iface: dlopen(libclamunrar_iface.a, 2): no suitable image found.  Did find:
	libclamunrar_iface.a: stat() failed with errno=13
	/var/root/lib/libclamunrar_iface.a: stat() failed with errno=13 - unrar support unavailable
ClamAV update process started at Tue Apr 27 13:17:45 2021
daily database available for update (local version: 26149, remote version: 26152)
Current database is 3 versions behind.
Downloading database patch # 26150...
LibClamAV debug: in cli_untgz()
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/COPYING
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.info
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.cfg
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.msu
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.ign2
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.ftm
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.mdb
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.idb
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.cdb
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.hsb
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.hdu
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.ndb
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.ldu
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.crb
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.sfp
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.wdb
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.fp
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.msb
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.ign
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.mdu
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.pdb
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.hsu
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.ldb
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.hdb
LibClamAV debug: cli_untgz: Unpacking /opt/local/share/clamav/tmp.892aa97280/clamav-6225c631be26f1b746a343adb6d636b4.tmp/daily.ndu
LibClamAV debug: in cli_untgz_cleanup()
Time:    0.8s, ETA:    0.0s [========================>]   20.02KiB/20.02KiB
Downloading database patch # 26151...
Time:    0.1s, ETA:    0.0s [========================>]   22.00KiB/22.00KiB
Downloading database patch # 26152...
Time:    0.1s, ETA:    0.0s [========================>]   40.59KiB/40.59KiB
Testing database: '/opt/local/share/clamav/tmp.892aa97280/clamav-40fcefee1639ada43644d2857da83fc9.tmp-daily.cld' ...
WARNING: Stderr output from database load : LibClamAV debug: Initialized 0.103.2 engine [...] LibClamAV debug: Phishcheck cleaned up
WARNING: Database successfully loaded, but there is stderr output
Database test passed.
daily.cld updated (version: 26152, sigs: 3973675, f-level: 63, builder: raynman)
main.cvd database is up-to-date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
bytecode.cvd database is up-to-date (version: 333, sigs: 92, f-level: 63, builder: awillia2)

it suggests to me that 1) there is an unrar problem but 2) it seems to work ???

comment:4 Changed 3 years ago by danielluke (Daniel J. Luke)

freshclam doesn't need to unrar anything, so it's still working.

I'm confused about that error message though, what does 'port contents clamav' say? We don't ship the .a file, but your clamav port should have a libclamunrar_iface.so that it can dlopen()

comment:5 Changed 3 years ago by pdvnl

# port contents clamav
Port clamav contains:
  /opt/local/bin/clamav-config
  /opt/local/bin/clambc
  /opt/local/bin/clamconf
  /opt/local/bin/clamdscan
  /opt/local/bin/clamdtop
  /opt/local/bin/clamscan
  /opt/local/bin/clamsubmit
  /opt/local/bin/freshclam
  /opt/local/bin/sigtool
  /opt/local/etc/clamd.conf.sample
  /opt/local/etc/freshclam.conf.sample
  /opt/local/include/clamav-types.h
  /opt/local/include/clamav-version.h
  /opt/local/include/clamav.h
  /opt/local/include/libfreshclam.h
  /opt/local/lib/libclamav.9.dylib
  /opt/local/lib/libclamav.dylib
  /opt/local/lib/libclammspack.0.dylib
  /opt/local/lib/libclammspack.dylib
  /opt/local/lib/libclamunrar.9.dylib
  /opt/local/lib/libclamunrar.dylib
  /opt/local/lib/libclamunrar_iface.9.so
  /opt/local/lib/libclamunrar_iface.so
  /opt/local/lib/libfreshclam.2.dylib
  /opt/local/lib/libfreshclam.dylib
  /opt/local/lib/pkgconfig/libclamav.pc
  /opt/local/sbin/clamd
  /opt/local/share/man/man1/clambc.1.gz
  /opt/local/share/man/man1/clamconf.1.gz
  /opt/local/share/man/man1/clamdscan.1.gz
  /opt/local/share/man/man1/clamdtop.1.gz
  /opt/local/share/man/man1/clamscan.1.gz
  /opt/local/share/man/man1/clamsubmit.1.gz
  /opt/local/share/man/man1/freshclam.1.gz
  /opt/local/share/man/man1/sigtool.1.gz
  /opt/local/share/man/man5/clamav-milter.conf.5.gz
  /opt/local/share/man/man5/clamd.conf.5.gz
  /opt/local/share/man/man5/freshclam.conf.5.gz
  /opt/local/share/man/man8/clamav-milter.8.gz
  /opt/local/share/man/man8/clamd.8.gz
# otool -L /opt/local/bin/freshclam
/opt/local/bin/freshclam:
	/opt/local/lib/libclamav.9.dylib (compatibility version 10.0.0, current version 10.5.0)
	/opt/local/lib/libfreshclam.2.dylib (compatibility version 3.0.0, current version 3.1.0)
	/opt/local/lib/libiconv.2.dylib (compatibility version 9.0.0, current version 9.1.0)
	/opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.8)
	/opt/local/lib/libxml2.2.dylib (compatibility version 12.0.0, current version 12.10.0)
	/opt/local/lib/libclammspack.0.dylib (compatibility version 2.0.0, current version 2.0.0)
	/opt/local/lib/libpcre2-8.0.dylib (compatibility version 11.0.0, current version 11.1.0)
	/opt/local/lib/libssl.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
	/opt/local/lib/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
	/opt/local/lib/libjson-c.5.dylib (compatibility version 5.0.0, current version 5.1.0)
	/opt/local/lib/libcharset.1.dylib (compatibility version 2.0.0, current version 2.0.0)
	/usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 1.0.0)
	/opt/local/lib/libcurl.4.dylib (compatibility version 12.0.0, current version 12.0.0)
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
	/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 58286.255.3)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1575.17.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)

comment:6 Changed 3 years ago by danielluke (Daniel J. Luke)

Sorry to keep asking for more details, but can you add '-v' to your invocation? /opt/local/bin/freshclam -v --debug --show-progress --foreground ?

The warning you see gets printed from libclamav (in load_module()) and there's some additional cli_dbgmsg() calls that might give us some more information on why it's failing.

comment:7 Changed 3 years ago by pdvnl

# /opt/local/bin/freshclam -v --debug --show-progress --foreground
LibClamAV Warning: Cannot dlopen libclamunrar_iface: dlopen(libclamunrar_iface.a, 2): no suitable image found.  Did find:
	libclamunrar_iface.a: stat() failed with errno=13
	/var/root/lib/libclamunrar_iface.a: stat() failed with errno=13 - unrar support unavailable
Current working dir is /opt/local/share/clamav/
Loaded mirrors.dat:
  version:    1
  uuid:       42832dc8-e2f2-4982-9c64-2c8fc10b0fd8
ClamAV update process started at Fri Apr 30 12:31:02 2021
Current working dir is /opt/local/share/clamav/
Querying current.cvd.clamav.net
TTL: 1566
fc_dns_query_update_info: Software version from DNS: 0.103.2
Current working dir is /opt/local/share/clamav/
check_for_new_database_version: Local copy of daily found: daily.cld.
query_remote_database_version: daily.cvd version from DNS: 26155
daily.cld database is up-to-date (version: 26155, sigs: 3974911, f-level: 63, builder: raynman)
fc_update_database: daily.cld already up-to-date.
Current working dir is /opt/local/share/clamav/
check_for_new_database_version: Local copy of main found: main.cvd.
query_remote_database_version: main.cvd version from DNS: 59
main.cvd database is up-to-date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
fc_update_database: main.cvd already up-to-date.
Current working dir is /opt/local/share/clamav/
check_for_new_database_version: Local copy of bytecode found: bytecode.cvd.
query_remote_database_version: bytecode.cvd version from DNS: 333
bytecode.cvd database is up-to-date (version: 333, sigs: 92, f-level: 63, builder: awillia2)
fc_update_database: bytecode.cvd already up-to-date.

comment:8 Changed 3 years ago by danielluke (Daniel J. Luke)

errno 13 is EACCES - do you have something in /var/root/lib that freshclam is looking at? (do you have DYLD_ environment variables set?)

comment:9 Changed 3 years ago by pdvnl

RE: errno 13 is EACCES - do you have something in /var/root/lib that freshclam is looking at? (do you have DYLD_ environment variables set?)

# ls -l /var/root/lib
ls: /var/root/lib: No such file or directory
# set | grep DYLD

Nope.

# ls -l $(locate libclamunrar_iface)
-rwxr-xr-x  1 root  admin  17912 Apr 20 14:14 /opt/local/lib/libclamunrar_iface.9.so
lrwxr-xr-x  1 root  admin     23 Apr 20 14:14 /opt/local/lib/libclamunrar_iface.so -> libclamunrar_iface.9.so

comment:10 Changed 3 years ago by danielluke (Daniel J. Luke)

ok, can you attach the output of sudo dtruss freshclam --debug --show-progress --foreground

comment:11 Changed 3 years ago by pdvnl

sudo dtruss freshclam --debug --show-progress --foreground

dtrace: system integrity protection is on, some features will not be available
SYSCALL(args) 		 = return
LibClamAV Warning: Cannot dlopen libclamunrar_iface: dlopen(libclamunrar_iface.a, 2): no suitable image found.  Did find:
	libclamunrar_iface.a: stat() failed with errno=13
	/var/root/lib/libclamunrar_iface.a: stat() failed with errno=13 - unrar support unavailable
Current working dir is /opt/local/share/clamav/
Loaded mirrors.dat:
  version:    1
  uuid:       42832dc8-e2f2-4982-9c64-2c8fc10b0fd8
ClamAV update process started at Sat May  1 14:21:40 2021
Current working dir is /opt/local/share/clamav/
Querying current.cvd.clamav.net
TTL: 681
fc_dns_query_update_info: Software version from DNS: 0.103.2
Current working dir is /opt/local/share/clamav/
check_for_new_database_version: Local copy of daily found: daily.cld.
query_remote_database_version: daily.cvd version from DNS: 26157
daily.cld database is up-to-date (version: 26157, sigs: 3975345, f-level: 63, builder: raynman)
fc_update_database: daily.cld already up-to-date.
Current working dir is /opt/local/share/clamav/
check_for_new_database_version: Local copy of main found: main.cvd.
query_remote_database_version: main.cvd version from DNS: 59
main.cvd database is up-to-date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
fc_update_database: main.cvd already up-to-date.
Current working dir is /opt/local/share/clamav/
check_for_new_database_version: Local copy of bytecode found: bytecode.cvd.
query_remote_database_version: bytecode.cvd version from DNS: 333
bytecode.cvd database is up-to-date (version: 333, sigs: 92, f-level: 63, builder: awillia2)
fc_update_database: bytecode.cvd already up-to-date.
dtrace: error on enabled probe ID 2198 (ID 559: syscall::sysctl:return): invalid kernel access in action #10 at DIF offset 28
dtrace: error on enabled probe ID 2175 (ID 947: syscall::read_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2175 (ID 947: syscall::read_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2175 (ID 947: syscall::read_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2198 (ID 559: syscall::sysctl:return): invalid kernel access in action #10 at DIF offset 28
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2175 (ID 947: syscall::read_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2175 (ID 947: syscall::read_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2175 (ID 947: syscall::read_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2175 (ID 947: syscall::read_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2174 (ID 161: syscall::read:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2174 (ID 161: syscall::read:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2174 (ID 161: syscall::read:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2175 (ID 947: syscall::read_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2175 (ID 947: syscall::read_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2198 (ID 559: syscall::sysctl:return): invalid kernel access in action #10 at DIF offset 28
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2198 (ID 559: syscall::sysctl:return): invalid kernel access in action #10 at DIF offset 28
dtrace: error on enabled probe ID 2198 (ID 559: syscall::sysctl:return): invalid kernel access in action #10 at DIF offset 28
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2175 (ID 947: syscall::read_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2175 (ID 947: syscall::read_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2175 (ID 947: syscall::read_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
dtrace: error on enabled probe ID 2173 (ID 949: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 68
open("/dev/dtracehelper\0", 0x2, 0xFFFFFFFFE136B070)		 = 3 0
ioctl(0x3, 0x80086804, 0x7FFEE136AE80)		 = 0 0
close(0x3)		 = 0 0
madvise(0x10F2A0000, 0x3000, 0x5)		 = 0 0
madvise(0x10F004000, 0x3000, 0x5)		 = 0 0
access("/AppleInternal/XBS/.isChrooted\0", 0x0, 0x0)		 = -1 Err#2
bsdthread_register(0x7FFF6742D400, 0x7FFF6742D3F0, 0x2000)		 = 1073742047 0
sysctlbyname(kern.bootargs, 0xD, 0x7FFEE13687A0, 0x7FFEE1368790, 0x0)		 = 0 0
ioctl(0x2, 0x4004667A, 0x7FFEE1368A24)		 = -1 Err#25
ioctl(0x2, 0x40487413, 0x7FFEE1368A28)		 = -1 Err#25
mprotect(0x10ED01000, 0x1000, 0x0)		 = 0 0
mprotect(0x10ED05000, 0x1000, 0x0)		 = 0 0
mprotect(0x10EDA2000, 0x1000, 0x0)		 = 0 0
mprotect(0x10EDA6000, 0x1000, 0x0)		 = 0 0
mprotect(0x10EA9B000, 0x90, 0x1)		 = 0 0
mprotect(0x10E8A2000, 0x1000, 0x1)		 = 0 0
mprotect(0x10EA9B000, 0x90, 0x3)		 = 0 0
mprotect(0x10EA9B000, 0x90, 0x1)		 = 0 0
issetugid(0x0, 0x0, 0x0)		 = 0 0
getentropy(0x7FFEE1365F70, 0x20, 0x0)		 = 0 0
getpid(0x0, 0x0, 0x0)		 = 60306 0
stat64("/AppleInternal\0", 0x7FFEE1368C10, 0x0)		 = -1 Err#2
csops(0xEB92, 0x7, 0x7FFEE1368740)		 = -1 Err#22
proc_info(0x2, 0xEB92, 0xD)		 = 64 0
csops(0xEB92, 0x7, 0x7FFEE1367F80)		 = -1 Err#22
geteuid(0x0, 0x0, 0x0)		 = 0 0
getuid(0x0, 0x0, 0x0)		 = 0 0
gettid(0x7FFEE13677C8, 0x7FFEE13677CC, 0x0)		 = -1 Err#3
geteuid(0x0, 0x0, 0x0)		 = 0 0
getegid(0x0, 0x0, 0x0)		 = 0 0
gettid(0x7FFEE13677A8, 0x7FFEE13677AC, 0x0)		 = -1 Err#3
geteuid(0x0, 0x0, 0x0)		 = 0 0
getegid(0x0, 0x0, 0x0)		 = 0 0
stat64("/System/Library/PrivateFrameworks/Heimdal.framework/Heimdal\0", 0x7FFEE1365010, 0x0)		 = 0 0
stat64("/System/Library/Frameworks/GSS.framework/GSS\0", 0x7FFEE1365010, 0x0)		 = 0 0
getrlimit(0x1008, 0x7FFEE136A0C0, 0x0)		 = 0 0
open_nocancel("/opt/local/etc/freshclam.conf\0", 0x0, 0x1B6)		 = 3 0
fstat64(0x3, 0x7FFEE136A068, 0x0)		 = 0 0
close_nocancel(0x3)		 = 0 0
lstat64("/opt/local/share/clamav\0", 0x7FFEE136B860, 0x0)		 = 0 0
geteuid(0x0, 0x0, 0x0)		 = 0 0
shm_open(0x7FFF67420CD8, 0x0, 0x0)		 = 3 0
mmap(0x0, 0x1000, 0x1, 0x1, 0x3, 0x0)		 = 0x10EA9D000 0
close_nocancel(0x3)		 = 0 0
open_nocancel("/etc/.mdns_debug\0", 0x0, 0x0)		 = -1 Err#2
issetugid(0x0, 0x0, 0x0)		 = 0 0
issetugid(0x0, 0x0, 0x0)		 = 0 0
proc_info(0x2, 0xEB92, 0x11)		 = 56 0
proc_info(0x2, 0xEB92, 0x11)		 = 56 0
issetugid(0x0, 0x0, 0x0)		 = 0 0
openat(0xFFFFFFFFFFFFFFFE, "/Library/Preferences/Logging/com.apple.diagnosticd.filter.plist\0", 0x1000104, 0xFFFFFFFFE136B048)		 = -1 Err#2
open("/opt/local/bin/freshclam\0", 0x8004, 0x6746A2BA)		 = 3 0
fcntl(0x3, 0x32, 0x7FFEE136AAB0)		 = 0 0
close(0x3)		 = 0 0
initgroups(0x7, 0x7FFEE136B7D0, 0x52)		 = 0 0
setgid(0x52, 0x0, 0x0)		 = 0 0
setuid(0x52, 0x0, 0x0)		 = 0 0
stat64("libclamunrar_iface.so.9.0.5\0", 0x7FFEE136A2F0, 0x0)		 = -1 Err#13
stat64("libclamunrar_iface.so.9.0.5\0", 0x7FFEE136A730, 0x0)		 = -1 Err#13
stat64("/var/root/lib/libclamunrar_iface.so.9.0.5\0", 0x7FFEE136A6A0, 0x0)		 = -1 Err#13
stat64("/var/root/lib/libclamunrar_iface.so.9.0.5\0", 0x7FFEE136AAE0, 0x0)		 = -1 Err#13
stat64("/\0", 0x7FFEE1368A88, 0x0)		 = 0 0
getattrlist("/var\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
readlink("/var\0", 0x7FFEE13697E0, 0x400)		 = 11 0
getattrlist("/private\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/private/var\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/private/var/root\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/private/var/root/lib\0", 0x112FB2048, 0x7FFEE136A3E0)		 = -1 Err#13
stat64("/usr/local/lib/libclamunrar_iface.so.9.0.5\0", 0x7FFEE136A690, 0x0)		 = -1 Err#2
stat64("/usr/local/lib/libclamunrar_iface.so.9.0.5\0", 0x7FFEE136AAD0, 0x0)		 = -1 Err#2
getattrlist("/usr\0", 0x112FB2048, 0x7FFEE136A3D0)		 = 0 0
getattrlist("/usr/local\0", 0x112FB2048, 0x7FFEE136A3D0)		 = 0 0
getattrlist("/usr/local/lib\0", 0x112FB2048, 0x7FFEE136A3D0)		 = -1 Err#2
stat64("/usr/local/lib\0", 0x7FFEE136A260, 0x0)		 = -1 Err#2
stat64("/usr/local/lib\0", 0x7FFEE136A6A0, 0x0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.so.9.0.5\0", 0x7FFEE136A6A0, 0x0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.so.9.0.5\0", 0x7FFEE136AAE0, 0x0)		 = -1 Err#2
getattrlist("/usr\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/usr/lib\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/usr/lib/libclamunrar_iface.so.9.0.5\0", 0x112FB2048, 0x7FFEE136A3E0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.so.9.0.5\0", 0x7FFEE136A270, 0x0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.so.9.0.5\0", 0x7FFEE136A6B0, 0x0)		 = -1 Err#2
open(".\0", 0x0, 0x1)		 = -1 Err#13
stat64("/\0", 0x7FFEE1368AD8, 0x0)		 = 0 0
lstat64(".\0", 0x7FFEE1368AD8, 0x0)		 = -1 Err#13
stat64("libclamunrar_iface.so.9\0", 0x7FFEE136A2F0, 0x0)		 = -1 Err#13
stat64("libclamunrar_iface.so.9\0", 0x7FFEE136A730, 0x0)		 = -1 Err#13
stat64("/var/root/lib/libclamunrar_iface.so.9\0", 0x7FFEE136A6A0, 0x0)		 = -1 Err#13
stat64("/var/root/lib/libclamunrar_iface.so.9\0", 0x7FFEE136AAE0, 0x0)		 = -1 Err#13
getattrlist("/var\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
readlink("/var\0", 0x7FFEE13697E0, 0x400)		 = 11 0
getattrlist("/private\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/private/var\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/private/var/root\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/private/var/root/lib\0", 0x112FB2048, 0x7FFEE136A3E0)		 = -1 Err#13
stat64("/usr/local/lib/libclamunrar_iface.so.9\0", 0x7FFEE136A6A0, 0x0)		 = -1 Err#2
stat64("/usr/local/lib/libclamunrar_iface.so.9\0", 0x7FFEE136AAE0, 0x0)		 = -1 Err#2
getattrlist("/usr\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/usr/local\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/usr/local/lib\0", 0x112FB2048, 0x7FFEE136A3E0)		 = -1 Err#2
stat64("/usr/local/lib\0", 0x7FFEE136A270, 0x0)		 = -1 Err#2
stat64("/usr/local/lib\0", 0x7FFEE136A6B0, 0x0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.so.9\0", 0x7FFEE136A6A0, 0x0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.so.9\0", 0x7FFEE136AAE0, 0x0)		 = -1 Err#2
getattrlist("/usr\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/usr/lib\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/usr/lib/libclamunrar_iface.so.9\0", 0x112FB2048, 0x7FFEE136A3E0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.so.9\0", 0x7FFEE136A270, 0x0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.so.9\0", 0x7FFEE136A6B0, 0x0)		 = -1 Err#2
open(".\0", 0x0, 0x1)		 = -1 Err#13
stat64("/\0", 0x7FFEE1368AD8, 0x0)		 = 0 0
lstat64(".\0", 0x7FFEE1368AD8, 0x0)		 = -1 Err#13
stat64("libclamunrar_iface.so\0", 0x7FFEE136A2F0, 0x0)		 = -1 Err#13
stat64("libclamunrar_iface.so\0", 0x7FFEE136A730, 0x0)		 = -1 Err#13
stat64("/var/root/lib/libclamunrar_iface.so\0", 0x7FFEE136A6A0, 0x0)		 = -1 Err#13
stat64("/var/root/lib/libclamunrar_iface.so\0", 0x7FFEE136AAE0, 0x0)		 = -1 Err#13
getattrlist("/var\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
readlink("/var\0", 0x7FFEE13697E0, 0x400)		 = 11 0
getattrlist("/private\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/private/var\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/private/var/root\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/private/var/root/lib\0", 0x112FB2048, 0x7FFEE136A3E0)		 = -1 Err#13
stat64("/usr/local/lib/libclamunrar_iface.so\0", 0x7FFEE136A6A0, 0x0)		 = -1 Err#2
stat64("/usr/local/lib/libclamunrar_iface.so\0", 0x7FFEE136AAE0, 0x0)		 = -1 Err#2
getattrlist("/usr\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/usr/local\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/usr/local/lib\0", 0x112FB2048, 0x7FFEE136A3E0)		 = -1 Err#2
stat64("/usr/local/lib\0", 0x7FFEE136A270, 0x0)		 = -1 Err#2
stat64("/usr/local/lib\0", 0x7FFEE136A6B0, 0x0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.so\0", 0x7FFEE136A6A0, 0x0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.so\0", 0x7FFEE136AAE0, 0x0)		 = -1 Err#2
getattrlist("/usr\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/usr/lib\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/usr/lib/libclamunrar_iface.so\0", 0x112FB2048, 0x7FFEE136A3E0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.so\0", 0x7FFEE136A270, 0x0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.so\0", 0x7FFEE136A6B0, 0x0)		 = -1 Err#2
open(".\0", 0x0, 0x1)		 = -1 Err#13
stat64("/\0", 0x7FFEE1368AD8, 0x0)		 = 0 0
lstat64(".\0", 0x7FFEE1368AD8, 0x0)		 = -1 Err#13
stat64("libclamunrar_iface.a\0", 0x7FFEE136A2F0, 0x0)		 = -1 Err#13
stat64("libclamunrar_iface.a\0", 0x7FFEE136A730, 0x0)		 = -1 Err#13
stat64("/var/root/lib/libclamunrar_iface.a\0", 0x7FFEE136A6A0, 0x0)		 = -1 Err#13
stat64("/var/root/lib/libclamunrar_iface.a\0", 0x7FFEE136AAE0, 0x0)		 = -1 Err#13
getattrlist("/var\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
readlink("/var\0", 0x7FFEE13697E0, 0x400)		 = 11 0
getattrlist("/private\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/private/var\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/private/var/root\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/private/var/root/lib\0", 0x112FB2048, 0x7FFEE136A3E0)		 = -1 Err#13
stat64("/usr/local/lib/libclamunrar_iface.a\0", 0x7FFEE136A6A0, 0x0)		 = -1 Err#2
stat64("/usr/local/lib/libclamunrar_iface.a\0", 0x7FFEE136AAE0, 0x0)		 = -1 Err#2
getattrlist("/usr\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/usr/local\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/usr/local/lib\0", 0x112FB2048, 0x7FFEE136A3E0)		 = -1 Err#2
stat64("/usr/local/lib\0", 0x7FFEE136A270, 0x0)		 = -1 Err#2
stat64("/usr/local/lib\0", 0x7FFEE136A6B0, 0x0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.a\0", 0x7FFEE136A6A0, 0x0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.a\0", 0x7FFEE136AAE0, 0x0)		 = -1 Err#2
getattrlist("/usr\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/usr/lib\0", 0x112FB2048, 0x7FFEE136A3E0)		 = 0 0
getattrlist("/usr/lib/libclamunrar_iface.a\0", 0x112FB2048, 0x7FFEE136A3E0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.a\0", 0x7FFEE136A270, 0x0)		 = -1 Err#2
stat64("/usr/lib/libclamunrar_iface.a\0", 0x7FFEE136A6B0, 0x0)		 = -1 Err#2
open(".\0", 0x0, 0x1)		 = -1 Err#13
stat64("/\0", 0x7FFEE1368AD8, 0x0)		 = 0 0
lstat64(".\0", 0x7FFEE1368AD8, 0x0)		 = -1 Err#13
getrusage(0x0, 0x7FFEE136B6F0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getrusage(0x0, 0x7FFEE136B6A0, 0x0)		 = 0 0
getuid(0x0, 0x0, 0x0)		 = 82 0
geteuid(0x0, 0x0, 0x0)		 = 82 0
getgid(0x0, 0x0, 0x0)		 = 82 0
getegid(0x0, 0x0, 0x0)		 = 82 0
open_nocancel("/opt/local/etc/openssl/openssl.cnf\0", 0x0, 0x1B6)		 = 3 0
fstat64(0x3, 0x7FFEE136B288, 0x0)		 = 0 0
close_nocancel(0x3)		 = 0 0
lstat64("/opt/local/share/clamav/\0", 0x7FFEE136B7A0, 0x0)		 = 0 0
chdir("/opt/local/share/clamav/\0", 0x0, 0x0)		 = 0 0
fstat64(0x1, 0x7FFEE136A868, 0x0)		 = 0 0
open("mirrors.dat\0", 0x0, 0x0)		 = 3 0
lseek(0x3, 0x0, 0x2)		 = 69 0
lseek(0x3, 0xD, 0x0)		 = 13 0
close(0x3)		 = 0 0
sigaction(0x2, 0x7FFEE136B838, 0x0)		 = 0 0
sigaction(0xD, 0x7FFEE136B838, 0x0)		 = 0 0
access("/etc/localtime\0", 0x4, 0x0)		 = 0 0
open_nocancel("/etc/localtime\0", 0x0, 0x0)		 = 3 0
fstat64(0x3, 0x7FFEE136B168, 0x0)		 = 0 0
close_nocancel(0x3)		 = 0 0
issetugid(0x0, 0x0, 0x0)		 = 1 0
open_nocancel("/var/db/timezone/zoneinfo/posixrules\0", 0x0, 0x0)		 = 3 0
fstat64(0x3, 0x7FFEE136AF98, 0x0)		 = 0 0
close_nocancel(0x3)		 = 0 0
madvise(0x111383000, 0xB000, 0x9)		 = 0 0
madvise(0x111378000, 0xB000, 0x9)		 = 0 0
chdir("/opt/local/share/clamav/\0", 0x0, 0x0)		 = 0 0
open_nocancel("/opt/local/share/clamav/\0", 0x1100004, 0x0)		 = 3 0
fstatfs64(0x3, 0x7FFEE136ADC8, 0x0)		 = 0 0
getdirentries64(0x3, 0x7FB163000000, 0x1000)		 = 224 0
getdirentries64(0x3, 0x7FB163000000, 0x1000)		 = 0 0
close_nocancel(0x3)		 = 0 0
workq_kernreturn(0x10, 0x0, 0x40)		 = 0 0
workq_open(0x0, 0x0, 0x0)		 = 0 0
workq_kernreturn(0x80, 0x0, 0x10FF)		 = 0 0
kevent_qos(0xFFFFFFFFFFFFFFFF, 0x7FFF672197B0, 0x1)		 = 0 0
kevent_qos(0xFFFFFFFFFFFFFFFF, 0x7FFEE136A500, 0x1)		 = 0 0
kevent_qos(0xFFFFFFFFFFFFFFFF, 0x7FFEE136A4F0, 0x1)		 = 0 0
workq_kernreturn(0x20, 0x0, 0x1)		 = 0 0
kevent_id(0x7FB162619470, 0x7FFEE136AB60, 0x1)		 = 0 0
thread_selfid(0x0, 0x0, 0x0)		 = 220522 0
kevent_id(0x7FB162619470, 0x7FFEE136A9C0, 0x1)		 = 0 0
bsdthread_ctl(0x400, 0x2803, 0x8FF)		 = 0 0
kevent_qos(0xFFFFFFFFFFFFFFFF, 0x70000493B9C0, 0x1)		 = 0 0
kevent_id(0x7FB162619960, 0x70000493B9C0, 0x1)		 = 0 0
workq_kernreturn(0x4, 0x0, 0x0)		 = 0 Err#-2
kevent_id(0x7FB162619470, 0x7FFEE136AD40, 0x1)		 = 0 0
kevent_id(0x7FB162619470, 0x7FFEE136AD90, 0x1)		 = 0 0
workq_kernreturn(0x100, 0x70000493BB80, 0x1)		 = 0 Err#-2
kevent_id(0x7FB162619470, 0x70000493BB80, 0x1)		 = 0 0
socket(0x2, 0x2, 0x0)		 = 3 0
bind(0x3, 0x7FFEE136A9E0, 0x10)		 = 0 0
setsockopt(0x3, 0x0, 0x14)		 = 0 0
setsockopt(0x3, 0x29, 0x13)		 = -1 Err#22
sendto(0x3, 0x7FFEE136AEC0, 0x28)		 = 40 0
pselect(0x4, 0x7FFEE136A950, 0x0)		 = 1 0
recvmsg(0x3, 0x7FFEE136A420, 0x0)		 = 508 0
close(0x3)		 = 0 0
lstat64("/opt/local/share/clamav/tmp.a006bb5276\0", 0x7FFEE136B718, 0x0)		 = -1 Err#2
mkdir("/opt/local/share/clamav/tmp.a006bb5276\0", 0x1ED, 0x0)		 = 0 0
chdir("/opt/local/share/clamav/\0", 0x0, 0x0)		 = 0 0
access("daily.cvd\0", 0x4, 0x0)		 = -1 Err#2
access("daily.cld\0", 0x4, 0x0)		 = 0 0
open_nocancel("daily.cld\0", 0x0, 0x1B6)		 = 3 0
fstat64(0x3, 0x7FFEE136AA78, 0x0)		 = 0 0
close_nocancel(0x3)		 = 0 0
chdir("/opt/local/share/clamav/\0", 0x0, 0x0)		 = 0 0
access("main.cvd\0", 0x4, 0x0)		 = 0 0
open_nocancel("main.cvd\0", 0x0, 0x1B6)		 = 3 0
fstat64(0x3, 0x7FFEE136AA78, 0x0)		 = 0 0
close_nocancel(0x3)		 = 0 0
chdir("/opt/local/share/clamav/\0", 0x0, 0x0)		 = 0 0
access("bytecode.cvd\0", 0x4, 0x0)		 = 0 0
open_nocancel("bytecode.cvd\0", 0x0, 0x1B6)		 = 3 0
fstat64(0x3, 0x7FFEE136AA78, 0x0)		 = 0 0
close_nocancel(0x3)		 = 0 0
lstat64("/opt/local/share/clamav/tmp.a006bb5276\0", 0x7FFEE136B718, 0x0)		 = 0 0
chmod(0x10E89F330, 0x1C0, 0x0)		 = 0 0
open_nocancel("/opt/local/share/clamav/tmp.a006bb5276\0", 0x1100004, 0x0)		 = 3 0
fstatfs64(0x3, 0x7FFEE136AC38, 0x0)		 = 0 0
stat64("/opt/local/share/clamav/tmp.a006bb5276\0", 0x7FFEE136B528, 0x0)		 = 0 0
rmdir(0x10E89F330, 0x0, 0x0)		 = 0 0
close_nocancel(0x3)		 = 0 0
chmod(0x10E89F330, 0x1C0, 0x0)		 = -1 Err#2
open_nocancel("/opt/local/share/clamav/tmp.a006bb5276\0", 0x1100004, 0xFFFFFFFFFFFFFFFF)		 = -1 Err#2
workq_kernreturn(0x100, 0x70000493BB80, 0x1)		 = 0 Err#-2

comment:12 Changed 3 years ago by danielluke (Daniel J. Luke)

I guess that doesn't actually tell us too much more information.

What are the permisisons on / /var /var/root on your box? If I look at my dtruss output, it does look in my $HOME and $HOME/lib for libclamunrar_iface (although a .so and not a .a) before eventually finding it in /opt/local/lib.

comment:13 Changed 3 years ago by pdvnl

# ls -ld / /var /var/root
drwxr-xr-x  34 root  wheel  1088 Apr 30 20:38 /
lrwxr-xr-x@  1 root  wheel    11 Mar 18 11:33 /var -> private/var
drwxr-x---  15 root  wheel   480 May  1 14:58 /var/root
# echo HOME=$HOME
HOME=/var/root
# find -x / -name 'libclam*'
/opt/local/lib/pkgconfig/libclamav.pc
/opt/local/lib/libclamunrar_iface.so
/opt/local/lib/libclamunrar.dylib
/opt/local/lib/libclamav.dylib
/opt/local/lib/libclamunrar_iface.9.so
/opt/local/lib/libclamunrar.9.dylib
/opt/local/lib/libclammspack.0.dylib
/opt/local/lib/libclamav.9.dylib
/opt/local/lib/libclammspack.dylib

i think that

/var/root/lib/libclamunrar_iface.a: stat() failed with errno=13

is caused by not having /var/root/lib, not by privilege errors. none of my macs have a /var/root/lib.

i wonder where

Did find: 	libclamunrar_iface.a: stat() failed with errno=13

is coming from.

comment:14 Changed 3 years ago by danielluke (Daniel J. Luke)

In my trace the stat() for non-existant libclamunrar_iface.so in my $HOME return -1 ,Err#2 - another odd thing is that your dtruss output doesn't show it looking in /opt/local/lib (I suspect that's why it's eventually looking for the .a file, since it couldn't find the .so).

I'm not sure what's configured differently on your system, but it doesn't look like a bug in the port to me.

comment:15 Changed 3 years ago by grumpybozo (Bill Cole)

A few maybe relevant data points:

  1. I am having exactly the same problem on a 10.14.6 machine without any of the possible issues from running in a VM.
  2. By accident, I discovered that if I run freshclam or clamscan from /opt/local/lib/ the warning message is NOT issued.
  3. By running with dtruss, I see a hunt in various directories for libclamunrar_iface.so.9 (which doesn't exist anywhere) instead of libclamunrar_iface.9.so (which does.)
  4. On a 10.11.6 machine, I don't have this problem.

The key (I think?) step in the build appears to be this:

libtool: link: /usr/bin/clang++  -o .libs/libclamunrar_iface.9.so -bundle  ../libclamunrar_iface/.libs/libclamunrar_iface_la-unrar_iface.o   -L/opt/local/lib ./.libs/libclamunrar.dylib -lcharset  -Os -stdlib=libc++ -arch x86_64 -Wl,-M -Wl,../libclamunrar_iface/libclamunrar_iface.map -Wl,-headerpad_max_install_names -Wl,-syslibroot -Wl,/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch x86_64  
ld: warning: ignoring file ../libclamunrar_iface/libclamunrar_iface.map, file was built for unsupported file format ( 0x43 0x4C 0x41 0x4D 0x41 0x56 0x5F 0x50 0x52 0x49 0x56 0x41 0x54 0x45 0x20 0x7B ) which is not the architecture being linked (x86_64): ../libclamunrar_iface/libclamunrar_iface.map
libtool: link: (cd ".libs" && rm -f "libclamunrar_iface.so" && ln -s "libclamunrar_iface.9.so" "libclamunrar_iface.so")
libtool: link: ( cd ".libs" && rm -f "libclamunrar_iface.la" && ln -s "../libclamunrar_iface.la" "libclamunrar_iface.la" )

There is one small difference on 10.11.6:

libtool: link: /usr/bin/clang++  -o .libs/libclamunrar_iface.9.so -bundle  ../libclamunrar_iface/.libs/libclamunrar_iface_la-unrar_iface.o   -L/opt/local/lib -lMacportsLegacySupport ./.libs/libclamunrar.dylib -lcharset  -Os -stdlib=libc++ -arch x86_64 -Wl,-M -Wl,../libclamunrar_iface/libclamunrar_iface.map -Wl,-headerpad_max_install_names -arch x86_64  
ld: warning: ignoring file ../libclamunrar_iface/libclamunrar_iface.map, file was built for unsupported file format ( 0x43 0x4C 0x41 0x4D 0x41 0x56 0x5F 0x50 0x52 0x49 0x56 0x41 0x54 0x45 0x20 0x7B ) which is not the architecture being linked (x86_64): ../libclamunrar_iface/libclamunrar_iface.map
libtool: link: (cd ".libs" && rm -f "libclamunrar_iface.so" && ln -s "libclamunrar_iface.9.so" "libclamunrar_iface.so")
libtool: link: ( cd ".libs" && rm -f "libclamunrar_iface.la" && ln -s "../libclamunrar_iface.la" "libclamunrar_iface.la" )

Note the '-lMacportsLegacySupport'

I hope this helps illuminate the problem in some way.

comment:16 Changed 3 years ago by danielluke (Daniel J. Luke)

I don't think that MacPortsLegacy would alter the search path (you can see the things it adds here: https://github.com/macports/macports-legacy-support ). Since I don't have a system to test this on, I'm not likely to be able to determine what needs to change. If someone who can reproduce this can provide a patch, I'm happy to apply it to the port, though.

comment:17 Changed 3 years ago by grumpybozo (Bill Cole)

Looking at where the program was looking for the library, it occurred to me that both systems were searching for non-existent libraries in /usr/local/lib and ~/lib and ./lib, which is not Mac-like behavior. I confirmed by looking at the config.log that the only way for /usr/local/lib to have gotten into the built software was via the LT_DLSEARCH_PATH variable.

By running the 'port configure' step on both systems and comparing the config.log files, I found that while they both defined LT_DLSEARCH_PATH identically, the working system defined HAVE_LTDL and related variables while the non-working system defined them all as null. The working system had the libtool port installed, the non-working system did not.

I installed the libtool port and re-built and reinstalled the clamav port, and the warning went away. Presumably the solution is to add port:libtool to the build dependencies.

comment:18 Changed 3 years ago by danielluke (Daniel J. Luke)

Thanks Bill. I'll add a dependency on the libtool port and revbump.

(I should probably just always use trace mode when testing, it's times like this when I wish it was the default).

comment:19 Changed 3 years ago by danielluke (Daniel J. Luke)

Resolution: fixed
Status: assignedclosed

comment:20 Changed 3 years ago by pdvnl

your solution works fine for my 10.14 vm. thanks!

Note: See TracTickets for help on using tickets.