Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-users: [Wireshark-users] Unable to compile a plugin

From: Omer Khalid <okhalid.cern@xxxxxxxxx>
Date: Mon, 31 Jan 2011 17:59:38 +0100
Hi,

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