论坛风格切换切换到宽版
  • 874阅读
  • 6回复

[问题求助]ipp2p已更改KERNEL_SRC和#IPTABLES_SRC = /usr/src/iptables-1.3.8,出错 [复制链接]

上一主题 下一主题
离线douxp.
 
发帖
2188
C币
-193049
威望
401
贡献值
1
银元
0
铜钱
4922
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
内核linux-.2.6.23.8,iptables1..3.8,分别位于/usr/src/linux-2.6.23.8和 /usr/src/iptables-1..3.8,修改后的Makefile如下:健康
ipp2p.-0.99.6.-r1和ipp2p-0.99.6都试过,.
出现:.make: Nothing to be done for `a.ll'外贸
你曾经为我解决过,说要指定目录,那次成功了,这次重新安装了系统,.再装又出现了上.面的错误,但我指定了目录,L7协议也成功安装了!教育

帮我分析,谢谢了!

[root@su.she ipp2p.-0.99.6-r1]# more Makefile--- 印刷
ifneq ($(KERNELR.ELEASE),)            杀毒
obj-m := i.pt_ipp2p.o(        游戏          )
else
KERNEL_SRC .= /usr/src/linux-2..6.23.8.
#KERNEL_SRC. ?= $(firstword $(wi.ldcard /lib/modules/$(shell uname -r)/build /usr/src/linu.x)).
ifeq ($(KERNE.L_SRC),).
$(.error You n.eed to define KERNEL_SRC)外贸
endif
ifneq ($wildcard $(KERNEL._SRC)/include/linux/modversions.h),).--- 印刷
MODV.ERSIONS. = -DMODVERSIONS    美容
endif
_KVER = $(.strip $(shell cat $(KERNEL_SRC)/Makefile | gre.p -e '^VERSION'. | cut -d"=" -f2))(        游戏          )
_KPL = $(strip $(shell cat $(KERNEL_SRC)/Makefi.le | grep -e '^PATCHLE.VEL' | cut -d"=" -f2).)(        游戏          )
_KSUB = $(strip $(shell cat $(KERNEL_SRC)./Makefile | grep -e '^SUB..LEVEL' | cut -d"=" -f2))[成人用品]
KER.NEL_SERIES=$(_KVER).$(_KPL.)教育
if.eq ($(KERNEL_SERI.ES), 2.6).
        TARGET=ipt._.ipp2p.ko           女人
else
        .TA.RGET=ipt_ipp2p.o    健康
endif
SED = sed
IPTABLES_BIN = ip.tables            杀毒
ifndef $.(IPTABLES_SRC)学习
IPTVER = \
        $(shell $(IPTABLES_BIN) --vers.ion | $(SED) -e 's/^iptables. v//')(广告)
IPTABLES_SRC =. $(wildcard /usr./src/iptables-$(IPTVER))    健康
#IPTABLES._SRC = /usr/src/i.ptables-1.3.8--------------彩票
endif
ifeq ($(IPTABLES_S.RC),)(广告)
$(warning You need to install iptables sou..rces and maybe set IPTABLES_SRC)电影
endif
IPTABLES_INCLU.DE = -I$(.IPTABLES_SRC)/include健康
i.fneq ($(IPTVER),).
.       IPTABLES_VERSION = $(IP.TVER)虚拟主机
else
        IPTABLES_VERSION = $(shell cat $(IPTAB.LES_SRC)/Mak.efile | grep -e '^IPTABLES_VERSION:=' | cut -d"=". -f2)           建材
endif
IPTABLES_OPTION = -DIPTABLES._VERSION=\"$(IPTABLES_VE.RSION)\"电脑
CC = gcc
CFLAGS = .-O3 -Wall.

all: mod.ules. libipt_ipp2p.so--- 印刷
modules.: $(TARGET).
ipt_ipp2p..o: ipt_ipp2p.h i.pt_ipp2p.c    健康
        $(CC) $(CFLAGS) -I$(KERNEL_SRC)/include -c ipt_ipp2p.c. -D__KERNE.L__ -DMODULE .$(MODVERSIONS)(广告)
ipt_ipp2.p.ko: i.pt_ipp2p.h ipt_ipp2p.c           鲜花
        $(MAK.E.) -C $(KERNEL_SRC) M=$(PWD) modules电影

libipt_ipp2p.so: .libipt_ipp2p.c ipt_ipp2p..h              乙肝
        $(C.C) $(CFLAGS) $(IPTABLES_OPTION) $(.IP.TABLES_INCLUDE) -fPIC -c libipt_ipp2p.c             电子
        $(CC) .-sha.red -o libipt_ipp2p.so libipt_ipp2p.o           建材
clean:
        -rm -f *.o. *.so *.ko ..*.cmd *.mod.c.
endif
[.root@sushe ip.p2p-0.99.6-r1]#外贸

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线慧琳迷.
发帖
1929
C币
-60734
威望
391
贡献值
1
银元
-1
铜钱
4306
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
Re:ipp2p已更改KERNEL_SRC和#IPTABLES_SRC
IPTABLES_SRC = $(wildcard /usr/src/iptables-$(IPTVER))
#IPTABLES_SRC = /usr/src/iptables-1.3.8?
应该注释上面的而不是下面的把

离线kartoffel.
发帖
2121
C币
-235440
威望
424
贡献值
1
银元
-1
铜钱
4842
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
Re:ipp2p已更改KERNEL_SRC和#IPTABLES_SRC
你可以做针对源码的链接,名字分别是linux 和iptables
这样什么都不用指定的。如果有configure那么需要运行,也可能直接MARK的。

离线免失志.
发帖
2221
C币
5540
威望
451
贡献值
0
银元
0
铜钱
5030
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
Re:ipp2p已更改KERNEL_SRC和#IPTABLES_SRC
我试过了,但不行,我做的链接如下:
ln -s linux-2.6.23.8 linux
ln -s iptables-1.3.8 iptables

具体怎么解决呢

离线re58.
发帖
2020
C币
-235673
威望
358
贡献值
1
银元
-1
铜钱
4480
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-13
Re:ipp2p已更改KERNEL_SRC和#IPTABLES_SRC
啥错误。
贴出IPP2P目录下的ls命令输出,即文件列表。

离线dymdymcom.
发帖
2085
C币
-199121
威望
357
贡献值
1
银元
-6
铜钱
4647
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-13
Re:ipp2p已更改KERNEL_SRC和#IPTABLES_SRC
[root@sushe ipp2p-0.99.6]# ls
COPYING      ipt_ipp2p.ko     ipt_ipp2p.o     libipt_ipp2p.o   Module.symvers
ipt_ipp2p.c  ipt_ipp2p.mod.c  ipt.sh          libipt_ipp2p.so  README
ipt_ipp2p.h  ipt_ipp2p.mod.o  libipt_ipp2p.c  Makefile

显示结果如上,谢谢!

发帖
2130
C币
-60329
威望
399
贡献值
1
银元
-1
铜钱
4691
人人网人气币
0
只看该作者 6楼 发表于: 2010-04-13
Re:ipp2p已更改KERNEL_SRC和#IPTABLES_SRC
你先make clean一下,再重新make
快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
上一个 下一个