[Date Prev]   [Date Next] [Thread Prev]   [Thread Next] [Date Index]   [Thread Index]

 

     Compile Problems

Hello Everybody,

I'm not a Unix programmer or administrator, just a Unix user thats been using
nocol for going on three years now.  Well, I decided to upgrade to the latest and
greatest and ran into a compiling errors.  I've tried nocol versions 4.2.1 through
4.2.2beta2 and get the same results.  I'm running an Ultra with OS 2.5.1 and have 
tried the configure and make from user level and superuser level.

I go through the Configure process and then do a make and I end up with errors in 
MAKING IN etherload and MAKING IN netconsole that relate to curses.h.  I've 
included the errors below with the whole configure and make at the bottom.

	MAKING IN etherload
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  bpf.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  etherload.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  dlpi.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  main.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  nit.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  pfilt.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  snoop.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  linux.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  util.c
In file included from util.c:43:
/usr/include/curses.h:321: parse error before `__va_list'
/usr/include/curses.h:322: parse error before `__va_list'
*** Error code 1
make: Fatal error: Command failed for target `util.o'
Current working directory /usr/local/nocol/etherload

MAKING IN genmon
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  genmon.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include genmon.o -L/usr/local/nocol/lib -lnsl -lsocket -lresolv -lnocol  -o genmon

MAKING IN netconsole
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DDATADIR=\"/usr/local/nocol/data\" -DMSGSDIR=\"/usr/local/nocol/msgs\"  
-DHELPFILE=\"/usr/local/nocol/etc/netconsole-help\" -c  build_display.c
In file included from /usr/local/nocol/include/netconsole.h:18,
	         from build_display.c:59:
/usr/include/curses.h:321: parse error before `__va_list'
/usr/include/curses.h:322: parse error before `__va_list'
*** Error code 1
make: Fatal error: Command failed for target `build_display.o'
Current working directory /usr/local/nocol/netconsole


Could someone head me in the right direction.  Its something like a wrong path or
files in differnet areas, but its over my head.

Thank you for the help
Kurt Johnson
Minnesota Power



-----------------------------------------------------------------
# ./Configure

SET INSTALLATION DIRECTORY
 It is advisable to put all the NOCOL files under one directory
 tree with further sub-directories like bin/ etc/ lib/ man/
 This will allow easy upgrades and replacements of this software
 without leaving old unsed files lying around.

 However, the DATA and LOG directories will have files which are constantly
 updated by the monitors, and you might want to keep them separately under
 a VAR directory (or alternately create soft links to these directories).
Enter top level directory [/usr/local/nocol]: 
Enter location of man pages [/usr/local/nocol/man]: 
Enter extension for man pages [n]: 
               SELECT A LOGHOST
 The various monitors will log messages to a loghost. It might
 be useful to create a CNAME entry for nocol.your.domain...
Enter FULLY QUALIFIED name of your loghost [net]: net.mnpower.com

 NOCOL sends regular operational email messages when a device goes
 critical, etc. It is advised to create a "nocol-ops" email alias in
 your mail system.
 It also needs to send critical messages (in case of wrong directory
 permissions, etc.) - preferably to a system administrator. An email 
 alias such as "nocol-critical" sounds right.

Where is your MAIL program located? [/usr/ucb/mail] :
Where should the operational email go? [nocol-ops@net.mnpower.com] :
Where should urgent/critical email go? [nocol-crit@net.mnpower.com] :

Which compiler would you like to use? [cc]: gcc
What compiler options do you want (-DDEBUG)? [-O]: 
If using a yacc alternate, enter it here (bison -y) [yacc]: 
Where is PERL located on your system? [/usr/local/bin/perl]: 

Detecting operating system dependencies...
Saving all values in config.cache...
Editing various Makefiles...

Done editing Makefiles.

              Type   "make"  to start building  NOCOL

# make
BUILDING NOCOL revision 4.2.2beta2 for SunOS 5.5.1 

MAKING IN lib
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DETCDIR=\"/usr/local/nocol/etc\"  -DDATADIR=\"/usr/local/nocol/data\"  
-DPIDDIR=\"/usr/local/nocol/run\"   -DNLOG_HOST=\"net.mnpower.com\" -c  bsdsignal.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DETCDIR=\"/usr/local/nocol/etc\"  -DDATADIR=\"/usr/local/nocol/data\"  
-DPIDDIR=\"/usr/local/nocol/run\"   -DNLOG_HOST=\"net.mnpower.com\" -c  eventlog.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DETCDIR=\"/usr/local/nocol/etc\"  -DDATADIR=\"/usr/local/nocol/data\"  
-DPIDDIR=\"/usr/local/nocol/run\"   -DNLOG_HOST=\"net.mnpower.com\" -c  event_utils.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DETCDIR=\"/usr/local/nocol/etc\"  -DDATADIR=\"/usr/local/nocol/data\"  
-DPIDDIR=\"/usr/local/nocol/run\"   -DNLOG_HOST=\"net.mnpower.com\" -c  misc.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DETCDIR=\"/usr/local/nocol/etc\"  -DDATADIR=\"/usr/local/nocol/data\"  
-DPIDDIR=\"/usr/local/nocol/run\"   -DNLOG_HOST=\"net.mnpower.com\" -c  fgetline.c
Expect 13 shift/reduce conflicts from yacc : 
yacc getdate.y

conflicts: 13 shift/reduce
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -c y.tab.c -o getdate.o
/bin/rm -f libnocol.a
ld -r -o libnocol.a  bsdsignal.o eventlog.o event_utils.o misc.o  fgetline.o getdate.o
touch  libnocol.a
Created libnocol.a in /usr/local/nocol/lib
Making the CMU SNMP library under /usr/local/nocol/cmu-snmp
cd /usr/local/nocol/cmu-snmp/snmplib ; \
make CC="gcc" CFLAGS="-O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include" AR="ld -r -o" RANLIB="touch" \
        all install
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  snmp_client.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  snmp.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  snmp_auth.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  asn1.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  mib.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  parse.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  snmp_api.c
ld -r -o libsnmp.a snmp_client.o snmp.o snmp_auth.o asn1.o mib.o parse.o snmp_api.o
touch libsnmp.a
cp libsnmp.a ../lib
touch ../lib/libsnmp.a

MAKING IN eventselect
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  proc_datafile.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  eventselect.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include proc_datafile.o eventselect.o -L/usr/local/nocol/lib -lnsl -lsocket -lresolv 
-lnocol  -o eventselect

MAKING IN etherload
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  bpf.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  etherload.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  dlpi.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  main.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  nit.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  pfilt.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  snoop.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  linux.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  util.c
In file included from util.c:43:
/usr/include/curses.h:321: parse error before `__va_list'
/usr/include/curses.h:322: parse error before `__va_list'
*** Error code 1
make: Fatal error: Command failed for target `util.o'
Current working directory /usr/local/nocol/etherload

MAKING IN genmon
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  genmon.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include genmon.o -L/usr/local/nocol/lib -lnsl -lsocket -lresolv -lnocol  -o genmon

MAKING IN netconsole
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DDATADIR=\"/usr/local/nocol/data\" -DMSGSDIR=\"/usr/local/nocol/msgs\"  
-DHELPFILE=\"/usr/local/nocol/etc/netconsole-help\" -c  build_display.c
In file included from /usr/local/nocol/include/netconsole.h:18,
                 from build_display.c:59:
/usr/include/curses.h:321: parse error before `__va_list'
/usr/include/curses.h:322: parse error before `__va_list'
*** Error code 1
make: Fatal error: Command failed for target `build_display.o'
Current working directory /usr/local/nocol/netconsole

MAKING IN noclog
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DETCDIR=\"/usr/local/nocol/etc\" -DNLOG_HOST=\"net.mnpower.com\" -c  
noclogd.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include noclogd.o -L/usr/local/nocol/lib -lnsl -lsocket -lresolv -lnocol  -o noclogd

MAKING IN nsmon
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  main.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  nsmon.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include main.o nsmon.o -L/usr/local/nocol/lib -lnsl -lsocket -lresolv -lnocol  -o 
nsmon

MAKING IN ntpmon
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  main.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  ntpmon.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include main.o ntpmon.o -L/usr/local/nocol/lib -lnsl -lsocket -lresolv -lnocol  -o 
ntpmon

MAKING IN perlnocol
----------
Making snmpwalk under /usr/local/nocol/cmu-snmp/apps
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -I../include  -c  snmpwalk.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -I../include -o snmpwalk snmpwalk.o -lnsl -lsocket -lresolv  ../lib/libsnmp.a
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DTEST -c  show_nocol_struct_sizes.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  show_nocol_struct_sizes.o -L/usr/local/nocol/lib -lnsl -lsocket -lresolv 
-lnocol  -o show_nocol_struct_sizes
PERLNOCOL modules
 Doing substitutions for PERL, ROOTDIR, PIDDIR, NLOG_HOST, PING on: 
  apcmon  armon  bgpmon  bpmon  ciscomon  modemmon  novellmon  nrmon  nocollib.pl  hostmon  hostmon-osclients/hostmon-client  
snmpmon  snmpmon-client  syslogmon  rcisco  testlog

MAKING IN pingmon
----------
rm -f IFCpingmon
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DMULTIPING -DIPPING='"/usr/local/nocol/bin/multiping"' -c  pingmon.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DMULTIPING -DIPPING='"/usr/local/nocol/bin/multiping"' -c  poll_sites.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include pingmon.o poll_sites.o -L/usr/local/nocol/lib -lnsl -lsocket -lresolv -lnocol 
-DMULTIPING -DIPPING='"/usr/local/nocol/bin/multiping"' -o pingmon
 ======== Made IP version of pingmon ========

gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DMULTIPING -DOSIPING='"/usr/sunlink/bin/osiping"' -c  pingmon.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DMULTIPING -DOSIPING='"/usr/sunlink/bin/osiping"' -c  poll_sites.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include pingmon.o poll_sites.o -L/usr/local/nocol/lib -lnsl -lsocket -lresolv -lnocol 
-DMULTIPING -DOSIPING='"/usr/sunlink/bin/osiping"' -o pingmon
 ======== Made OSI version of pingmon ========

gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DMULTIPING -DRPCPING='"/usr/local/nocol/bin/rpcping"' -c  pingmon.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DMULTIPING -DRPCPING='"/usr/local/nocol/bin/rpcping"' -c  poll_sites.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include pingmon.o poll_sites.o -L/usr/local/nocol/lib -lnsl -lsocket -lresolv -lnocol 
-DMULTIPING -DRPCPING='"/usr/local/nocol/bin/rpcping"' -o pingmon
 ======== Made RPC version of pingmon ========


MAKING IN portmon
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  portmon.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include portmon.o -L/usr/local/nocol/lib -lnsl -lsocket -lresolv -lnocol -o portmon

MAKING IN radiusmon
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  main.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  radiusmon.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  md5.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include main.o radiusmon.o md5.o -L/usr/local/nocol/lib -lnsl -lsocket -lresolv 
-lnocol  -o radiusmon

MAKING IN tpmon
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  main.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  poll_sites.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  tpmon.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include main.o poll_sites.o tpmon.o -L/usr/local/nocol/lib -lnsl -lsocket -lresolv 
-lnocol -o tpmon

MAKING IN trapmon
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -I/usr/local/nocol/cmu-snmp/include -I/usr/local/nocol/cmu-snmp/snmplib -c  
trapmon.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include trapmon.o -L/usr/local/nocol/lib -lnsl -lsocket -lresolv -lnocol 
-L/usr/local/nocol/cmu-snmp/lib -lsnmp -o trapmon

MAKING IN utility
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include -DTEST -c  display_nocol_datafile.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  display_nocol_datafile.o -L/usr/local/nocol/lib -lnsl -lsocket -lresolv 
-lnocol  -o display_nocol_datafile
Doing substitutions for ROOTDIR, PIDDIR, OPSMAIL, MAIL, PSFLAGS on: 
 keepalive_monitors log-maint crontab.nocol notifier logstats docrypt.pl notifier.pl

MAKING IN webnocol
----------
NOCOL Web Interface
 Doing substitutions for PERL, ROOTDIR on: 
  genweb.pl  webnocol.cgi

MAKING IN doc
----------
Building all in 'doc'

MAKING IN support/multiping
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  multiping.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include multiping.o -lnsl -lsocket -lresolv -o multiping

MAKING IN support/rpcping
----------
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include  -c  rpcping.c
gcc -O -DNOCOL -DSUNOS5 -I/usr/local/nocol/include rpcping.o -lnsl -lsocket -lresolv -o rpcping
#