Jari Häkkinen wrote: > Hm, this was a tricky one. What OS are you compiling on? A inital guess > is that the compiler cannot find the definition for 'rlimit'. >> >> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DJOBRUNNER_USER_UID=507 >> -DBASE_USER_UID=507 -Wall -march=i686 -O3 -c -o jobRunner-jobRunner.o >> `test -f 'jobRunner.c' || echo './'`jobRunner.c >> jobRunner.c: In function `main': >> jobRunner.c:96: parse error before `struct'
I'd think the error was before that (it says _before_ 'struct'), possibly caused by line 94, but I can't see how that line could produce anything worse than an "undefined function" error, and then that'd happen already on line 94. And I can't see how an error could be caused by an even earlier line and go unnoticed that far. But... AHH! Got it! The compiler is so old that it doesn't know that you can declare variables in a block of code (rather than only at the start of the function). This was introduced into C with the C99 standard six years ago, and GCC 2.95 doesn't support it. I take it everyone else uses GCC 3.x or 4.x. But it's an easy thing to fix, so I'll do it right away. Osvid, I'll send you the updated jobRunner.c off the mailing list (not that it's very big, but still). //Carl -- Carl Troein - [EMAIL PROTECTED] http://www.thep.lu.se/~carl/ BASE developer - http://base.thep.lu.se/ ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ The BASE general discussion mailing list basedb-users@lists.sourceforge.net unsubscribe: send a mail with subject "unsubscribe" to [EMAIL PROTECTED]