kritical@strongbad:~/Desktop/netflowd-0.2$ make
gcc -c -g -Wall netflow-v9.c -o netflow-v9.o
netflow-v9.c:49:1: warning: "/*" within comment
netflow-v9.c:57: warning: ‘struct store_flow_complete’ declared inside parameter list
netflow-v9.c:57: warning: its scope is only this definition or declaration, which is probably not what you want
netflow-v9.c:57: warning: ‘struct peer_nf9_record’ declared inside parameter list
netflow-v9.c: In function ‘nf9_rec_to_flow’:
netflow-v9.c:60: error: dereferencing pointer to incomplete type
netflow-v9.c: In function ‘nf9_check_rec_len’:
netflow-v9.c:116: error: storage size of ‘t’ isn’t known
netflow-v9.c:116: warning: unused variable ‘t’
netflow-v9.c: At top level:
netflow-v9.c:164: warning: ‘struct store_flow_complete’ declared inside parameter list
netflow-v9.c:164: warning: ‘struct peer_nf9_template’ declared inside parameter list
netflow-v9.c:164: warning: ‘struct xaddr’ declared inside parameter list
netflow-v9.c: In function ‘nf9_flowset_to_store’:
netflow-v9.c:168: error: dereferencing pointer to incomplete type
netflow-v9.c:171: error: dereferencing pointer to incomplete type
netflow-v9.c:173: error: dereferencing pointer to incomplete type
netflow-v9.c:173: error: ‘STORE_FIELD_RECV_TIME’ undeclared (first use in this function)
netflow-v9.c:173: error: (Each undeclared identifier is reported only once
netflow-v9.c:173: error: for each function it appears in.)
netflow-v9.c:173: error: ‘STORE_FIELD_AGENT_INFO’ undeclared (first use in this function)
netflow-v9.c:174: error: ‘STORE_FIELD_AGENT_ADDR’ undeclared (first use in this function)
netflow-v9.c:175: error: dereferencing pointer to incomplete type
netflow-v9.c:176: error: dereferencing pointer to incomplete type
netflow-v9.c:177: error: dereferencing pointer to incomplete type
netflow-v9.c:178: error: dereferencing pointer to incomplete type
netflow-v9.c:179: error: dereferencing pointer to incomplete type
netflow-v9.c:179: warning: implicit declaration of function ‘htonl’
netflow-v9.c:180: error: dereferencing pointer to incomplete type
netflow-v9.c:181: error: dereferencing pointer to incomplete type
netflow-v9.c:182: error: dereferencing pointer to incomplete type
netflow-v9.c:182: error: dereferencing pointer to incomplete type
netflow-v9.c:185: error: dereferencing pointer to incomplete type
netflow-v9.c:191: error: dereferencing pointer to incomplete type
netflow-v9.c:191: warning: passing argument 2 of ‘nf9_rec_to_flow’ from incompatible pointer type
netflow-v9.c:192: error: dereferencing pointer to incomplete type
netflow-v9.c: At top level:
netflow-v9.c:199: warning: ‘struct peers’ declared inside parameter list
netflow-v9.c:199: warning: ‘struct peer_state’ declared inside parameter list
netflow-v9.c: In function ‘process_netflow_v9_template’:
netflow-v9.c:208: warning: implicit declaration of function ‘logit’
netflow-v9.c:216: error: dereferencing pointer to incomplete type
netflow-v9.c:218: warning: implicit declaration of function ‘addr_ntop_buf’
netflow-v9.c:218: error: dereferencing pointer to incomplete type
netflow-v9.c:223: warning: implicit declaration of function ‘ntohs’
netflow-v9.c:224: warning: implicit declaration of function ‘logerrx’
netflow-v9.c:227: error: dereferencing pointer to incomplete type
netflow-v9.c:240: error: dereferencing pointer to incomplete type
netflow-v9.c:247: error: dereferencing pointer to incomplete type
netflow-v9.c:251: error: dereferencing pointer to incomplete type
netflow-v9.c:257: error: invalid use of undefined type ‘struct peer_nf9_record’
netflow-v9.c:257: error: dereferencing pointer to incomplete type
netflow-v9.c:258: error: invalid use of undefined type ‘struct peer_nf9_record’
netflow-v9.c:258: error: dereferencing pointer to incomplete type
netflow-v9.c:264: error: invalid use of undefined type ‘struct peer_nf9_record’
netflow-v9.c:264: error: dereferencing pointer to incomplete type
netflow-v9.c:265: error: dereferencing pointer to incomplete type
netflow-v9.c:267: error: dereferencing pointer to incomplete type
netflow-v9.c:271: error: dereferencing pointer to incomplete type
netflow-v9.c:272: error: dereferencing pointer to incomplete type
netflow-v9.c:276: error: invalid use of undefined type ‘struct peer_nf9_record’
netflow-v9.c:276: error: dereferencing pointer to incomplete type
netflow-v9.c:276: error: invalid use of undefined type ‘struct peer_nf9_record’
netflow-v9.c:276: error: dereferencing pointer to incomplete type
netflow-v9.c:278: error: dereferencing pointer to incomplete type
netflow-v9.c:282: error: dereferencing pointer to incomplete type
netflow-v9.c:283: error: invalid use of undefined type ‘struct peer_nf9_record’
netflow-v9.c:283: error: dereferencing pointer to incomplete type
netflow-v9.c:283: error: invalid use of undefined type ‘struct peer_nf9_record’
netflow-v9.c:283: error: dereferencing pointer to incomplete type
netflow-v9.c:290: warning: implicit declaration of function ‘peer_nf9_find_template’
netflow-v9.c:290: warning: assignment makes pointer from integer without a cast
netflow-v9.c:292: warning: implicit declaration of function ‘peer_nf9_new_template’
netflow-v9.c:293: warning: assignment makes pointer from integer without a cast
netflow-v9.c:296: error: dereferencing pointer to incomplete type
netflow-v9.c:297: error: dereferencing pointer to incomplete type
netflow-v9.c:299: error: dereferencing pointer to incomplete type
netflow-v9.c:300: error: dereferencing pointer to incomplete type
netflow-v9.c:301: error: dereferencing pointer to incomplete type
netflow-v9.c: At top level:
netflow-v9.c:310: warning: ‘struct flowd_config’ declared inside parameter list
netflow-v9.c:310: warning: ‘struct peer_state’ declared inside parameter list
netflow-v9.c: In function ‘process_netflow_v9_data’:
netflow-v9.c:324: error: dereferencing pointer to incomplete type
netflow-v9.c:326: error: dereferencing pointer to incomplete type
netflow-v9.c:334: warning: assignment makes pointer from integer without a cast
netflow-v9.c:335: error: dereferencing pointer to incomplete type
netflow-v9.c:337: error: dereferencing pointer to incomplete type
netflow-v9.c:342: error: dereferencing pointer to incomplete type
netflow-v9.c:346: error: dereferencing pointer to incomplete type
netflow-v9.c:351: error: dereferencing pointer to incomplete type
netflow-v9.c:355: error: dereferencing pointer to incomplete type
netflow-v9.c:359: error: dereferencing pointer to incomplete type
netflow-v9.c:360: error: dereferencing pointer to incomplete type
netflow-v9.c:361: error: invalid use of undefined type ‘struct store_flow_complete’
netflow-v9.c:361: error: dereferencing pointer to incomplete type
netflow-v9.c:361: warning: passing argument 6 of ‘nf9_flowset_to_store’ from incompatible pointer type
netflow-v9.c:362: error: dereferencing pointer to incomplete type
netflow-v9.c:365: error: dereferencing pointer to incomplete type
netflow-v9.c:370: error: dereferencing pointer to incomplete type
netflow-v9.c:375: warning: implicit declaration of function ‘process_flow’
netflow-v9.c:375: error: invalid use of undefined type ‘struct store_flow_complete’
netflow-v9.c:375: error: dereferencing pointer to incomplete type
netflow-v9.c: At top level:
netflow-v9.c:381: error: expected identifier or ‘(’ before ‘/’ token
make: *** [netflow-v9.o] Error 1
kritical@strongbad:~/Desktop/netflowd-0.2$