This is possibly not the right group - my first post to qdn.public…
I am using a set of perl scripts to build modules for our qnx box. A
couple modules fail the build because I get an ‘unknown’ error from Perl’s
copy() function when it tries to copy these modules to another location. I
am using the File::Copy package and Perl 5.6.0.
Hm… I don’t know much about Perl, so I really don’t know what the
unknown error means – if it were C, that would be an errno the library
decoding errno’s doesn’t recognise.
The script build over 20 modules, but consistently fails to copy the same
two modules - all others are fine. These two modules are library modules
so no special files
Simple libraries, or shared objects? (.so extension)?
What are the actual source & destination strings?
If you try a manual cp of the files, what happens? What if you do the
manual cp of the files with the -v option, what does it say?
What type of filesystem is the target file system? Normal disk,
DOS, Flash, something else?
Instead of using copy() I used the system command with cp here I got error
The return from the C library system() is a exit status, to be looked at
using the WIFEXITED() and WEXITSTATUS() macros from <sys/wait.h>. 256
happens to be exited, returned 1. This means cp failed, but cp doesn’t
return much more information in its exit status – though usually if
something has gone wrong, it will spit out a text message as to what
did go wrong.
Anyhow, this has got me puzzled. Can anyone shed light…
No direct light…but maybe some ideas as to how to shine the flashlight
closer to the object that is hiding…
QNX Training Services
Please followup in this newsgroup if you have further questions.