Trying to compile xosview


#1

After git pulling i get this error message during compilation

/usr/ports/sysutils/xosview# make install clean===> Building for xosview-1.17_1
gmake[1]: Entering directory '/usr/ports/sysutils/xosview/work/xosview-1.17’
c++ -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include -I. -MMD -Ibsd/ -c -o bsd/kernel.o bsd/kernel.cc
c++ -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include -I. -MMD -Ibsd/ -c -o bsd/netmeter.o bsd/netmeter.cc
bsd/kernel.cc:324:17: error: variable has incomplete type 'struct vmmeter’
struct vmmeter vm;
^
bsd/kernel.cc:324:9: note: forward declaration of 'vmmeter’
struct vmmeter vm;
^
1 error generated.
gmake[1]: *** [: bsd/kernel.o] Error 1
gmake[1]: *** Waiting for unfinished jobs…
gmake[1]: Leaving directory ‘/usr/ports/sysutils/xosview/work/xosview-1.17’
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/xosview


Another try :

/usr/ports/sysutils/xosview# make MAKE_JOBS_UNSAFE=yes install clean
===> Building for xosview-1.17_1
gmake[1]: Entering directory '/usr/ports/sysutils/xosview/work/xosview-1.17’
c++ -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include -I. -MMD -Ibsd/ -c -o bsd/kernel.o bsd/kernel.cc
bsd/kernel.cc:324:17: error: variable has incomplete type 'struct vmmeter’
struct vmmeter vm;
^
bsd/kernel.cc:324:9: note: forward declaration of 'vmmeter’
struct vmmeter vm;
^
1 error generated.
gmake[1]: *** [: bsd/kernel.o] Error 1
gmake[1]: Leaving directory ‘/usr/ports/sysutils/xosview/work/xosview-1.17’
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/xosview


#2

There’s likely an include missing somewhere, a busted port. In kernel.c look for a #include <sys/vmmeter.h>