This is a static archive of our old Q&A Site. Please post any new questions and answers at

Editing Makefiles to add a plugin in linux


I've created a plugin using windows and it builds and runs correctly. I'm trying to get the plugin to build on CENTOS6 using Wireshark 1.10.5 and I'm having some issues with the Makefiles. The downloaded source builds fine. The issue starts once I add the plugin. After editing the root, plugins, and my plugin directory Makefiles I keep getting the below error.

It seems like all of the google hits for this issue seems to point to bin_PROGRAMS not being defined correctly.
The steps I have taken to add my plugin is edit the root by adding the following to plugin_ldadd

-dlopen plugins/gar/

in I added the following to AC_OUTPUT


In plugins/ the following was added to SUBDIRS


Searching on google for the message hasn't given me much help. What types of things should I be checking to troubleshoot this sort of error?

plugins/gar/ variable `gar_v1.0.0_la_SOURCES' is defined but no program or
plugins/gar/ library has `gar_v1.0.0_la' as canonical name (possible typo)

asked 06 Mar '14, 16:38

tlann's gravatar image

accept rate: 100%

2 Answers:


The plugin was originally created using WS 1.8 and the makefiles were older. After following the new wireshark docs it now builds correctly.

answered 10 Mar '14, 16:56

tlann's gravatar image

accept rate: 100%


Be sure to follow doc/README.plugins carefully.

answered 06 Mar '14, 18:25

cmaynard's gravatar image

cmaynard ♦♦
accept rate: 20%

In the epan/ for WS_1.10.5, it lists plugins/giop/packet-cosnaming.c and packet-coseventcomm.c However, these files no longer exist in that location. They were moved to epan/dissectors I'm surprised there isn't some sort of error from that.

(07 Mar '14, 11:12) tlann

You are correct; however, the items you mention are under 'if ENABLE_STATIC' which I believe is only TRUE when building a "static" version of Wireshark.

Based upon the files mentioned under the 'if ...' it would seem no one has tried building a static version of Wireshark in quite some time.

Please file a bug at


(07 Mar '14, 18:17) Bill Meier ♦♦