CentOS 5.5 ipt_ipp2p.o Error 1解决方法


[root@localhost ipp2p-0.8.2]# make
cat: /lib/modules/2.6.18-194.26.1.el5PAE/build/Makefile: No such file or directory
cat: /lib/modules/2.6.18-194.26.1.el5PAE/build/Makefile: No such file or directory
gcc -O3 -Wall -I/lib/modules/2.6.18-194.26.1.el5PAE/build/include -c ipt_ipp2p.c -D__KERNEL__ -DMODULE -DMODVERSIONS
ipt_ipp2p.c:2:31: error: linux/modversions.h: No such file or directory
ipt_ipp2p.c:4:26: error: linux/module.h: No such file or directory
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:18,
                 from ipt_ipp2p.c:5:
/usr/include/linux/netfilter_ipv4.h:53: error: ‘INT_MIN’ undeclared here (not in a function)
/usr/include/linux/netfilter_ipv4.h:65: error: ‘INT_MAX’ undeclared here (not in a function)
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:20,
                 from ipt_ipp2p.c:5:
/usr/include/linux/netfilter/x_tables.h:11: error: expected specifier-qualifier-list before ‘u_int16_t’
/usr/include/linux/netfilter/x_tables.h:19: error: expected specifier-qualifier-list before ‘u_int16_t’
/usr/include/linux/netfilter/x_tables.h:26: error: expected specifier-qualifier-list before ‘u_int16_t’
/usr/include/linux/netfilter/x_tables.h:36: error: expected specifier-qualifier-list before ‘u_int16_t’
/usr/include/linux/netfilter/x_tables.h:44: error: expected specifier-qualifier-list before ‘u_int16_t’
/usr/include/linux/netfilter/x_tables.h:51: error: expected specifier-qualifier-list before ‘u_int16_t’
/usr/include/linux/netfilter/x_tables.h:69: error: expected specifier-qualifier-list before ‘u_int8_t’
/usr/include/linux/netfilter/x_tables.h:85: error: expected specifier-qualifier-list before ‘u_int8_t’
/usr/include/linux/netfilter/x_tables.h:120: error: expected specifier-qualifier-list before ‘u_int64_t’
In file included from ipt_ipp2p.c:5:
/usr/include/linux/netfilter_ipv4/ip_tables.h:32: error: field ‘src’ has incomplete type
/usr/include/linux/netfilter_ipv4/ip_tables.h:32: error: field ‘dst’ has incomplete type
/usr/include/linux/netfilter_ipv4/ip_tables.h:34: error: field ‘smsk’ has incomplete type
/usr/include/linux/netfilter_ipv4/ip_tables.h:34: error: field ‘dmsk’ has incomplete type
/usr/include/linux/netfilter_ipv4/ip_tables.h:35: error: ‘IFNAMSIZ’ undeclared here (not in a function)
/usr/include/linux/netfilter_ipv4/ip_tables.h:39: error: expected specifier-qualifier-list before ‘u_int16_t’
/usr/include/linux/netfilter_ipv4/ip_tables.h:79: error: expected specifier-qualifier-list before ‘u_int16_t’
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:112,
                 from ipt_ipp2p.c:5:
/usr/include/linux/netfilter/xt_tcpudp.h:7: error: expected specifier-qualifier-list before ‘u_int16_t’
/usr/include/linux/netfilter/xt_tcpudp.h:25: error: expected specifier-qualifier-list before ‘u_int16_t’
In file included from ipt_ipp2p.c:5:
/usr/include/linux/netfilter_ipv4/ip_tables.h:129: error: expected specifier-qualifier-list before ‘u_int8_t’
/usr/include/linux/netfilter_ipv4/ip_tables.h: In function ‘ipt_get_target’:
/usr/include/linux/netfilter_ipv4/ip_tables.h:217: error: ‘struct ipt_entry’ has no member named ‘target_offset’
ipt_ipp2p.c:9:21: error: net/tcp.h: No such file or directory
ipt_ipp2p.c:10:21: error: net/udp.h: No such file or directory
ipt_ipp2p.c: At top level:
ipt_ipp2p.c:16: error: expected declaration specifiers or ‘...’ before string constant
ipt_ipp2p.c:16: warning: data definition has no type or storage class
ipt_ipp2p.c:16: warning: type defaults to ‘int’ in declaration of ‘MODULE_AUTHOR’
ipt_ipp2p.c:17: error: expected declaration specifiers or ‘...’ before string constant
ipt_ipp2p.c:17: warning: data definition has no type or storage class
ipt_ipp2p.c:17: warning: type defaults to ‘int’ in declaration of ‘MODULE_DESCRIPTION’
ipt_ipp2p.c:18: error: expected declaration specifiers or ‘...’ before string constant
ipt_ipp2p.c:18: warning: data definition has no type or storage class
ipt_ipp2p.c:18: warning: type defaults to ‘int’ in declaration of ‘MODULE_LICENSE’
ipt_ipp2p.c: In function ‘udp_search_edk’:
ipt_ipp2p.c:42: error: ‘__u16’ undeclared (first use in this function)
ipt_ipp2p.c:42: error: (Each undeclared identifier is reported only once
ipt_ipp2p.c:42: error: for each function it appears in.)
ipt_ipp2p.c:42: error: expected expression before ‘)’ token
ipt_ipp2p.c:42: warning: implicit declaration of function ‘__constant_htons’
ipt_ipp2p.c: In function ‘udp_search_gnu’:
ipt_ipp2p.c:105: warning: implicit declaration of function ‘memcmp’
ipt_ipp2p.c: In function ‘udp_search_bit’:
ipt_ipp2p.c:148: warning: implicit declaration of function ‘ntohl’
ipt_ipp2p.c:148: error: ‘__u32’ undeclared (first use in this function)
ipt_ipp2p.c:148: error: expected expression before ‘)’ token
ipt_ipp2p.c:148: error: expected expression before ‘)’ token
ipt_ipp2p.c:152: error: expected expression before ‘)’ token
ipt_ipp2p.c:152: warning: implicit declaration of function ‘__constant_htonl’
ipt_ipp2p.c:152: error: expected expression before ‘)’ token
ipt_ipp2p.c:154: error: expected expression before ‘)’ token
ipt_ipp2p.c:158: error: expected expression before ‘)’ token
ipt_ipp2p.c:158: error: expected expression before ‘)’ token
ipt_ipp2p.c:160: error: expected expression before ‘)’ token
ipt_ipp2p.c:164: error: expected expression before ‘)’ token
ipt_ipp2p.c:164: error: expected expression before ‘)’ token
ipt_ipp2p.c:166: error: expected expression before ‘)’ token
ipt_ipp2p.c:170: error: expected expression before ‘)’ token
ipt_ipp2p.c:174: error: expected expression before ‘)’ token
ipt_ipp2p.c:178: error: expected expression before ‘)’ token
ipt_ipp2p.c:179: error: expected expression before ‘)’ token
ipt_ipp2p.c:184: error: expected expression before ‘)’ token
ipt_ipp2p.c:184: error: expected expression before ‘)’ token
ipt_ipp2p.c:192: error: ‘__u8’ undeclared (first use in this function)
ipt_ipp2p.c:192: error: expected expression before ‘)’ token
ipt_ipp2p.c:192: error: expected expression before ‘)’ token
ipt_ipp2p.c:192: error: expected expression before ‘)’ token
ipt_ipp2p.c:194: error: expected expression before ‘)’ token
ipt_ipp2p.c:194: error: expected expression before ‘)’ token
ipt_ipp2p.c: At top level:
ipt_ipp2p.c:231: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:231: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:278: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:278: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:391: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:391: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:438: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:438: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:448: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:448: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:488: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:488: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:500: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:500: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:513: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:513: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:540: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:540: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:562: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:562: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:578: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:578: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:598: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:598: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:615: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:615: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:632: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:632: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:654: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:654: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:678: warning: type defaults to ‘int’ in declaration of ‘u16’
ipt_ipp2p.c:678: error: expected ‘;’, ‘,’ or ‘)’ before ‘plen’
ipt_ipp2p.c:689: error: expected specifier-qualifier-list before ‘__u8’
ipt_ipp2p.c:693: warning: excess elements in struct initializer
ipt_ipp2p.c:693: warning: (near initialization for ‘matchlist[0]’)
ipt_ipp2p.c:693: warning: excess elements in struct initializer
ipt_ipp2p.c:693: warning: (near initialization for ‘matchlist[0]’)
ipt_ipp2p.c:693: error: ‘search_all_edk’ undeclared here (not in a function)
ipt_ipp2p.c:693: warning: excess elements in struct initializer
ipt_ipp2p.c:693: warning: (near initialization for ‘matchlist[0]’)
ipt_ipp2p.c:697: warning: excess elements in struct initializer
ipt_ipp2p.c:697: warning: (near initialization for ‘matchlist[1]’)
ipt_ipp2p.c:697: warning: excess elements in struct initializer
ipt_ipp2p.c:697: warning: (near initialization for ‘matchlist[1]’)
ipt_ipp2p.c:697: error: ‘search_all_dc’ undeclared here (not in a function)
ipt_ipp2p.c:697: warning: excess elements in struct initializer
ipt_ipp2p.c:697: warning: (near initialization for ‘matchlist[1]’)
ipt_ipp2p.c:699: warning: excess elements in struct initializer
ipt_ipp2p.c:699: warning: (near initialization for ‘matchlist[2]’)
ipt_ipp2p.c:699: warning: excess elements in struct initializer
ipt_ipp2p.c:699: warning: (near initialization for ‘matchlist[2]’)
ipt_ipp2p.c:699: error: ‘search_all_gnu’ undeclared here (not in a function)
ipt_ipp2p.c:699: warning: excess elements in struct initializer
ipt_ipp2p.c:699: warning: (near initialization for ‘matchlist[2]’)
ipt_ipp2p.c:700: warning: excess elements in struct initializer
ipt_ipp2p.c:700: warning: (near initialization for ‘matchlist[3]’)
ipt_ipp2p.c:700: warning: excess elements in struct initializer
ipt_ipp2p.c:700: warning: (near initialization for ‘matchlist[3]’)
ipt_ipp2p.c:700: error: ‘search_all_kazaa’ undeclared here (not in a function)
ipt_ipp2p.c:700: warning: excess elements in struct initializer
ipt_ipp2p.c:700: warning: (near initialization for ‘matchlist[3]’)
ipt_ipp2p.c:701: warning: excess elements in struct initializer
ipt_ipp2p.c:701: warning: (near initialization for ‘matchlist[4]’)
ipt_ipp2p.c:701: warning: excess elements in struct initializer
ipt_ipp2p.c:701: warning: (near initialization for ‘matchlist[4]’)
ipt_ipp2p.c:701: error: ‘search_bittorrent’ undeclared here (not in a function)
ipt_ipp2p.c:701: warning: excess elements in struct initializer
ipt_ipp2p.c:701: warning: (near initialization for ‘matchlist[4]’)
ipt_ipp2p.c:702: warning: excess elements in struct initializer
ipt_ipp2p.c:702: warning: (near initialization for ‘matchlist[5]’)
ipt_ipp2p.c:702: warning: excess elements in struct initializer
ipt_ipp2p.c:702: warning: (near initialization for ‘matchlist[5]’)
ipt_ipp2p.c:702: error: ‘search_apple’ undeclared here (not in a function)
ipt_ipp2p.c:702: warning: excess elements in struct initializer
ipt_ipp2p.c:702: warning: (near initialization for ‘matchlist[5]’)
ipt_ipp2p.c:703: warning: excess elements in struct initializer
ipt_ipp2p.c:703: warning: (near initialization for ‘matchlist[6]’)
ipt_ipp2p.c:703: warning: excess elements in struct initializer
ipt_ipp2p.c:703: warning: (near initialization for ‘matchlist[6]’)
ipt_ipp2p.c:703: error: ‘search_soul’ undeclared here (not in a function)
ipt_ipp2p.c:703: warning: excess elements in struct initializer
ipt_ipp2p.c:703: warning: (near initialization for ‘matchlist[6]’)
ipt_ipp2p.c:704: warning: excess elements in struct initializer
ipt_ipp2p.c:704: warning: (near initialization for ‘matchlist[7]’)
ipt_ipp2p.c:704: warning: excess elements in struct initializer
ipt_ipp2p.c:704: warning: (near initialization for ‘matchlist[7]’)
ipt_ipp2p.c:704: error: ‘search_winmx’ undeclared here (not in a function)
ipt_ipp2p.c:704: warning: excess elements in struct initializer
ipt_ipp2p.c:704: warning: (near initialization for ‘matchlist[7]’)
ipt_ipp2p.c:705: warning: excess elements in struct initializer
ipt_ipp2p.c:705: warning: (near initialization for ‘matchlist[8]’)
ipt_ipp2p.c:705: warning: excess elements in struct initializer
ipt_ipp2p.c:705: warning: (near initialization for ‘matchlist[8]’)
ipt_ipp2p.c:705: error: ‘search_ares’ undeclared here (not in a function)
ipt_ipp2p.c:705: warning: excess elements in struct initializer
ipt_ipp2p.c:705: warning: (near initialization for ‘matchlist[8]’)
ipt_ipp2p.c:706: warning: excess elements in struct initializer
ipt_ipp2p.c:706: warning: (near initialization for ‘matchlist[9]’)
ipt_ipp2p.c:706: warning: excess elements in struct initializer
ipt_ipp2p.c:706: warning: (near initialization for ‘matchlist[9]’)
ipt_ipp2p.c:706: error: ‘search_mute’ undeclared here (not in a function)
ipt_ipp2p.c:706: warning: excess elements in struct initializer
ipt_ipp2p.c:706: warning: (near initialization for ‘matchlist[9]’)
ipt_ipp2p.c:707: warning: excess elements in struct initializer
ipt_ipp2p.c:707: warning: (near initialization for ‘matchlist[10]’)
ipt_ipp2p.c:707: warning: excess elements in struct initializer
ipt_ipp2p.c:707: warning: (near initialization for ‘matchlist[10]’)
ipt_ipp2p.c:707: error: ‘search_waste’ undeclared here (not in a function)
ipt_ipp2p.c:707: warning: excess elements in struct initializer
ipt_ipp2p.c:707: warning: (near initialization for ‘matchlist[10]’)
ipt_ipp2p.c:708: warning: excess elements in struct initializer
ipt_ipp2p.c:708: warning: (near initialization for ‘matchlist[11]’)
ipt_ipp2p.c:708: warning: excess elements in struct initializer
ipt_ipp2p.c:708: warning: (near initialization for ‘matchlist[11]’)
ipt_ipp2p.c:708: error: ‘search_xdcc’ undeclared here (not in a function)
ipt_ipp2p.c:708: warning: excess elements in struct initializer
ipt_ipp2p.c:708: warning: (near initialization for ‘matchlist[11]’)
ipt_ipp2p.c:709: warning: excess elements in struct initializer
ipt_ipp2p.c:709: warning: (near initialization for ‘matchlist[12]’)
ipt_ipp2p.c:709: warning: excess elements in struct initializer
ipt_ipp2p.c:709: warning: (near initialization for ‘matchlist[12]’)
ipt_ipp2p.c:709: error: ‘NULL’ undeclared here (not in a function)
ipt_ipp2p.c:709: warning: excess elements in struct initializer
ipt_ipp2p.c:709: warning: (near initialization for ‘matchlist[12]’)
ipt_ipp2p.c:715: error: expected specifier-qualifier-list before ‘__u8’
ipt_ipp2p.c:719: warning: excess elements in struct initializer
ipt_ipp2p.c:719: warning: (near initialization for ‘udp_list[0]’)
ipt_ipp2p.c:719: warning: excess elements in struct initializer
ipt_ipp2p.c:719: warning: (near initialization for ‘udp_list[0]’)
ipt_ipp2p.c:719: warning: excess elements in struct initializer
ipt_ipp2p.c:719: warning: (near initialization for ‘udp_list[0]’)
ipt_ipp2p.c:720: warning: excess elements in struct initializer
ipt_ipp2p.c:720: warning: (near initialization for ‘udp_list[1]’)
ipt_ipp2p.c:720: warning: excess elements in struct initializer
ipt_ipp2p.c:720: warning: (near initialization for ‘udp_list[1]’)
ipt_ipp2p.c:720: warning: excess elements in struct initializer
ipt_ipp2p.c:720: warning: (near initialization for ‘udp_list[1]’)
ipt_ipp2p.c:721: warning: excess elements in struct initializer
ipt_ipp2p.c:721: warning: (near initialization for ‘udp_list[2]’)
ipt_ipp2p.c:721: warning: excess elements in struct initializer
ipt_ipp2p.c:721: warning: (near initialization for ‘udp_list[2]’)
ipt_ipp2p.c:721: warning: excess elements in struct initializer
ipt_ipp2p.c:721: warning: (near initialization for ‘udp_list[2]’)
ipt_ipp2p.c:722: warning: excess elements in struct initializer
ipt_ipp2p.c:722: warning: (near initialization for ‘udp_list[3]’)
ipt_ipp2p.c:722: warning: excess elements in struct initializer
ipt_ipp2p.c:722: warning: (near initialization for ‘udp_list[3]’)
ipt_ipp2p.c:722: warning: excess elements in struct initializer
ipt_ipp2p.c:722: warning: (near initialization for ‘udp_list[3]’)
ipt_ipp2p.c:723: warning: excess elements in struct initializer
ipt_ipp2p.c:723: warning: (near initialization for ‘udp_list[4]’)
ipt_ipp2p.c:723: warning: excess elements in struct initializer
ipt_ipp2p.c:723: warning: (near initialization for ‘udp_list[4]’)
ipt_ipp2p.c:723: warning: excess elements in struct initializer
ipt_ipp2p.c:723: warning: (near initialization for ‘udp_list[4]’)
ipt_ipp2p.c:724: warning: excess elements in struct initializer
ipt_ipp2p.c:724: warning: (near initialization for ‘udp_list[5]’)
ipt_ipp2p.c:724: warning: excess elements in struct initializer
ipt_ipp2p.c:724: warning: (near initialization for ‘udp_list[5]’)
ipt_ipp2p.c:724: warning: excess elements in struct initializer
ipt_ipp2p.c:724: warning: (near initialization for ‘udp_list[5]’)
ipt_ipp2p.c:747: warning: ‘struct xt_match’ declared inside parameter list
ipt_ipp2p.c:747: warning: its scope is only this definition or declaration, which is probably not what you want
ipt_ipp2p.c:747: warning: ‘struct net_device’ declared inside parameter list
ipt_ipp2p.c:747: warning: ‘struct sk_buff’ declared inside parameter list
ipt_ipp2p.c: In function ‘match’:
ipt_ipp2p.c:751: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:754: warning: implicit declaration of function ‘ntohs’
ipt_ipp2p.c:754: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:754: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:758: warning: implicit declaration of function ‘printk’
ipt_ipp2p.c:763: warning: implicit declaration of function ‘skb_is_nonlinear’
ipt_ipp2p.c:769: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:771: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:772: error: ‘IPPROTO_TCP’ undeclared (first use in this function)
ipt_ipp2p.c:774: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:776: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:777: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:778: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:780: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:781: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:784: error: ‘struct <anonymous>’ has no member named ‘short_hand’
ipt_ipp2p.c:784: error: ‘struct <anonymous>’ has no member named ‘short_hand’
ipt_ipp2p.c:785: error: ‘struct <anonymous>’ has no member named ‘packet_len’
ipt_ipp2p.c:786: error: ‘struct <anonymous>’ has no member named ‘function_name’
ipt_ipp2p.c:790: warning: implicit declaration of function ‘NIPQUAD’
ipt_ipp2p.c:790: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:790: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:790: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:790: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:799: error: ‘IPPROTO_UDP’ undeclared (first use in this function)
ipt_ipp2p.c:801: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:805: error: ‘struct <anonymous>’ has no member named ‘short_hand’
ipt_ipp2p.c:805: error: ‘struct <anonymous>’ has no member named ‘short_hand’
ipt_ipp2p.c:806: error: ‘struct <anonymous>’ has no member named ‘packet_len’
ipt_ipp2p.c:807: error: ‘struct <anonymous>’ has no member named ‘function_name’
ipt_ipp2p.c:810: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:810: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:810: error: dereferencing pointer to incomplete type
ipt_ipp2p.c:810: error: dereferencing pointer to incomplete type
ipt_ipp2p.c: At top level:
ipt_ipp2p.c:835: warning: ‘struct xt_match’ declared inside parameter list
ipt_ipp2p.c:855: error: variable ‘ipp2p_match’ has initializer but incomplete type
ipt_ipp2p.c:870: error: unknown field ‘name’ specified in initializer
ipt_ipp2p.c:870: warning: excess elements in struct initializer
ipt_ipp2p.c:870: warning: (near initialization for ‘ipp2p_match’)
ipt_ipp2p.c:871: error: unknown field ‘match’ specified in initializer
ipt_ipp2p.c:871: warning: excess elements in struct initializer
ipt_ipp2p.c:871: warning: (near initialization for ‘ipp2p_match’)
ipt_ipp2p.c:872: error: unknown field ‘family’ specified in initializer
ipt_ipp2p.c:872: error: ‘AF_INET’ undeclared here (not in a function)
ipt_ipp2p.c:872: warning: excess elements in struct initializer
ipt_ipp2p.c:872: warning: (near initialization for ‘ipp2p_match’)
ipt_ipp2p.c:873: error: unknown field ‘matchsize’ specified in initializer
ipt_ipp2p.c:873: warning: excess elements in struct initializer
ipt_ipp2p.c:873: warning: (near initialization for ‘ipp2p_match’)
ipt_ipp2p.c:874: error: unknown field ‘checkentry’ specified in initializer
ipt_ipp2p.c:874: warning: excess elements in struct initializer
ipt_ipp2p.c:874: warning: (near initialization for ‘ipp2p_match’)
ipt_ipp2p.c:875: error: unknown field ‘me’ specified in initializer
ipt_ipp2p.c:875: error: ‘THIS_MODULE’ undeclared here (not in a function)
ipt_ipp2p.c:875: warning: excess elements in struct initializer
ipt_ipp2p.c:875: warning: (near initialization for ‘ipp2p_match’)
ipt_ipp2p.c:880: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘init’
ipt_ipp2p.c:886: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fini’
ipt_ipp2p.c:892: warning: data definition has no type or storage class
ipt_ipp2p.c:892: warning: type defaults to ‘int’ in declaration of ‘module_init’
ipt_ipp2p.c:892: warning: parameter names (without types) in function declaration
ipt_ipp2p.c:893: warning: data definition has no type or storage class
ipt_ipp2p.c:893: warning: type defaults to ‘int’ in declaration of ‘module_exit’
ipt_ipp2p.c:893: warning: parameter names (without types) in function declaration
make: *** [ipt_ipp2p.o] Error 1

yum install kernel-headers

yum install kernel-devel

‍ln -s /usr/src/kernels/2.6.18-194.26.1.el5-i686/ /lib/modules/2.6.18-194.26.1.el5PAE/build

相关内容