gcc problem: looks like you don’t have enough memory. How much memory do you have? thought QNX GNU tools is configured to use “swap”, but maybe that is just a plan from QSS. Add more memory and you should be ok.
The gcc issue must be in the file finger.c. It is possible that if you hvae binary data inside of the file that the C Pre-Processor could die or get into a cycle. Care to put the code online somewhere for others to look at?
As for the apache/php thing, the 3rd Party repository version (using the shared libphp4.so) has a problem. I am not sure if the version noc did links php into apache or uses it as a mod. You could either download his version or just use php as an external cgi handler as apposed to an internal mod.
The problem is that QNX doesn’t support normal swap becuase of restrictions placed in realtime environment (swap has an unbounded latency). gcc needs a large amount of RAM to run. So gcc can choke on it.
You can see how much ram is free by using command “pidin info”
PS. (my view) The QNX desktop version is meant more for self-hosted development to be carried out in sufficiently resourceful environment.
Yes, gcc and ld both use swap. In fact, that hack for swap on x86/Neutrino was added in purly to get the GNU toolchain working.
However, gcc only uses a lot of memory when you enable optimizations. To me this sounds more liike a corrupt install. I have run gcc just fine on machines with only 64M of memory.
Zoli - could you please post the output from “gcc -v”? As for the test issue, you are making a very common UNIX newbie error. First, . isn’t in your path (current dir) and test is a built-in shell command. So you are not actually running your program. Try doing…
Zoli - I just noticed your code says mail() and not main(). Is that just a typo on your part? Otherwise, I can only assume this is a corrupt install, having never once seen or heard this issue with anyone running QNX in the past 3 years.