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

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%


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

permanent link

answered 10 Mar '14, 16:56

tlann's gravatar image

tlann
76121419
accept rate: 100%

Be sure to follow doc/README.plugins carefully.

permanent link

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 ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×173
×154
×110
×7

question asked: 06 Mar '14, 16:38

question was seen: 2,503 times

last updated: 10 Mar '14, 16:56

p​o​w​e​r​e​d by O​S​Q​A