Creating static libraries

I am working on a self-hosted platform, the source files are located on a
WindowsNT 4.0 server (using SAMBA fs-cifs client). When I try to generate a
static library, I get an error. If I transfer the files to the QNX platform
it-self, the same operation works fine but locally.
Here is the result of the make command and the subsequent error:
(I try to build a library named mylib.a with one file psobject, note for
more than one file it the exactly the same problem, also of course the file
mylib.a is not existing).

QCC -c -g -V gcc_ntox86 psobject.cc

QCC -A mylib psobject.o
a - psobject.o
/usr/ntox86/bin/ar: mylib.a: rename: File exists
cc: /usr/ntox86/bin/ar error 1
make: *** [mylib.a] Error 1

What’s wrong ?
I suspect there is a problem with ar and creation/modification date of
remote files.

Thanks,
A.R.

This has been previously reported and logged as a bug against fs-cifs (PR
10168).
The problem arises from the fact that rename does not correctly deal with
the situation when the target file exists.


“QNX” <NOSPAMalain.ronce@secmat.com> wrote in message
news:a81sbe$2v9$1@inn.qnx.com

I am working on a self-hosted platform, the source files are located on a
WindowsNT 4.0 server (using SAMBA fs-cifs client). When I try to generate
a
static library, I get an error. If I transfer the files to the QNX
platform
it-self, the same operation works fine but locally.
Here is the result of the make command and the subsequent error:
(I try to build a library named mylib.a with one file psobject, note for
more than one file it the exactly the same problem, also of course the
file
mylib.a is not existing).

QCC -c -g -V gcc_ntox86 psobject.cc
QCC -A mylib psobject.o
a - psobject.o
/usr/ntox86/bin/ar: mylib.a: rename: File exists
cc: /usr/ntox86/bin/ar error 1
make: *** [mylib.a] Error 1

What’s wrong ?
I suspect there is a problem with ar and creation/modification date of
remote files.

Thanks,
A.R.