Hi,

Nmon 14i fails to complile under ARM raspberry pi (Raspbian GNU/Linux 7 wheezy)

I followed instructions in txt file joined with pre-compiled 14g version with no success.

Output KO for 14i:

make nmon_pi
cc -o nmon_pi lmon.c -g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM -lncursesw -g
lmon.c: In function ‘main’:
lmon.c:4349:42: error: ‘vendor_ptr’ undeclared (first use in this function)
lmon.c:4349:42: note: each undeclared identifier is reported only once for each         function it appears in
lmon.c:4349:54: error: ‘model_ptr’ undeclared (first use in this function)
lmon.c:4350:54: error: ‘mhz_ptr’ undeclared (first use in this function)
lmon.c:4350:62: error: ‘bogo_ptr’ undeclared (first use in this function)
lmon.c:4351:4: error: ‘processorchips’ undeclared (first use in this function)
lmon.c:4351:22: error: ‘cores’ undeclared (first use in this function)
lmon.c:4351:31: error: ‘hyperthreads’ undeclared (first use in this function)
make: *** [nmon_pi] Erreur 1

Nmon 14h/g compiles with success using same instructions:

Output OK for 14h:

make nmon_pi
cc -o nmon_pi lmon.c -g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM -lncursesw -g
lmon.c: In function ‘main’:
lmon.c:3501:11: warning: variable ‘padlpar’ set but not used [-Wunused-but-set-    variable]
lmon.c:3489:11: warning: variable ‘padres’ set but not used [-Wunused-but-set-variable]
lmon.c:3483:6: warning: variable ‘room’ set but not used [-Wunused-but-set-variable]
lmon.c:3475:6: warning: variable ‘disk_stats_read’ set but not used [-Wunused-but-set-variable]
lmon.c:3437:8: warning: var`iable ‘firstproc’ set but not used [-Wunused-but-set-variable]

Instructions are:

# Instructions for compiling the lmon14g.c code for Raspberry Pi
# No code changes are needed
#
# See www.raspberrypi.org - for the platform information
#
# Get the developer package for ncurses
# sudo apt-get install libncursesw5-dev
#
# Not sure the next one is needed or if the package was there already
# sudo apt-get install libncursesw5
# 
# Link the ncurses header file to the regular filename
# sudo  cp /usr/include/ncurses*/ncurses.h /usr/include
#
# Below is the makefile
# ---------------------

# NOTE: link the curent working copy of the code to lmon.c for compiling

CFLAGS=-g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM
LDFLAGS=-lncursesw -g
FILE=lmon.c

nmon_pi:  $(FILE)

cc -o nmon_pi $(FILE) $(CFLAGS) `$(LDFLAGS)

#----------------------
# Then just use: 
 make nmon_pi

Thank you for any suggestions.

Guilhem