This is the Watt-32 library compiled with DJGPP. Watt-32 is a library for making networked TCP/IP programs in the language of C and C++ under DOS and Windows-NT. Both 16-bit real-mode and 32-bit protected-mode is supported. For DOS, Watt-32 requires a packet-driver (PKTDRVR) to access the data-link layer. Futher information about this library can be optained at: 1. DJGPP specific changes. ======================= The -march=i386 -mtune=i586 have been added to CFLAGS to generate i386 compatible code. These are the same flags that are used to build the C library of DJGPP. These flags may not work with very old compilers and may be adjusted accordingly. The dj_err program has been recompiled. This is necessary to produce an up-to-date sys_errlist[] for the different versions of djgpp. The test programs stored in /src/tests will compile with the exception of swap.exe and timeit_test.exe. I have never checked if any of these programs do really work on plain DOS and if they are of any use on plain DOS. They have been fixed to be compilable and nothing else. This source archive has been created combining watt32s.zip and small parts from watt32b.zip. Both have been downloaded as: http://www.watt-32.net/watt32b.zip http://www.watt-32.net/watt32s.zip This source archive contains the complete content of watt32s.zip and the djgpp specific makefiles from the /bin directory of watt32b.zip together with ping.c, tiny.c and tcpinfo.c. That source files are the ones required to build ping.exe and tcpinfo.exe These two programs are probably the most important ones to make a very first check if the library and the network connection do really work. I have not tried to build any of the other programs stored in watt32b.zip. The may work or not. If you need them, you are alone. If you really want to build them, download watt32b.zip and copy the /bin directory into the directory tree created by wat3211sr2.zip archive. Please, pay attention to NOT replace the DJGPP specific makefiles provided by wat3211sr2.zip or the binaries will be build with COFF debug format instead dwarf2 debug format. This usually leads to SIGSEGV at run time. I have tested this library only on MS-DOS 6.22 using VMware. I have created a NAT network connecting two identical MS-DOS VMWare clones configured by DHCP. Only ping test were made. For DOS a packet driver is required. I have used the one stored in pcntpk.zip. I do not remember from where I have downloaded it, but anyway you need to install the pocket driver that matches the network hardware you are using so you are alone here again. I have _NOT_ tested the library with any windows version. The /bin directory contains all configuration files like wattcp.cfg, etc. provided with by watt32s.zip. I have not modified them. You must adjust them according to your network hardware anyway. Here you are alone. Please, read the original documentation. I have no major experience neither using Watt-32 nor using DJGPP for DOS networking. As usual the DJGPP specific changes have been documented by diffs files stored in the /djgpp directory. 2: Installing the binary package. ============================== Copy the binary distribution into the top DJGPP installation directory and unzip it running *ONE* of the following commands: unzip32 wat3211br2.zip or djtarx wat3211br2.zip or pkunzip -d wat3211br2.zip It will create a /watt directory into the top DJGPP installation directory. To use the library you must set the WATT_ROOT environment variable. E.g.: set WATT_ROOT=%DJGPP%\watt For further information about Watt-32 please read the readme and install files stored in %DJGPP%\watt. 3: Building the binaries from sources. =================================== To build the library and binaries you must install at least the following binary packages: gcc346b, bnu226br3, mak42b and sed421b. I have not tested with any previous versions of these binaries. All these packages can be found in the v2gnu directory of ftp.delorie.com and any mirror. Create a temporary directory. Copy the source package: wat3211sr2.zip into the directory and unzip it running ONE of the following commands: unzip32 wat3211sr2.zip or djtarx wat3211sr2.zip or pkunzip -d wat3211sr2.zip Set the WATT_ROOT environment variable. It must point to the directory where the /src/makefile.all is stored. E.g.: if the source archive has been unziped in z:/tmp, then WATT_ROOT must be set to: WATT_ROOT=z:\tmp\contrib\watt cd into /contrib/watt/util and run the command: make -f errnos.mak dj_err.exe This binary is required by the build process of the library. cd into /contrib/watt/src and configure the sources by running the batch file: configur.bat djgpp This will create the required makefile for DJGPP and all other required files to compile the library. Now you can build the library by running the command: make -f djgpp.mak After having build the library, you can build the binaries ping.exe and tcpinfo.exe. To this purpose, cd into /contrib/watt/bin and run the command: make -f djgpp.mak ping.exe tcpinfo.exe There is no installation target in the makefiles. You can create a directory where you want to install the library. Make a /bin, /inc and /lib directory. Copy the *.cfg files from the /contrib/watt/bin into the new /bin directory, copy the contents of the /contrib/watt/inc directory into the new /inc directory _preserving_ the directory tree. Copy libwatt.a from /contrib/watt/lib into the new /lib directory. Then set WATT_ROTT environment variable to point to the directory where the library and headers have been installed. Send suggestions and bug reports concerning the DJGPP port to comp.os.msdos.djgpp or . Enjoy. Guerrero, Juan Manuel