Автор Тема: модул ip_set  (Прочетена 1635 пъти)

bashi1

  • Напреднали
  • *****
  • Публикации: 115
    • Профил
модул ip_set
« -: Mar 09, 2008, 15:14 »
Привет. Наложи ми се да си компилирам ядро за първи път и се сблъсках с някои проблеми. Самата компилация мина гладко - изтеглих си версия 2.6.24.3. Въпроса ми е следният: трябваше ми модул ip_set за едно приложение и понеже не знаех точно къде се намира сложих всички модули в network. Сега като дам
Примерен код

root@bashi-desktop:/home/bashi# modprobe ip_set
FATAL: Module ip_set not found.

Какво може да съм объркал? Има ли някякъв начин да се зареди тази таблица с въпросите за да видя кои модули съм сложел за да не съм пропуснал нещо и да добавя само тях. Дори да се наложи да се компилира цялото ядро, но поне да не отговарям пак на всички въпроси, а само на тези, които съм объркал. Предварително благодаря!
Активен

ivo1204

  • Напреднали
  • *****
  • Публикации: 987
    • Профил
модул ip_set
« Отговор #1 -: Mar 09, 2008, 16:00 »
След като си изтеглил ядрото и разархивирал , има един файл , README.
..........................................................
 Alternate configuration commands are:
   "make config"      Plain text interface.
   "make menuconfig"  Text based color menus, radiolists & dialogs.
   "make xconfig"     X windows (Qt) based configuration tool.
   "make gconfig"     X windows (Gtk) based configuration tool.
............................................................
Активен

bashi1

  • Напреднали
  • *****
  • Публикации: 115
    • Профил
модул ip_set
« Отговор #2 -: Mar 09, 2008, 18:41 »
Добре, добавих този модул в листа и запаметих новия конфигурационен файл. Сега пак ли да прекомпилирам след промените?
Активен

buboleck

  • Напреднали
  • *****
  • Публикации: 388
  • Distribution: Gentoo
  • Window Manager: Kde 4.x
  • ?
    • Профил
модул ip_set
« Отговор #3 -: Mar 09, 2008, 20:12 »
Цитат (bashi1 @ Март 09 2008,18:41)
Добре, добавих този модул в листа и запаметих новия конфигурационен файл. Сега пак ли да прекомпилирам след промените?

Да!
Активен

Powered by Gentoo, AMD Athlon64 X2 5050e (Intel Pentium D 840 sucks) and 400W Fortron PSU
http://www.russian-motorcycles.com

romeo_ninov

  • Напреднали
  • *****
  • Публикации: 2155
    • Профил
модул ip_set
« Отговор #4 -: Mar 09, 2008, 20:53 »
Цитат (buboleck @ Март 09 2008,21:12)
Цитат (bashi1 @ Март 09 2008,18:41)
Добре, добавих този модул в листа и запаметих новия конфигурационен файл. Сега пак ли да прекомпилирам след промените?

Да!

Ако си добавил поддържка на модули можеш само да компилираш само този модул и да го инсталираш
Активен

0x2B|~0x2B

bashi1

  • Напреднали
  • *****
  • Публикации: 115
    • Профил
модул ip_set
« Отговор #5 -: Mar 10, 2008, 13:15 »
Мисля, че съм добавил поддръжка на този модул и се опитах да го инсталирам. Изтеглих си оттук един файл ftp://ftp.netfilter.org/pub/ipset/snapshot/ копирам го и го разархивирам в /usr/src след което давам make install при което се получава следното:
Примерен код
root@bashi-desktop:/usr/src/ipset-20060605# make install
cc -O2 -Wall -Wunused -I/usr/src/linux/include -I.  -DIPSET_VERSION=\"2.2.9\" -DIPSET_LIB_DIR=\"/usr/local/lib/ipset\" -c -o ipset.o ipset.c
ipset.c:24:24: error: asm/bitops.h: No such file or directory
In file included from ipset.c:26:
ipset.h:27:41: error: linux/netfilter_ipv4/ip_set.h: No such file or directory
In file included from ipset.c:26:
ipset.h:79: error: ‘IP_SET_MAXNAMELEN’ undeclared here (not in a function)
ipset.h:80: error: expected specifier-qualifier-list before ‘ip_set_id_t’
ipset.h:121: error: expected specifier-qualifier-list before ‘ip_set_ip_t’
ipset.h:171: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.h:172: error: expected ‘)’ before ‘ip’
ipset.h:173: error: expected ‘)’ before ‘ip’
ipset.h:174: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.h:175: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.h:176: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.h:177: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.h:178: error: expected ‘)’ before ‘port’
ipset.h:179: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.h:181: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.c:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘’ before ‘max_sets’
ipset.c: In function ‘kernel_getfrom’:
ipset.c:301: error: ‘SO_IP_SET’ undeclared (first use in this function)
ipset.c:301: error: (Each undeclared identifier is reported only once
ipset.c:301: error: for each function it appears in.)
ipset.c: In function ‘kernel_sendto_handleerrno’:
ipset.c:316: error: ‘SO_IP_SET’ undeclared (first use in this function)
ipset.c: In function ‘kernel_sendto’:
ipset.c:336: error: ‘SO_IP_SET’ undeclared (first use in this function)
ipset.c: In function ‘kernel_getfrom_handleerrno’:
ipset.c:350: error: ‘SO_IP_SET’ undeclared (first use in this function)
ipset.c: In function ‘check_protocolversion’:
ipset.c:366: error: storage size of ‘req_version’ isn’t known
ipset.c:367: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_version’
ipset.c:371: error: ‘IP_SET_OP_VERSION’ undeclared (first use in this function)
ipset.c:372: error: ‘SO_IP_SET’ undeclared (first use in this function)
ipset.c:378: error: ‘IP_SET_PROTOCOL_VERSION’ undeclared (first use in this function)
ipset.c:366: warning: unused variable ‘req_version’
ipset.c: At top level:
ipset.c:494: error: expected ‘)’ before ‘ip’
ipset.c:509: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.c: In function ‘binding_ip_tostring’:
ipset.c:511: warning: implicit declaration of function ‘ip_tostring’
ipset.c:511: error: ‘ip’ undeclared (first use in this function)
ipset.c:511: warning: return makes pointer from integer without a cast
ipset.c: At top level:
ipset.c:513: error: expected ‘)’ before ‘ip’
ipset.c:519: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.c: In function ‘parse_ip’:
ipset.c:527: error: ‘ip’ undeclared (first use in this function)
ipset.c: At top level:
ipset.c:551: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.c: In function ‘parse_mask’:
ipset.c:560: error: ‘mask’ undeclared (first use in this function)
ipset.c: At top level:
ipset.c:578: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.c:578: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.c: In function ‘parse_ipandmask’:
ipset.c:588: error: ‘mask’ undeclared (first use in this function)
ipset.c:588: error: too many arguments to function ‘parse_mask’
ipset.c:590: error: too many arguments to function ‘parse_mask’
ipset.c:594: error: ‘ip’ undeclared (first use in this function)
ipset.c:596: error: too many arguments to function ‘parse_ip’
ipset.c: At top level:
ipset.c:612: error: expected ‘)’ before ‘port’
ipset.c:627: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.c: In function ‘string_to_number’:
ipset.c:638: error: ‘port’ undeclared (first use in this function)
ipset.c: At top level:
ipset.c:646: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.c: In function ‘string_to_port’:
ipset.c:651: error: ‘port’ undeclared (first use in this function)
ipset.c: At top level:
ipset.c:659: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.c: In function ‘parse_port’:
ipset.c:661: error: ‘port’ undeclared (first use in this function)
ipset.c:661: error: too many arguments to function ‘string_to_number’
ipset.c:662: error: too many arguments to function ‘string_to_port’
ipset.c: In function ‘settype_register’:
ipset.c:757: error: ‘IP_SET_PROTOCOL_VERSION’ undeclared (first use in this function)
ipset.c:765: error: ‘struct settype’ has no member named ‘header’
ipset.c:765: error: ‘struct settype’ has no member named ‘header_size’
ipset.c:767: error: ‘struct settype’ has no member named ‘data’
ipset.c: At top level:
ipset.c:777: error: expected ‘)’ before ‘id’
ipset.c: In function ‘set_find_byname’:
ipset.c:797: error: ‘ip_set_id_t’ undeclared (first use in this function)
ipset.c:797: error: expected ‘;’ before ‘i’
ipset.c:799: error: ‘i’ undeclared (first use in this function)
ipset.c:799: error: ‘max_sets’ undeclared (first use in this function)
ipset.c: At top level:
ipset.c:812: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘’ before ‘set_find_free_index’
ipset.c: In function ‘set_create’:
ipset.c:842: error: storage size of ‘req_create’ isn’t known
ipset.c:848: error: ‘IP_SET_OP_CREATE’ undeclared (first use in this function)
ipset.c:849: error: ‘IP_SET_PROTOCOL_VERSION’ undeclared (first use in this function)
ipset.c:854: error: ‘struct settype’ has no member named ‘data’
ipset.c:854: error: ‘struct settype’ has no member named ‘flags’
ipset.c:857: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_create’
ipset.c:861: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_create’
ipset.c:862: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_create’
ipset.c:863: error: ‘struct settype’ has no member named ‘data’
ipset.c:842: warning: unused variable ‘req_create’
ipset.c: In function ‘set_restore_create’:
ipset.c:880: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_restore’
ipset.c:885: error: ‘struct settype’ has no member named ‘data’
ipset.c:885: error: ‘struct settype’ has no member named ‘flags’
ipset.c:890: error: dereferencing pointer to incomplete type
ipset.c:891: error: dereferencing pointer to incomplete type
ipset.c:892: error: dereferencing pointer to incomplete type
ipset.c:892: warning: implicit declaration of function ‘set_find_free_index’
ipset.c:893: error: dereferencing pointer to incomplete type
ipset.c:894: error: dereferencing pointer to incomplete type
ipset.c:899: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_restore’
ipset.c:900: error: ‘struct settype’ has no member named ‘data’
ipset.c:903: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_restore’
ipset.c:908: error: ‘struct set’ has no member named ‘settype’
ipset.c:909: error: ‘struct set’ has no member named ‘index’
ipset.c:909: error: dereferencing pointer to incomplete type
ipset.c:910: error: dereferencing pointer to incomplete type
ipset.c: In function ‘set_destroy’:
ipset.c:918: error: storage size of ‘req’ isn’t known
ipset.c:923: error: ‘IP_SET_PROTOCOL_VERSION’ undeclared (first use in this function)
ipset.c:926: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_std’
ipset.c:918: warning: unused variable ‘req’
ipset.c: In function ‘set_rename’:
ipset.c:935: error: storage size of ‘req’ isn’t known
ipset.c:941: error: ‘IP_SET_PROTOCOL_VERSION’ undeclared (first use in this function)
ipset.c:946: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_create’
ipset.c:935: warning: unused variable ‘req’
ipset.c: At top level:
ipset.c:953: error: expected declaration specifiers or ‘...’ before ‘ip_set_id_t’
ipset.c: In function ‘load_set_list’:
ipset.c:957: error: storage size of ‘req_max_sets’ isn’t known
ipset.c:960: error: ‘ip_set_id_t’ undeclared (first use in this function)
ipset.c:960: error: expected ‘;’ before ‘i’
ipset.c:971: error: ‘i’ undeclared (first use in this function)
ipset.c:971: error: ‘max_sets’ undeclared (first use in this function)
ipset.c:978: error: ‘IP_SET_OP_MAX_SETS’ undeclared (first use in this function)
ipset.c:979: error: ‘IP_SET_PROTOCOL_VERSION’ undeclared (first use in this function)
ipset.c:998: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_setnames’
ipset.c:998: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_name_list’
ipset.c:1000: error: dereferencing pointer to incomplete type
ipset.c:1001: error: dereferencing pointer to incomplete type
ipset.c:1016: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_setnames’
ipset.c:1017: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_name_list’
ipset.c:1021: error: dereferencing pointer to incomplete type
ipset.c:1022: error: ‘struct set’ has no member named ‘index’
ipset.c:1022: error: dereferencing pointer to incomplete type
ipset.c:1023: error: ‘struct set’ has no member named ‘id’
ipset.c:1023: error: dereferencing pointer to incomplete type
ipset.c:1024: error: ‘struct set’ has no member named ‘settype’
ipset.c:1024: error: dereferencing pointer to incomplete type
ipset.c:1025: error: dereferencing pointer to incomplete type
ipset.c:1028: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_name_list’
ipset.c:1031: error: dereferencing pointer to incomplete type
ipset.c:957: warning: unused variable ‘req_max_sets’
ipset.c: In function ‘save_bindings’:
ipset.c:1047: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_hash_save’
ipset.c:1051: warning: implicit declaration of function ‘set_find_byid’
ipset.c:1051: error: dereferencing pointer to incomplete type
ipset.c:1051: warning: assignment makes pointer from integer without a cast
ipset.c:1052: error: dereferencing pointer to incomplete type
ipset.c:1057: error: ‘struct set’ has no member named ‘settype’
ipset.c:1057: error: dereferencing pointer to incomplete type
ipset.c:1058: error: dereferencing pointer to incomplete type
ipset.c:1060: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_hash_save’
ipset.c: In function ‘save_set’:
ipset.c:1073: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_save’
ipset.c:1075: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_save’
ipset.c:1075: error: dereferencing pointer to incomplete type
ipset.c:1075: error: dereferencing pointer to incomplete type
ipset.c:1079: error: dereferencing pointer to incomplete type
ipset.c:1079: error: ‘IP_SET_INVALID_ID’ undeclared (first use in this function)
ipset.c:1082: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_save’
ipset.c:1084: error: dereferencing pointer to incomplete type
ipset.c:1088: error: ‘struct set’ has no member named ‘settype’
ipset.c:1091: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_save’
ipset.c:1092: error: ‘struct settype’ has no member named ‘initheader’
ipset.c:1095: error: ‘struct settype’ has no member named ‘saveheader’
ipset.c:1098: error: dereferencing pointer to incomplete type
ipset.c:1099: error: ‘struct settype’ has no member named ‘saveips’
ipset.c:1100: error: dereferencing pointer to incomplete type
ipset.c:1102: error: dereferencing pointer to incomplete type
ipset.c: In function ‘save_default_bindings’:
ipset.c:1110: error: dereferencing pointer to incomplete type
ipset.c:1110: error: ‘IP_SET_INVALID_ID’ undeclared (first use in this function)
ipset.c:1113: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_save’
ipset.c:1116: error: dereferencing pointer to incomplete type
ipset.c:1118: error: dereferencing pointer to incomplete type
ipset.c:1119: error: dereferencing pointer to incomplete type
ipset.c:1124: error: ‘IPSET_TOKEN_DEFAULT’ undeclared (first use in this function)
ipset.c:1125: error: dereferencing pointer to incomplete type
ipset.c:1128: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_save’
ipset.c:1128: error: dereferencing pointer to incomplete type
ipset.c:1129: error: dereferencing pointer to incomplete type
ipset.c: In function ‘try_save_sets’:
ipset.c:1136: error: ‘ip_set_id_t’ undeclared (first use in this function)
ipset.c:1136: error: expected ‘;’ before ‘index’
ipset.c:1142: error: ‘IP_SET_OP_SAVE_SIZE’ undeclared (first use in this function)
ipset.c:1142: error: type of formal parameter 1 is incomplete
ipset.c:1142: warning: passing argument 2 of ‘load_set_list’ makes integer from pointer without a cast
ipset.c:1142: error: too many arguments to function ‘load_set_list’
ipset.c:1147: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_save’
ipset.c:1149: error: dereferencing pointer to incomplete type
ipset.c:1149: error: ‘IP_SET_OP_SAVE’ undeclared (first use in this function)
ipset.c:1150: error: dereferencing pointer to incomplete type
ipset.c: In function ‘set_save’:
ipset.c:1190: error: type of formal parameter 1 is incomplete
ipset.c: In function ‘set_restore’:
ipset.c:1274: error: ‘ip_set_id_t’ undeclared (first use in this function)
ipset.c:1274: error: expected ‘;’ before ‘index’
ipset.c:1282: error: ‘IPSET_TOKEN_ALL’ undeclared (first use in this function)
ipset.c:1283: error: ‘IP_SET_OP_LIST_SIZE’ undeclared (first use in this function)
ipset.c:1283: error: type of formal parameter 1 is incomplete
ipset.c:1283: warning: passing argument 2 of ‘load_set_list’ makes integer from pointer without a cast
ipset.c:1283: error: too many arguments to function ‘load_set_list’
ipset.c:1286: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_setnames’
ipset.c:1286: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_restore’
ipset.c:1339: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_restore’
ipset.c:1360: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_hash_save’
ipset.c:1378: error: dereferencing pointer to incomplete type
ipset.c:1378: error: ‘IP_SET_OP_RESTORE’ undeclared (first use in this function)
ipset.c:1379: error: dereferencing pointer to incomplete type
ipset.c:1380: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_setnames’
ipset.c:1414: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_restore’
ipset.c:1420: error: dereferencing pointer to incomplete type
ipset.c:1420: error: ‘IP_SET_INVALID_ID’ undeclared (first use in this function)
ipset.c:1421: error: dereferencing pointer to incomplete type
ipset.c:1421: error: dereferencing pointer to incomplete type
ipset.c:1422: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_restore’
ipset.c:1430: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_setnames’
ipset.c:1433: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_setnames’
ipset.c:1436: error: dereferencing pointer to incomplete type
ipset.c:1439: error: dereferencing pointer to incomplete type
ipset.c: In function ‘set_adt_get’:
ipset.c:1448: error: storage size of ‘req_adt_get’ isn’t known
ipset.c:1454: error: ‘IP_SET_OP_ADT_GET’ undeclared (first use in this function)
ipset.c:1455: error: ‘IP_SET_PROTOCOL_VERSION’ undeclared (first use in this function)
ipset.c:1457: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_adt_get’
ipset.c:1463: error: ‘struct set’ has no member named ‘index’
ipset.c:1464: error: ‘struct set’ has no member named ‘settype’
ipset.c:1448: warning: unused variable ‘req_adt_get’
ipset.c: In function ‘set_adtip’:
ipset.c:1483: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_adt’
ipset.c:1483: error: ‘struct set’ has no member named ‘settype’
ipset.c:1489: error: dereferencing pointer to incomplete type
ipset.c:1490: error: dereferencing pointer to incomplete type
ipset.c:1490: error: ‘struct set’ has no member named ‘index’
ipset.c:1491: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_adt’
ipset.c:1492: error: ‘struct set’ has no member named ‘settype’
ipset.c:1492: error: ‘struct set’ has no member named ‘settype’
ipset.c:1496: error: ‘IP_SET_OP_ADD_IP’ undeclared (first use in this function)
ipset.c:1500: error: ‘IP_SET_OP_DEL_IP’ undeclared (first use in this function)
ipset.c:1504: error: ‘IP_SET_OP_TEST_IP’ undeclared (first use in this function)
ipset.c: In function ‘set_restore_add’:
ipset.c:1529: error: ‘struct set’ has no member named ‘settype’
ipset.c:1534: error: ‘struct set’ has no member named ‘settype’
ipset.c:1534: error: ‘struct set’ has no member named ‘settype’
ipset.c:1535: error: dereferencing pointer to incomplete type
ipset.c:1535: error: ‘struct set’ has no member named ‘settype’
ipset.c:1536: error: ‘struct set’ has no member named ‘settype’
ipset.c: In function ‘set_bind’:
ipset.c:1555: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_bind’
ipset.c:1556: error: ‘IP_SET_OP_UNBIND_SET’ undeclared (first use in this function)
ipset.c:1560: error: ‘struct set’ has no member named ‘settype’
ipset.c:1566: error: dereferencing pointer to incomplete type
ipset.c:1567: error: dereferencing pointer to incomplete type
ipset.c:1567: error: ‘struct set’ has no member named ‘index’
ipset.c:1567: error: ‘IP_SET_INVALID_ID’ undeclared (first use in this function)
ipset.c:1570: error: dereferencing pointer to incomplete type
ipset.c:1572: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_bind’
ipset.c:1575: error: dereferencing pointer to incomplete type
ipset.c:1576: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_req_bind’
ipset.c:1577: error: ‘struct set’ has no member named ‘settype’
ipset.c:1577: error: ‘struct set’ has no member named ‘settype’
ipset.c:1580: error: ‘IP_SET_OP_TEST_BIND_SET’ undeclared (first use in this function)
ipset.c: In function ‘set_restore_bind’:
ipset.c:1610: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_restore’
ipset.c:1613: error: dereferencing pointer to incomplete type
ipset.c:1613: error: ‘IP_SET_INVALID_ID’ undeclared (first use in this function)
ipset.c:1614: error: dereferencing pointer to incomplete type
ipset.c:1614: error: dereferencing pointer to incomplete type
ipset.c:1615: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_restore’
ipset.c:1619: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_hash_save’
ipset.c:1625: error: ‘IPSET_TOKEN_DEFAULT’ undeclared (first use in this function)
ipset.c:1626: error: dereferencing pointer to incomplete type
ipset.c:1628: error: ‘struct set’ has no member named ‘settype’
ipset.c:1628: error: dereferencing pointer to incomplete type
ipset.c:1629: error: dereferencing pointer to incomplete type
ipset.c:1629: error: ‘struct set’ has no member named ‘index’
ipset.c:1630: error: dereferencing pointer to incomplete type
ipset.c:1630: error: ‘struct set’ has no member named ‘index’
ipset.c:1633: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_hash_save’
ipset.c: At top level:
ipset.c:1643: error: expected declaration specifiers or ‘...’ before ‘ip_set_ip_t’
ipset.c: In function ‘print_bindings’:
ipset.c:1651: error: dereferencing pointer to incomplete type
ipset.c:1651: error: too many arguments to function ‘printip’
ipset.c:1652: error: dereferencing pointer to incomplete type
ipset.c:1653: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_hash_list’
ipset.c: In function ‘print_set’:
ipset.c:1661: error: dereferencing pointer to incomplete type
ipset.c:1662: error: ‘struct set’ has no member named ‘settype’
ipset.c:1668: error: dereferencing pointer to incomplete type
ipset.c:1670: error: dereferencing pointer to incomplete type
ipset.c:1670: error: ‘IP_SET_INVALID_ID’ undeclared (first use in this function)
ipset.c:1671: error: dereferencing pointer to incomplete type
ipset.c:1674: error: invalid application of ‘sizeof’ to incomplete type ‘struct ip_set_list’
ipset.c:1675: error: ‘struct settype’ has no member named ‘initheader’
ipset.c:1679: error: ‘struct settype’ has no member named ‘printheader’
ipset.c:1683: error: dereferencing pointer to incomplete type
ipset.c:1685: error: ‘struct settype’ has no member named ‘printips_sorted’
ipset.c:1686: error: dereferencing pointer to incomplete type
ipset.c:1688: error: ‘struct settype’ has no member named ‘printips’
ipset.c:1689: error: dereferencing pointer to incomplete type
ipset.c:1693: error: dereferencing pointer to incomplete type
ipset.c:1695: error: dereferencing pointer to incomplete type
ipset.c:1696: error: ‘struct settype’ has no member named ‘bindip_tostring’
ipset.c:1700: error: dereferencing pointer to incomplete type
ipset.c: In function ‘try_list_sets’:
ipset.c:1707: error: ‘ip_set_id_t’ undeclared (first use in this function)
ipset.c:1707: error: expected ‘;’ before ‘index’
ipset.c:1714: error: ‘IP_SET_OP_LIST_SIZE’ undeclared (first use in this function)
ipset.c:1714: error: type of formal parameter 1 is incomplete
ipset.c:1714: warning: passing argument 2 of ‘load_set_list’ makes integer from pointer without a cast
ipset.c:1714: error: too many arguments to function ‘load_set_list’
ipset.c:1719: error: dereferencing pointer to incomplete type
ipset.c:1719: error: ‘IP_SET_OP_LIST’ undeclared (first use in this function)
ipset.c:1720: error: dereferencing pointer to incomplete type
ipset.c: In function ‘list_sets’:
ipset.c:1746: error: type of formal parameter 1 is incomplete
ipset.c: In function ‘set_help’:
ipset.c:1827: error: ‘const struct settype’ has no member named ‘usage’
ipset.c: In function ‘parse_adt_cmdline’:
ipset.c:1852: error: ‘IPSET_TOKEN_ALL’ undeclared (first use in this function)
ipset.c:1853: error: ‘IPSET_TOKEN_DEFAULT’ undeclared (first use in this function)
ipset.c:1870: error: ‘struct set’ has no member named ‘settype’
ipset.c:1871: error: ‘struct settype’ has no member named ‘data’
ipset.c:1880: error: ‘struct settype’ has no member named ‘adt_parser’
ipset.c:1883: error: ‘struct settype’ has no member named ‘data’
ipset.c: In function ‘parse_commandline’:
ipset.c:1902: error: ‘IPSET_TOKEN_ALL’ undeclared (first use in this function)
ipset.c:1937: error: ‘IP_SET_PROTOCOL_VERSION’ undeclared (first use in this function)
ipset.c:1937: warning: format ‘%u’ expects type ‘unsigned int’, but argument 4 has type ‘char *’
ipset.c:1965: error: ‘struct settype’ has no member named ‘option_offset’
ipset.c:1965: warning: passing argument 3 of ‘merge_options’ from incompatible pointer type
ipset.c:1968: error: ‘struct settype’ has no member named ‘data’
ipset.c:1971: error: ‘struct settype’ has no member named ‘flags’
ipset.c:1971: warning: statement with no effect
ipset.c:1975: error: ‘struct settype’ has no member named ‘data’
ipset.c:2087: error: ‘struct settype’ has no member named ‘option_offset’
ipset.c:2087: error: invalid operands to binary -
ipset.c:2089: error: ‘struct settype’ has no member named ‘data’
ipset.c:2090: error: ‘struct settype’ has no member named ‘flags’
ipset.c:2090: warning: passing argument 1 of ‘settype->create_parse’ makes integer from pointer without a cast
ipset.c:2090: warning: passing argument 4 of ‘settype->create_parse’ from incompatible pointer type
ipset.c:2133: error: ‘IP_SET_OP_DESTROY’ undeclared (first use in this function)
ipset.c:2133: warning: passing argument 2 of ‘set_destroy’ makes integer from pointer without a cast
ipset.c:2137: error: ‘IP_SET_OP_FLUSH’ undeclared (first use in this function)
ipset.c:2137: warning: passing argument 2 of ‘set_destroy’ makes integer from pointer without a cast
ipset.c:2141: error: ‘IP_SET_OP_RENAME’ undeclared (first use in this function)
ipset.c:2141: warning: passing argument 3 of ‘set_rename’ makes integer from pointer without a cast
ipset.c:2145: error: ‘IP_SET_OP_SWAP’ undeclared (first use in this function)
ipset.c:2145: warning: passing argument 3 of ‘set_rename’ makes integer from pointer without a cast
ipset.c:2149: error: type of formal parameter 1 is incomplete
ipset.c:2153: error: type of formal parameter 1 is incomplete
ipset.c:2164: error: ‘IP_SET_OP_ADD_IP’ undeclared (first use in this function)
ipset.c:2164: warning: passing argument 3 of ‘set_adtip’ makes integer from pointer without a cast
ipset.c:2168: error: ‘IP_SET_OP_DEL_IP’ undeclared (first use in this function)
ipset.c:2168: warning: passing argument 3 of ‘set_adtip’ makes integer from pointer without a cast
ipset.c:2174: error: ‘IP_SET_OP_TEST_BIND_SET’ undeclared (first use in this function)
ipset.c:2174: warning: passing argument 4 of ‘set_bind’ makes integer from pointer without a cast
ipset.c:2177: error: ‘IP_SET_OP_TEST_IP’ undeclared (first use in this function)
ipset.c:2177: warning: passing argument 3 of ‘set_adtip’ makes integer from pointer without a cast
ipset.c:2185: error: ‘IP_SET_OP_BIND_SET’ undeclared (first use in this function)
ipset.c:2185: warning: passing argument 4 of ‘set_bind’ makes integer from pointer without a cast
ipset.c:2189: error: ‘IP_SET_OP_UNBIND_SET’ undeclared (first use in this function)
ipset.c:2189: warning: passing argument 4 of ‘set_bind’ makes integer from pointer without a cast
make: *** [ipset.o] Error 1
Какво съм объркал?
Активен

ivo1204

  • Напреднали
  • *****
  • Публикации: 987
    • Профил
модул ip_set
« Отговор #6 -: Mar 10, 2008, 16:07 »
Цитат
root@bashi-desktop:/usr/src/ipset-20060605# make install
cc -O2 -Wall -Wunused -I/usr/src/linux/include -I.  -DIPSET_VERSION=\"2.2.9\" -DIPSET_LIB_DIR=\"/usr/local/lib/ipset\" -c -o ipset.o ipset.c
ipset.c:24:24: error: asm/bitops.h: No such file or directory
In file included from ipset.c:26:
ipset.h:27:41: error: linux/netfilter_ipv4/ip_set.h: No such file or directory

ipset-20060605 -> ipset.c:
...............
24. #include <asm/bitops.h>
..................................
26#include "ipset.h"
.................................

ipset.h
....................
27.  #include <linux/netfilter_ipv4/ip_set.h>
.......................
Бе нещо много стар ми се вижда тоя код , начи за некакво по старо ядро е , още , иска и линк в /usr/src  linux->твоето ядро,
но интересно , "asm/bitops.h" трябва да го имаш в /usr/include/.
Обаче :
cd /usr/include
find | grep ip_set
cd /usr/src/linux
find | grep ip_set
няма никой .



Активен