Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Problem with archiver (/usr/bin/ar)

 
   Macintosh computer (Home) -> General Discussion RSS
Next:  ABI differences and Mach_O  
Author Message
Mark Rivers

External


Since: Nov 22, 2003
Posts: 1



(Msg. 1) Posted: Sat Nov 22, 2003 5:58 pm
Post subject: Problem with archiver (/usr/bin/ar)
Archived from groups: comp>sys>mac>programmer>misc (more info?)

I am having a strange problem with /usr/bin/ar on Mac-OSX 10.3.1.

On a local filesystem on the Mac it works fine:
[360spider:~/temp] epics% cc -c -o hello.o hello.c
[360spider:~/temp] epics% ar -rc hello.a hello.o

The archiver created hello.a with no problems.

However, now I go to a remote Linux NFS filesystem:
[360spider:~/temp] epics% cd /corvette/home/epics/scratch/
/corvette/home/epics/scratch
[360spider:home/epics/scratch] epics% cc -c -o hello.o hello.c
[360spider:home/epics/scratch] epics% ar -rc hello.a hello.o
^C

It compiles fine. However, the "ar" command just hangs up, it never
returns to the shell. I had to type ^C to kill it.

This file system is otherwise working fine. The UID/GID for the Mac
account have write permissions on the Linux system (otherwise the cc
command would fail).

Any idea what could be wrong? "man ar" says that it creates temporary
files in /tmp and uses the TMPDIR environment variable. That should
not be a problem, /tmp is writeable, and TMPDIR points to /tmp.

Thanks,
Mark Rivers

 >> Stay informed about: Problem with archiver (/usr/bin/ar) 
Back to top
Login to vote
Eric Albert

External


Since: Jun 28, 2003
Posts: 189



(Msg. 2) Posted: Sun Nov 23, 2003 6:17 am
Post subject: Re: Problem with archiver (/usr/bin/ar) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <62c206f3.0311221458.55a61fa7.DeleteThis@posting.google.com>,
rivers.DeleteThis@cars.uchicago.edu (Mark Rivers) wrote:

 > I am having a strange problem with /usr/bin/ar on Mac-OSX 10.3.1.
 >
 > On a local filesystem on the Mac it works fine:
 > [360spider:~/temp] epics% cc -c -o hello.o hello.c
 > [360spider:~/temp] epics% ar -rc hello.a hello.o
 >
 > The archiver created hello.a with no problems.
 >
 > However, now I go to a remote Linux NFS filesystem:
 > [360spider:~/temp] epics% cd /corvette/home/epics/scratch/
 > /corvette/home/epics/scratch
 > [360spider:home/epics/scratch] epics% cc -c -o hello.o hello.c
 > [360spider:home/epics/scratch] epics% ar -rc hello.a hello.o
 > ^C
 >
 > It compiles fine. However, the "ar" command just hangs up, it never
 > returns to the shell. I had to type ^C to kill it.
 >
 > This file system is otherwise working fine. The UID/GID for the Mac
 > account have write permissions on the Linux system (otherwise the cc
 > command would fail).

I wonder if you're running into Linux's problems with Panther's NFS file
locking. See
<http://www.macosxhints.com/article.php?story=20031028005216891&query=nfs
+lock> and
<http://nic.phys.ethz.ch/news/1067501462/1068541682/addPostingForm>
for details.

Hope this helps,
Eric

--
Eric Albert ejalbert.DeleteThis@stanford.edu
<a style='text-decoration: underline;' href="http://rescomp.stanford.edu/~ejalbert/" target="_blank">http://rescomp.stanford.edu/~ejalbert/</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Problem with archiver (/usr/bin/ar) 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Problem with OS X /usr/bin/as - Passing the --version argument to /usr/bin/as in OS X causes it to hang: % /usr/bin/as --version Apple Computer, Inc. version cctools-498.obj~14, GNU assembler version 1.38 <hangs...> Is there a fix for this? I came across this when trying to co...

Facing problem on MAC OSX 10.3 - Hi all, I am using MAC OSX 10.3 OS. I installed my USB modem driver in 10.3. I made the driver in 10.1.x MAC OSX. This driver worked in 10.1.x,10.2.x series. i.e., The Driver,application made in 10.1.x is compatble with 10.1.x & 10.2.x series. When...

PRoblem with archiving - Hallo, I do not find my failure. I have a cocoa-document-application. When I open a saved document I get this error: 2003-12-11 14:26:37.442 fsRune[964] *** NSUnarchiver: inconsistency between written and read data for object 0x3e3690 My MyDocument....

Problem with Toolbar - Hello, I want to have it easy with the toolbar: - (NSToolbarItem *)toolbar:(NSToolbar *)tb itemForItemIdentifier:(NSString *)tbit willBeInsertedIntoToolbar:(BOOL)flag { NSToolbarItem *tbi; NSImage *image; NSString *path; ...

Tech problem - Hi, I am using a G3 Mac system 9.2. I am experiencing what I call slow motion typing once in a while. As I type the letters appear slowly on the screen. I am not even a fast typer and yet it takes forever for the computer to keep up with me. What may be....
   Macintosh computer (Home) -> General Discussion All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]