www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/18/01:16:37

Date: Thu, 17 Aug 95 23:56:53 -0400
From: Wonkoo Kim <wkim+@pitt.edu>
To: csaba AT vuse DOT vanderbilt DOT edu, Bill Currie <BILLC AT teleng1 DOT tait DOT co DOT nz>
Reply-To: Wonkoo Kim <wkim+@pitt.edu>
Cc: djgpp users <djgpp AT sun DOT soe DOT clarkson DOT edu>
Subject: Rebuilding GRX 2.0 created incorrect lib name!

> Date: Fri, 18 Aug 95 14:06:32 +1100
> From: "Bill Currie" <BILLC AT teleng1 DOT tait DOT co DOT nz>
> Subject: Re: Compile error on GRX 2.0 beta test
> 
> You will have to recompile GRX20 (Csaba compiled it for V1).

Thank you.  Recompiling solved the problem.

However, recompilation wasn't smooth.  I had to rename

  D:\djgpp\contrib\grx20\lib\libgrx20.a-a ==> libgrx20.a

I don't know why extra '-a' was attached to the lib filename.
I looked makefiles of grx20, but they looked okay.
This was reproducible every time; Running make after removing libgrx20.a
from the dir, libgrx20.a-a was created and thus the next step in makefile
was aborted with error message. (because libgrx20.a was not found due
to the name change.)

I am building on a OS/2 Warp DOS box (P90), but I didn't try to build 
under pure DOS/Win system.  I don't think this can be a problem.  
I suspect ar.exe or make.exe of djgpp v2.0 beta package.
Anyway, I tested the recompiled grx 2.0 lib with grx's test programs
and they all worked well in OS/2 full-screen dos box.

Could someone identify the problem?

Here is the log screen when I reproduced the error:
(Before running djmake, I deleted grx20\lib\libgrx20.a)
--------------------
D:\DJGPP\CONTRIB\GRX20>djmake	(<== djmake is the 'make' from djgpp 2.0)
cd src
d:/djgpp/bin/djmake.exe
djmake.exe[1]: Entering directory `d:/djgpp/contrib/grx20/src'
if exist ..\lib\libgrx20.a del ..\lib\libgrx20.a
ar -rv ../lib/libgrx20.a draw/bitblt.o draw/box.o draw/clear.o draw/drwinlne.o d
raw/fillbox.o draw/frambox.o draw/line.o draw/majorln.o draw/pixel.o draw/plot.o
... [deleted]
D:\DJGPP\BIN/ar.exe: creating ../lib/libgrx20.a
c - draw/bitblt.o
c - draw/box.o
... [deleted]
c - vdrivers/vesa.o
c - vdrivers/vtable.o
D:\DJGPP\BIN/ar.exe: ../lib/libgrx20.a: Invalid operation
djmake.exe[1]: *** [../lib/libgrx20.a] Error 1
djmake.exe[1]: Leaving directory `d:/djgpp/contrib/grx20/src'
djmake.exe: *** [libs] Error 2
--------------------
At this point, grx20\lib\libgrx20.a-a was created with wrong extension.

//--------------------------------------------------------------------
// Wonkoo Kim
// wkim+@pitt.edu

- Raw text -


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