Hello,
A build on FreeBSD 8.0 fails as given below.
It seems the sought file /usr/include/nfs/rpcv2.h does missing in 8.0.
Any help appreciated!
Zsolt
jni-cc:
[mkdir] Created dir: /usr/home/kuti/tmp/hyperic-sigar-1.6.3-src/bindings/java/build/obj/x86-freebsd-8/lib
[echo] jni libname=sigar-x86-freebsd-8
[cc] 11 total files to be compiled.
[cc] /usr/home/kuti/tmp/hyperic-sigar-1.6.3-src/src/os/darwin/darwin_sigar.c:26:23: error: nfs/rpcv2.h: No such file or directory
[cc] In file included from /usr/include/sys/systm.h:42,
[cc] from /usr/include/sys/refcount.h:38,
[cc] from /usr/include/sys/file.h:42,
[cc] from /usr/home/kuti/tmp/hyperic-sigar-1.6.3-src/src/os/darwin/darwin_sigar.c:3152:
[cc] /usr/include/machine/cpufunc.h:161: error: static declaration of 'ffs' follows non-static declaration
[cc] /usr/include/machine/cpufunc.h:175: error: static declaration of 'fls' follows non-static declaration
[cc] /usr/include/strings.h:52: error: previous declaration of 'fls' was here
[cc] In file included from /usr/include/sys/refcount.h:38,
[cc] from /usr/include/sys/file.h:42,
[cc] from /usr/home/kuti/tmp/hyperic-sigar-1.6.3-src/src/os/darwin/darwin_sigar.c:3152:
[cc] /usr/include/sys/systm.h:229: error: expected declaration specifiers or '...' before 'uintfptr_t'
[cc] /usr/include/sys/systm.h:233: error: expected declaration specifiers or '...' before 'uintfptr_t'
[cc] /usr/include/sys/systm.h:252: error: conflicting types for 'setenv'
[cc] /usr/include/stdlib.h:162: error: previous declaration of 'setenv' was here
[cc] In file included from /usr/include/sys/systm.h:267,
[cc] from /usr/include/sys/refcount.h:38,
[cc] from /usr/include/sys/file.h:42,
[cc] from /usr/home/kuti/tmp/hyperic-sigar-1.6.3-src/src/os/darwin/darwin_sigar.c:3152:
[cc] /usr/include/sys/libkern.h:69: error: static declaration of 'abs' follows non-static declaration
[cc] /usr/include/sys/libkern.h:70: error: static declaration of 'labs' follows non-static declaration
[cc] /usr/include/sys/libkern.h:93: error: conflicting types for 'gets'
[cc] /usr/include/stdio.h:253: error: previous declaration of 'gets' was here
[cc] /usr/include/sys/libkern.h:100: error: conflicting types for 'random'
[cc] /usr/include/stdlib.h:207: error: previous declaration of 'random' was here
[cc] /usr/include/sys/libkern.h:111: error: conflicting types for 'strdup'
[cc] /usr/include/sys/libkern.h:149: error: static declaration of 'memset' follows non-static declaration
[cc] /usr/include/sys/libkern.h:167: error: static declaration of 'strchr' follows non-static declaration
[cc] /usr/include/sys/libkern.h:173: error: static declaration of 'strrchr' follows non-static declaration
[cc] In file included from /usr/include/sys/refcount.h:38,
[cc] from /usr/include/sys/file.h:42,
[cc] from /usr/home/kuti/tmp/hyperic-sigar-1.6.3-src/src/os/darwin/darwin_sigar.c:3152:
[cc] /usr/include/sys/systm.h:290: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splbio'
[cc] /usr/include/sys/systm.h:291: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splcam'
[cc] /usr/include/sys/systm.h:292: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splclock'
[cc] /usr/include/sys/systm.h:293: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splhigh'
[cc] /usr/include/sys/systm.h:294: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splimp'
[cc] /usr/include/sys/systm.h:295: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splnet'
[cc] /usr/include/sys/systm.h:296: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsoftcam'
[cc] /usr/include/sys/systm.h:297: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsoftclock'
[cc] /usr/include/sys/systm.h:298: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsofttty'
[cc] /usr/include/sys/systm.h:299: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsoftvm'
[cc] /usr/include/sys/systm.h:300: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsofttq'
[cc] /usr/include/sys/systm.h:301: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splstatclock'
[cc] /usr/include/sys/systm.h:302: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'spltty'
[cc] /usr/include/sys/systm.h:303: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splvm'
[cc] /usr/include/sys/systm.h:304: error: expected ')' before 'ipl'
[cc] /usr/include/sys/systm.h:316: error: conflicting types for 'pause'
[cc] /usr/include/unistd.h:357: error: previous declaration of 'pause' was here
BUILD FAILED
/usr/home/kuti/tmp/hyperic-sigar-1.6.3-src/bindings/java/hyperic_jni/jni-build.xml:234: The following error occurred while executing this line:
/usr/home/kuti/tmp/hyperic-sigar-1.6.3-src/bindings/java/hyperic_jni/jni-build.xml:280: gcc failed with return code 1