We’re trying to compile a rather large program using a dozens of static
librairies (the final executable is over 1MB) on QNX6.1a and we’re
having some problems running our executable.
We seems to have isolated the problem with compiling on NFS since
compiling on the local hard drive works. Also, rebooting between the
compiling and the running seems to temporarily solve the problem.
The thing is, we thought we had solved the problem by using g++ instead
of QCC, but it has reappeared…
We’re trying to compile a rather large program using a dozens of static
librairies (the final executable is over 1MB) on QNX6.1a and we’re
having some problems running our executable.
We seems to have isolated the problem with compiling on NFS since
compiling on the local hard drive works. Also, rebooting between the
compiling and the running seems to temporarily solve the problem.
The thing is, we thought we had solved the problem by using g++ instead
of QCC, but it has reappeared…
Did you compile did for the right target? I’m seeing this error if ie.
I’m trying to run shle binary on my x86 box. (what do you get from “file smServer”?)
Regards,
Marcin
With g++ (after correcting /usr/lib/gcc-lib/ntox86/2.95.2/specs):
Ricky Ng-Adam <ng-adam.ricky@ireq.ca> wrote:
: Hello!
:
: We’re trying to compile a rather large program using a dozens of static
: librairies (the final executable is over 1MB) on QNX6.1a and we’re
: having some problems running our executable.
:
: We seems to have isolated the problem with compiling on NFS since
: compiling on the local hard drive works. Also, rebooting between the
: compiling and the running seems to temporarily solve the problem.
:
: The thing is, we thought we had solved the problem by using g++ instead
: of QCC, but it has reappeared…
:
: With QCC:
:
: $ …/bin/QNX6/Pentium/smServer
: …/bin/QNX6/Pentium/smServer[1]: syntax error: (' unexpected : : With g++ (after correcting /usr/lib/gcc-lib/ntox86/2.95.2/specs): : : $ ../bin/QNX6/Pentium/smServer : ../bin/QNX6/Pentium/smServer[1]: syntax error: ¯^D^H4p¹^M4’ unexpected
:
: Has anyone ever seen this?
Yes, I understand that the NFS daemon in Qnx6.1a attempts to keep track
of files based on an inode descriptor. Managed to get a new NFS daemon
from QNX which fixed the problem. I suspect that the problem is fixed
in Qnx6.2.
The problem would primarily appear after compiling - the inode of a binary
would have changed. Which makes sense. An easy way to verify is by
checking the usage message for the binary. The result is that files are
cross-linked.
use
You see that might link to and display the usage
message for that program.
use
Might linke to etc.
Hope this helps,
John O’Grady
Avvida Systems Incorporated.
:
: Thanks!
:
: –
: Ricky Ng-Adam, stagiaire laboratoire de robotique
: (450) 652-8499 x 2757, local BR0.50
: Hydro-Québec, Montréal, Canada
Yes, I understand that the NFS daemon in Qnx6.1a attempts to keep track
of files based on an inode descriptor. Managed to get a new NFS daemon
from QNX which fixed the problem. I suspect that the problem is fixed
in Qnx6.2.
The problem would primarily appear after compiling - the inode of a binary
would have changed. Which makes sense. An easy way to verify is by
checking the usage message for the binary. The result is that files are
cross-linked.
Well, I think that you’ve pointed out the correct problem; I could
easily demonstrate it to myself by restarting the NFS daemon…
$ file …/bin/QNX6/Pentium/smServer
…/bin/QNX6/Pentium/smServer: ELF 32-bit LSB executable, Intel 80386,
version 1, statically linked, not stripped
$ …/bin/QNX6/Pentium/smServer
…/bin/QNX6/Pentium/smServer[1]: syntax error: `¯^D^H4^P$[^M4’
unexpected
$ su