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

 

     [snips-users] Problem building snips on Solaris 8

Hi

I get these errors when I run make. I have installed GNU make, Bison, and m4 from Sunfreeware.

Expect 13 shift/reduce conflicts from bison -y :
bison -y getdate.y
conflicts: 13 shift/reduce
make[1]: *** [getdate.o] Broken Pipe

ld: fatal: library -lsnips: not found
ld: fatal: File processing errors. No output written to display_snips_datafile



How do I fix this?. Thanks.





BUILDING SNIPS revision 1.1 for SunOS 5.8


MAKING IN lib
----------
make[1]: Entering directory `/temp/snips-1.1/lib'
Expect 13 shift/reduce conflicts from bison -y :
bison -y getdate.y
conflicts: 13 shift/reduce
make[1]: *** [getdate.o] Broken Pipe
make[1]: Leaving directory `/temp/snips-1.1/lib'

MAKING IN utility
----------
make[1]: Entering directory `/temp/snips-1.1/utility'
gcc -O -DSNIPS -DSUNOS5 -I/temp/snips-1.1/include display_snips_datafile.o -L/temp/snips-1.1/lib -lsocket -lnsl -lresolv -lsnips -o display_snips_datafile
ld: fatal: library -lsnips: not found
ld: fatal: File processing errors. No output written to display_snips_datafile
collect2: ld returned 1 exit status
make[1]: *** [display_snips_datafile] Error 1
make[1]: Leaving directory `/temp/snips-1.1/utility'


MAKING IN etherload
----------
make[1]: Entering directory `/temp/snips-1.1/etherload'
gcc -o etherload -O -DSNIPS -DSUNOS5 -I/temp/snips-1.1/include bpf.o etherload.o dlpi.o main.o nit.o pfilt.o snoop.o linux.o util.o snips_specific.o get_devlist.o -L/temp/snips-1.1/lib -lsocket -lnsl -lresolv -lsnips
ld: fatal: library -lsnips: not found
ld: fatal: File processing errors. No output written to etherload
collect2: ld returned 1 exit status
make[1]: *** [etherload] Error 1
make[1]: Leaving directory `/temp/snips-1.1/etherload'


MAKING IN snipslog
----------
make[1]: Entering directory `/temp/snips-1.1/snipslog'
gcc -O -DSNIPS -DSUNOS5 -I/temp/snips-1.1/include snipslogd.o -L/temp/snips-1.1/lib -lsocket -lnsl -lresolv -lsnips -o snipslogd
ld: fatal: library -lsnips: not found
ld: fatal: File processing errors. No output written to snipslogd
collect2: ld returned 1 exit status
make[1]: *** [snipslogd] Error 1
make[1]: Leaving directory `/temp/snips-1.1/snipslog'


MAKING IN nsmon
----------
make[1]: Entering directory `/temp/snips-1.1/nsmon'
gcc -O -DSNIPS -DSUNOS5 -I/temp/snips-1.1/include main.o nsmon.o -L/temp/snips-1.1/lib -lsocket -lnsl -lresolv -lsnips -o nsmon
ld: fatal: library -lsnips: not found
ld: fatal: File processing errors. No output written to nsmon
collect2: ld returned 1 exit status
make[1]: *** [nsmon] Error 1
make[1]: Leaving directory `/temp/snips-1.1/nsmon'


MAKING IN ntpmon
----------
make[1]: Entering directory `/temp/snips-1.1/ntpmon'
gcc -O -DSNIPS -DSUNOS5 -I/temp/snips-1.1/include main.o ntpmon.o -L/temp/snips-1.1/lib -lsocket -lnsl -lresolv -lsnips -o ntpmon
ld: fatal: library -lsnips: not found
ld: fatal: File processing errors. No output written to ntpmon
collect2: ld returned 1 exit status
make[1]: *** [ntpmon] Error 1
make[1]: Leaving directory `/temp/snips-1.1/ntpmon'


MAKING IN pingmon
----------
make[1]: Entering directory `/temp/snips-1.1/pingmon'
gcc -O -DSNIPS -DSUNOS5 -I/temp/snips-1.1/include main.o pingmon.o -L/temp/snips-1.1/lib -lsocket -lnsl -lresolv -lsnips -o pingmon
ld: fatal: library -lsnips: not found
ld: fatal: File processing errors. No output written to pingmon
collect2: ld returned 1 exit status
make[1]: *** [pingmon] Error 1
make[1]: Leaving directory `/temp/snips-1.1/pingmon'


MAKING IN portmon
----------
make[1]: Entering directory `/temp/snips-1.1/portmon'
gcc -O -DSNIPS -DSUNOS5 -I/temp/snips-1.1/include main.o portmon.o -L/temp/snips-1.1/lib -lsocket -lnsl -lresolv -lsnips -o portmon
ld: fatal: library -lsnips: not found
ld: fatal: File processing errors. No output written to portmon
collect2: ld returned 1 exit status
make[1]: *** [portmon] Error 1
make[1]: Leaving directory `/temp/snips-1.1/portmon'


MAKING IN radiusmon
----------
make[1]: Entering directory `/temp/snips-1.1/radiusmon'
gcc -O -DSNIPS -DSUNOS5 -I/temp/snips-1.1/include main.o radiusmon.o md5.o -L/temp/snips-1.1/lib -lsocket -lnsl -lresolv -lsnips -o radiusmon
ld: fatal: library -lsnips: not found
ld: fatal: File processing errors. No output written to radiusmon
collect2: ld returned 1 exit status
make[1]: *** [radiusmon] Error 1
make[1]: Leaving directory `/temp/snips-1.1/radiusmon'


MAKING IN perl-monitors
----------
make[1]: Entering directory `/temp/snips-1.1/perl-monitors'
Making snmpwalk under /temp/snips-1.1/cmu-snmp/snmpapps
loading cache ./config.cache
-r
solaris2.8 ld.so
creating libtool
configure: error: Could not locate CMU SNMP Libraries!
make[2]: Entering directory `/temp/snips-1.1/cmu-snmp/snmpapps'
gcc snmpwalk.c -o snmpwalk
snmpwalk.c:61:23: snmp/snmp.h: No such file or directory
snmpwalk.c:66: parse error before "objid_mib"
snmpwalk.c:66: warning: data definition has no type or storage class
snmpwalk.c: In function `main':
snmpwalk.c:94: storage size of `session' isn't known
snmpwalk.c:101: `oid' undeclared (first use in this function)
snmpwalk.c:101: (Each undeclared identifier is reported only once
snmpwalk.c:101: for each function it appears in.)
snmpwalk.c:101: parse error before "name"
snmpwalk.c:103: parse error before "root"
snmpwalk.c:107: `SNMP_DEFAULT_REMPORT' undeclared (first use in this function)
snmpwalk.c:108: `SNMP_DEFAULT_RETRIES' undeclared (first use in this function)
snmpwalk.c:109: `SNMP_DEFAULT_TIMEOUT' undeclared (first use in this function)
snmpwalk.c:110: `SNMP_VERSION_1' undeclared (first use in this function)
snmpwalk.c:139: `SNMP_VERSION_2' undeclared (first use in this function)
snmpwalk.c:161: `MAX_NAME_LEN' undeclared (first use in this function)
snmpwalk.c:162: `root' undeclared (first use in this function)
snmpwalk.c:180: sizeof applied to an incomplete type
snmpwalk.c:189: warning: assignment makes pointer from integer without a cast
snmpwalk.c:195: `name' undeclared (first use in this function)
snmpwalk.c:201: `SNMP_PDU_GETNEXT' undeclared (first use in this function)
snmpwalk.c:201: warning: assignment makes pointer from integer without a cast
snmpwalk.c:208: `STAT_TIMEOUT' undeclared (first use in this function)
snmpwalk.c:211: `STAT_SUCCESS' undeclared (first use in this function)
snmpwalk.c:217: dereferencing pointer to incomplete type
snmpwalk.c:217: `SNMP_ERR_NOERROR' undeclared (first use in this function)
snmpwalk.c:220: dereferencing pointer to incomplete type
snmpwalk.c:220: `SNMP_ERR_NOSUCHNAME' undeclared (first use in this function)
snmpwalk.c:226: dereferencing pointer to incomplete type
snmpwalk.c:229: dereferencing pointer to incomplete type
snmpwalk.c:230: dereferencing pointer to incomplete type
snmpwalk.c:231: dereferencing pointer to incomplete type
snmpwalk.c:236: dereferencing pointer to incomplete type
snmpwalk.c:237: dereferencing pointer to incomplete type
snmpwalk.c:252: dereferencing pointer to incomplete type
snmpwalk.c:252: dereferencing pointer to incomplete type
snmpwalk.c:254: dereferencing pointer to incomplete type
snmpwalk.c:254: `SMI_NOSUCHOBJECT' undeclared (first use in this function)
snmpwalk.c:256: dereferencing pointer to incomplete type
snmpwalk.c:257: dereferencing pointer to incomplete type
snmpwalk.c:261: dereferencing pointer to incomplete type
snmpwalk.c:261: `SMI_NOSUCHINSTANCE' undeclared (first use in this function)
snmpwalk.c:263: dereferencing pointer to incomplete type
snmpwalk.c:264: dereferencing pointer to incomplete type
snmpwalk.c:268: dereferencing pointer to incomplete type
snmpwalk.c:268: `SMI_ENDOFMIBVIEW' undeclared (first use in this function)
snmpwalk.c:270: dereferencing pointer to incomplete type
snmpwalk.c:271: dereferencing pointer to incomplete type
snmpwalk.c:279: dereferencing pointer to incomplete type
snmpwalk.c:280: dereferencing pointer to incomplete type
snmpwalk.c:287: dereferencing pointer to incomplete type
snmpwalk.c:288: dereferencing pointer to incomplete type
snmpwalk.c:289: dereferencing pointer to incomplete type
snmpwalk.c:294: dereferencing pointer to incomplete type
snmpwalk.c:294: dereferencing pointer to incomplete type
make[2]: *** [snmpwalk] Error 1
make[2]: Leaving directory `/temp/snips-1.1/cmu-snmp/snmpapps'
make[2]: Entering directory `/temp/snips-1.1/cmu-snmp/snmpapps'
gcc snmpget.c -o snmpget
snmpget.c:62:23: snmp/snmp.h: No such file or directory
snmpget.c: In function `main':
snmpget.c:97: storage size of `session' isn't known
snmpget.c:105: `oid' undeclared (first use in this function)
snmpget.c:105: (Each undeclared identifier is reported only once
snmpget.c:105: for each function it appears in.)
snmpget.c:105: parse error before "name"
snmpget.c:111: `SNMP_DEFAULT_REMPORT' undeclared (first use in this function)
snmpget.c:112: `SNMP_DEFAULT_RETRIES' undeclared (first use in this function)
snmpget.c:113: `SNMP_DEFAULT_TIMEOUT' undeclared (first use in this function)
snmpget.c:114: `SNMP_VERSION_1' undeclared (first use in this function)
snmpget.c:153: `SNMP_VERSION_2' undeclared (first use in this function)
snmpget.c:178: sizeof applied to an incomplete type
snmpget.c:187: warning: assignment makes pointer from integer without a cast
snmpget.c:193: `SNMP_PDU_GET' undeclared (first use in this function)
snmpget.c:193: warning: assignment makes pointer from integer without a cast
snmpget.c:196: `MAX_NAME_LEN' undeclared (first use in this function)
snmpget.c:197: `name' undeclared (first use in this function)
snmpget.c:206: `STAT_TIMEOUT' undeclared (first use in this function)
snmpget.c:209: `STAT_SUCCESS' undeclared (first use in this function)
snmpget.c:215: dereferencing pointer to incomplete type
snmpget.c:215: `SNMP_ERR_NOERROR' undeclared (first use in this function)
snmpget.c:219: dereferencing pointer to incomplete type
snmpget.c:222: dereferencing pointer to incomplete type
snmpget.c:222: `SNMP_ERR_NOSUCHNAME' undeclared (first use in this function)
snmpget.c:225: dereferencing pointer to incomplete type
snmpget.c:226: dereferencing pointer to incomplete type
snmpget.c:227: dereferencing pointer to incomplete type
snmpget.c:232: dereferencing pointer to incomplete type
snmpget.c:233: dereferencing pointer to incomplete type
snmpget.c:238: warning: assignment makes pointer from integer without a cast
snmpget.c:249: dereferencing pointer to incomplete type
snmpget.c:249: dereferencing pointer to incomplete type
snmpget.c:251: dereferencing pointer to incomplete type
snmpget.c:251: `SMI_NOSUCHOBJECT' undeclared (first use in this function)
snmpget.c:253: dereferencing pointer to incomplete type
snmpget.c:254: dereferencing pointer to incomplete type
snmpget.c:257: dereferencing pointer to incomplete type
snmpget.c:257: `SMI_NOSUCHINSTANCE' undeclared (first use in this function)
snmpget.c:259: dereferencing pointer to incomplete type
snmpget.c:260: dereferencing pointer to incomplete type
snmpget.c:263: dereferencing pointer to incomplete type
snmpget.c:263: `SMI_ENDOFMIBVIEW' undeclared (first use in this function)
snmpget.c:265: dereferencing pointer to incomplete type
snmpget.c:266: dereferencing pointer to incomplete type
snmpget.c:274: dereferencing pointer to incomplete type
snmpget.c:274: dereferencing pointer to incomplete type
snmpget.c:286: dereferencing pointer to incomplete type
snmpget.c:286: dereferencing pointer to incomplete type
make[2]: *** [snmpget] Error 1
make[2]: Leaving directory `/temp/snips-1.1/cmu-snmp/snmpapps'
make[1]: *** [snmpprogs] Error 2
make[1]: Leaving directory `/temp/snips-1.1/perl-monitors'


MAKING IN perl-module
----------
make[1]: Entering directory `/temp/snips-1.1/perl-module'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory `/temp/snips-1.1/perl-module'

MAKING IN snipstv
----------
make[1]: Entering directory `/temp/snips-1.1/snipstv'
gcc -O -DSNIPS -DSUNOS5 -I/temp/snips-1.1/include create_subwins.o do_filter.o help_page.o init.o main.o parse_user_input.o update_eventwin.o update_msgtitle.o update_msgwin.o update_promptwin.o update_title.o -L/temp/snips-1.1/lib -lsocket -lnsl -lresolv -lsnips -lcurses -ltermcap -o snipstv
ld: fatal: library -lsnips: not found
ld: fatal: File processing errors. No output written to snipstv
collect2: ld returned 1 exit status
make[1]: *** [snipstv] Error 1
make[1]: Leaving directory `/temp/snips-1.1/snipstv'


MAKING IN snipsweb
----------
make[1]: Entering directory `/temp/snips-1.1/snipsweb'
SNIPS Web Interface
Doing substitutions for PERL, ROOTDIR on:
snipsweb.cgi rrdgraph.cgi genweb.cgi genweb-filter.cgi snipsweb-confg updates webusers
make[1]: Leaving directory `/temp/snips-1.1/snipsweb'


MAKING IN tksnips
----------
make[1]: Entering directory `/temp/snips-1.1/tksnips'
gcc -O -DSNIPS -DSUNOS5 -I/temp/snips-1.1/include ndaemon.o -L/temp/snips-1.1/lib -lsocket -lnsl -lresolv -lsnips -o ndaemon
ld: fatal: library -lsnips: not found
ld: fatal: File processing errors. No output written to ndaemon
collect2: ld returned 1 exit status
make[1]: *** [ndaemon] Error 1
make[1]: Leaving directory `/temp/snips-1.1/tksnips'


MAKING IN tpmon
----------
make[1]: Entering directory `/temp/snips-1.1/tpmon'
gcc -O -DSNIPS -DSUNOS5 -I/temp/snips-1.1/include main.o tpmon.o -L/temp/snips-1.1/lib -lsocket -lnsl -lresolv -lsnips -o tpmon
ld: fatal: library -lsnips: not found
ld: fatal: File processing errors. No output written to tpmon
collect2: ld returned 1 exit status
make[1]: *** [tpmon] Error 1
make[1]: Leaving directory `/temp/snips-1.1/tpmon'


MAKING IN trapmon
----------
make[1]: Entering directory `/temp/snips-1.1/trapmon'
gcc -O -DSNIPS -DSUNOS5 -I/temp/snips-1.1/include -I/temp/snips-1.1/cmu-snmp/include -c trapmon.c
trapmon.c:91:23: snmp/snmp.h: No such file or directory
trapmon.c: In function `trap_description':
trapmon.c:116: `SNMP_TRAP_COLDSTART' undeclared (first use in this function)
trapmon.c:116: (Each undeclared identifier is reported only once
trapmon.c:116: for each function it appears in.)
trapmon.c:118: `SNMP_TRAP_WARMSTART' undeclared (first use in this function)
trapmon.c:120: `SNMP_TRAP_LINKDOWN' undeclared (first use in this function)
trapmon.c:122: `SNMP_TRAP_LINKUP' undeclared (first use in this function)
trapmon.c:124: `SNMP_TRAP_AUTHENTICATIONFAILURE' undeclared (first use in this function)
trapmon.c:126: `SNMP_TRAP_EGPNEIGHBORLOSS' undeclared (first use in this function)
trapmon.c:128: `SNMP_TRAP_ENTERPRISESPECIFIC' undeclared (first use in this function)
trapmon.c: In function `read_trap':
trapmon.c:160: warning: assignment makes pointer from integer without a cast
trapmon.c:165: dereferencing pointer to incomplete type
trapmon.c:166: dereferencing pointer to incomplete type
trapmon.c:171: storage size of `session' isn't known
trapmon.c:173: warning: assignment makes pointer from integer without a cast
trapmon.c:183: dereferencing pointer to incomplete type
trapmon.c:183: `TRP_REQ_MSG' undeclared (first use in this function)
trapmon.c:188: dereferencing pointer to incomplete type
trapmon.c:189: dereferencing pointer to incomplete type
trapmon.c:190: dereferencing pointer to incomplete type
trapmon.c:191: dereferencing pointer to incomplete type
trapmon.c:197: dereferencing pointer to incomplete type
trapmon.c:198: dereferencing pointer to incomplete type
trapmon.c:204: dereferencing pointer to incomplete type
trapmon.c:204: dereferencing pointer to incomplete type
trapmon.c:213: dereferencing pointer to incomplete type
trapmon.c:214: dereferencing pointer to incomplete type
trapmon.c:215: dereferencing pointer to incomplete type
trapmon.c:216: dereferencing pointer to incomplete type
trapmon.c:222: dereferencing pointer to incomplete type
trapmon.c:223: dereferencing pointer to incomplete type
trapmon.c:229: dereferencing pointer to incomplete type
trapmon.c:229: dereferencing pointer to incomplete type
trapmon.c:230: dereferencing pointer to incomplete type
trapmon.c:230: dereferencing pointer to incomplete type
trapmon.c:239: dereferencing pointer to incomplete type
trapmon.c:243: dereferencing pointer to incomplete type
trapmon.c:253: dereferencing pointer to incomplete type
trapmon.c:253: `SNMP_PDU_V2TRAP' undeclared (first use in this function)
trapmon.c:258: dereferencing pointer to incomplete type
trapmon.c:259: dereferencing pointer to incomplete type
trapmon.c:259: dereferencing pointer to incomplete type
trapmon.c:268: dereferencing pointer to incomplete type
trapmon.c:269: dereferencing pointer to incomplete type
trapmon.c:269: dereferencing pointer to incomplete type
trapmon.c:270: dereferencing pointer to incomplete type
trapmon.c:270: dereferencing pointer to incomplete type
trapmon.c:279: dereferencing pointer to incomplete type
trapmon.c:283: dereferencing pointer to incomplete type
trapmon.c:294: dereferencing pointer to incomplete type
trapmon.c: In function `main':
trapmon.c:364: `SNMP_TRAP_PORT' undeclared (first use in this function)
make[1]: *** [trapmon.o] Error 1
make[1]: Leaving directory `/temp/snips-1.1/trapmon'


MAKING IN pingmon/multiping
----------
make[1]: Entering directory `/temp/snips-1.1/pingmon/multiping'
make[1]: `multiping' is up to date.
make[1]: Leaving directory `/temp/snips-1.1/pingmon/multiping'

MAKING IN pingmon/rpcping
----------
make[1]: Entering directory `/temp/snips-1.1/pingmon/rpcping'
make[1]: `rpcping' is up to date.
make[1]: Leaving directory `/temp/snips-1.1/pingmon/rpcping'

MAKING IN man
----------
make[1]: Entering directory `/temp/snips-1.1/man'
Building all in 'man'
make[1]: Leaving directory `/temp/snips-1.1/man'

Now run make install



_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



Zyrion Traverse Network Monitoring & Network Management Software