Dealing with Subset C libraries

If running a program just prints an error like
        symbol gethostbyaddr not defined in file libc.so.6
some functions may have been left out of the C library to save space

Three workarounds:
Don't call those functions
Link with -static
Write a stub library and link to that