@rjd324
Found bugreprot i did in 2021 about getaddrinfo/etc issue: bz #10323.
There is quote from:
There is a simple and very small test case:
http://kas1e.mikendezign.com/aos4/network/showip.cWorks ok on Linux, Win10, Cygwin, and MorphOS. But on amigaos4 with public bsdsocket.library 4.307 (02/09/2012) it says: "getaddrinfo: no reentrant resolve functions"
If I tried to run it over new bsdsocket.library 4.321 (06/06/2016), then it simple crashes in bsdsocket.library and after ignoring DSI said in a shell:
"non-recoverable failure in name resolution"
Funny enough, is that if I compile that example with usage of proto/bsdsocket.library + add ISocket-> at beginning of those calls, then binary the same crashes in bsdsocket.library.
Probably we have there 2 issues:
1). On public bsdsocket.library it just didn't work as expected saying that "getaddrinfoL no reentrant resolve functions"
2). On beta bsdsocket.library it simple crash with "non-recoverable failure in name resolution".
For the same of test i use my own "libgai.a" which contains those getaddrinfo/freeaddrinfo/gai_errror/etc, and for me, it works fine and on public bsdsocket.library and on beta one. There is source code of those functions and a test case using them (i renamed them all with _gai at the end, so as to not clash with ones from newlib/roadshow):
http://kas1e.mikendezign.com/aos4/network/showip_gai.zipSo you can grab from latest link those functions and use them instead to see if it solve your issue.