Platforms - socat 1.7.0 was compiled and more or less successfully tested under the following operating systems: Debian lenny/sid on x86, kernel 2.6.24 FreeBSD 6.1 on x86 NetBSD 4.0 on x86 OpenBSD 4.3 on x86 OpenSolaris 10 on x86 with gcc Mac OS X 10.5.5 on iMac G5, with libreadline HP-UX 11.23 AIX 5.3 on 64bit Power4 with gcc Cygwin 1.5.25. In the world of Cygwin, there is really no such thing as only installing a package AS you are installing Cygwin. Cygwin was inherently designed with a setup.exe to be run multiple times when necessary. There are thousands of packages available in the Cygwin repo mirrors. Socat - Multipurpose relay (cloned from git://repo.or.cz/socat.git) - I am not the project owner, please submit bugs to socat@dest-unreach.org - craSH/socat.
1 day ago I tried removing the cygwin DLLs in the socat folder in order for socat to hopefully grab the DLLs from the installation folder but that did not work as it seems the names of the DLLs (and their version) are hardcoded. Is there a workaround for this or is socat currently broken on Windows?
Linux Socat Install
While compiling socat-2.0.0-b5 on cygwin (Windows) I got a few errors and here’s how I fixed it:xioopts.c: In function 'applyopts_single':
xioopts.c:3998: error: 'struct single' has no member named 'fd1'
xioopts.c:4000: error: 'struct single' has no member named 'fd1'
make[1]: *** [xioopts.o] Error 1
Edit the file xioopts.c in your favorite editor and replace ‘fd1’ by ‘rfd’ in both lines (3998 & 4000). That fixed this error but then I got my next error.
xio-ip.c:480: error: structure has no member named `ipi_spec_dst'
Edit xio-ip.c and comment out the entire snprintf statement in xio-ip.c line 480.
Continue compilation and it should now work fine.
Installing and Updating Cygwin for 64-bit versions of Windows
Run setup-x86_64.exe any time you want to update orinstall a Cygwin package for 64-bit windows. The signature for setup-x86_64.exe can be used to verify the validity ofthis binary.
Installing and Updating Cygwin for 32-bit versions of Windows
Run setup-x86.exe any time you want to update orinstall a Cygwin package for 32-bit windows. The signature for setup-x86.exe can be used to verify the validity ofthis binary.
Signing key transition
The key used to sign setup binaries has been updated. During the transitionperiod, signatures are made using both old (676041BA) and new (1A698DE9E2E56300)public keys here.See thismail for more details.General installation notes
When installing packages for the first time, the setup programdoes not install every package. Only the minimal base packagesfrom the Cygwin distribution are installed by default, which takes up about 100 MB.
Clicking on categories and packages in the setup program package installationscreen allows you to select what is installed or updated.
Individual packages like bash, gcc, less, etc.are released independently of the Cygwin DLL, so the Cygwin DLL version is notuseful as a general Cygwin release number. The setup programtracks the versions of all installed components and provides the mechanismfor installing or updating everything available from this site forCygwin.
Once you've installed your desired subset of the Cygwin distribution,the setup program will remember what you selected, so re-running itwill update your system with any new package releases.
On Windows Vista and later, the setup program will check bydefault if it runs with administrative privileges and, if not, will tryto elevate the process. If you want to avoid this behaviour and installunder an unprivileged account just for your own usage, runsetup with the --no-admin option.
Q: How do I add a package to my existing Cygwin installation?
A: Run the setup program and select the package you want to add.
Tip: if you don't want to also upgrade existing packages, select 'Keep' at thetop-right of the package chooser page.
Q: Is there a command-line installer?
A: Yes and no. The setup program understandscommand-linearguments which allow you to control its behavior and chooseindividual packages to install. While this provides some functionalitysimilar to such tools as apt-get or yum it is not asfull-featured as those package managers.
Q: Why not use apt, yum, myfavourite package manager, etc.?
A: The basic reason for not using a more full-featured package manager is thatsuch a program would need full access to all of Cygwin's POSIX functionality. Thatis, however, difficult to provide in a Cygwin-free environment, such as exists onfirst installation. Additionally, Windows does not easily allow overwriting ofin-use executables so installing a new version of the Cygwin DLL while a packagemanager is using the DLL is problematic.
Q: How do I install everything?
A: You do not want to do this! This will install an enormous number of packagesthat you will never use, including debuginfo and source for every package.
If you really must do this, clicking on the 'Default' label next to the'All' category to change it to 'Install' will mark every Cygwin package forinstallation. Be advised that this will download and install tens of gigabytesof files to your computer.
Q: How do I verify the signature of setup?
A: e.g.
Q: What's the hash of setup?
Socat Download
A: See here
Q: How do I help improve setup?
A: See the setupproject page for more information.