Mark, have you tried placing the -lsocket behind the whois.c parameter, i.e. "gcc -D_SOCKET_SOURCE -L/usr/lib -o whois whois.c -lsocket" ?? Lars. By the way, nice to see more "porting efforts" being started :-)