gzip-1.3.12-2 build from source fails with errors during make
David Sastre
d.sastre.medina@gmail.com
Sun Mar 13 15:16:00 GMT 2011
On Sun, Mar 13, 2011 at 01:47:29PM +0000, ymcp wrote:
> I'm trying to build the latest gzip-1.3.12-2 from source, following
> the instructions in "/usr/src/gzip-1.3.12-2/INSTALL", but get some
> errors during the "make" step.
>
> -------------------------------------------------------------------
> ///usr/include/sys/stat.h:165: error: conflicting types for `futimens'
> -------------------------------------------------------------------
Hello,
I can confirm that.
As a workaround, I've tested building gzip-1.4 from source using the
a simple cygport file (below), taking advantage of gzip building OOTB.
It builds OK and all tests are passed successfully.
(Proper packaging still requires a setup.hint and a README, of course).
$ cat gzip-1.4-1.cygport
SRC_URI="http://ftp.gnu.org/gnu/${PN}/${P}.tar.xz"
HOMEPAGE="http://ftp.gnu.org/gnu/${PN}/"
Maybe this is a good chance to promote gzip to current upstream
version?
Also, could the following change in /usr/include/sys/stat.h be related?
Newlib ChangeLog
2008-04-24 Corinna Vinschen
* libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
(UTIME_OMIT): Ditto.
(utimensat): Declare for Cygwin.
(futimens): Ditto.
158 #if defined (__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
159 int _EXFUN(fchmodat, (int, const char *, mode_t, int));
160 int _EXFUN(fstatat, (int, const char *, struct stat *, int));
161 int _EXFUN(mkdirat, (int, const char *, mode_t));
162 int _EXFUN(mkfifoat, (int, const char *, mode_t));
163 int _EXFUN(mknodat, (int, const char *, mode_t, dev_t));
164 int _EXFUN(utimensat, (int, const char *, const struct timespec *, int));
165 int _EXFUN(futimens, (int, const struct timespec *));
166 #endif
Did it break gzip-1.3 (2007)?
--
Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20110313/4b0616ca/attachment.sig>
More information about the Cygwin
mailing list