www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/05/01:16:04

From: michael DOT mauch AT gmx DOT de (Michael Mauch)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Info Zip unzip-5.32 does not compile with DJGPP/gcc-2.8.0
Date: Sun, 05 Apr 1998 07:17:46 +0200
Organization: Gerhard-Mercator-Universitaet -GH- Duisburg
Lines: 39
Message-ID: <6g745h$bi2$2@news-hrz.uni-duisburg.de>
References: <Pine DOT GSO DOT 3 DOT 96 DOT 980402110403 DOT 29509A-100000 AT rtbsci143s>
NNTP-Posting-Host: ppp83.uni-duisburg.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Thu, 2 Apr 1998 11:27:59 +0200 (MET DST), Olivier Perron
<perron AT art DOT alcatel DOT fr> wrote:

> 
> Using DJGPP V2 with gcc-2.8.0, I can't compile unzip-5.32.
> 
> I have the following error:
> 
> gcc -Wall -O2  -I. -DDOS -DUSE_VFAT -DASM_CRC  -c msdos/msdos.c -o msdos.o
> msdos/msdos.c: In function `version':
> msdos/msdos.c:1556: `__DJGPP_MINOR__' undeclared (first use this function)
> msdos/msdos.c:1556: (Each undeclared identifier is reported only once
> msdos/msdos.c:1556: for each function it appears in.)
> make.exe: *** [msdos.o] Error 1
 
gcc2.8.0 doesn't define __DJGPP_MINOR_ anymore. To get around this
problem for now, change the line defining "LOC" in makefile.dj2 like
this for the current DJGPP v2.01:

LOC=-DDOS -DUSE_VFAT -DUSE_UNSHRINK $(ASMFLG) $(LOCAL_UNZIP)
-D__DJGPP_MINOR__=01

(this is all one line!)

> Is this a gcc-2.8.0 bug or must  the unzip file distribution be updated
> regarding to gcc-2.8.0 evolutions ?

Good question. Will __DJGPP_MINOR__ be automatically defined in the next
gcc release or an intermediate update? Can we put a specs file somewhere
and define that value there? I seem to remember that gcc2.8.0 has a
built-in specs file, but I don't know how to create a completely new
one.

Or shouldn't we count on having __DJGPP_MINOR__ defined? After all it's
just used to print the DJGPP/gcc version number for `unzip -v´, not for
any "real" functions (at least not in unzip).

Regards...
		Michael

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019