public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Soren <somian08@gmail.com>
To: cygwin@cygwin.com
Subject: compilation errors trying to build unzip on cygwin
Date: Sat, 13 Feb 2021 19:01:31 -0500	[thread overview]
Message-ID: <CAGB_HuRrhT1uCH=_MBAhKhEKkdzssDGBC5482vtBGbYUvp_oFw@mail.gmail.com> (raw)

HI. HI!. I've been away from cygwin (and all computer programming
/messing-about) fro several years. Still love Cygwin.

I've gotan archive with the source for `unzip' and I am having trouble
compiling that program. The is the output on the console:

$ make
gcc -c -DASM_CRC -DWIN32 -D__GW32__ -D_LARGEFILE_SOURCE=1
-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O3 -fms-extensions
-mms-bitfi
elds  -fno-exceptions -fomit-frame-pointer -march=i386 -mcpu=i686
-idirafter e:/progra~1/gnuwin32/include -idirafter h:/glibc/include -DUNIXB
ACKUP -DUSE_UNSHRINK -DACORN_FTYPE_NFS -DOS2_EAS -DUSE_CRYPT  -Wall  -o
unzip.o  -O3 -mtune=native -march=native  unzip.c
In file included from win32/w32cfg.h:42,
                 from unzpriv.h:667,
                 from unzip.h:637,
                 from unzip.c:64:
win32/w32cfg.h:91:15: error: expected declaration specifiers or ‘...’
before ‘(’ token
   91 |    extern int setmode(int, int);        /* this is missing in
<fcntl.h> */
      |               ^~~~~~~
win32/w32cfg.h:91:15: error: expected declaration specifiers or ‘...’
before ‘(’ token
   91 |    extern int setmode(int, int);        /* this is missing in
<fcntl.h> */
      |               ^~~~~~~
In file included from unzip.h:637,
                 from unzip.c:64:
unzip.c: In function ‘unzip’:
unzpriv.h:787:22: warning: implicit declaration of function ‘strnicmp’; did
you mean ‘strncmp’? [-Wimplicit-function-declaration]
  787 | #    define STRNICMP strnicmp
      |                      ^~~~~~~~
unzip.c:832:9: note: in expansion of macro ‘STRNICMP’
  832 |     if (STRNICMP(p, LoadFarStringSmall(Zipnfo), 7) == 0 ||
      |         ^~~~~~~~
make: *** [unzip.o] Error 1

The release version of `unzip' is 5.51

Anyone got any ideas? TIA.
-- 
Soren 'tino

He's earthy, he's pithy, he's ...a bit astringent.
Think of him more as a "topical antiseptic" than as a snack
.
    somian08@gmail.com  https://instagram.com/samhain08/
   https://twitter.com/1oh1soren

             reply	other threads:[~2021-02-14  0:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-14  0:01 Soren [this message]
2021-02-14  1:18 ` Ken Brown
2021-02-14  2:34 Soren
2021-02-14  4:20 ` Marco Atzeri
     [not found]   ` <CAGB_HuT5U7_g7ZLwqVT-9q51B-gS-KmNFGFB5TevYAwaAbefVw@mail.gmail.com>
2021-02-15 16:10     ` Marco Atzeri
2021-02-15 20:53       ` Soren
2021-02-14  4:59 ` Brian Inglis
     [not found] <mailman.40438.1613431093.968053.cygwin@cygwin.com>
2021-02-16  3:38 ` Soren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGB_HuRrhT1uCH=_MBAhKhEKkdzssDGBC5482vtBGbYUvp_oFw@mail.gmail.com' \
    --to=somian08@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).