Look in the doc directory of the source, README.plugins. when I run autogen.sh after making al the changes I get: Welcome to Git (version 1.8.3-preview20130601) Run 'git help git' to display the help index. Run 'git help <command>' to display help for specific commands. C:\Development\wireshark\autogen.sh: line 55: autoconf: command not found
C:\Development\wireshark\autogen.sh: line 69: automake: command not found
C:\Development\wireshark\autogen.sh: line 99: libtool: command not found
If I download libtool 1.4 or later version, how do I use it and solve this problem?
(06 Jun '14, 10:27)
aman
I though you were building on windows, no need for autoconf on windows.
(06 Jun '14, 11:06)
Anders ♦
I have done all steps till point 3 as said in the readme file. Do I need to perform step 4 and 5 also to install? as I am getting the above error in step 4.
(06 Jun '14, 11:07)
aman
Ya I am doing on windows. I am done till Step 3, what do I do after that to install my plugins ?
(06 Jun '14, 11:08)
aman
Step 4, as it says is for unix. On Windows, after making all changes execute
(06 Jun '14, 11:29)
grahamb ♦
(06 Jun '14, 11:39)
aman
The plugin has older code in it. Look in I think
(06 Jun '14, 12:00)
grahamb ♦
yes I have tvb_bytes_to_str() replaced with tvb_bytes_to_ep_str() in epan\tvbuff.h file so shall I update the parameters in packet-ipa.c file according to the current set?
(06 Jun '14, 12:19)
aman
That seems appropriate.
(06 Jun '14, 13:36)
grahamb ♦
Have you done an
(09 Jun '14, 07:16)
grahamb ♦
Ya I did it.. still Same problem.:(
(09 Jun '14, 07:47)
aman
It says you just replied 1 min ago and I cant see your comment there..
(09 Jun '14, 07:54)
aman
The first three warnings are because you still have code in the plugin using the old functions, at the line numbers indicated and the compiler can't find the functions in the header files as they no longer exist. The two errors are caused by the linker finding the same bits of code and is unable to link them as they don't exist. You need to fix all of your plugin, replacing all calls to the renamed functions.
(09 Jun '14, 07:54)
grahamb ♦
the first replacement worked but second one still gives the error. The plugins is tested but its not being installed here. What do I do to check the linking?
(10 Jun '14, 07:00)
aman
cant see your comment.
(10 Jun '14, 07:20)
aman
I made a mistake above, you should be using However this just shows that you haven't looked at tvbuff.h as you should have seen it there when adjusting the parameters. For
(10 Jun '14, 07:25)
grahamb ♦
Thanks, it worked for ether_to_str() but the tvb_get_string_enc() is still giving the same unresolved error. the parameters seem ok for it. and I dont have this function in tvbuff.h
(10 Jun '14, 07:47)
aman
Where did you get your sources from, a zip or via git? If git, presuming you are on the master branch then you need to update them with a If a zip, then what version did you get?
(10 Jun '14, 08:01)
grahamb ♦
wireshark sources I got from git clone Version 1.99.0 and my code from zip//
(10 Jun '14, 08:12)
aman
OK, you need to do a Confirm you're using the master branch with
(10 Jun '14, 08:36)
grahamb ♦
the pull and branch --list should be done via bash or git extensions?
(10 Jun '14, 08:52)
aman
Via whatever git executable you feel comfortable with. The commands I listed are for command line git (actually the Windows version but the cygwin version would run the same). I don't know what they translate to for git extensions.
(10 Jun '14, 08:54)
grahamb ♦
After pull command I rebuilt the cmd env and I get this.. C:\Development\wireshark>nmake -f makefile.nmake Microsoft (R) Program Maintenance Utility Version 12.00.21005.1 Copyright (C) Microsoft Corporation. All rights reserved. ERROR: The contents of 'C:\development\Wireshark\Wireshark-win32-libs\current_ta g.txt' is 2014-05-16. It should be 2014-06-05. ? Wireshark Libraries not up-to-date ? ? Do you need to run nmake -f Makefile.nmake setup ? NMAKE : fatal error U1077: 'exit' : return code '0x1' Stop.
(10 Jun '14, 10:11)
aman
I tried to rebuild it but it still gives the same error..:(
(10 Jun '14, 11:54)
aman
Try nmake -f Makefile.nmake setup The printout is telling you that your libraries is out of date and you need to dowload fresh ones...
(10 Jun '14, 12:04)
Anders ♦
I have done setup, distclean, all and packaging again.. still it shows the same error.
(10 Jun '14, 12:07)
aman
What is the error exactly? Since Graham asked you to replace the call to tvb_get_str_enc() by tvb_get_string_enc() you have not showed us what errors you get.
(10 Jun '14, 22:16)
Pascal Quantin
I get this error on replacing the said code:
(11 Jun '14, 05:55)
aman
Firstly that's not the error you reported and that @Anders and @Pascal Quantin were trying to help you with, please try to be consistent about reporting errors. Those errors are because you haven't correctly adjusted the parameters you are providing to The first parameter to the function must be of type The second parameter is the tvb, this should be the same as the original call to Similarly for the 3rd and 4th parameters, offset and length they should be as per the original call. The 5th parameter is the encoding for the string, only you know how the string is encoded, if you aren't sure try
(11 Jun '14, 06:33)
grahamb ♦
My error is same, the above one is the case when I replace tvb_get_str_enc() with tvb_get_string_enc(). by using tvb_get_str_enc() I get packet-ipa.c(677) : warning C4013: 'tvb_get_str_enc' undefined; assuming extern returning int Creating library ipa.lib and object ipa.exp packet-ipa.obj : error LNK2019: unresolved external symbol _tvb_get_str_enc referenced in function _dissect_complete_phone_summary ipa.dll : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0 \VC\BIN\link.EXE"' : return code '0x460' Stop. Shall I share the code of my plugin or the tvbuff.h file?
(11 Jun '14, 09:06)
aman
There is no function The reason for the errors you are getting with You'll need to share the code of the plugin, as we all already have access to tvbuff.h
(11 Jun '14, 09:30)
grahamb ♦
This is the function I am trying to work on.
(11 Jun '14, 10:28)
aman
1
The code isn't the best way to do all that, but the line you need to change is:
changing it to:
(11 Jun '14, 10:32)
grahamb ♦
I have changed it and the nmake command now runs successfully, but I cant see my plugin in Help-> about wireshark -> plugins section..
(11 Jun '14, 11:03)
aman
I think you should start a new question for that as it's a different issue.
(11 Jun '14, 11:05)
grahamb ♦
ok. thanks for your help. I will start a new question for it.
(11 Jun '14, 11:06)
aman
showing 5 of 37
show 32 more comments
|