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

make does not update the register.c file

0

Every time I hit 'make', I get this output:

make -k
Making register.c
Registering 1285 files, 1285 cached
Cache hits: 1284, misses: 1
register.c unchanged.
make  all-recursive

And indeed, my plugin output and its behavior does not change. I need to invoke "./configure; make;" in order to apply my changes to the plugin.

Is there a proper way to do that?

asked 13 Aug '15, 05:41

yves_paris's gravatar image

yves_paris
6113
accept rate: 0%

edited 13 Aug '15, 06:08

why the '-k' ?

(14 Aug '15, 01:09) Jaap ♦

It's emacs' default command for compiling any project.

(14 Aug '15, 01:38) yves_paris

It does not say how it's making register.c. How old is this Wireshark version you try to build?

(14 Aug '15, 02:55) Jaap ♦

I'm on this git commit now:

commit 46d6e8c Author: Stig Bjørlykke [email protected] Date: Fri Aug 14 14:48:49 2015 +0200

Added some missing breaks
(14 Aug '15, 07:06) yves_paris

I am going to try with the 'cmake' approach, and see whether it solves that issue.

(14 Aug '15, 07:21) yves_paris

Oke, so what do we know. The build (through make) is running, when creating register.c it sees that a file is changed (your dissector I presume) because it says it has 1 cache miss (because it has a new timestamp). Still register.c is unchanged because your dissector hooks for registration are unchanged. This all has nothing to do with your inability to see the new functionality! It either means it is not linked into the final binary/library, or you're running a previous installment. So, make sure you've setup all the changes to the build environment to get you dissector compiled and included; and make sure you're loading the right version when testing.

(14 Aug '15, 07:57) Jaap ♦
showing 5 of 6 show 1 more comments