[MacPorts] #62718: LibClamAV Warning: Cannot dlopen libclamunrar_iface

MacPorts noreply at macports.org
Fri Jun 4 20:28:09 UTC 2021


#62718: LibClamAV Warning: Cannot dlopen libclamunrar_iface
---------------------+------------------------
  Reporter:  pdvnl   |      Owner:  danielluke
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.6.4
Resolution:          |   Keywords:
      Port:  clamav  |
---------------------+------------------------

Comment (by grumpybozo):

 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/62718#comment:17>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list