delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
From: | "Gerrit P. Haase" <gerrit AT familiehaase DOT de> |
Organization: | convey Information Systems GmbH |
To: | mj AT ucw DOT cz |
Date: | Wed, 13 Jun 2001 12:43:06 +0200 |
MIME-Version: | 1.0 |
Subject: | sock-1.1.patch for cygwin |
Reply-to: | gerrit AT familiehaase DOT de |
CC: | cygwin AT cygwin DOT com |
Message-ID: | <3B275FDA.22568.339E5A@localhost> |
X-mailer: | Pegasus Mail for Win32 (v3.12cDE) |
X-Hops: | 1 |
Hi, i build sock-1.1 on cygwin-1.3.2: http://freshmeat.net/projects/sock/ I don't know if it is working correct. How to test? Build: ====== $ configure creating cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc -s) works... yes checking whether the C compiler (gcc -s) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking whether warnings should be enabled... yes checking for a BSD compatible install... /bin/install -c checking for gethostbyname in -lresolv... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for pid_t... yes checking return type of signal handlers... void updating cache ./config.cache creating ./config.status creating Makefile creating config.h $ make gcc -Wall -W -Wno-parentheses -Wstrict-prototypes -Wno-unused -s sock.c -o sock sock.c: In function `parse_addr': sock.c:148: warning: assignment discards qualifiers from pointer target type sock.c: In function `name_addr': sock.c:204: warning: return discards qualifiers from pointer target type $ make install /bin/install -c sock.exe /usr/local/bin/sock.exe /bin/install -c -m 644 sock.1 /usr/local/man/man1/sock.1 mkdir -p /usr/doc /bin/install -c README ChangeLog sock.lsm /usr/doc Patch for Cygwin: ================= diff -urw sock-1.1/Makefile.in sock-1.1-cygwin/Makefile.in --- sock-1.1/Makefile.in Tue Jun 12 12:11:25 2001 +++ sock-1.1-cygwin/Makefile.in Wed Jun 13 10:35:41 2001 @@ -11,18 +11,23 @@ INSTALL=@INSTALL@ INSTALL_PROGRAM=@INSTALL_PROGRAM@ INSTALL_DATA=@INSTALL_DATA@ +# Cygwin needs EXEEXT +EXEEXT=.exe +DOCDIR=/usr/doc +# all: sock sock: sock.c install: - $(INSTALL_PROGRAM) sock $(bindir)/sock + $(INSTALL_PROGRAM) sock$(EXEEXT) $(bindir)/sock$(EXEEXT) $(INSTALL_DATA) sock.1 $(mandir)/man1/sock.1 - + mkdir -p $(DOCDIR) + $(INSTALL) README ChangeLog sock.lsm $(DOCDIR) clean: rm -f `find . -name "*~" -o -name "*.[oa]" -o -name "\#*\#" -o -name TAGS -o -name core` - rm -f sock + rm -f sock$(EXEEXT) distclean: clean rm -f Makefile config.h config.cache config.log config.status diff -urw sock-1.1/sock.c sock-1.1-cygwin/sock.c --- sock-1.1/sock.c Tue Jun 12 12:10:29 2001 +++ sock-1.1-cygwin/sock.c Wed Jun 13 10:18:39 2001 @@ -26,6 +26,10 @@ #include <sys/wait.h> #include <sys/time.h> +#ifdef __CYGWIN__ +#include <getopt.h> +#endif /* __CYWIN__ */ + #define SOCK_VERSION "1.1" static char *opts = "vtuxb:lden"; ========================END gph -- Gerrit P. Haase -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |