简体   繁体   English

Wireshark:无法编译插件

[英]Wireshark: Unable to compile a plugin

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我一直在尝试在 Fedora 14 上的 wireshark (1.5.0) 中编译一个小插件。有一个 C 文件调用 pv.c

I created a directory under plugins and copied my C file.我在 plugins 下创建了一个目录并复制了我的 C 文件。 Then I took the Makefile.am and Makefile.common from plugins/interlink directory and modified to change plugin name, version and SRC directories.然后我从 plugins/interlink 目录中取出 Makefile.am 和 Makefile.common 并修改以更改插件名称、版本和 SRC 目录。 I also copied moduleinfo.h into my plugin directory.我还将 moduleinfo.h 复制到我的插件目录中。

Here are changes I made to Makefile.common:以下是我对 Makefile.common 所做的更改:

PLUGIN_NAME = pv
DISSECTOR_SRC = \
 pv.c

Here are changes I made to Makefile.am:以下是我对 Makefile.am 所做的更改:

plugin_LTLIBRARIES = pv.la

I also adapted $(wireshark)/plugins/Makefile.am/common to include my pv directory under plugins to be compiled.我还修改了 $(wireshark)/plugins/Makefile.am/common 以将我的 pv 目录包含在要编译的插件下。 I did the same for root Makefile.am and Makefile.common我对 root Makefile.am 和 Makefile.common 做了同样的事情

But after doing all of this, after ./configure when I make the build;但是在完成所有这些之后,在 ./configure 之后,当我进行构建时; 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.我假设 make 进程会在我的插件目录中自动生成 plugin.c、makefile.in 和 makefile,然后该进程将继续。

Could any one point out that where I am missing the link here?有人能指出我在这里缺少链接的地方吗?

Best Regards Omer最好的问候奥默

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 .问题是您没有更改wireshark 根目录中的configure.in 文件。只需尝试在此文件中添加插件的路径即可。 Somewhere near the line 1861. Let me know if still you have problem..靠近 1861 线的某个地方。如果您仍有问题,请告诉我。

Regards Ankith问候 Ankith

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM