diff -ruN perl-5.34.1-orig/Configure perl-5.34.1/Configure --- perl-5.34.1-orig/Configure 2022-02-19 06:16:47.000000000 -0600 +++ perl-5.34.1/Configure 2024-11-04 04:37:12.000000000 -0600 @@ -1493,7 +1493,7 @@ usereentrant='undef' : List of libraries we want. : If anyone needs extra -lxxx, put those in a hint file. -libswanted="cl pthread socket bind inet nsl ndbm gdbm dbm db malloc dl ld" +libswanted="cl pthread socket inet nsl ndbm gdbm dbm db malloc dl ld" libswanted="$libswanted sun m crypt sec util c cposix posix ucb bsd BSD" : We probably want to search /usr/shlib before most other libraries. : This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist. diff -ruN perl-5.34.1-orig/hints/darwin.sh perl-5.34.1/hints/darwin.sh --- perl-5.34.1-orig/hints/darwin.sh 2022-02-19 06:16:50.000000000 -0600 +++ perl-5.34.1/hints/darwin.sh 2024-11-04 04:39:08.000000000 -0600 @@ -535,3 +535,19 @@ # mkostemp() was autodetected as present but found to not be linkable # on 15.6.0. Unknown what other OS versions are affected. d_mkostemp=undef + +# Configure might detect these libbind6-dev, but if so, FTBFS. So +# disable them outright to avoid hauling in a dep and having to fix +# the build to work with it. +d_gethostbyaddr_r=undef +d_gethostbyname_r=undef +d_gethostent_r=undef +d_getnetbyaddr_r=undef +d_getnetbyname_r=undef +d_getnetent_r=undef +d_getprotobyname_r=undef +d_getprotobynumber_r=undef +d_getprotoent_r=undef +d_getservbyname_r=undef +d_getservbyport_r=undef +d_getservent_r=undef