es2a+@andrew.cmu.edu (Eric Stuyvesant) (03/17/91)
I just recently got my 4 Mb system, and I just tried gcc-ar for the
first time. It doesn't seem to work. With everything in the right
place, the following occurs:
% ar r libab.olb abcd.o
Creating archive file `libab.olb'
ar: access denied for libab.ol$
cmd exit code 1
%
... and a very small file named libab.olb is created. A file named
libab.ol$ which is a few bytes larger than abcd.o is also created.
The version of gcc-ar I am using is the one that's in the bin.zoo
from terminator (gcc-1.37).
Any help is appreciated.
-Eric Stuyvesant
es2a+@andrew.cmu.edu || es2a%andrew@CMCCVB || JNET%"es2a%andrew@CMCCVB"
al782@cleveland.Freenet.Edu
Wanna buy brand new Lynx games: Blue Lghtng, Slime World, Zendocon for $22ea?
Go MEMS!david@doe.utoronto.ca (David Megginson) (03/18/91)
In <IbshhLu00VADIIZ2Ev@andrew.cmu.edu>, Eric Stuyvesant writes: > > I just recently got my 4 Mb system, and I just tried gcc-ar for the > first time. It doesn't seem to work. With everything in the right > place, the following occurs: > > % ar r libab.olb abcd.o > Creating archive file `libab.olb' > ar: access denied for libab.ol$ > cmd exit code 1 > % > > ... and a very small file named libab.olb is created. A file named > libab.ol$ which is a few bytes larger than abcd.o is also created. > > The version of gcc-ar I am using is the one that's in the bin.zoo > from terminator (gcc-1.37). > > Any help is appreciated. > libab.ol$ is, actually, what you are looking for. I had the same problem with gcc-ar until I recompiled it with Eric Smith's MiNT library (the panacea for program woes). Just rename libab.ol$ to libab.olb and you'll have your archive. David -- //////////////////////////////////////////////////////////////////////// / David Megginson david@doe.utoronto.ca / / Centre for Medieval Studies meggin@vm.epas.utoronto.ca / ////////////////////////////////////////////////////////////////////////
bammi@acae127.cadence.com (Jwahar R. Bammi) (03/22/91)
please apply the following patch to fix the problem. which library you
use is not important:
*** 1.15 1991/02/06 14:14:35
--- ar.c 1991/02/19 16:56:11
***************
*** 815,821 ****
lock_indesc = open (archive, O_RDWR, 0);
if (lock_indesc < 0)
! pfatal_with_name (archive);
}
#ifdef LOCKS
--- 815,824 ----
lock_indesc = open (archive, O_RDWR, 0);
if (lock_indesc < 0)
! {
! unlink(archive);
! pfatal_with_name (archive);
! }
}
#ifdef LOCKS
--
bang: uunet!cadence!bammi jwahar r. bammi
domain: bammi@cadence.com
GEnie: J.Bammi
CIS: 71515,155