Some of the functions in source3/lib/util_sock.c use AI_ADDRCONFIG. On QNX 6.3.0, this macro is defined but, if it's used, getaddrinfo will fail. This prevents smbd from opening any sockets. If I undefine AI_ADDRCONFIG on such systems and allow lib/replace/system/network.h to define it to be 0, this works around the issue.
Created attachment 4542 [details] Patch to undefine AI_ADDRCONFIG on QNX 6.3.0 systems
Fixed as 91d13b68be55728a85b3832e2da9267dbf4f2464 in master. I think we should pick it for v3-4-test also. metze
Reopening bug as it should be included into the 3.4 branches.
Wow, that's ugly. I thought we got over these #ifdef __SOME_BROKEN_OS__ patches and do it with configure-tests. I mean, I doubt it breaks anything, so from my point of view it could go into 3.4.1, but I think it needs SEVERE overhaul. Can someone please write a configure test for this? Volker
ugly or not, let's fix it _now_ for 3.4. we can still make it more beautiful in master... +1
Pushed, patch will be included in 3.4.1. Closing out bug report. Thanks!