Błędy podczas kompilacji ewx*
Witam, Nigdy nie korzystałem z tych modulow, ale zauwazylem, ze sie nie buduja i chyba wypadaloby to poprawic :)
--- [ CIACH ] ---
make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-pt' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o ewx-pt.o ewx-pt.c In file included from ewx-pt.c:33:0: ewx-pt.h:37:1: error: unknown type name 'oid' ewx-pt.h:37:22: error: 'SNMP_OID_ENTERPRISES' undeclared here (not in a function) ewx-pt.h:38:1: error: unknown type name 'oid' ewx-pt.h:38:1: error: initializer element is not constant ewx-pt.h:38:1: error: (near initialization for 'UserNo[0]') ewx-pt.h:39:1: error: unknown type name 'oid' ewx-pt.h:39:1: error: initializer element is not constant ewx-pt.h:39:1: error: (near initialization for 'UserName[0]') ewx-pt.h:40:1: error: unknown type name 'oid' ewx-pt.h:40:1: error: initializer element is not constant ewx-pt.h:40:1: error: (near initialization for 'UserPassword[0]') ewx-pt.h:41:1: error: unknown type name 'oid' ewx-pt.h:41:1: error: initializer element is not constant ewx-pt.h:41:1: error: (near initialization for 'UserIpAddr[0]') ewx-pt.h:42:1: error: unknown type name 'oid' ewx-pt.h:42:1: error: initializer element is not constant ewx-pt.h:42:1: error: (near initialization for 'UserAllowedMacAddr[0]') ewx-pt.h:48:1: error: unknown type name 'oid' ewx-pt.h:48:1: error: initializer element is not constant ewx-pt.h:48:1: error: (near initialization for 'UsersTableSave[0]') ewx-pt.c: In function 'reload': ewx-pt.c:44:23: error: storage size of 'session' isn't known ewx-pt.c:202:9: error: request for member 'version' in something not a structure or union ewx-pt.c:202:21: error: 'SNMP_VERSION_2c' undeclared (first use in this function) ewx-pt.c:202:21: note: each undeclared identifier is reported only once for each function it appears in ewx-pt.c:203:9: error: request for member 'peername' in something not a structure or union ewx-pt.c:204:9: error: request for member 'remote_port' in something not a structure or union ewx-pt.c:206:9: error: request for member 'community' in something not a structure or union ewx-pt.c:207:9: error: request for member 'community_len' in something not a structure or union ewx-pt.c:210:5: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-pt.c:290:25: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-pt.c:290:7: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-pt.c:347:17: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-pt.c:347:14: warning: comparison between pointer and integer [enabled by default] ewx-pt.c:347:41: error: dereferencing pointer to incomplete type ewx-pt.c:347:41: error: request for member 'errstat' in something not a structure or union ewx-pt.c:347:54: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-pt.c:349:15: warning: comparison between pointer and integer [enabled by default] ewx-pt.c:350:142: error: dereferencing pointer to incomplete type ewx-pt.c:350:142: error: request for member 'errstat' in something not a structure or union ewx-pt.c:366:8: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-pt.c:385:10: error: dereferencing pointer to incomplete type ewx-pt.c:385:10: error: request for member 'variables' in something not a structure or union ewx-pt.c:395:13: warning: comparison between pointer and integer [enabled by default] ewx-pt.c:395:40: error: dereferencing pointer to incomplete type ewx-pt.c:395:40: error: request for member 'errstat' in something not a structure or union ewx-pt.c:438:14: warning: comparison between pointer and integer [enabled by default] ewx-pt.c:439:141: error: dereferencing pointer to incomplete type ewx-pt.c:439:141: error: request for member 'errstat' in something not a structure or union ewx-pt.c:454:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-pt.c:458:12: warning: comparison between pointer and integer [enabled by default] ewx-pt.c:458:39: error: dereferencing pointer to incomplete type ewx-pt.c:458:39: error: request for member 'errstat' in something not a structure or union ewx-pt.c:466:13: warning: comparison between pointer and integer [enabled by default] ewx-pt.c:467:117: error: dereferencing pointer to incomplete type ewx-pt.c:467:117: error: request for member 'errstat' in something not a structure or union make[2]: *** [ewx-pt.o] Error 1 make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-pt' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o ewx-stm.o ewx-stm.c In file included from ewx-stm.c:34:0: ewx-stm.h:107:1: error: unknown type name 'oid' ewx-stm.h:107:26: error: 'SNMP_OID_ENTERPRISES' undeclared here (not in a function) ewx-stm.h:108:1: error: unknown type name 'oid' ewx-stm.h:108:1: error: initializer element is not constant ewx-stm.h:108:1: error: (near initialization for 'CustomerNo[0]') ewx-stm.h:109:1: error: unknown type name 'oid' ewx-stm.h:109:1: error: initializer element is not constant ewx-stm.h:109:1: error: (near initialization for 'CustomerPathNo[0]') ewx-stm.h:110:1: error: unknown type name 'oid' ewx-stm.h:110:1: error: initializer element is not constant ewx-stm.h:110:1: error: (near initialization for 'CustomerChannelNo[0]') ewx-stm.h:111:1: error: unknown type name 'oid' ewx-stm.h:111:1: error: initializer element is not constant ewx-stm.h:111:1: error: (near initialization for 'CustomerIpAddr[0]') ewx-stm.h:112:1: error: unknown type name 'oid' ewx-stm.h:112:1: error: initializer element is not constant ewx-stm.h:112:1: error: (near initialization for 'CustomerMacAddr[0]') ewx-stm.h:113:1: error: unknown type name 'oid' ewx-stm.h:113:1: error: initializer element is not constant ewx-stm.h:113:1: error: (near initialization for 'CustomerMinSpeed[0]') ewx-stm.h:114:1: error: unknown type name 'oid' ewx-stm.h:114:1: error: initializer element is not constant ewx-stm.h:114:1: error: (near initialization for 'CustomerMaxSpeed[0]') ewx-stm.h:115:1: error: unknown type name 'oid' ewx-stm.h:115:1: error: initializer element is not constant ewx-stm.h:115:1: error: (near initialization for 'CustomerUpMinSpeed[0]') ewx-stm.h:116:1: error: unknown type name 'oid' ewx-stm.h:116:1: error: initializer element is not constant ewx-stm.h:116:1: error: (near initialization for 'CustomerUpMaxSpeed[0]') ewx-stm.h:117:1: error: unknown type name 'oid' ewx-stm.h:117:1: error: initializer element is not constant ewx-stm.h:117:1: error: (near initialization for 'CustomerDownMinSpeed[0]') ewx-stm.h:118:1: error: unknown type name 'oid' ewx-stm.h:118:1: error: initializer element is not constant ewx-stm.h:118:1: error: (near initialization for 'CustomerDownMaxSpeed[0]') ewx-stm.h:119:1: error: unknown type name 'oid' ewx-stm.h:119:1: error: initializer element is not constant ewx-stm.h:119:1: error: (near initialization for 'CustomerShare[0]') ewx-stm.h:120:1: error: unknown type name 'oid' ewx-stm.h:120:1: error: initializer element is not constant ewx-stm.h:120:1: error: (near initialization for 'CustomerHalfDuplex[0]') ewx-stm.h:123:1: error: unknown type name 'oid' ewx-stm.h:123:1: error: initializer element is not constant ewx-stm.h:123:1: error: (near initialization for 'ChannelStatus[0]') ewx-stm.h:124:1: error: unknown type name 'oid' ewx-stm.h:124:1: error: initializer element is not constant ewx-stm.h:124:1: error: (near initialization for 'ChannelNo[0]') ewx-stm.h:125:1: error: unknown type name 'oid' ewx-stm.h:125:1: error: initializer element is not constant ewx-stm.h:125:1: error: (near initialization for 'ChannelPathNo[0]') ewx-stm.h:126:1: error: unknown type name 'oid' ewx-stm.h:126:1: error: initializer element is not constant ewx-stm.h:126:1: error: (near initialization for 'ChannelUplink[0]') ewx-stm.h:127:1: error: unknown type name 'oid' ewx-stm.h:127:1: error: initializer element is not constant ewx-stm.h:127:1: error: (near initialization for 'ChannelDownlink[0]') ewx-stm.h:128:1: error: unknown type name 'oid' ewx-stm.h:128:1: error: initializer element is not constant ewx-stm.h:128:1: error: (near initialization for 'ChannelHalfDuplex[0]') ewx-stm.h:131:1: error: unknown type name 'oid' ewx-stm.h:131:1: error: initializer element is not constant ewx-stm.h:131:1: error: (near initialization for 'PathUplink[0]') ewx-stm.h:132:1: error: unknown type name 'oid' ewx-stm.h:132:1: error: initializer element is not constant ewx-stm.h:132:1: error: (near initialization for 'PathDownlink[0]') ewx-stm.h:147:1: error: unknown type name 'oid' ewx-stm.h:147:1: error: initializer element is not constant ewx-stm.h:147:1: error: (near initialization for 'CustomersTableSave[0]') ewx-stm.h:148:1: error: unknown type name 'oid' ewx-stm.h:148:1: error: initializer element is not constant ewx-stm.h:148:1: error: (near initialization for 'ChannelsTableSave[0]') ewx-stm.c:36:76: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:37:76: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:38:96: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:39:54: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:40:73: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:41:73: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:42:90: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:43:54: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c: In function 'reload': ewx-stm.c:65:23: error: storage size of 'session' isn't known ewx-stm.c:99:9: error: request for member 'version' in something not a structure or union ewx-stm.c:99:21: error: 'SNMP_VERSION_2c' undeclared (first use in this function) ewx-stm.c:99:21: note: each undeclared identifier is reported only once for each function it appears in ewx-stm.c:100:9: error: request for member 'peername' in something not a structure or union ewx-stm.c:101:9: error: request for member 'remote_port' in something not a structure or union ewx-stm.c:103:9: error: request for member 'community' in something not a structure or union ewx-stm.c:104:9: error: request for member 'community_len' in something not a structure or union ewx-stm.c:107:28: error: 'NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function) ewx-stm.c:107:51: error: 'NETSNMP_DS_LIB_QUICK_PRINT' undeclared (first use in this function) ewx-stm.c:110:5: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:121:24: error: 'SNMP_MSG_GET' undeclared (first use in this function) ewx-stm.c:121:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:134:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:134:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:134:39: error: dereferencing pointer to incomplete type ewx-stm.c:134:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:134:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:137:12: error: 'MAX_OID_LEN' undeclared (first use in this function) ewx-stm.c:139:22: error: dereferencing pointer to incomplete type ewx-stm.c:139:22: error: request for member 'variables' in something not a structure or union ewx-stm.c:139:12: warning: assignment from incompatible pointer type [enabled by default] ewx-stm.c:139:52: error: dereferencing pointer to incomplete type ewx-stm.c:139:52: error: request for member 'next_variable' in something not a structure or union ewx-stm.c:139:46: warning: assignment from incompatible pointer type [enabled by default] ewx-stm.c:141:40: error: dereferencing pointer to incomplete type ewx-stm.c:141:40: error: request for member 'name' in something not a structure or union ewx-stm.c:141:52: error: dereferencing pointer to incomplete type ewx-stm.c:141:52: error: request for member 'name_length' in something not a structure or union ewx-stm.c:143:11: error: dereferencing pointer to incomplete type ewx-stm.c:143:11: error: request for member 'name' in something not a structure or union ewx-stm.c:145:41: error: dereferencing pointer to incomplete type ewx-stm.c:145:41: error: request for member 'name' in something not a structure or union ewx-stm.c:145:53: error: dereferencing pointer to incomplete type ewx-stm.c:145:53: error: request for member 'name_length' in something not a structure or union ewx-stm.c:146:5: warning: passing argument 1 of 'atoi' from incompatible pointer type [enabled by default] /usr/include/stdlib.h:284:1: note: expected 'const char *' but argument is of type 'int *' ewx-stm.c:148:16: error: dereferencing pointer to incomplete type ewx-stm.c:148:16: error: request for member 'name' in something not a structure or union ewx-stm.c:150:41: error: dereferencing pointer to incomplete type ewx-stm.c:150:41: error: request for member 'name' in something not a structure or union ewx-stm.c:150:53: error: dereferencing pointer to incomplete type ewx-stm.c:150:53: error: request for member 'name_length' in something not a structure or union ewx-stm.c:151:5: warning: passing argument 1 of 'atoi' from incompatible pointer type [enabled by default] /usr/include/stdlib.h:284:1: note: expected 'const char *' but argument is of type 'int *' ewx-stm.c:157:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:158:118: error: dereferencing pointer to incomplete type ewx-stm.c:158:118: error: request for member 'errstat' in something not a structure or union ewx-stm.c:747:5: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:806:9: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:838:11: warning: passing argument 3 of 'mod_channel' from incompatible pointer type [enabled by default] ewx-stm.c:39:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:843:9: warning: passing argument 3 of 'update_node' from incompatible pointer type [enabled by default] ewx-stm.c:42:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:856:6: warning: passing argument 3 of 'update_channel' from incompatible pointer type [enabled by default] ewx-stm.c:38:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:858:6: warning: passing argument 3 of 'add_channel' from incompatible pointer type [enabled by default] ewx-stm.c:37:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:861:5: warning: passing argument 3 of 'mod_channel' from incompatible pointer type [enabled by default] ewx-stm.c:39:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:890:11: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:906:11: warning: passing argument 3 of 'update_node' from incompatible pointer type [enabled by default] ewx-stm.c:42:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:919:7: warning: passing argument 3 of 'del_channel' from incompatible pointer type [enabled by default] ewx-stm.c:36:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:923:6: warning: passing argument 3 of 'add_node' from incompatible pointer type [enabled by default] ewx-stm.c:41:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:937:6: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:942:5: warning: passing argument 3 of 'del_channel' from incompatible pointer type [enabled by default] ewx-stm.c:36:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:946:2: warning: passing argument 3 of 'save_tables' from incompatible pointer type [enabled by default] ewx-stm.c:43:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c: At top level: ewx-stm.c:1066:84: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1066:5: error: conflicting types for 'del_channel' ewx-stm.c:36:5: note: previous declaration of 'del_channel' was here ewx-stm.c: In function 'del_channel': ewx-stm.c:1078:4: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:1086:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1086:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1094:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1094:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1094:39: error: dereferencing pointer to incomplete type ewx-stm.c:1094:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1094:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1108:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1109:125: error: dereferencing pointer to incomplete type ewx-stm.c:1109:125: error: request for member 'errstat' in something not a structure or union ewx-stm.c: At top level: ewx-stm.c:1125:84: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1125:5: error: conflicting types for 'add_channel' ewx-stm.c:37:5: note: previous declaration of 'add_channel' was here ewx-stm.c: In function 'add_channel': ewx-stm.c:1208:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1208:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1220:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1220:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1220:39: error: dereferencing pointer to incomplete type ewx-stm.c:1220:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1220:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1232:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1233:127: error: dereferencing pointer to incomplete type ewx-stm.c:1233:127: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1250:4: warning: passing argument 3 of 'add_node' from incompatible pointer type [enabled by default] ewx-stm.c:41:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c: At top level: ewx-stm.c:1256:107: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1256:5: error: conflicting types for 'update_channel' ewx-stm.c:38:5: note: previous declaration of 'update_channel' was here ewx-stm.c: In function 'update_channel': ewx-stm.c:1273:4: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:1285:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1285:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1294:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1294:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1294:39: error: dereferencing pointer to incomplete type ewx-stm.c:1294:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1294:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1302:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1303:125: error: dereferencing pointer to incomplete type ewx-stm.c:1303:125: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1321:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1333:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1333:39: error: dereferencing pointer to incomplete type ewx-stm.c:1333:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1348:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1349:125: error: dereferencing pointer to incomplete type ewx-stm.c:1349:125: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1366:4: warning: passing argument 3 of 'add_node' from incompatible pointer type [enabled by default] ewx-stm.c:41:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c: At top level: ewx-stm.c:1375:59: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1375:5: error: conflicting types for 'mod_channel' ewx-stm.c:39:5: note: previous declaration of 'mod_channel' was here ewx-stm.c: In function 'mod_channel': ewx-stm.c:1392:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1392:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1401:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1401:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1401:39: error: dereferencing pointer to incomplete type ewx-stm.c:1401:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1401:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1409:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1410:123: error: dereferencing pointer to incomplete type ewx-stm.c:1410:123: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1428:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1438:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1438:39: error: dereferencing pointer to incomplete type ewx-stm.c:1438:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1452:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1453:123: error: dereferencing pointer to incomplete type ewx-stm.c:1453:123: error: request for member 'errstat' in something not a structure or union ewx-stm.c: At top level: ewx-stm.c:1472:81: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1472:5: error: conflicting types for 'del_node' ewx-stm.c:40:5: note: previous declaration of 'del_node' was here ewx-stm.c: In function 'del_node': ewx-stm.c:1487:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1487:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1495:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1495:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1495:39: error: dereferencing pointer to incomplete type ewx-stm.c:1495:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1495:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1509:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1510:135: error: dereferencing pointer to incomplete type ewx-stm.c:1510:135: error: request for member 'errstat' in something not a structure or union ewx-stm.c: At top level: ewx-stm.c:1526:81: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1526:5: error: conflicting types for 'add_node' ewx-stm.c:41:5: note: previous declaration of 'add_node' was here ewx-stm.c: In function 'add_node': ewx-stm.c:1551:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1551:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1571:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1571:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1571:39: error: dereferencing pointer to incomplete type ewx-stm.c:1571:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1571:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1601:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1602:132: error: dereferencing pointer to incomplete type ewx-stm.c:1602:132: error: request for member 'errstat' in something not a structure or union ewx-stm.c: At top level: ewx-stm.c:1618:101: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1618:5: error: conflicting types for 'update_node' ewx-stm.c:42:5: note: previous declaration of 'update_node' was here ewx-stm.c: In function 'update_node': ewx-stm.c:1643:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1643:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1652:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1652:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1652:39: error: dereferencing pointer to incomplete type ewx-stm.c:1652:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1652:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1660:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1661:135: error: dereferencing pointer to incomplete type ewx-stm.c:1661:135: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1677:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1706:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1706:39: error: dereferencing pointer to incomplete type ewx-stm.c:1706:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1735:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1736:135: error: dereferencing pointer to incomplete type ewx-stm.c:1736:135: error: request for member 'errstat' in something not a structure or union ewx-stm.c: At top level: ewx-stm.c:1752:59: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1752:5: error: conflicting types for 'save_tables' ewx-stm.c:43:5: note: previous declaration of 'save_tables' was here ewx-stm.c: In function 'save_tables': ewx-stm.c:1763:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1763:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1772:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1772:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1772:39: error: dereferencing pointer to incomplete type ewx-stm.c:1772:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1772:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1784:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1785:134: error: dereferencing pointer to incomplete type ewx-stm.c:1785:134: error: request for member 'errstat' in something not a structure or union make[2]: *** [ewx-stm.o] Error 1 make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm-channels' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o ewx-stm-channels.o ewx-stm-channels.c In file included from ewx-stm-channels.c:33:0: ewx-stm-channels.h:97:1: error: unknown type name 'oid' ewx-stm-channels.h:97:26: error: 'SNMP_OID_ENTERPRISES' undeclared here (not in a function) ewx-stm-channels.h:98:1: error: unknown type name 'oid' ewx-stm-channels.h:98:1: error: initializer element is not constant ewx-stm-channels.h:98:1: error: (near initialization for 'CustomerNo[0]') ewx-stm-channels.h:99:1: error: unknown type name 'oid' ewx-stm-channels.h:99:1: error: initializer element is not constant ewx-stm-channels.h:99:1: error: (near initialization for 'CustomerPathNo[0]') ewx-stm-channels.h:100:1: error: unknown type name 'oid' ewx-stm-channels.h:100:1: error: initializer element is not constant ewx-stm-channels.h:100:1: error: (near initialization for 'CustomerChannelNo[0]') ewx-stm-channels.h:101:1: error: unknown type name 'oid' ewx-stm-channels.h:101:1: error: initializer element is not constant ewx-stm-channels.h:101:1: error: (near initialization for 'CustomerIpAddr[0]') ewx-stm-channels.h:102:1: error: unknown type name 'oid' ewx-stm-channels.h:102:1: error: initializer element is not constant ewx-stm-channels.h:102:1: error: (near initialization for 'CustomerMacAddr[0]') ewx-stm-channels.h:103:1: error: unknown type name 'oid' ewx-stm-channels.h:103:1: error: initializer element is not constant ewx-stm-channels.h:103:1: error: (near initialization for 'CustomerMinSpeed[0]') ewx-stm-channels.h:104:1: error: unknown type name 'oid' ewx-stm-channels.h:104:1: error: initializer element is not constant ewx-stm-channels.h:104:1: error: (near initialization for 'CustomerMaxSpeed[0]') ewx-stm-channels.h:105:1: error: unknown type name 'oid' ewx-stm-channels.h:105:1: error: initializer element is not constant ewx-stm-channels.h:105:1: error: (near initialization for 'CustomerUpMinSpeed[0]') ewx-stm-channels.h:106:1: error: unknown type name 'oid' ewx-stm-channels.h:106:1: error: initializer element is not constant ewx-stm-channels.h:106:1: error: (near initialization for 'CustomerUpMaxSpeed[0]') ewx-stm-channels.h:107:1: error: unknown type name 'oid' ewx-stm-channels.h:107:1: error: initializer element is not constant ewx-stm-channels.h:107:1: error: (near initialization for 'CustomerDownMinSpeed[0]') ewx-stm-channels.h:108:1: error: unknown type name 'oid' ewx-stm-channels.h:108:1: error: initializer element is not constant ewx-stm-channels.h:108:1: error: (near initialization for 'CustomerDownMaxSpeed[0]') ewx-stm-channels.h:109:1: error: unknown type name 'oid' ewx-stm-channels.h:109:1: error: initializer element is not constant ewx-stm-channels.h:109:1: error: (near initialization for 'CustomerShare[0]') ewx-stm-channels.h:110:1: error: unknown type name 'oid' ewx-stm-channels.h:110:1: error: initializer element is not constant ewx-stm-channels.h:110:1: error: (near initialization for 'CustomerHalfDuplex[0]') ewx-stm-channels.h:113:1: error: unknown type name 'oid' ewx-stm-channels.h:113:1: error: initializer element is not constant ewx-stm-channels.h:113:1: error: (near initialization for 'ChannelStatus[0]') ewx-stm-channels.h:114:1: error: unknown type name 'oid' ewx-stm-channels.h:114:1: error: initializer element is not constant ewx-stm-channels.h:114:1: error: (near initialization for 'ChannelNo[0]') ewx-stm-channels.h:115:1: error: unknown type name 'oid' ewx-stm-channels.h:115:1: error: initializer element is not constant ewx-stm-channels.h:115:1: error: (near initialization for 'ChannelPathNo[0]') ewx-stm-channels.h:116:1: error: unknown type name 'oid' ewx-stm-channels.h:116:1: error: initializer element is not constant ewx-stm-channels.h:116:1: error: (near initialization for 'ChannelUplink[0]') ewx-stm-channels.h:117:1: error: unknown type name 'oid' ewx-stm-channels.h:117:1: error: initializer element is not constant ewx-stm-channels.h:117:1: error: (near initialization for 'ChannelDownlink[0]') ewx-stm-channels.h:118:1: error: unknown type name 'oid' ewx-stm-channels.h:118:1: error: initializer element is not constant ewx-stm-channels.h:118:1: error: (near initialization for 'ChannelHalfDuplex[0]') ewx-stm-channels.h:121:1: error: unknown type name 'oid' ewx-stm-channels.h:121:1: error: initializer element is not constant ewx-stm-channels.h:121:1: error: (near initialization for 'PathUplink[0]') ewx-stm-channels.h:122:1: error: unknown type name 'oid' ewx-stm-channels.h:122:1: error: initializer element is not constant ewx-stm-channels.h:122:1: error: (near initialization for 'PathDownlink[0]') ewx-stm-channels.h:137:1: error: unknown type name 'oid' ewx-stm-channels.h:137:1: error: initializer element is not constant ewx-stm-channels.h:137:1: error: (near initialization for 'CustomersTableSave[0]') ewx-stm-channels.h:138:1: error: unknown type name 'oid' ewx-stm-channels.h:138:1: error: initializer element is not constant ewx-stm-channels.h:138:1: error: (near initialization for 'ChannelsTableSave[0]') ewx-stm-channels.c:35:76: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:36:76: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:37:96: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:38:54: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:39:73: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:40:73: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:41:90: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:42:54: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c: In function 'reload': ewx-stm-channels.c:64:23: error: storage size of 'session' isn't known ewx-stm-channels.c:99:9: error: request for member 'version' in something not a structure or union ewx-stm-channels.c:99:21: error: 'SNMP_VERSION_2c' undeclared (first use in this function) ewx-stm-channels.c:99:21: note: each undeclared identifier is reported only once for each function it appears in ewx-stm-channels.c:100:9: error: request for member 'peername' in something not a structure or union ewx-stm-channels.c:101:9: error: request for member 'remote_port' in something not a structure or union ewx-stm-channels.c:103:9: error: request for member 'community' in something not a structure or union ewx-stm-channels.c:104:9: error: request for member 'community_len' in something not a structure or union ewx-stm-channels.c:107:28: error: 'NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function) ewx-stm-channels.c:107:51: error: 'NETSNMP_DS_LIB_QUICK_PRINT' undeclared (first use in this function) ewx-stm-channels.c:110:5: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:121:24: error: 'SNMP_MSG_GET' undeclared (first use in this function) ewx-stm-channels.c:121:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:134:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:134:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:134:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:134:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:134:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:137:12: error: 'MAX_OID_LEN' undeclared (first use in this function) ewx-stm-channels.c:144:22: error: dereferencing pointer to incomplete type ewx-stm-channels.c:144:22: error: request for member 'variables' in something not a structure or union ewx-stm-channels.c:144:12: warning: assignment from incompatible pointer type [enabled by default] ewx-stm-channels.c:144:52: error: dereferencing pointer to incomplete type ewx-stm-channels.c:144:52: error: request for member 'next_variable' in something not a structure or union ewx-stm-channels.c:144:46: warning: assignment from incompatible pointer type [enabled by default] ewx-stm-channels.c:146:40: error: dereferencing pointer to incomplete type ewx-stm-channels.c:146:40: error: request for member 'name' in something not a structure or union ewx-stm-channels.c:146:52: error: dereferencing pointer to incomplete type ewx-stm-channels.c:146:52: error: request for member 'name_length' in something not a structure or union ewx-stm-channels.c:148:11: error: dereferencing pointer to incomplete type ewx-stm-channels.c:148:11: error: request for member 'name' in something not a structure or union ewx-stm-channels.c:150:41: error: dereferencing pointer to incomplete type ewx-stm-channels.c:150:41: error: request for member 'name' in something not a structure or union ewx-stm-channels.c:150:53: error: dereferencing pointer to incomplete type ewx-stm-channels.c:150:53: error: request for member 'name_length' in something not a structure or union ewx-stm-channels.c:151:5: warning: passing argument 1 of 'atoi' from incompatible pointer type [enabled by default] /usr/include/stdlib.h:284:1: note: expected 'const char *' but argument is of type 'int *' ewx-stm-channels.c:153:16: error: dereferencing pointer to incomplete type ewx-stm-channels.c:153:16: error: request for member 'name' in something not a structure or union ewx-stm-channels.c:155:41: error: dereferencing pointer to incomplete type ewx-stm-channels.c:155:41: error: request for member 'name' in something not a structure or union ewx-stm-channels.c:155:53: error: dereferencing pointer to incomplete type ewx-stm-channels.c:155:53: error: request for member 'name_length' in something not a structure or union ewx-stm-channels.c:156:5: warning: passing argument 1 of 'atoi' from incompatible pointer type [enabled by default] /usr/include/stdlib.h:284:1: note: expected 'const char *' but argument is of type 'int *' ewx-stm-channels.c:162:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:163:127: error: dereferencing pointer to incomplete type ewx-stm-channels.c:163:127: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:801:5: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:852:8: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:39:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:871:9: warning: passing argument 3 of 'mod_channel' from incompatible pointer type [enabled by default] ewx-stm-channels.c:38:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:885:10: warning: passing argument 3 of 'mod_channel' from incompatible pointer type [enabled by default] ewx-stm-channels.c:38:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:892:8: warning: passing argument 3 of 'update_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:41:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:922:6: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:39:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:944:16: warning: passing argument 3 of 'add_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:961:5: warning: passing argument 3 of 'update_channel' from incompatible pointer type [enabled by default] ewx-stm-channels.c:37:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:964:5: warning: passing argument 3 of 'add_channel' from incompatible pointer type [enabled by default] ewx-stm-channels.c:36:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:968:13: warning: passing argument 3 of 'mod_channel' from incompatible pointer type [enabled by default] ewx-stm-channels.c:38:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:982:6: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:39:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:988:5: warning: passing argument 3 of 'del_channel' from incompatible pointer type [enabled by default] ewx-stm-channels.c:35:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:994:3: warning: passing argument 3 of 'save_tables' from incompatible pointer type [enabled by default] ewx-stm-channels.c:42:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c: At top level: ewx-stm-channels.c:1114:84: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1114:5: error: conflicting types for 'del_channel' ewx-stm-channels.c:35:5: note: previous declaration of 'del_channel' was here ewx-stm-channels.c: In function 'del_channel': ewx-stm-channels.c:1127:4: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:39:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:1135:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1135:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1143:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1143:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1143:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1143:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1143:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1158:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1159:134: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1159:134: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c: At top level: ewx-stm-channels.c:1175:84: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1175:5: error: conflicting types for 'add_channel' ewx-stm-channels.c:36:5: note: previous declaration of 'add_channel' was here ewx-stm-channels.c: In function 'add_channel': ewx-stm-channels.c:1259:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1259:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1271:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1271:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1271:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1271:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1271:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1285:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1286:136: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1286:136: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1303:4: warning: passing argument 3 of 'add_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c: At top level: ewx-stm-channels.c:1309:107: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1309:5: error: conflicting types for 'update_channel' ewx-stm-channels.c:37:5: note: previous declaration of 'update_channel' was here ewx-stm-channels.c: In function 'update_channel': ewx-stm-channels.c:1324:4: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:39:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:1342:28: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1342:10: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1351:19: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1351:16: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1351:43: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1351:43: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1351:56: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1361:17: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1362:134: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1362:134: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1380:10: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1392:16: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1392:43: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1392:43: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1408:17: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1409:134: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1409:134: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1431:4: warning: passing argument 3 of 'add_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c: At top level: ewx-stm-channels.c:1437:59: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1437:5: error: conflicting types for 'mod_channel' ewx-stm-channels.c:38:5: note: previous declaration of 'mod_channel' was here ewx-stm-channels.c: In function 'mod_channel': ewx-stm-channels.c:1455:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1455:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1464:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1464:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1464:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1464:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1464:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1474:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1475:132: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1475:132: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1493:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1503:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1503:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1503:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1518:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1519:132: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1519:132: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c: At top level: ewx-stm-channels.c:1538:81: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1538:5: error: conflicting types for 'del_node' ewx-stm-channels.c:39:5: note: previous declaration of 'del_node' was here ewx-stm-channels.c: In function 'del_node': ewx-stm-channels.c:1554:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1554:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1562:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1562:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1562:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1562:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1562:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1578:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1580:74: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1580:74: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c: At top level: ewx-stm-channels.c:1597:81: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1597:5: error: conflicting types for 'add_node' ewx-stm-channels.c:40:5: note: previous declaration of 'add_node' was here ewx-stm-channels.c: In function 'add_node': ewx-stm-channels.c:1623:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1623:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1643:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1643:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1643:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1643:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1643:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1676:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1678:74: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1678:74: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c: At top level: ewx-stm-channels.c:1695:101: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1695:5: error: conflicting types for 'update_node' ewx-stm-channels.c:41:5: note: previous declaration of 'update_node' was here ewx-stm-channels.c: In function 'update_node': ewx-stm-channels.c:1721:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1721:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1730:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1730:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1730:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1730:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1730:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1740:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1742:74: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1742:74: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1759:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1788:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1788:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1788:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1819:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1821:74: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1821:74: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c: At top level: ewx-stm-channels.c:1838:59: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1838:5: error: conflicting types for 'save_tables' ewx-stm-channels.c:42:5: note: previous declaration of 'save_tables' was here ewx-stm-channels.c: In function 'save_tables': ewx-stm-channels.c:1850:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1850:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1859:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1859:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1859:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1859:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1859:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1873:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1874:143: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1874:143: error: request for member 'errstat' in something not a structure or union make[2]: *** [ewx-stm-channels.o] Error 1 make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm-channels' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ggnotify' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o ggnotify.o ggnotify.c gcc -shared ggnotify.o -o ggnotify.so -L/usr/lib64 -L/usr/lib64 -lmysqlclient -ldl -lgadu rm -rf ggnotify.o make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ggnotify' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/hostfile' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o hostfile.o hostfile.c gcc -shared hostfile.o -o hostfile.so -L/usr/lib64 -lmysqlclient -ldl rm -rf hostfile.o make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/hostfile' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/notify' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o notify.o notify.c gcc -shared notify.o -o notify.so -L/usr/lib64 -lmysqlclient -ldl rm -rf notify.o make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/notify' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/oident' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o oident.o oident.c gcc -shared oident.o -o oident.so -L/usr/lib64 -lmysqlclient -ldl rm -rf oident.o make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/oident' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/parser' /usr/bin/make -C lib make[3]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/parser/lib' make[3]: Circular tscript_parser.h <- tscript_parser.h dependency dropped. bison -o tscript_parser.c -d tscript_parser.y -p tscript_yy -r lookahead tscript_parser.y: conflicts: 32 shift/reduce, 1 reduce/reduce x86_64-pld-linux-gcc -c tscript_ast.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_context.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_compiler.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_interpreter.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_variables.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_parser.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_values.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_extensions.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_debug.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. flex -otscript_lexical.c -Ptscript_yy tscript_lexical.yy x86_64-pld-linux-gcc -c tscript_lexical.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. ar rs libtscript.a tscript_ast.o tscript_context.o tscript_compiler.o tscript_interpreter.o tscript_variables.o tscript_parser.o tscript_values.o tscript_extensions.o tscript_debug.o tscript_lexical.o ar: creating libtscript.a x86_64-pld-linux-gcc -shared -o libtscript.so tscript_ast.o tscript_context.o tscript_compiler.o tscript_interpreter.o tscript_variables.o tscript_parser.o tscript_values.o tscript_extensions.o tscript_debug.o tscript_lexical.o strip libtscript.so make[3]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/parser/lib' /usr/bin/make -C extensions make[3]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/parser/extensions' gcc -c tscript_exec.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. In file included from tscript_exec.c:32:0: tscript_exec.h:4:29: fatal error: tscript_context.h: No such file or directory compilation terminated. make[3]: *** [tscript_exec.o] Error 1 make[3]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/parser/extensions' make[2]: *** [ext] Error 2
--- [ CIACH ] ---
U was sie te moduly kompiluja? Czego mi brakuje?
Pozdrawiam, SP
Witam, Nigdy nie korzystałem z tych modulow, ale zauwazylem, ze sie nie buduja i chyba wypadaloby to poprawic :)
--- [ CIACH ] ---
make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-pt' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o ewx-pt.o ewx-pt.c In file included from ewx-pt.c:33:0: ewx-pt.h:37:1: error: unknown type name 'oid' ewx-pt.h:37:22: error: 'SNMP_OID_ENTERPRISES' undeclared here (not in a function) ewx-pt.h:38:1: error: unknown type name 'oid' ewx-pt.h:38:1: error: initializer element is not constant ewx-pt.h:38:1: error: (near initialization for 'UserNo[0]') ewx-pt.h:39:1: error: unknown type name 'oid' ewx-pt.h:39:1: error: initializer element is not constant ewx-pt.h:39:1: error: (near initialization for 'UserName[0]') ewx-pt.h:40:1: error: unknown type name 'oid' ewx-pt.h:40:1: error: initializer element is not constant ewx-pt.h:40:1: error: (near initialization for 'UserPassword[0]') ewx-pt.h:41:1: error: unknown type name 'oid' ewx-pt.h:41:1: error: initializer element is not constant ewx-pt.h:41:1: error: (near initialization for 'UserIpAddr[0]') ewx-pt.h:42:1: error: unknown type name 'oid' ewx-pt.h:42:1: error: initializer element is not constant ewx-pt.h:42:1: error: (near initialization for 'UserAllowedMacAddr[0]') ewx-pt.h:48:1: error: unknown type name 'oid' ewx-pt.h:48:1: error: initializer element is not constant ewx-pt.h:48:1: error: (near initialization for 'UsersTableSave[0]') ewx-pt.c: In function 'reload': ewx-pt.c:44:23: error: storage size of 'session' isn't known ewx-pt.c:202:9: error: request for member 'version' in something not a structure or union ewx-pt.c:202:21: error: 'SNMP_VERSION_2c' undeclared (first use in this function) ewx-pt.c:202:21: note: each undeclared identifier is reported only once for each function it appears in ewx-pt.c:203:9: error: request for member 'peername' in something not a structure or union ewx-pt.c:204:9: error: request for member 'remote_port' in something not a structure or union ewx-pt.c:206:9: error: request for member 'community' in something not a structure or union ewx-pt.c:207:9: error: request for member 'community_len' in something not a structure or union ewx-pt.c:210:5: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-pt.c:290:25: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-pt.c:290:7: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-pt.c:347:17: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-pt.c:347:14: warning: comparison between pointer and integer [enabled by default] ewx-pt.c:347:41: error: dereferencing pointer to incomplete type ewx-pt.c:347:41: error: request for member 'errstat' in something not a structure or union ewx-pt.c:347:54: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-pt.c:349:15: warning: comparison between pointer and integer [enabled by default] ewx-pt.c:350:142: error: dereferencing pointer to incomplete type ewx-pt.c:350:142: error: request for member 'errstat' in something not a structure or union ewx-pt.c:366:8: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-pt.c:385:10: error: dereferencing pointer to incomplete type ewx-pt.c:385:10: error: request for member 'variables' in something not a structure or union ewx-pt.c:395:13: warning: comparison between pointer and integer [enabled by default] ewx-pt.c:395:40: error: dereferencing pointer to incomplete type ewx-pt.c:395:40: error: request for member 'errstat' in something not a structure or union ewx-pt.c:438:14: warning: comparison between pointer and integer [enabled by default] ewx-pt.c:439:141: error: dereferencing pointer to incomplete type ewx-pt.c:439:141: error: request for member 'errstat' in something not a structure or union ewx-pt.c:454:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-pt.c:458:12: warning: comparison between pointer and integer [enabled by default] ewx-pt.c:458:39: error: dereferencing pointer to incomplete type ewx-pt.c:458:39: error: request for member 'errstat' in something not a structure or union ewx-pt.c:466:13: warning: comparison between pointer and integer [enabled by default] ewx-pt.c:467:117: error: dereferencing pointer to incomplete type ewx-pt.c:467:117: error: request for member 'errstat' in something not a structure or union make[2]: *** [ewx-pt.o] Error 1 make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-pt' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o ewx-stm.o ewx-stm.c In file included from ewx-stm.c:34:0: ewx-stm.h:107:1: error: unknown type name 'oid' ewx-stm.h:107:26: error: 'SNMP_OID_ENTERPRISES' undeclared here (not in a function) ewx-stm.h:108:1: error: unknown type name 'oid' ewx-stm.h:108:1: error: initializer element is not constant ewx-stm.h:108:1: error: (near initialization for 'CustomerNo[0]') ewx-stm.h:109:1: error: unknown type name 'oid' ewx-stm.h:109:1: error: initializer element is not constant ewx-stm.h:109:1: error: (near initialization for 'CustomerPathNo[0]') ewx-stm.h:110:1: error: unknown type name 'oid' ewx-stm.h:110:1: error: initializer element is not constant ewx-stm.h:110:1: error: (near initialization for 'CustomerChannelNo[0]') ewx-stm.h:111:1: error: unknown type name 'oid' ewx-stm.h:111:1: error: initializer element is not constant ewx-stm.h:111:1: error: (near initialization for 'CustomerIpAddr[0]') ewx-stm.h:112:1: error: unknown type name 'oid' ewx-stm.h:112:1: error: initializer element is not constant ewx-stm.h:112:1: error: (near initialization for 'CustomerMacAddr[0]') ewx-stm.h:113:1: error: unknown type name 'oid' ewx-stm.h:113:1: error: initializer element is not constant ewx-stm.h:113:1: error: (near initialization for 'CustomerMinSpeed[0]') ewx-stm.h:114:1: error: unknown type name 'oid' ewx-stm.h:114:1: error: initializer element is not constant ewx-stm.h:114:1: error: (near initialization for 'CustomerMaxSpeed[0]') ewx-stm.h:115:1: error: unknown type name 'oid' ewx-stm.h:115:1: error: initializer element is not constant ewx-stm.h:115:1: error: (near initialization for 'CustomerUpMinSpeed[0]') ewx-stm.h:116:1: error: unknown type name 'oid' ewx-stm.h:116:1: error: initializer element is not constant ewx-stm.h:116:1: error: (near initialization for 'CustomerUpMaxSpeed[0]') ewx-stm.h:117:1: error: unknown type name 'oid' ewx-stm.h:117:1: error: initializer element is not constant ewx-stm.h:117:1: error: (near initialization for 'CustomerDownMinSpeed[0]') ewx-stm.h:118:1: error: unknown type name 'oid' ewx-stm.h:118:1: error: initializer element is not constant ewx-stm.h:118:1: error: (near initialization for 'CustomerDownMaxSpeed[0]') ewx-stm.h:119:1: error: unknown type name 'oid' ewx-stm.h:119:1: error: initializer element is not constant ewx-stm.h:119:1: error: (near initialization for 'CustomerShare[0]') ewx-stm.h:120:1: error: unknown type name 'oid' ewx-stm.h:120:1: error: initializer element is not constant ewx-stm.h:120:1: error: (near initialization for 'CustomerHalfDuplex[0]') ewx-stm.h:123:1: error: unknown type name 'oid' ewx-stm.h:123:1: error: initializer element is not constant ewx-stm.h:123:1: error: (near initialization for 'ChannelStatus[0]') ewx-stm.h:124:1: error: unknown type name 'oid' ewx-stm.h:124:1: error: initializer element is not constant ewx-stm.h:124:1: error: (near initialization for 'ChannelNo[0]') ewx-stm.h:125:1: error: unknown type name 'oid' ewx-stm.h:125:1: error: initializer element is not constant ewx-stm.h:125:1: error: (near initialization for 'ChannelPathNo[0]') ewx-stm.h:126:1: error: unknown type name 'oid' ewx-stm.h:126:1: error: initializer element is not constant ewx-stm.h:126:1: error: (near initialization for 'ChannelUplink[0]') ewx-stm.h:127:1: error: unknown type name 'oid' ewx-stm.h:127:1: error: initializer element is not constant ewx-stm.h:127:1: error: (near initialization for 'ChannelDownlink[0]') ewx-stm.h:128:1: error: unknown type name 'oid' ewx-stm.h:128:1: error: initializer element is not constant ewx-stm.h:128:1: error: (near initialization for 'ChannelHalfDuplex[0]') ewx-stm.h:131:1: error: unknown type name 'oid' ewx-stm.h:131:1: error: initializer element is not constant ewx-stm.h:131:1: error: (near initialization for 'PathUplink[0]') ewx-stm.h:132:1: error: unknown type name 'oid' ewx-stm.h:132:1: error: initializer element is not constant ewx-stm.h:132:1: error: (near initialization for 'PathDownlink[0]') ewx-stm.h:147:1: error: unknown type name 'oid' ewx-stm.h:147:1: error: initializer element is not constant ewx-stm.h:147:1: error: (near initialization for 'CustomersTableSave[0]') ewx-stm.h:148:1: error: unknown type name 'oid' ewx-stm.h:148:1: error: initializer element is not constant ewx-stm.h:148:1: error: (near initialization for 'ChannelsTableSave[0]') ewx-stm.c:36:76: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:37:76: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:38:96: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:39:54: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:40:73: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:41:73: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:42:90: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:43:54: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c: In function 'reload': ewx-stm.c:65:23: error: storage size of 'session' isn't known ewx-stm.c:99:9: error: request for member 'version' in something not a structure or union ewx-stm.c:99:21: error: 'SNMP_VERSION_2c' undeclared (first use in this function) ewx-stm.c:99:21: note: each undeclared identifier is reported only once for each function it appears in ewx-stm.c:100:9: error: request for member 'peername' in something not a structure or union ewx-stm.c:101:9: error: request for member 'remote_port' in something not a structure or union ewx-stm.c:103:9: error: request for member 'community' in something not a structure or union ewx-stm.c:104:9: error: request for member 'community_len' in something not a structure or union ewx-stm.c:107:28: error: 'NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function) ewx-stm.c:107:51: error: 'NETSNMP_DS_LIB_QUICK_PRINT' undeclared (first use in this function) ewx-stm.c:110:5: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:121:24: error: 'SNMP_MSG_GET' undeclared (first use in this function) ewx-stm.c:121:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:134:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:134:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:134:39: error: dereferencing pointer to incomplete type ewx-stm.c:134:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:134:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:137:12: error: 'MAX_OID_LEN' undeclared (first use in this function) ewx-stm.c:139:22: error: dereferencing pointer to incomplete type ewx-stm.c:139:22: error: request for member 'variables' in something not a structure or union ewx-stm.c:139:12: warning: assignment from incompatible pointer type [enabled by default] ewx-stm.c:139:52: error: dereferencing pointer to incomplete type ewx-stm.c:139:52: error: request for member 'next_variable' in something not a structure or union ewx-stm.c:139:46: warning: assignment from incompatible pointer type [enabled by default] ewx-stm.c:141:40: error: dereferencing pointer to incomplete type ewx-stm.c:141:40: error: request for member 'name' in something not a structure or union ewx-stm.c:141:52: error: dereferencing pointer to incomplete type ewx-stm.c:141:52: error: request for member 'name_length' in something not a structure or union ewx-stm.c:143:11: error: dereferencing pointer to incomplete type ewx-stm.c:143:11: error: request for member 'name' in something not a structure or union ewx-stm.c:145:41: error: dereferencing pointer to incomplete type ewx-stm.c:145:41: error: request for member 'name' in something not a structure or union ewx-stm.c:145:53: error: dereferencing pointer to incomplete type ewx-stm.c:145:53: error: request for member 'name_length' in something not a structure or union ewx-stm.c:146:5: warning: passing argument 1 of 'atoi' from incompatible pointer type [enabled by default] /usr/include/stdlib.h:284:1: note: expected 'const char *' but argument is of type 'int *' ewx-stm.c:148:16: error: dereferencing pointer to incomplete type ewx-stm.c:148:16: error: request for member 'name' in something not a structure or union ewx-stm.c:150:41: error: dereferencing pointer to incomplete type ewx-stm.c:150:41: error: request for member 'name' in something not a structure or union ewx-stm.c:150:53: error: dereferencing pointer to incomplete type ewx-stm.c:150:53: error: request for member 'name_length' in something not a structure or union ewx-stm.c:151:5: warning: passing argument 1 of 'atoi' from incompatible pointer type [enabled by default] /usr/include/stdlib.h:284:1: note: expected 'const char *' but argument is of type 'int *' ewx-stm.c:157:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:158:118: error: dereferencing pointer to incomplete type ewx-stm.c:158:118: error: request for member 'errstat' in something not a structure or union ewx-stm.c:747:5: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:806:9: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:838:11: warning: passing argument 3 of 'mod_channel' from incompatible pointer type [enabled by default] ewx-stm.c:39:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:843:9: warning: passing argument 3 of 'update_node' from incompatible pointer type [enabled by default] ewx-stm.c:42:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:856:6: warning: passing argument 3 of 'update_channel' from incompatible pointer type [enabled by default] ewx-stm.c:38:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:858:6: warning: passing argument 3 of 'add_channel' from incompatible pointer type [enabled by default] ewx-stm.c:37:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:861:5: warning: passing argument 3 of 'mod_channel' from incompatible pointer type [enabled by default] ewx-stm.c:39:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:890:11: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:906:11: warning: passing argument 3 of 'update_node' from incompatible pointer type [enabled by default] ewx-stm.c:42:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:919:7: warning: passing argument 3 of 'del_channel' from incompatible pointer type [enabled by default] ewx-stm.c:36:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:923:6: warning: passing argument 3 of 'add_node' from incompatible pointer type [enabled by default] ewx-stm.c:41:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:937:6: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:942:5: warning: passing argument 3 of 'del_channel' from incompatible pointer type [enabled by default] ewx-stm.c:36:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:946:2: warning: passing argument 3 of 'save_tables' from incompatible pointer type [enabled by default] ewx-stm.c:43:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c: At top level: ewx-stm.c:1066:84: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1066:5: error: conflicting types for 'del_channel' ewx-stm.c:36:5: note: previous declaration of 'del_channel' was here ewx-stm.c: In function 'del_channel': ewx-stm.c:1078:4: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:1086:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1086:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1094:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1094:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1094:39: error: dereferencing pointer to incomplete type ewx-stm.c:1094:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1094:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1108:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1109:125: error: dereferencing pointer to incomplete type ewx-stm.c:1109:125: error: request for member 'errstat' in something not a structure or union ewx-stm.c: At top level: ewx-stm.c:1125:84: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1125:5: error: conflicting types for 'add_channel' ewx-stm.c:37:5: note: previous declaration of 'add_channel' was here ewx-stm.c: In function 'add_channel': ewx-stm.c:1208:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1208:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1220:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1220:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1220:39: error: dereferencing pointer to incomplete type ewx-stm.c:1220:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1220:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1232:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1233:127: error: dereferencing pointer to incomplete type ewx-stm.c:1233:127: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1250:4: warning: passing argument 3 of 'add_node' from incompatible pointer type [enabled by default] ewx-stm.c:41:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c: At top level: ewx-stm.c:1256:107: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1256:5: error: conflicting types for 'update_channel' ewx-stm.c:38:5: note: previous declaration of 'update_channel' was here ewx-stm.c: In function 'update_channel': ewx-stm.c:1273:4: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c:1285:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1285:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1294:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1294:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1294:39: error: dereferencing pointer to incomplete type ewx-stm.c:1294:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1294:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1302:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1303:125: error: dereferencing pointer to incomplete type ewx-stm.c:1303:125: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1321:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1333:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1333:39: error: dereferencing pointer to incomplete type ewx-stm.c:1333:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1348:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1349:125: error: dereferencing pointer to incomplete type ewx-stm.c:1349:125: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1366:4: warning: passing argument 3 of 'add_node' from incompatible pointer type [enabled by default] ewx-stm.c:41:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm.c: At top level: ewx-stm.c:1375:59: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1375:5: error: conflicting types for 'mod_channel' ewx-stm.c:39:5: note: previous declaration of 'mod_channel' was here ewx-stm.c: In function 'mod_channel': ewx-stm.c:1392:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1392:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1401:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1401:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1401:39: error: dereferencing pointer to incomplete type ewx-stm.c:1401:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1401:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1409:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1410:123: error: dereferencing pointer to incomplete type ewx-stm.c:1410:123: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1428:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1438:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1438:39: error: dereferencing pointer to incomplete type ewx-stm.c:1438:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1452:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1453:123: error: dereferencing pointer to incomplete type ewx-stm.c:1453:123: error: request for member 'errstat' in something not a structure or union ewx-stm.c: At top level: ewx-stm.c:1472:81: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1472:5: error: conflicting types for 'del_node' ewx-stm.c:40:5: note: previous declaration of 'del_node' was here ewx-stm.c: In function 'del_node': ewx-stm.c:1487:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1487:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1495:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1495:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1495:39: error: dereferencing pointer to incomplete type ewx-stm.c:1495:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1495:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1509:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1510:135: error: dereferencing pointer to incomplete type ewx-stm.c:1510:135: error: request for member 'errstat' in something not a structure or union ewx-stm.c: At top level: ewx-stm.c:1526:81: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1526:5: error: conflicting types for 'add_node' ewx-stm.c:41:5: note: previous declaration of 'add_node' was here ewx-stm.c: In function 'add_node': ewx-stm.c:1551:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1551:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1571:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1571:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1571:39: error: dereferencing pointer to incomplete type ewx-stm.c:1571:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1571:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1601:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1602:132: error: dereferencing pointer to incomplete type ewx-stm.c:1602:132: error: request for member 'errstat' in something not a structure or union ewx-stm.c: At top level: ewx-stm.c:1618:101: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1618:5: error: conflicting types for 'update_node' ewx-stm.c:42:5: note: previous declaration of 'update_node' was here ewx-stm.c: In function 'update_node': ewx-stm.c:1643:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1643:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1652:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1652:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1652:39: error: dereferencing pointer to incomplete type ewx-stm.c:1652:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1652:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1660:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1661:135: error: dereferencing pointer to incomplete type ewx-stm.c:1661:135: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1677:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1706:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1706:39: error: dereferencing pointer to incomplete type ewx-stm.c:1706:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1735:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1736:135: error: dereferencing pointer to incomplete type ewx-stm.c:1736:135: error: request for member 'errstat' in something not a structure or union ewx-stm.c: At top level: ewx-stm.c:1752:59: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm.c:1752:5: error: conflicting types for 'save_tables' ewx-stm.c:43:5: note: previous declaration of 'save_tables' was here ewx-stm.c: In function 'save_tables': ewx-stm.c:1763:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm.c:1763:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm.c:1772:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm.c:1772:12: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1772:39: error: dereferencing pointer to incomplete type ewx-stm.c:1772:39: error: request for member 'errstat' in something not a structure or union ewx-stm.c:1772:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm.c:1784:13: warning: comparison between pointer and integer [enabled by default] ewx-stm.c:1785:134: error: dereferencing pointer to incomplete type ewx-stm.c:1785:134: error: request for member 'errstat' in something not a structure or union make[2]: *** [ewx-stm.o] Error 1 make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm-channels' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o ewx-stm-channels.o ewx-stm-channels.c In file included from ewx-stm-channels.c:33:0: ewx-stm-channels.h:97:1: error: unknown type name 'oid' ewx-stm-channels.h:97:26: error: 'SNMP_OID_ENTERPRISES' undeclared here (not in a function) ewx-stm-channels.h:98:1: error: unknown type name 'oid' ewx-stm-channels.h:98:1: error: initializer element is not constant ewx-stm-channels.h:98:1: error: (near initialization for 'CustomerNo[0]') ewx-stm-channels.h:99:1: error: unknown type name 'oid' ewx-stm-channels.h:99:1: error: initializer element is not constant ewx-stm-channels.h:99:1: error: (near initialization for 'CustomerPathNo[0]') ewx-stm-channels.h:100:1: error: unknown type name 'oid' ewx-stm-channels.h:100:1: error: initializer element is not constant ewx-stm-channels.h:100:1: error: (near initialization for 'CustomerChannelNo[0]') ewx-stm-channels.h:101:1: error: unknown type name 'oid' ewx-stm-channels.h:101:1: error: initializer element is not constant ewx-stm-channels.h:101:1: error: (near initialization for 'CustomerIpAddr[0]') ewx-stm-channels.h:102:1: error: unknown type name 'oid' ewx-stm-channels.h:102:1: error: initializer element is not constant ewx-stm-channels.h:102:1: error: (near initialization for 'CustomerMacAddr[0]') ewx-stm-channels.h:103:1: error: unknown type name 'oid' ewx-stm-channels.h:103:1: error: initializer element is not constant ewx-stm-channels.h:103:1: error: (near initialization for 'CustomerMinSpeed[0]') ewx-stm-channels.h:104:1: error: unknown type name 'oid' ewx-stm-channels.h:104:1: error: initializer element is not constant ewx-stm-channels.h:104:1: error: (near initialization for 'CustomerMaxSpeed[0]') ewx-stm-channels.h:105:1: error: unknown type name 'oid' ewx-stm-channels.h:105:1: error: initializer element is not constant ewx-stm-channels.h:105:1: error: (near initialization for 'CustomerUpMinSpeed[0]') ewx-stm-channels.h:106:1: error: unknown type name 'oid' ewx-stm-channels.h:106:1: error: initializer element is not constant ewx-stm-channels.h:106:1: error: (near initialization for 'CustomerUpMaxSpeed[0]') ewx-stm-channels.h:107:1: error: unknown type name 'oid' ewx-stm-channels.h:107:1: error: initializer element is not constant ewx-stm-channels.h:107:1: error: (near initialization for 'CustomerDownMinSpeed[0]') ewx-stm-channels.h:108:1: error: unknown type name 'oid' ewx-stm-channels.h:108:1: error: initializer element is not constant ewx-stm-channels.h:108:1: error: (near initialization for 'CustomerDownMaxSpeed[0]') ewx-stm-channels.h:109:1: error: unknown type name 'oid' ewx-stm-channels.h:109:1: error: initializer element is not constant ewx-stm-channels.h:109:1: error: (near initialization for 'CustomerShare[0]') ewx-stm-channels.h:110:1: error: unknown type name 'oid' ewx-stm-channels.h:110:1: error: initializer element is not constant ewx-stm-channels.h:110:1: error: (near initialization for 'CustomerHalfDuplex[0]') ewx-stm-channels.h:113:1: error: unknown type name 'oid' ewx-stm-channels.h:113:1: error: initializer element is not constant ewx-stm-channels.h:113:1: error: (near initialization for 'ChannelStatus[0]') ewx-stm-channels.h:114:1: error: unknown type name 'oid' ewx-stm-channels.h:114:1: error: initializer element is not constant ewx-stm-channels.h:114:1: error: (near initialization for 'ChannelNo[0]') ewx-stm-channels.h:115:1: error: unknown type name 'oid' ewx-stm-channels.h:115:1: error: initializer element is not constant ewx-stm-channels.h:115:1: error: (near initialization for 'ChannelPathNo[0]') ewx-stm-channels.h:116:1: error: unknown type name 'oid' ewx-stm-channels.h:116:1: error: initializer element is not constant ewx-stm-channels.h:116:1: error: (near initialization for 'ChannelUplink[0]') ewx-stm-channels.h:117:1: error: unknown type name 'oid' ewx-stm-channels.h:117:1: error: initializer element is not constant ewx-stm-channels.h:117:1: error: (near initialization for 'ChannelDownlink[0]') ewx-stm-channels.h:118:1: error: unknown type name 'oid' ewx-stm-channels.h:118:1: error: initializer element is not constant ewx-stm-channels.h:118:1: error: (near initialization for 'ChannelHalfDuplex[0]') ewx-stm-channels.h:121:1: error: unknown type name 'oid' ewx-stm-channels.h:121:1: error: initializer element is not constant ewx-stm-channels.h:121:1: error: (near initialization for 'PathUplink[0]') ewx-stm-channels.h:122:1: error: unknown type name 'oid' ewx-stm-channels.h:122:1: error: initializer element is not constant ewx-stm-channels.h:122:1: error: (near initialization for 'PathDownlink[0]') ewx-stm-channels.h:137:1: error: unknown type name 'oid' ewx-stm-channels.h:137:1: error: initializer element is not constant ewx-stm-channels.h:137:1: error: (near initialization for 'CustomersTableSave[0]') ewx-stm-channels.h:138:1: error: unknown type name 'oid' ewx-stm-channels.h:138:1: error: initializer element is not constant ewx-stm-channels.h:138:1: error: (near initialization for 'ChannelsTableSave[0]') ewx-stm-channels.c:35:76: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:36:76: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:37:96: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:38:54: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:39:73: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:40:73: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:41:90: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:42:54: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c: In function 'reload': ewx-stm-channels.c:64:23: error: storage size of 'session' isn't known ewx-stm-channels.c:99:9: error: request for member 'version' in something not a structure or union ewx-stm-channels.c:99:21: error: 'SNMP_VERSION_2c' undeclared (first use in this function) ewx-stm-channels.c:99:21: note: each undeclared identifier is reported only once for each function it appears in ewx-stm-channels.c:100:9: error: request for member 'peername' in something not a structure or union ewx-stm-channels.c:101:9: error: request for member 'remote_port' in something not a structure or union ewx-stm-channels.c:103:9: error: request for member 'community' in something not a structure or union ewx-stm-channels.c:104:9: error: request for member 'community_len' in something not a structure or union ewx-stm-channels.c:107:28: error: 'NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function) ewx-stm-channels.c:107:51: error: 'NETSNMP_DS_LIB_QUICK_PRINT' undeclared (first use in this function) ewx-stm-channels.c:110:5: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:121:24: error: 'SNMP_MSG_GET' undeclared (first use in this function) ewx-stm-channels.c:121:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:134:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:134:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:134:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:134:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:134:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:137:12: error: 'MAX_OID_LEN' undeclared (first use in this function) ewx-stm-channels.c:144:22: error: dereferencing pointer to incomplete type ewx-stm-channels.c:144:22: error: request for member 'variables' in something not a structure or union ewx-stm-channels.c:144:12: warning: assignment from incompatible pointer type [enabled by default] ewx-stm-channels.c:144:52: error: dereferencing pointer to incomplete type ewx-stm-channels.c:144:52: error: request for member 'next_variable' in something not a structure or union ewx-stm-channels.c:144:46: warning: assignment from incompatible pointer type [enabled by default] ewx-stm-channels.c:146:40: error: dereferencing pointer to incomplete type ewx-stm-channels.c:146:40: error: request for member 'name' in something not a structure or union ewx-stm-channels.c:146:52: error: dereferencing pointer to incomplete type ewx-stm-channels.c:146:52: error: request for member 'name_length' in something not a structure or union ewx-stm-channels.c:148:11: error: dereferencing pointer to incomplete type ewx-stm-channels.c:148:11: error: request for member 'name' in something not a structure or union ewx-stm-channels.c:150:41: error: dereferencing pointer to incomplete type ewx-stm-channels.c:150:41: error: request for member 'name' in something not a structure or union ewx-stm-channels.c:150:53: error: dereferencing pointer to incomplete type ewx-stm-channels.c:150:53: error: request for member 'name_length' in something not a structure or union ewx-stm-channels.c:151:5: warning: passing argument 1 of 'atoi' from incompatible pointer type [enabled by default] /usr/include/stdlib.h:284:1: note: expected 'const char *' but argument is of type 'int *' ewx-stm-channels.c:153:16: error: dereferencing pointer to incomplete type ewx-stm-channels.c:153:16: error: request for member 'name' in something not a structure or union ewx-stm-channels.c:155:41: error: dereferencing pointer to incomplete type ewx-stm-channels.c:155:41: error: request for member 'name' in something not a structure or union ewx-stm-channels.c:155:53: error: dereferencing pointer to incomplete type ewx-stm-channels.c:155:53: error: request for member 'name_length' in something not a structure or union ewx-stm-channels.c:156:5: warning: passing argument 1 of 'atoi' from incompatible pointer type [enabled by default] /usr/include/stdlib.h:284:1: note: expected 'const char *' but argument is of type 'int *' ewx-stm-channels.c:162:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:163:127: error: dereferencing pointer to incomplete type ewx-stm-channels.c:163:127: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:801:5: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:852:8: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:39:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:871:9: warning: passing argument 3 of 'mod_channel' from incompatible pointer type [enabled by default] ewx-stm-channels.c:38:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:885:10: warning: passing argument 3 of 'mod_channel' from incompatible pointer type [enabled by default] ewx-stm-channels.c:38:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:892:8: warning: passing argument 3 of 'update_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:41:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:922:6: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:39:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:944:16: warning: passing argument 3 of 'add_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:961:5: warning: passing argument 3 of 'update_channel' from incompatible pointer type [enabled by default] ewx-stm-channels.c:37:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:964:5: warning: passing argument 3 of 'add_channel' from incompatible pointer type [enabled by default] ewx-stm-channels.c:36:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:968:13: warning: passing argument 3 of 'mod_channel' from incompatible pointer type [enabled by default] ewx-stm-channels.c:38:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:982:6: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:39:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:988:5: warning: passing argument 3 of 'del_channel' from incompatible pointer type [enabled by default] ewx-stm-channels.c:35:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:994:3: warning: passing argument 3 of 'save_tables' from incompatible pointer type [enabled by default] ewx-stm-channels.c:42:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c: At top level: ewx-stm-channels.c:1114:84: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1114:5: error: conflicting types for 'del_channel' ewx-stm-channels.c:35:5: note: previous declaration of 'del_channel' was here ewx-stm-channels.c: In function 'del_channel': ewx-stm-channels.c:1127:4: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:39:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:1135:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1135:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1143:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1143:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1143:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1143:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1143:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1158:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1159:134: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1159:134: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c: At top level: ewx-stm-channels.c:1175:84: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1175:5: error: conflicting types for 'add_channel' ewx-stm-channels.c:36:5: note: previous declaration of 'add_channel' was here ewx-stm-channels.c: In function 'add_channel': ewx-stm-channels.c:1259:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1259:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1271:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1271:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1271:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1271:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1271:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1285:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1286:136: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1286:136: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1303:4: warning: passing argument 3 of 'add_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c: At top level: ewx-stm-channels.c:1309:107: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1309:5: error: conflicting types for 'update_channel' ewx-stm-channels.c:37:5: note: previous declaration of 'update_channel' was here ewx-stm-channels.c: In function 'update_channel': ewx-stm-channels.c:1324:4: warning: passing argument 3 of 'del_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:39:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c:1342:28: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1342:10: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1351:19: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1351:16: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1351:43: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1351:43: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1351:56: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1361:17: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1362:134: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1362:134: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1380:10: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1392:16: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1392:43: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1392:43: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1408:17: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1409:134: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1409:134: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1431:4: warning: passing argument 3 of 'add_node' from incompatible pointer type [enabled by default] ewx-stm-channels.c:40:5: note: expected 'struct snmp_session *' but argument is of type 'struct snmp_session *' ewx-stm-channels.c: At top level: ewx-stm-channels.c:1437:59: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1437:5: error: conflicting types for 'mod_channel' ewx-stm-channels.c:38:5: note: previous declaration of 'mod_channel' was here ewx-stm-channels.c: In function 'mod_channel': ewx-stm-channels.c:1455:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1455:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1464:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1464:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1464:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1464:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1464:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1474:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1475:132: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1475:132: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1493:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1503:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1503:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1503:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1518:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1519:132: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1519:132: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c: At top level: ewx-stm-channels.c:1538:81: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1538:5: error: conflicting types for 'del_node' ewx-stm-channels.c:39:5: note: previous declaration of 'del_node' was here ewx-stm-channels.c: In function 'del_node': ewx-stm-channels.c:1554:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1554:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1562:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1562:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1562:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1562:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1562:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1578:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1580:74: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1580:74: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c: At top level: ewx-stm-channels.c:1597:81: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1597:5: error: conflicting types for 'add_node' ewx-stm-channels.c:40:5: note: previous declaration of 'add_node' was here ewx-stm-channels.c: In function 'add_node': ewx-stm-channels.c:1623:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1623:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1643:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1643:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1643:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1643:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1643:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1676:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1678:74: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1678:74: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c: At top level: ewx-stm-channels.c:1695:101: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1695:5: error: conflicting types for 'update_node' ewx-stm-channels.c:41:5: note: previous declaration of 'update_node' was here ewx-stm-channels.c: In function 'update_node': ewx-stm-channels.c:1721:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1721:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1730:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1730:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1730:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1730:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1730:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1740:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1742:74: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1742:74: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1759:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1788:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1788:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1788:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1819:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1821:74: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1821:74: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c: At top level: ewx-stm-channels.c:1838:59: warning: 'struct snmp_session' declared inside parameter list [enabled by default] ewx-stm-channels.c:1838:5: error: conflicting types for 'save_tables' ewx-stm-channels.c:42:5: note: previous declaration of 'save_tables' was here ewx-stm-channels.c: In function 'save_tables': ewx-stm-channels.c:1850:24: error: 'SNMP_MSG_SET' undeclared (first use in this function) ewx-stm-channels.c:1850:6: warning: assignment makes pointer from integer without a cast [enabled by default] ewx-stm-channels.c:1859:15: error: 'STAT_SUCCESS' undeclared (first use in this function) ewx-stm-channels.c:1859:12: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1859:39: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1859:39: error: request for member 'errstat' in something not a structure or union ewx-stm-channels.c:1859:52: error: 'SNMP_ERR_NOERROR' undeclared (first use in this function) ewx-stm-channels.c:1873:13: warning: comparison between pointer and integer [enabled by default] ewx-stm-channels.c:1874:143: error: dereferencing pointer to incomplete type ewx-stm-channels.c:1874:143: error: request for member 'errstat' in something not a structure or union make[2]: *** [ewx-stm-channels.o] Error 1 make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm-channels' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ggnotify' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o ggnotify.o ggnotify.c gcc -shared ggnotify.o -o ggnotify.so -L/usr/lib64 -L/usr/lib64 -lmysqlclient -ldl -lgadu rm -rf ggnotify.o make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ggnotify' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/hostfile' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o hostfile.o hostfile.c gcc -shared hostfile.o -o hostfile.so -L/usr/lib64 -lmysqlclient -ldl rm -rf hostfile.o make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/hostfile' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/notify' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o notify.o notify.c gcc -shared notify.o -o notify.so -L/usr/lib64 -lmysqlclient -ldl rm -rf notify.o make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/notify' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/oident' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o oident.o oident.c gcc -shared oident.o -o oident.so -L/usr/lib64 -lmysqlclient -ldl rm -rf oident.o make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/oident' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/parser' /usr/bin/make -C lib make[3]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/parser/lib' make[3]: Circular tscript_parser.h <- tscript_parser.h dependency dropped. bison -o tscript_parser.c -d tscript_parser.y -p tscript_yy -r lookahead tscript_parser.y: conflicts: 32 shift/reduce, 1 reduce/reduce x86_64-pld-linux-gcc -c tscript_ast.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_context.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_compiler.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_interpreter.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_variables.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_parser.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_values.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_extensions.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. x86_64-pld-linux-gcc -c tscript_debug.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. flex -otscript_lexical.c -Ptscript_yy tscript_lexical.yy x86_64-pld-linux-gcc -c tscript_lexical.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. ar rs libtscript.a tscript_ast.o tscript_context.o tscript_compiler.o tscript_interpreter.o tscript_variables.o tscript_parser.o tscript_values.o tscript_extensions.o tscript_debug.o tscript_lexical.o ar: creating libtscript.a x86_64-pld-linux-gcc -shared -o libtscript.so tscript_ast.o tscript_context.o tscript_compiler.o tscript_interpreter.o tscript_variables.o tscript_parser.o tscript_values.o tscript_extensions.o tscript_debug.o tscript_lexical.o strip libtscript.so make[3]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/parser/lib' /usr/bin/make -C extensions make[3]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/parser/extensions' gcc -c tscript_exec.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. In file included from tscript_exec.c:32:0: tscript_exec.h:4:29: fatal error: tscript_context.h: No such file or directory compilation terminated. make[3]: *** [tscript_exec.o] Error 1 make[3]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/parser/extensions' make[2]: *** [ext] Error 2
--- [ CIACH ] ---
U was sie te moduly kompiluja? Czego mi brakuje?
Pozdrawiam, SP
On 09.04.2011 12:03, Sławomir Paszkiewicz wrote:
U was sie te moduly kompiluja? Czego mi brakuje?
libnet-snmp-devel czy jakoś tak, pakiet powinien zawierać program net-snmp-config.
W dniu 11 kwietnia 2011 10:42 użytkownik A.L.E.C alec@alec.pl napisał:
On 09.04.2011 12:03, Sławomir Paszkiewicz wrote:
U was sie te moduly kompiluja? Czego mi brakuje?
libnet-snmp-devel czy jakoś tak, pakiet powinien zawierać program net-snmp-config.
[paszczus@carme-pld lms]$ rpm -qf `which net-snmp-config` net-snmp-devel-5.6.1-5.x86_64 [paszczus@carme-pld lms]$ net-snmp-config --version 5.6.1
Czyli zainstalowane bylo caly czas, a bledy takie jak wklejalem...
On 11.04.2011 10:49, Sławomir Paszkiewicz wrote:
libnet-snmp-devel czy jakoś tak, pakiet powinien zawierać program net-snmp-config.
[paszczus@carme-pld lms]$ rpm -qf `which net-snmp-config` net-snmp-devel-5.6.1-5.x86_64 [paszczus@carme-pld lms]$ net-snmp-config --version 5.6.1
Ten programik to nie wszystko. Potrzebujesz jeszcze nagłówki. W Ubuntu pakiet nazywa się libsnmp-dev.
W dniu 11 kwietnia 2011 10:57 użytkownik A.L.E.C alec@alec.pl napisał:
On 11.04.2011 10:49, Sławomir Paszkiewicz wrote:
libnet-snmp-devel czy jakoś tak, pakiet powinien zawierać program net-snmp-config.
[paszczus@carme-pld lms]$ rpm -qf `which net-snmp-config` net-snmp-devel-5.6.1-5.x86_64 [paszczus@carme-pld lms]$ net-snmp-config --version 5.6.1
Ten programik to nie wszystko. Potrzebujesz jeszcze nagłówki. W Ubuntu pakiet nazywa się libsnmp-dev.
net-snmp-devel to wszystko powinno zawierac (i zawiera). JAk teraz tak patrze w bledy budowania to wychodzi na to, ze problem jest z tscript* a nie ext*:
make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-pt' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o ewx-pt.o ewx-pt.c gcc -shared ewx-pt.o -o ewx-pt.so -L/usr/lib64 `net-snmp-config --ldflags` -lmysqlclient -ldl `net-snmp-config --libs` rm -rf ewx-pt.o make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-pt' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o ewx-stm.o ewx-stm.c gcc -shared ewx-stm.o -o ewx-stm.so -L/usr/lib64 `net-snmp-config --ldflags` -lmysqlclient -ldl `net-snmp-config --libs` -lm rm -rf ewx-stm.o make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm-channels' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o ewx-stm-channels.o ewx-stm-channels.c gcc -shared ewx-stm-channels.o -o ewx-stm-channels.so -L/usr/lib64 `net-snmp-config --ldflags` -lmysqlclient -ldl `net-snmp-config --libs` rm -rf ewx-stm-channels.o make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm-channels'
czyli OK. a pozniej:
/usr/bin/make -C extensions x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o parser.o parser.c make[2]: *** No rule to make target `lib/libtscript.a', needed by `parser.so'. Stop. make[2]: *** Waiting for unfinished jobs.... make[3]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/parser/lib' make[3]: Circular tscript_parser.h <- tscript_parser.h dependency dropped. bison -o tscript_parser.c -d tscript_parser.y -p tscript_yy -r lookahead make[3]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/parser/extensions' gcc -c tscript_exec.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. yacc tscript_parser.y gcc -c tscript_string.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. gcc -c tscript_file.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. gcc -c tscript_sysinfo.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. gcc -c sql.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. gcc -c net.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. gcc -c syslog.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. tscript_parser.y: conflicts: 32 shift/reduce, 1 reduce/reduce yacc: e - line 44 of "tscript_parser.y", syntax error %error-verbose ^ In file included from tscript_exec.c:32:0: tscript_exec.h:4:29: fatal error: tscript_context.h: No such file or directory
czy zle to interpertuje ?
On 11.04.2011 11:04, Sławomir Paszkiewicz wrote:
net-snmp-devel to wszystko powinno zawierac (i zawiera). JAk teraz tak patrze w bledy budowania to wychodzi na to, ze problem jest z tscript* a nie ext*:
wcześniejszy listing zawierał błędy dotyczące ewx-*
tscript_parser.y: conflicts: 32 shift/reduce, 1 reduce/reduce yacc: e - line 44 of "tscript_parser.y", syntax error %error-verbose ^
Jaka wersja bison i flex? U mnie działa flex-2.5.35, bison-2.4.1.
W dniu 11 kwietnia 2011 11:19 użytkownik A.L.E.C alec@alec.pl napisał:
On 11.04.2011 11:04, Sławomir Paszkiewicz wrote:
net-snmp-devel to wszystko powinno zawierac (i zawiera). JAk teraz tak patrze w bledy budowania to wychodzi na to, ze problem jest z tscript* a nie ext*:
wcześniejszy listing zawierał błędy dotyczące ewx-*
OK, dodam w takim razie rowniez net-snmp-devel jako BR.
tscript_parser.y: conflicts: 32 shift/reduce, 1 reduce/reduce yacc: e - line 44 of "tscript_parser.y", syntax error %error-verbose ^
Jaka wersja bison i flex? U mnie działa flex-2.5.35, bison-2.4.1.
[paszczus@carme-pld lms]$ rpm -qa |grep bison bison-runtime-2.4.3-1.x86_64 bison-2.4.3-1.x86_64 [paszczus@carme-pld lms]$ rpm -qa|grep flex flex-2.5.35-0.1.x86_64
uczestnicy (2)
-
A.L.E.C
-
Sławomir Paszkiewicz