static link problem on SunOS 4.1.3

I just built libwww on SunOS 4.1.3 but had to remove the -static
option when I linked it with LineMode.  Before I did this, it failed
the call to gethostbyname in HTGetHostByName.  The output just said:
WWW Alert:  Fatal Error Can't locate remote host info.cern.ch

Is there any reason for static linking?  Does anyone know if this
problem would be related to the DNS patches that are usually applied
to 4.1.3 systems? Sunspots? Pollen count?