[Nickle] Bugreport 2 compiling errors on Mac Os X 10.3.6

Keith Packard keithp at keithp.com
Thu Dec 9 12:09:51 PST 2004


Around 14 o'clock on Dec 9, Martin Hoch wrote:

> i have detected two compiling problems on my mac.

Thanks very much for giving this a 
try.

>	In file included from main.c:25:
>	/usr/include/sys/resource.h:81: error: field `ru_utime' has incomplete type
>	/usr/include/sys/resource.h:82: error: field `ru_stime' has incomplete type
>	make[2]: *** [main.o] Error 1

Can you try adding

	#include <sys/time.h>

above the line which says:

	#include <sys/resource.h>

in main.c?  The documentation for getrlimit/setrlimit says that this 
include is necessary, and I note that nickle doesn't include it.

>	main.c: In function `main':
>	main.c:80: error: storage size of `lim' isn't known
>	main.c:82: warning: implicit declaration of function `getrlimit'
>	main.c:82: error: `RLIMIT_STACK' undeclared (first use in this 

That's caused by the first structure definition getting broken by the 
first problem.  Fixing that should solve both problems at once.

-keith


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
Url : /pipermail/nickle/attachments/20041209/b689c08f/attachment.pgp


More information about the Nickle mailing list