[MacPorts] #61631: torsocks: fails to compile under macOS 11.0.1

MacPorts noreply at macports.org
Mon Nov 23 16:45:46 UTC 2020


#61631: torsocks: fails to compile under macOS 11.0.1
----------------------+----------------------
 Reporter:  arrigo    |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.6.4
 Keywords:  torsocks  |       Port:  torsocks
----------------------+----------------------
 The `torsocks` port fails to compile under macOS 11.0.1 with the following
 error from the logs:
 {{{
 :info:build make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_torsocks/torsocks/work/torsocks-2.3.0/tests'
 :info:build   CC       test_dns.o
 :info:build   CC       helpers.o
 :info:build   CC       test_socket.o
 :info:build   CC       test_connect.o
 :info:build   CC       test_fd_passing.o
 :info:build   CC       test_getpeername.o
 :info:build test_dns.c:95:11: error: implicit declaration of function
 'gethostbyaddr_r' is invalid in C99 [-Werror,-Wimplicit-function-
 declaration]
 :info:build         result = gethostbyaddr_r((const void *)&addr,
 :info:build                  ^
 :info:build test_dns.c:95:11: note: did you mean 'gethostbyaddr'?
 :info:build
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include/netdb.h:274:17:
 note: 'gethostbyaddr' declared here
 :info:build struct hostent  *gethostbyaddr(const void *, socklen_t, int);
 :info:build                  ^
 :info:build test_dns.c:114:11: error: implicit declaration of function
 'gethostbyaddr_r' is invalid in C99 [-Werror,-Wimplicit-function-
 declaration]
 :info:build         result = gethostbyaddr_r((const void *)&addr,
 :info:build                  ^
 :info:build 2 errors generated.
 :info:build make[2]: *** [test_dns.o] Error 1
 }}}
 Xcode details:
 {{{
 Apple clang version 12.0.0 (clang-1200.0.32.27)
 Target: x86_64-apple-darwin20.1.0
 Thread model: posix
 InstalledDir: /Library/Developer/CommandLineTools/usr/bin
 }}}

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


More information about the macports-tickets mailing list