Mail Archives: djgpp/1998/04/05/01:16:04
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 -