I can't easily tell what's wrong here. test_getpw.c is a very simple program; it calls only getuid(), getpwuid_r(), printf(), and exit(). There is no reference to "res_maybe_init" in the source tree.