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

wireshark compile error after modification

0

this is the error info, i intent to put a picture here, but the system tell me 'file uploading requires karma > 60',i don't know how to solve this, so i have to click all the following error info.uh, painful.

make[2]:Entering directory
'/home/wireshark_dissect/wireshark-1.6.4-output-formated'
/usr/bin/perl ./make-version.pl .
Version configuration file
version.conf not found. Using 
defaults. svnversion.h unchanged. cp
tools/idl2wrs.sh idl2wrs chmod +x
idl2wrs /usr/bin/perl 
./tools/make-services.pl starting to
fetch
http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt
... done fetching
http://www.iana.org/assignments/service-names-port-numbers.service-names-port-numbers.txt
http://www.iana.org/assignments/service-name-port-numbers/service-name-port-numbers.txt    doesn't have enough data make[2]: ***
[services] Error 255 make[2]: Leaving directory `home/wireshark_dissect/wireshark-1.6.4-   output-formatted`
make:*** [all] Error 2

asked 14 Nov '12, 19:19

rodman's gravatar image

rodman
1332
accept rate: 0%

edited 14 Nov '12, 21:00

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196


One Answer:

0

Try to open the following link in a browser

http://www.iana.org/assignments/service-name-port-numbers/service-name-port-numbers.txt

The file does not exist and that's why make-services.pl reports the following error message

http://www.iana.org/assignments/service-name-port-numbers/service-name-port-numbers.txt doesn't have enough data

As a quick fix, you could change the perl script wireshark/tools/make-services.pl

from this:

my $iana_port_url = "http://www.iana.org/assignments/service-name-port-numbers/service-names-port-numbers.txt";

to this:

my $iana_port_url = "http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt";

Difference: service-name-port-numbers -> service-names-port-numbers

The better fix, would (probably) be to update your copy of the source code to the current release.

Regards
Kurt

answered 14 Nov '12, 20:28

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 14 Nov '12, 20:54

Sorry,Dear Kurt,i just made a mistake,the error info actually is 'fetching http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt doesn't have enough data',the website can be open in my browser,but it still returns error in the compiling process.

(14 Nov '12, 22:53) rodman

O.K., then the perl script was unable to load the file (maybe due to a proxy)?

(14 Nov '12, 23:33) Kurt Knochner ♦

can you start the script manually and then watch the Download with Wireshark?

/usr/bin/perl /home/wireshark_dissect/wireshark-1.6.4-output-formated/tools/make-version.pl

Is the script able to fetch the whole (right) file?

(15 Nov '12, 02:39) Kurt Knochner ♦