This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: compiling file 3.26
- To: Corinna Vinschen <corinna.vinschen@cityweb.de>
- Subject: Re: compiling file 3.26
- From: John Zheng <Yien@usa.net>
- Date: Sun, 7 Mar 1999 16:37:09 -0500 (EST)
- cc: cygwin@sourceware.cygnus.com
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- In-Reply-To: <36E2D7B7.CB124407@cityweb.de>
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- Sender: cygwin-owner@sourceware.cygnus.com
Okay, I've figured it out now...
First, it should be clarified on the GNUWin32.txt page that the
file3.26-patch file is found at
ftp.franken.de/pub/win32/develop/gnuwin32/cygwin/porters/Vinschen_Corinna/B20
and not at ftp.astron.com/pub/file. Perhaps just a general note up top that
patch files done by Corinna are found at ftp.franken.de.
Also, I had problems applying the patch because <tab> in the original source
files were translated to <spaces> in the file3.26-patch file, and a couple
extra line feeds were added. I've attached a modified file3.26-patch file
that works.
One more question. When I compile file.exe, my resulting file.exe ends up
being 382,463 bytes. The version you have on your ftp server is only 23,552
bytes. How do you get the compile to make it so small?
John
On Sun, 7 Mar 1999, Corinna Vinschen wrote:
> Corinna Vinschen wrote:
> >
> > John Zheng wrote:
> > >
> > > Ah yes,
> > >
> > > Adding the line
> > >
> > > #include <errno.h>
> > >
> > > to the file file.h did the trick. It also worked, and may be more "correct,"
> > > to add the line to the files file.c, fsmagic.c, and compress.c. Perhaps the
> > > need to make one of these changes should be documented at
> > > http://aquarius.franken.de/docs/develop/gnuwin32/GNUWin32.txt?
> >
> > Yes, should be done so.
>
> BTW: On my ftp site, you already could find a `file3.26-patch'!
> The README, which is also part of the GNUWin32.txt, contains the
> lines:
>
> - preliminaries
> - patch file `file3.26-patch' included
>
> Regards,
> Corinna
>
--- compress.c.orig Mon Nov 02 00:46:43 1998
+++ compress.c Mon Nov 02 00:47:01 1998
@@ -9,6 +9,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
+#include <errno.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
--- file.c.orig Mon Nov 02 00:45:15 1998
+++ file.c Mon Nov 02 00:46:27 1998
@@ -31,6 +31,7 @@
#include <sys/param.h> /* for MAXPATHLEN */
#include <sys/stat.h>
#include <fcntl.h> /* for open() */
+#include <errno.h>
#ifdef RESTORE_TIME
# if (__COHERENT__ >= 0x420)
# include <sys/utime.h>
--- fsmagic.c.orig Mon Nov 02 00:45:07 1998
+++ fsmagic.c Mon Nov 02 00:50:40 1998
@@ -31,6 +31,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
+#include <errno.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -40,7 +41,13 @@
# endif
#endif
#ifndef major /* if `major' not defined in types.h, */
+#if defined(__CYGWIN32__) || defined(__CYGWIN__)
+#define major(dev) (((unsigned) (dev))>>8)
+#define minor(dev) ((dev)&0xff)
+#define makedev(major,minor) (((major)<<8)|(minor))
+#else
#include <sys/sysmacros.h> /* try this one. */
+#endif
#endif
#ifndef major /* still not defined? give up, manual intervention needed */
/* If cc tries to compile this, read and act on it. */
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com