[MacPorts] #57652: squid4 @4.4 +kerberos does not compile on macOS 10.13 (darwin/17.7.0) with linker error

MacPorts noreply at macports.org
Tue Nov 20 12:47:00 UTC 2018


#57652: squid4 @4.4 +kerberos does not compile on macOS 10.13 (darwin/17.7.0) with
linker error
----------------------------------------+----------------------
 Reporter:  TP75                        |      Owner:  jmroot
     Type:  defect                      |     Status:  assigned
 Priority:  Normal                      |  Milestone:
Component:  ports                       |    Version:  2.5.4
 Keywords:  squid squid4 kerberos ldap  |       Port:  squid4
----------------------------------------+----------------------
 Unfortunately, **squid4 @4.4 +kerberos +openssl** does not compile on
 macOS 10.13 (darwin/17.7.0) with a linker ''symbol(s) not found for
 architecture x86_64'' error. However, the default ''squid4 @4.4'' i.e.
 ''squid4 @4.4 +openssl'' compiles.

 Local MacPorts 2.5.4 test environment ''/opt/macports-test1'' with certain
 active ports:
   - kerberos5 @1.16.2_0
   - libedit @20180525-3.1_1
   - openssl @1.0.2p_0

 Find below an excerpt of the log file ''/opt/macports-
 test1/var/macports/logs/_opt_macports-
 test1_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_squid4/squid4/main.log''
 {{{
 [...]
 :debug:sysinfo macOS 10.13 (darwin/17.7.0) arch i386
 :debug:sysinfo MacPorts 2.5.4
 :debug:sysinfo Xcode 10.1
 :debug:sysinfo SDK 10.13
 :debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.13
 [...]
 /bin/sh ../../../../libtool  --tag=CXX   --mode=link ccache
 /usr/bin/clang++ -Wno-deprecated-register  -D_REENTRANT -pipe -Os
 -stdlib=libc++ -arch x86_64 -std=c++11  -L/opt/macports-test1/lib
 -Wl,-headerpad_max_install_names -arch x86_64 -o
 ext_kerberos_ldap_group_acl kerberos_ldap_group.o support_group.o
 support_netbios.o support_member.o support_krb5.o support_ldap.o
 support_sasl.o support_resolv.o support_lserver.o support_log.o
 ../../../../lib/libmiscencoding.la ../../../../compat/libcompatsquid.la
 -lldap -llber -lsasl2 -L/opt/macports-test1/lib -lgssapi_krb5 -lkrb5
 -lk5crypto -lcom_err
 libtool: link: ccache /usr/bin/clang++ -Wno-deprecated-register
 -D_REENTRANT -pipe -Os -stdlib=libc++ -arch x86_64 -std=c++11
 -Wl,-headerpad_max_install_names -arch x86_64 -o
 ext_kerberos_ldap_group_acl kerberos_ldap_group.o support_group.o
 support_netbios.o support_member.o support_krb5.o support_ldap.o
 support_sasl.o support_resolv.o support_lserver.o support_log.o  -L/opt
 /macports-test1/lib ../../../../lib/.libs/libmiscencoding.a
 ../../../../compat/.libs/libcompatsquid.a -lldap -llber -lsasl2
 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
 Undefined symbols for architecture x86_64:
   "_res_9_dn_expand", referenced from:
       get_ldap_hostname_list(main_args*, hstruct**, unsigned long, char*)
 in support_resolv.o
   "_res_9_search", referenced from:
       get_ldap_hostname_list(main_args*, hstruct**, unsigned long, char*)
 in support_resolv.o
 ld: symbol(s) not found for architecture x86_64
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 make[5]: *** [ext_kerberos_ldap_group_acl] Error 1
 make[5]: Leaving directory `/opt/macports-test1/var/macports/build
 /_opt_macports-
 test1_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_squid4/squid4/work/squid-4.4/src/acl/external/kerberos_ldap_group'
 [...]
 }}}

 Thanks for the good work. Please do not hesitate to request me for more
 details at your convenience.

-- 
Ticket URL: <https://trac.macports.org/ticket/57652>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list