Opened 5 years ago

Closed 5 years ago

#59449 closed defect (fixed)

bind9 undeclared dependency on icu

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

Description

bind9 ends up linked with icu:

% otool -L   /opt/local/sbin/named
/opt/local/sbin/named:
	/System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos (compatibility version 5.0.0, current version 6.0.0)
	/opt/local/lib/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
	/opt/local/lib/libxml2.2.dylib (compatibility version 12.0.0, current version 12.9.0)
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
	/opt/local/lib/liblzma.5.dylib (compatibility version 8.0.0, current version 8.4.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)
	/opt/local/lib/libiconv.2.dylib (compatibility version 9.0.0, current version 9.1.0)
	/opt/local/lib/libicui18n.65.dylib (compatibility version 65.0.0, current version 65.1.0)
	/opt/local/lib/libicuuc.65.dylib (compatibility version 65.0.0, current version 65.1.0)
	/opt/local/lib/libicudata.65.dylib (compatibility version 65.0.0, current version 65.1.0)

Either it needs to declare a dependency on icu, or the build needs to be fixed (perhaps it's using xml2-config --libs and should be changed to use pkg-config --libs libxml-2.0)

Change History (2)

comment:1 Changed 5 years ago by danielluke (Daniel J. Luke)

Changing to pkg-config results in a build that passes included tests and doesn't overlink:

% otool -L work/bind-9.14.7/bin/named/named 
work/bind-9.14.7/bin/named/named:
	/System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos (compatibility version 5.0.0, current version 6.0.0)
	/opt/local/lib/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
	/opt/local/lib/libxml2.2.dylib (compatibility version 12.0.0, current version 12.9.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)

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

Resolution: fixed
Status: assignedclosed

In cb7db2d22d1d62e5f9aa9d285128114cc7885b7a/macports-ports (master):

bind9: hack to build with pkg-config

Fixes #59449

Note: See TracTickets for help on using tickets.