Wireshark:无法编译插件
我一直在尝试在Fedora 14上的wireshark(1.5.0)中编译一个小插件。有一个名为pv.c的C文件
我在plugins下创建了一个目录并复制了我的C文件。然后我从plugins/interlink目录中取出Makefile.am和Makefile.common并进行修改以更改插件名称、版本和SRC目录。我还将 moduleinfo.h 复制到我的插件目录中。
以下是我对 Makefile.common 所做的更改:
PLUGIN_NAME = pv
DISSECTOR_SRC = \
pv.c
以下是我对 Makefile.am 所做的更改:
plugin_LTLIBRARIES = pv.la
我还调整了 $(wireshark)/plugins/Makefile.am/common 以将我的 pv 目录包含在要编译的插件下。我对 root Makefile.am 和 Makefile.common 做了同样的事情
,但是在完成所有这些之后,在我进行构建时的 ./configure 之后;我不断收到此错误“没有规则使目标为‘全部’。停止”。我假设 make 过程会自动在我的插件目录中生成plugin.c、makefile.in 和 makefile,然后该过程将继续。
有人能指出我在哪里缺少链接吗?
此致 奥马尔
I have been trying to compile a small plugin in wireshark (1.5.0) on Fedora 14. There is a single C file call pv.c
I created a directory under plugins and copied my C file. Then I took the Makefile.am and Makefile.common from plugins/interlink directory and modified to change plugin name, version and SRC directories. I also copied moduleinfo.h into my plugin directory.
Here are changes I made to Makefile.common:
PLUGIN_NAME = pv
DISSECTOR_SRC = \
pv.c
Here are changes I made to Makefile.am:
plugin_LTLIBRARIES = pv.la
I also adapted $(wireshark)/plugins/Makefile.am/common to include my pv directory under plugins to be compiled. I did the same for root Makefile.am and Makefile.common
But after doing all of this, after ./configure when I make the build; I keep on getting this error "No rule to make target 'all'. Stop". I assumed that make process will automatically generate the plugin.c, makefile.in and makefile in my plugin directory and then the process will continue.
Could any one point out that where I am missing the link here?
Best Regards
Omer
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你好
我想我回复太晚了,但是,以防万一您没有得到答案...
问题是您没有更改wireshark根目录中的configure.in文件。只需尝试将路径添加到你的插件在这个文件中。 1861 线附近某处。
如果您还有问题,请告诉我..
问候
安基斯
Hi
I think I am too late for the reply, but, just in case you haven't got the answer...
The problem is that you are not changing the configure.in file in the wireshark root directory.Just try adding th path to your plugin in this file . Somewhere near the line 1861.
Let me know if still you have problem..
Regards
Ankith