Opened 3 years ago

Closed 3 years ago

#63106 closed defect (fixed)

clamav: libtool is also a runtime dependency

Reported by: NuvandaPV (Jean-Pierre Höhmann) Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: clamav

Description (last modified by reneeotten (Renee Otten))

Issue summary

Libtool is currently a build dependency of the clamav-port, however libtool is used during runtime.

Steps to reproduce

  1. Install clamav
  2. Uninstall libtool
  3. Try running clamd
  4. Observe failure

Expected outcome

If trying to uninstall libtool does not produce an error, ClamAV should work without it.

Observed failure

  • Uninstalling libtool does not cause an error, as it is only a build-dependency of macports
  • Trying to run clamav afterwards fails

Error message

    dyld: Library not loaded: /opt/local/lib/libltdl.7.dylib
      Referenced from: /opt/local/bin/clamdtop
      Reason: imgae not found
    Abort trap: 6

Solution

Add libtool as lib-dependency.

Environment

  • MacBook Air (M1, 2020)
  • macOS Big Sur Version 11.4 (20F71)
  • Xcode Version 12.5 (12E262)
  • MacPorts 2.7.1
  • clamav-server @0.101.2_4 (sysutils)
  • clamav @0.103.2_1 (sysutils)
  • libtool @2.4.6_11 (devel, sysutils)

Change History (2)

comment:1 Changed 3 years ago by reneeotten (Renee Otten)

Description: modified (diff)
Owner: set to danielluke
Status: newassigned
Summary: Libtool should be a lib-dependencyclamav: libtool is also a runtime dependency

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

Resolution: fixed
Status: assignedclosed

yep, I forgot about libltdl when adding the libtool depedency.

This is fixed: https://github.com/macports/macports-ports/commit/cefa892e0435c1c7946d74c816e2d9a00366c01b

Note: See TracTickets for help on using tickets.