亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
樓主: ShadowStar
打印 上一主題 下一主題

[網(wǎng)絡管理] IPP2P模塊修改版,最新0.99.16 [復制鏈接]

論壇徽章:
0
61 [報告]
發(fā)表于 2007-11-22 19:19 |只看該作者
原帖由 snow888 于 2007-11-22 18:54 發(fā)表



那是不是說,我必須將 RHEL5 的源碼也安裝上去,才能編譯安裝這個軟件包?


只要有內核和iptables的源代碼就可以

論壇徽章:
0
62 [報告]
發(fā)表于 2007-11-23 08:33 |只看該作者
樓主真是強。№!希望樓主能繼續(xù)更新下去。

論壇徽章:
0
63 [報告]
發(fā)表于 2007-11-23 09:00 |只看該作者
gcc --version
gcc (GCC) 4.2.3 20071014 (prerelease) (Debian 4.2.2-3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

linux-2.6.23.8
iptables-1.3.8

編譯后,運行不了,出現(xiàn)段錯誤

論壇徽章:
0
64 [報告]
發(fā)表于 2007-11-23 09:24 |只看該作者
原帖由 springwind426 于 2007-11-23 09:00 發(fā)表
gcc --version
gcc (GCC) 4.2.3 20071014 (prerelease) (Debian 4.2.2-3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is N ...



1.3.8版的iptables不能直接make,1.3.5的可以

論壇徽章:
0
65 [報告]
發(fā)表于 2007-11-23 09:24 |只看該作者
原帖由 springwind426 于 2007-11-23 09:00 發(fā)表
gcc --version
gcc (GCC) 4.2.3 20071014 (prerelease) (Debian 4.2.2-3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is N ...


我這邊沒有使用gcc-4.2以上編譯過
請把詳細的信息貼出來,包括make的信息和錯誤的信息

論壇徽章:
0
66 [報告]
發(fā)表于 2007-11-24 15:11 |只看該作者
iptables -A FORWARD -p tcp -m ipp2p --xunlei -j DROP
iptables: No chain/target/match by that name


暈,怎么iptables會報這樣的呢?

論壇徽章:
0
67 [報告]
發(fā)表于 2007-11-24 16:52 |只看該作者
原帖由 yanzai 于 2007-11-24 15:11 發(fā)表
iptables -A FORWARD -p tcp -m ipp2p --xunlei -j DROP
iptables: No chain/target/match by that name


暈,怎么iptables會報這樣的呢?


請仔細察看一樓的編譯說明

論壇徽章:
0
68 [報告]
發(fā)表于 2007-11-24 17:58 |只看該作者
原帖由 yanzai 于 2007-11-24 15:11 發(fā)表
iptables -A FORWARD -p tcp -m ipp2p --xunlei -j DROP
iptables: No chain/target/match by that name


暈,怎么iptables會報這樣的呢?



是不是沒有編譯內核?

論壇徽章:
0
69 [報告]
發(fā)表于 2007-11-25 12:03 |只看該作者
原帖由 ShadowStar 于 2007-11-23 09:24 發(fā)表


我這邊沒有使用gcc-4.2以上編譯過
請把詳細的信息貼出來,包括make的信息和錯誤的信息



修改Makefile

KERNEL_SRC = ../linux-2.6.23.8
#KERNEL_SRC ?= $(firstword $(wildcard /lib/modules/$(shell uname -r)/build /usr/src/linux))
ifeq ($(KERNEL_SRC),)
$(error You need to define KERNEL_SRC)
endif

ifneq ($wildcard $(KERNEL_SRC)/include/linux/modversions.h),)
MODVERSIONS = -DMODVERSIONS
endif

_KVER = $(strip $(shell cat $(KERNEL_SRC)/Makefile | grep -e '^VERSION' | cut -d"=" -f2))
_KPL = $(strip $(shell cat $(KERNEL_SRC)/Makefile | grep -e '^PATCHLEVEL' | cut -d"=" -f2))
_KSUB = $(strip $(shell cat $(KERNEL_SRC)/Makefile | grep -e '^SUBLEVEL' | cut -d"=" -f2))
KERNEL_SERIES=$(_KVER).$(_KPL)

ifeq ($(KERNEL_SERIES), 2.6)
        TARGET=ipt_ipp2p.ko
else
        TARGET=ipt_ipp2p.o
endif

SED = sed
IPTABLES_BIN = iptables
#ifndef $(IPTABLES_SRC)
#IPTVER = \
#       $(shell $(IPTABLES_BIN) --version | $(SED) -e 's/^iptables v//')
#IPTABLES_SRC = $(wildcard /usr/src/iptables-$(IPTVER))
#IPTABLES_SRC = /var/tmp/portage/net-firewall/iptables-1.3.8-r1/work/iptables-1.3.8
#endif

IPTABLES_SRC = ../iptables-1.3.8-20071014
IPTVER = 1.3.8-20071014


還有,CFLAGS = -Wall  原來是  CFLAGS = -O3 -Wall

make
make -C ../linux-2.6.23.8 M=/usr/local/src/210.47.176.135/ipp2p-0.99.6 modules
make[1]: Entering directory `/usr/local/src/210.47.176.135/linux-2.6.23.8'
  CC [M]  /usr/local/src/210.47.176.135/ipp2p-0.99.6/ipt_ipp2p.o
/usr/local/src/210.47.176.135/ipp2p-0.99.6/ipt_ipp2p.c:960: warning: initialization from incompatible pointer type
/usr/local/src/210.47.176.135/ipp2p-0.99.6/ipt_ipp2p.c:963: warning: initialization from incompatible pointer type
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/local/src/210.47.176.135/ipp2p-0.99.6/ipt_ipp2p.mod.o
  LD [M]  /usr/local/src/210.47.176.135/ipp2p-0.99.6/ipt_ipp2p.ko
make[1]: Leaving directory `/usr/local/src/210.47.176.135/linux-2.6.23.8'
gcc -Wall -DIPTABLES_VERSION=\"1.3.8-20071014\" -I../iptables-1.3.8-20071014/include -fPIC -c libipt_ipp2p.c
libipt_ipp2p.c:417: warning: initialization from incompatible pointer type
libipt_ipp2p.c:418: warning: initialization from incompatible pointer type
libipt_ipp2p.c:420: warning: initialization from incompatible pointer type
libipt_ipp2p.c:421: warning: initialization from incompatible pointer type
gcc -shared -o libipt_ipp2p.so libipt_ipp2p.o

然后,modprobe ipp2p是沒有問題的

但是,用 iptables -m ipp2p --ipp2p 就提示 段錯誤

[ 本帖最后由 springwind426 于 2007-11-25 12:08 編輯 ]

論壇徽章:
0
70 [報告]
發(fā)表于 2007-11-25 15:52 |只看該作者
原帖由 springwind426 于 2007-11-25 12:03 發(fā)表



修改Makefile

KERNEL_SRC = ../linux-2.6.23.8
#KERNEL_SRC ?= $(firstword $(wildcard /lib/modules/$(shell uname -r)/build /usr/src/linux))
ifeq ($(KERNEL_SRC),)
$(error You need to defin ...


我這邊用gcc-4.1.2編譯,沒有發(fā)現(xiàn)
libipt_ipp2p.c:417: warning: initialization from incompatible pointer type
libipt_ipp2p.c:418: warning: initialization from incompatible pointer type
libipt_ipp2p.c:420: warning: initialization from incompatible pointer type
libipt_ipp2p.c:421: warning: initialization from incompatible pointer type
的信息。

我懷疑是由于gcc新版本對于調用的指針類型不兼用導致的。

但是我這邊沒有gcc-4.2的環(huán)境,沒辦法了。
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP