public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* compilation errors trying to build unzip on cygwin
@ 2021-02-14  0:01 Soren
  2021-02-14  1:18 ` Ken Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Soren @ 2021-02-14  0:01 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: compilation errors trying to build unzip on cygwin
@ 2021-02-14  2:34 Soren
  2021-02-14  4:20 ` Marco Atzeri
  2021-02-14  4:59 ` Brian Inglis
  0 siblings, 2 replies; 8+ messages in thread
From: Soren @ 2021-02-14  2:34 UTC (permalink / raw)
  To: cygwin

Hi, again. I sent a request for help with this build. Then I put on my
thinking cap and snatched in the cygwin src for this pkg, which is new
(6.0). Yet I still cannot build. Thus, here is the output on my console:
But first, weirdly we are finding a different make:
$  which make
/usr/bin/make
 ((alright))
$ make -f unix/Makefile cygwin
C:/ix/gnuwin32/bin/make unzips CC=gcc LD=gcc AS=gcc\
         CFLAGS="-O3 -DASM_CRC -DNO_LCHOWN -DNO_LCHMOD"\
         AF="-Di386  " CRCA_O=crc_gcc.o\
         E=".exe" CP="cp" LN="ln -s"
C:\ix\gnuwin32\bin\make: invalid option -- A
C:\ix\gnuwin32\bin\make: invalid option -- M
C:\ix\gnuwin32\bin\make: invalid option -- _
C:\ix\gnuwin32\bin\make: invalid option -- N
C:\ix\gnuwin32\bin\make: invalid option -- O
C:\ix\gnuwin32\bin\make: invalid option -- _
C:\ix\gnuwin32\bin\make: invalid option -- N
C:\ix\gnuwin32\bin\make: invalid option -- O
C:\ix\gnuwin32\bin\make: invalid option -- _
Usage: make [options] [target] ...
Options:
 ...

My PATH before cygwin manages it looks like:
[1] C:\windows\system32
[2] C:\windows
[3] C:\windows\System32\Wbem
[4] C:\windows\System32\WindowsPowerShell\v1.0\
[5] C:\windows\System32\OpenSSH\
[6] C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
[7] C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR
[8] C:\ix\putty\
[9] C:\perl\c\bin
[10] C:\perl\perl\site\bin
[11] C:\perl\perl\bin
[12] C:\ix\gnuwin32\bin
[13] C:\Users\somia\AppData\Local\Microsoft\WindowsApps
[14] C:\ix\mingw\bin
[15] C:\Perl\bin

After diving into Cygwin-dom:
PATH=/usr/local/bin:/usr/bin:/cygdrive/c/windows/system32:/cygdrive/c/windows:/cygdrive/c/windows/System32/Wbem
:/cygdrive/c/windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/windows/System32/OpenSSH:/cygdrive/c/Program
F
iles (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/Program Files/NVIDIA
Corporation/NVIDIA NvDLISR:/cygdriv
e/c/ix/putty:/cygdrive/c/perl/c/bin:/cygdrive/c/perl/perl/site/bin:/cygdrive/c/perl/perl/bin:/cygdrive/c/ix/gnu
win32/bin:/cygdrive/c/Users/somia/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/ix/mingw/bin:/cygdrive/c/Perl
/bin

Hmmm, right? Why would make spawn submakes that don't come earlier in PATH?

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <mailman.40438.1613431093.968053.cygwin@cygwin.com>]

end of thread, other threads:[~2021-02-16  3:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-14  0:01 compilation errors trying to build unzip on cygwin Soren
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

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).