This article is from the AmiTCP/IP FAQ, by Mike Meyer with numerous contributions by others.
First, you must understand that "bsdsocket.library" is a library that is created within the operating system by the AmiTCP program. It is not loaded from LIBS: and it is not a separate file. So, if you get the message that a program can not open bsdsocket.library, that means that AmiTCP is not running. It may have failed to load, or may have been unloaded.
Another possibility is that in the startnet command file, the command "WaitForPort AMITCP" didn't run. In startnet, right after the command "run AmiTCP:AmiTCP" is the WaitForPort command, which ensures that AmiTCP can finish setting up before the script goes on. If you don't have Workbench:Rexxc in your search path, or don't have the file WaitForPort, that command might fail, and the script will charge ahead, and execute a command before AmiTCP has created bsdsocket.library (See the FAQ about WaitForPort for more information on WaitForPort.)
 
Continue to: