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

Editing Makefiles to add a plugin in linux

0

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 Makefile.am by adding the following to plugin_ldadd

-dlopen plugins/gar/gar_v1.0.0.la

in configure.ac I added the following to AC_OUTPUT

plugins/gar/Makefile

In plugins/Makefile.am the following was added to SUBDIRS

gar

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/Makefile.am:33: variable `gar_v1.0.0_la_SOURCES' is defined but no program or
plugins/gar/Makefile.am:33: library has `gar_v1.0.0_la' as canonical name (possible typo)

asked 06 Mar '14, 16:38

tlann's gravatar image

tlann
76121419
accept rate: 100%


2 Answers:

0

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

tlann
76121419
accept rate: 100%

2

Be sure to follow doc/README.plugins carefully.

answered 06 Mar '14, 18:25

cmaynard's gravatar image

cmaynard ♦♦
9.4k1038142
accept rate: 20%

In the epan/Makefile.am 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
1

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 bugs.wireshark.org.

Thanks

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