Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <392E93BB.84CBEF5F@dothill.com>
Date: Fri, 26 May 2000 11:09:47 -0400
From: Jason Tishler <Jason.Tishler@dothill.com>
Organization: Dot Hill Systems Corporation
X-Mailer: Mozilla 4.72 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Cygwin <cygwin@sourceware.cygnus.com>
Subject: Problems Compiling unzip 5.41 UNIX Version
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Although it was easy to compile the zip 2.3 UNIX version with the
Cygwin gcc compiler, unzip 5.41 is another story.  Using the gcc target
in unix/Makefile I get the following:

    $ make -f unix/Makefile gcc
    make unzips CC=gcc LD=gcc CF="-O3 -I." LF2=""
    ...
    gcc -c -O3 -I. unix/unix.c
    unix/unix.c:66: sys/dir.h: No such file or directory

Since sys/dir.h does not exist under Cygwin and by reading unix/unix.c
it seemed to make sense to define DIRENT.  So, I tried the following:

    $ make -f unix/Makefile LOCAL_UNZIP=-DDIRENT gcc
    make unzips CC=gcc LD=gcc CF="-O3 -I. -DDIRENT" LF2=""
    ...
    gcc -c -O3 -I. -DDIRENT unix/unix.c
    unix/unix.c: In function `checkdir':
    unix/unix.c:625: structure has no member named `end'
    ...
    unix/unix.c:638: structure has no member named `buildpath'
    ...

If those of you who have successfully compiled the unzip 5.41 UNIX
version could help me out, I'd really appreciate it.

BTW, the zip 2.3 UNIX version *does* handle symlinks properly.  If I
can get a working unzip 5.41 UNIX version ... sigh.

Thanks,
Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation         Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

