aboutsummaryrefslogtreecommitdiffstats
path: root/docbook/edg_src/EDG_chapter_tools.xml
blob: 568add8e68b5edc16eb2aa66d25b68803ea5e7c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
<!-- EDG Chapter Tools -->
<!-- $Id$ -->

<chapter id="ChapterTools">
  <title>Tools</title>
  <section id="ChToolsIntro">
    <title>Introduction</title>
	<para>
	This chapter will provide you with information how to install 
	the various tools needed for Ethereal development.
	</para>
	<para>
	None of the tools mentioned in this chapter is needed to run Ethereal,
	they are only needed to build it.
	</para>
	<para>
	All these tools have
	their roots on unix like platforms, but win32 ports are also
	available. Therefore the tools are available in different "flavours":
	<itemizedlist>
  	<listitem>
	<para>
	Unix: as described above, the tools should be commonly available on the
	supported unix platforms, and for win32 platforms by the cygwin unix 
	emulation
	</para>
  	</listitem>
  	<listitem>
	<para>
	Win32 native: some tools are available as native Win32 tools, no 
	emulation is required
	</para>
  	</listitem>
	</itemizedlist>
	</para>
	<para>
	The following sections will only do a very brief description of 
	what the particular tool is doing, how it is used in the Ethereal project 
	and how it can be installed and tested.
	</para>
	<para>
	Don't expect a lot of documentation regarding these tools in this
	document. If you need further documentation of a specific tool, you
	should find lot's of useful information on the web, as these tools are
	commonly used. As all of the tools are command line tools, you can try 
	to get help with <userinput>toolname --help</userinput> or read
	the manpage <userinput>man toolname</userinput>.
	</para>
	<para>
	You will find explanations of the tool usage for some of the specific 
	development tasks in <xref linkend="ChapterSources"/>.
	</para>
	<para>
	Some recommendations are given for the
	easiest way to get a win32 development platform up and running, see 
	<xref linkend="ChToolsWin32Recommended"/>.
	</para>
  </section>
  
  <section id="ChToolsInstall">
	<title>Installation</title>
	<para>
	The installation of the tools depend on the platform you use:
	</para>
	
	<section id="ChToolsInstallUnix">
	<title>Unix</title>
	<para>
	All the tools required are usually installed on a unix developer machine.
	</para>
	<para>
	If a tool is not already installed on your system, you will typically use 
	the installation package from your distribution.
	</para>
	<para>
	If an install package is not available, or you have a reason not to use 
	it (maybe because it's simply too old), you can install that tool 
	from source code, the following sections will provide you with the webpage
	addresses where you can get these sources. 
	</para>
	</section>
	
	<section id="ChToolsInstallWin32Native">
	<title>Win32 Native</title>
	<para>
	The native tools will typically be a bit faster, but more complicated to 
	install. You will have to download a lot of tools from different webpages, 
	and install them in the ways they have to be installed. The default 
	installation location will typically not be the 
	<filename>c:\program files</filename> folder. Have a look at 
	<xref linkend="ChToolsWin32Recommended"/> for an overview of the 
	recommended tools.
	</para>
	</section>
	
	<section id="ChToolsInstallCygwin">
	<title>Win32 Cygwin</title>
	<para>
	Installation of the cygwin tools is very simple. As cygwin uses an 
	unix emulation layer,
	it might be a bit slower compared to the native tools, but at an 
	acceptable level. All tools will be installed into one base folder, the 
	default is <filename>c:\cygwin</filename>.
	</para>
	<para>
	Cygwin provides a unix emulation layer with a lot of unix based tools
	on the win32 platform. Although cygwin consists of several
	seperate packages, the installation and update is done through only a
	single setup.exe, which acts similar like other web based installers.
	</para>
	<para>
	You will find this network based setup.exe at: <ulink 
	url="http://www.cygwin.com/"/> click on one
	of the "Install Cygwin now" appearances, this will start the download
	of the setup.exe.
	</para>
	<para>
	After the download completed, start this setup.exe on your machine. It
	will ask you for some
	settings, the defaults should usually work well. The setup will
	then download and install a basic set of packages.
	</para>
	<para>
	Under: "Start -&gt; Programs -&gt; Cygwin -&gt; Cygwin Bash Shell" you
	should now be able to start a new cygwin bash shell, which is similar to 
	the command line (command.exe/cmd.exe) in win32, but much more powerful.
	</para>
	<para>
	If you want to add additional, update installed or remove packages, you 
	should start the setup.exe again. At the "Select Packages" page, the 
	entry in the "New" column will control what is done (or not) with the 
	package. If a new version of a package is available, the new version 
	number will be displayed, so it will be automatically updated. You can 
	change the current setting by simply clicking at it, it will change 
	between:
	<itemizedlist>
	<listitem>
	<para>
	a specific version number - this different package version will be 
	installed
	</para>
	</listitem>
	<listitem>
	<para>
	Skip - not installed, no changes
	</para>
	</listitem>
	<listitem>
	<para>
	Keep - already installed, no changes
	</para>
	</listitem>
	<listitem>
	<para>
	Uninstall - uninstall this package
	</para>
	</listitem>
	<listitem>
	<para>
	Reinstall - reinstall this package
	</para>
	</listitem>
	</itemizedlist>
	</para>
	<para>
	You will find a list of required / recommended packages needed to develop 
	Ethereal in <xref linkend="ChToolsWin32Recommended"/>.
	</para>	
	</section>
	
  </section>

	<section id="ChToolsWin32Recommended">
	<title>Win32: Recommended tools</title>
	<para>
	As there are different forms of the Win32 tools available, the following 
	will give an overview of the recommended tools (which are highlighted in 
	bold face).
	
	<table frame='all'><title>The mandatory tools</title>
	<tgroup cols='3' align='left' colsep='1' rowsep='1'>
	<colspec colname='c1'/>
	<colspec colname='c2'/>
	<colspec colname='c3'/>
	<thead>
	<row>
	  <entry>Tool</entry>
	  <entry><link linkend="ChToolsInstallCygwin">Cygwin</link> packet</entry>
	  <entry>Win32 native</entry>
	</row>
	</thead>
	<tbody>
	<row>
	  <entry><xref linkend="ChToolsBash"/></entry>
	  <entry><command>bash</command></entry>
	  <entry>-</entry>
	</row>
	<row>
	  <entry><xref linkend="ChToolsCompiler"/></entry>
	  <entry>gcc</entry>
	  <entry><command>cl.exe (MSVC)</command></entry>
	</row>
	<row>
	  <entry><xref linkend="ChToolsDebugger"/></entry>
	  <entry>DDD</entry>
	  <entry><command>integrated debugger (MSVC)</command></entry>
	</row>
	<row>
	  <entry><xref linkend="ChToolsMake"/></entry>
	  <entry>make</entry>
	  <entry><command>nmake.exe (MSVC)</command></entry>
	</row>
	<row>
	  <entry><xref linkend="ChToolsPython"/></entry>
	  <entry><command>python</command></entry>
	  <entry><ulink url="http://python.org/download/"/></entry>
	</row>
	<row>
	  <entry><xref linkend="ChToolsPerl"/></entry>
	  <entry><command>perl</command></entry>
	  <entry><ulink url="http://www.ActiveState.com"/></entry>
	</row>
	<row>
	  <entry><xref linkend="ChToolsSed"/></entry>
	  <entry><command>sed</command></entry>
	  <entry>-</entry>
	</row>
	<row>
	  <entry><xref linkend="ChToolsYacc"/></entry>
	  <entry><command>yacc</command></entry>
	  <entry>-</entry>
	</row>
	<row>
	  <entry><xref linkend="ChToolsLexx"/></entry>
	  <entry><command>lexx</command></entry>
	  <entry>-</entry>
	</row>
	</tbody>
	</tgroup>
	</table>	
	
	<table frame='all'><title>The optional tools</title>
	<tgroup cols='3' align='left' colsep='1' rowsep='1'>
	<colspec colname='c1'/>
	<colspec colname='c2'/>
	<colspec colname='c3'/>
	<thead>
	<row>
	  <entry>Tool</entry>
	  <entry><link linkend="ChToolsInstallCygwin">Cygwin</link> packet</entry>
	  <entry>Win32 native</entry>
	</row>
	</thead>
	<tbody>
	<row>
	  <entry><xref linkend="ChToolsSubversion"/></entry>
	  <entry>svn</entry>
	  <entry><command><ulink url="http://tortoisesvn.tigris.org/">TortoiseSVN</ulink></command></entry>
	</row>
	<row>
	  <entry><xref linkend="ChToolsDiff"/></entry>
	  <entry><command>diff</command></entry>
	  <entry>-</entry>
	</row>
	<row>
	  <entry><xref linkend="ChToolsPatch"/></entry>
	  <entry><command>patch</command></entry>
	  <entry>-</entry>
	</row>
	<row>
	  <entry><xref linkend="ChToolsWget"/></entry>
	  <entry><command>wget</command></entry>
	  <entry>-</entry>
	</row>
	<row>
	  <entry><xref linkend="ChToolsNSIS"/></entry>
	  <entry>-</entry>
	  <entry>
	  <command><ulink url="http://nsis.sourceforge.net">NSIS</ulink></command>
	  </entry>
	</row>
	</tbody>
	</tgroup>
	</table>	
	XXX - mark, which cygwin packages are installed by default.
	</para>
	</section>

	<section id="ChToolsBash">
	<title>bash</title>
	<para>
	The bash shell is needed to run several shell scripts.
	</para>
	
	<section id="ChToolsGNUBash">
	<title>Unix: GNU bash</title>
	<para>
	The bash is available for most of the unix-like platforms and as the 
	<application>bash</application> package from the <link 
	linkend="ChToolsInstallCygwin">Cygwin setup</link>.
	</para>
	<para>
	If the bash isn't already installed and also not available as a package 
	for your platform, you can get it at: 
	<ulink url="http://www.gnu.org/software/bash/bash.html"/>.
	</para>
	<para>
	After correct installation, typing inside any shell:
	</para>
	<para>
	<prompt>$</prompt> <userinput>bash --version</userinput>
	</para>
	<para>
	should result in something like:
	<programlisting>
<![CDATA[GNU bash, version 2.05b.0(1)-release (i686-pc-cygwin)
Copyright (C) 2002 Free Software Foundation, Inc.]]>
	</programlisting>
	However, the version string may vary.
	</para>
	</section>
	
	<section id="ChToolsWin32Bash">
	<title>Win32 native: -</title>
	<para>
	The authors don't know of any working win32 native bash implementation.
	</para>
	</section>

	</section>

	<section id="ChToolsCompiler">
	<title>C compiler</title>
	
	<section id="ChToolsGCC">
	<title>Unix: GCC (GNU compiler collection)</title>
	<note><title>Win32 Note!</title>
	<para>
	Although some effort is currently made to use gcc from the cygwin
	environment, the mainline for several reasons is still using Microsoft 
	Visual Studio's C compiler.
	</para>
	</note>
	<para>
	The gcc C compiler is available for most of the unix-like platforms and 
	as the <application>gcc</application> package from the <link 
	linkend="ChToolsInstallCygwin">Cygwin setup</link>.
	</para>
	<para>
	If gcc isn't already installed and also not available as a package 
	for your platform, you can get it at: 
	<ulink url="http://gcc.gnu.org/"/>.
	</para>
	<para>
	After correct installation, typing inside the bash:
	</para>
	<para>
	<prompt>$</prompt> <userinput>gcc --version</userinput>
	</para>
	<para>
	should result in something like:
	<programlisting>
<![CDATA[gcc (GCC) 3.3.3 (cygwin special)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.]]>
	</programlisting>
	However, the version string may vary.
	</para>
	</section>
	 
	<section id="ChToolsMSVC6">
	<title>Win32 native: Microsoft Visual Studio version 6 C compiler</title>
	<para>
	<note><title>Note!</title>
	<para>
	The Microsoft Visual Studio is not free software.
	This is a tool you have to buy before you use it!
	</para>
	</note>
	</para>
	<para>
	The mainline for generating Ethereal on the windows platform, is using
	the compiler cl.exe from the Microsoft Visual Studio version 6 (and it's 
	nmake, as described below).
	</para>
	<para>
	After correct installation, typing inside the command line (cmd.exe):
	</para>
	<para>
	<prompt>&gt;</prompt> <userinput>cl</userinput>
	</para>
	<para>
	should result in something like:
	<programlisting>
<![CDATA[Optimierender Microsoft (R) 32-Bit C/C++-Compiler, Version 12.00.8804, fuer x86
Copyright (C) Microsoft Corp 1984-1998. Alle Rechte vorbehalten.

Verwendung: cl [ Option... ] Dateiname... [ /link Linker-Option... ]]]>
	</programlisting>
	However, the version string may vary.
	</para>
	</section>

	<section id="ChToolsMSVC7">
	<title>Win32 native: Microsoft Visual Studio .NET (and alike) C compilers
	</title>
	<para>
	<warning><title>Warning!</title>
	<para>
	The recent "Microsoft Visual Studio .NET" C compiler(s) currently cannot 
	be used to compile Ethereal!!!
	</para>
	</warning>
	</para>
	<para>
	The following is a problem summary for:
	<itemizedlist>
	<listitem><para>
	Microsoft Visual Studio .NET
	</para></listitem>
	<listitem><para>
	Microsoft Visual C++ .NET
	</para></listitem>
	<listitem><para>
	Microsoft Visual C++ Toolkit 2003, freely available at: <ulink url="http://msdn.microsoft.com/visualc/vctoolkit2003/"/>
	</para></listitem>
	</itemizedlist>
	All containing version 7 or later of Microsoft's C compiler.
	</para>
	<para>
	It is reported that this compiler requires to ship a MSVCRT70.dll together 
	with the compiled exe, which contains the C runtime library. This 
	conflicts, as all required libraries currently compiled with (and uses) 
	MSVCRT.dll (the older version 6 one). 
	</para>
	<para>
	Example why this hurts: A dependant library might try to open a file using 
	functions in MSVCRT.dll which creates an internal file handle and keeps 
	information about that file. When Ethereal tries to read data from that 
	file, it uses the functions from MSVCRT70.dll, which doesn't know anything 
	about that previously opened file and returns an error code.
	</para>
	<para>
	There where also attempts to bring the compiler to use only the old 
	MSVCRT.dll but they seemed to fail :-(
	</para>
	<para>
	It's also still unsure, if shipping the MSVCRT70.dll together with Ethereal
	is compatible with the GPL license at all.	
	</para>
	<note><title>Note!</title>
	<para>
	This isn't an Ethereal specific problem. Any software project trying to use
	the version 7 C compiler will have the problems described above!
	</para>
	</note>
	<para>
	XXX - what about the legal issue, as the MSVCRT70.dll had to be shipped 
	with Ethereal.
	</para>
	</section>

	</section>

	<section id="ChToolsDebugger">
	<title>Debugger</title>
	<para>
	Well, using a good debugger can save you a lot of development time. However
	some people still think it's use is optional.
	</para>
	<para>
	The debugger you use must match the C compiler Ethereal was compiled with, 
	otherwise the debugger will simply fail or you will only see a lot of 
	garbage.
	</para>

	<section id="ChToolsGDB">
	<title>Unix: GNU gdb</title>
	<para>
	gdb is the debugger for the gcc compiler. It is available for many (if 
	not all) unix-like platforms and as the <application>gdb</application> 
	package from the <link 
	linkend="ChToolsInstallCygwin">Cygwin setup</link>	
	</para>
	<para>
	If you don't like debugging using the command line, there are some GUI 
	frontends for it available, most notably GNU DDD.
	</para>
	<para>
	If gdb isn't already installed and also not available as a package for 
	your platform, you can get it at: 
	<ulink url="http://www.gnu.org/software/gdb/gdb.html"/>.
	</para>
	<para>
	After correct installation, typing inside the bash:
	</para>
	<para>
	<prompt>$</prompt> <userinput>gdb --version</userinput>
	</para>
	<para>
	should result in something like:
	<programlisting>
<![CDATA[
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin".]]>
	</programlisting>
	However, the version string may vary.
	</para>
	</section>

	<section id="ChToolsDDD">
	<title>Unix: GNU DDD</title>
	<para>
	The GNU Data Display Debugger is a good GUI frontend for gdb (and a lot of 
	other command line debuggers), so you have to install gdb first. It is 
	available for many unix-like platforms and as the 
	<application>ddd</application> package from the <link 
	linkend="ChToolsInstallCygwin">Cygwin setup</link>.
	</para>
	<para>
	If GNU DDD isn't already installed and also not available as a package for 
	your platform, you can get it at: 
	<ulink url="http://www.gnu.org/software/ddd/"/>.
	</para>
	</section>

	<section id="ChToolsMSVCDebugger">
	<title>Win32 native: Microsoft Visual Studio debugger</title>
	<para>
	You can use the integrated debugger of Visual Studio. 
	</para>
	<para>
	However, setting up 
	the environment is a bit tricky, as the win32 build process is using 
	makefiles instead of the .dsp/.dsw files usually used. 
	XXX - add instructions how to do it.
	</para>
	</section>
	
	<section id="ChToolsMSDebuggingTools">
	<title>Win32 native: Microsoft Debugging Tools for Windows</title>
	<para>
	You could also use the Microsoft debugging tools, which is a GUI debugger. 
	As it's not that comfortable compared to debugging in visual studio, it 
	can be helpful if you have to debug on a different machine.
	</para>
	<para>	
	You can get it free of charge at: <ulink 
	url="http://www.microsoft.com/whdc/devtools/debugging/default.mspx"/> (as
	links to microsoft pages changes from time to time, search for 
	"Debugging Tools" at their page if this link should be outdated).
	</para>
	</section>

	</section>

	<section id="ChToolsMake">
	<title>make</title>

	<section id="ChToolsGNUmake">
	<title>Unix: GNU make</title>
	<note><title>Win32 Note!</title>
	<para>
	Although some effort is made to use make from the cygwin environment,
	the mainline is still using Microsoft Visual Studio's nmake.
	</para>
	</note>
	<para>
	GNU make is available for most of the unix-like platforms and 
	also as the <application>make</application> package from the <link 
	linkend="ChToolsInstallCygwin">Cygwin setup</link>.
	</para>
	<para>
	If GNU make isn't already installed and also not available as a package 
	for your platform, you can get it at: 
	<ulink url="http://www.gnu.org/software/make/"/>.
	</para>
	<para>
	After correct installation, typing inside the bash:
	</para>
	<para>
	<prompt>$</prompt> <userinput>make --version</userinput>
	</para>
	<para>
	should result in something like:
	<programlisting>
<![CDATA[GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.]]>
	</programlisting>
	However, the version string may vary.
	</para>
	</section>

	<section id="ChToolsNmake">
	<title>Win32 native: nmake from MSVC</title>
	<para>
	nmake is part of the Microsoft Visual Studio suite, see comment above.
	</para>
	<para>
	Instead of using the the workspace (.dsw) and projects (.dsp) files,
	the	traditional nmake makefiles are used. This has one main reason: it
	makes it much easier to maintain changes simultaneous with the gcc
	toolchain makefile.am files as both file formats are similar. However, as
	no Visual Studio workspace/project files are available, this makes it
	hard to use the Visual Studio IDE e.g. for using the integrated
	debugging feature.
	</para>
	<para>
	After correct installation, typing inside the command line (cmd.exe):
	</para>
	<para>
	<prompt>&gt;</prompt> <userinput>nmake</userinput>
	</para>
	<para>
	should result in something like:
	<programlisting>
<![CDATA[Microsoft (R) Program Maintenance-Dienstprogramm: Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. Alle Rechte vorbehalten.

NMAKE : fatal error U1064: MAKEFILE nicht gefunden und kein Ziel angegeben
Stop.]]]>
	</programlisting>
	However, the version string may vary.
	</para>
	</section>

	<section id="ChToolsNmake15">
	<title>Win32 native: nmake from microsoft.com</title>
	<warning><title>Warning!</title>
	<para>
	It is recommended to use the Microsoft Visual Studio version 6 to compile
	Ethereal for Win32, see <xref linkend="ChToolsCompiler"/>. Don't follow the
	instructions in this section, until you now what you are doing.
	</para>
	</warning>
	<para>
	NMAKE 1.5 can be downloaded from Microsoft.com if you search for 
	"KB132084". Unpack the archive by running it, and drop the 3 extracted 
	files in the MSVC++ Toolkit "bin" directory.
	</para>
	<para>
	You will also need <filename>win32.mak</filename>, which you can get from 
	the MS Win Platform SDK by browsing to <ulink 
	url="http://www.microsoft.com/msdownload/platformsdk/sdkupdate/"/>
	where you select the "Core SDK" and only tick the "Build Environment"
	(31MB) option. After a while, this SDK will be installed.
	</para>
	<para>
	From the start menu, choose "Programs"
	-> "Microsoft Platform SDK February 2003"
	-> "Open build environment window"
	-> (choose your OS Win2K/WinXP/Win2003)
	</para>
	</section>

	</section>


	<section id="ChToolsPython">
	<title>python</title>
	<para>
	Python is an interpreter based programming language. The homepage of
	the python project is: <ulink url="http://python.org/"/>.
	Python is used to XXX. Python version 2.2 and above should be working
	fine.
	</para>

	<section id="ChToolsUnixPython">
	<title>Unix: python</title>
	<para>
	Python is available for most of the unix-like platforms and as the 
	<application>python</application> package from the <link 
	linkend="ChToolsInstallCygwin">Cygwin setup</link>
	</para>
	<para>
	If Python isn't already installed and also not available as a package 
	for your platform, you can get it at: 
	<ulink url="http://www.python.org/"/>.
	</para>
	<para>
	After correct installation, typing inside the bash:
	</para>
	<para>
	<userinput>$ python -V</userinput>
	</para>
	<para>
	should result in something like:
	</para>
	<para>
	<computeroutput>Python 2.3.3</computeroutput>
	</para>
	<para>
	However, the version string may vary.
	</para>
	</section>

	<section id="ChToolsWin32Python">
	<title>Win32 native: python</title>
	<para>
	Have a look at <ulink url="http://python.org/download/"/>
	to download the latest stable release. You can download a setup there,
	which will install the python system typically into:
	C:\python23 or similiar.
	</para>
	</section>

	</section>


	<section id="ChToolsPerl">
	<title>perl</title>
	<para>
	Perl is an interpreter based programming language. The homepage of the
	perl project is: <ulink url="http://www.perl.com"/>.
	Perl is used to XXX. Perl version XXX and above should be working fine.
	</para>

	<section id="ChToolsUnixPerl">
	<title>Unix: perl</title>
	<para>
	Perl is available for most of the unix-like platforms and as the 
	<application>perl</application> package from the <link 
	linkend="ChToolsInstallCygwin">Cygwin setup</link>.
	</para>
	<para>
	If Perl isn't already installed and also not available as a package 
	for your platform, you can get it at: 
	<ulink url="http://www.perl.com/"/>.
	</para>
	<para>
	After correct installation, typing inside the bash:
	</para>
	<para>
	<prompt>$</prompt> <userinput>perl --version</userinput>
	</para>
	<para>
	should result in something like:
	<programlisting>
<![CDATA[This is perl, v5.8.5 built for cygwin-thread-multi-64int

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.]]>
	</programlisting>
	However, the version string may vary.
	</para>

	</section>

	<section id="ChToolsWin32Perl">
	<title>Win32 native: perl</title>
	<para>
	A native Win32 perl package can be obtained from 
	<ulink url="http://www.ActiveState.com"/>. The
	installation should be straightforward.
	</para>
	<para>
	After correct installation, typing inside the command line (cmd.exe):
	</para>
	<para>
	<prompt>&gt;</prompt> <userinput>perl -v</userinput>
	</para>
	<para>
	should result in something like:
	<programlisting>
<![CDATA[This is perl, v5.8.0 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2002, Larry Wall

Binary build 805 provided by ActiveState Corp. http://www.ActiveState.com
Built 18:08:02 Feb  4 2003

...]]>
	</programlisting>
	However, the version string may vary.
	</para>
	</section>

	</section>

	<section id="ChToolsSed">
	<title>sed</title>
	<para>
	Sed it the streaming editor. It makes it easy for example to replace
	specially marked texts inside a source code file. The Ethereal build
	process uses this to stamp version strings into various places.
	</para>

	<section id="ChToolsUnixSed">
	<title>Unix: sed</title>
	<para>
	Sed is available for most of the unix-like platforms and as the 
	<application>sed</application> package from the <link 
	linkend="ChToolsInstallCygwin">Cygwin setup</link>.
	</para>
	<para>
	If Sed isn't already installed and also not available as a package 
	for your platform, you can get it at: 
	<ulink url="http://sed.sourceforge.net/"/> 
	(XXX - is this the official home?).
	</para>
	<para>
	After correct installation, typing inside the bash:
	</para>
	<para>
	<prompt>$</prompt> <userinput>sed --version</userinput>
	</para>
	<para>
	should result in something like:
	<programlisting>
<![CDATA[GNU sed version 4.0.9
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
to the extent permitted by law.]]>
	</programlisting>
	However, the version string may vary.
	</para>
	</section>

	<section id="ChToolsWin32Sed">
	<title>Win32 native: -</title>
	<para>
	The authors don't know of any working win32 native sed implementation.
	</para>
	</section>

	</section>

	<section id="ChToolsYacc">
	<title>yacc (bison)</title>
	<para>
	Bison is a free implementation of yacc.
	</para>

	<section id="ChToolsUnixYacc">
	<title>Unix: bison</title>
	<para>
	Bison is available for most of the unix-like platforms and as the 
	<application>bison</application> package from the <link 
	linkend="ChToolsInstallCygwin">Cygwin setup</link>.
	</para>
	<para>
	If GNU Bison isn't already installed and also not available as a package 
	for your platform, you can get it at: 
	<ulink url="http://www.gnu.org/software/bison/bison.html"/>.
	</para>
	<para>
	After correct installation, typing inside the bash:
	</para>
	<para>
	<prompt>$</prompt> <userinput>bison --version</userinput>
	</para>
	<para>
	should result in something like:
	<programlisting>
<![CDATA[bison (GNU Bison) 1.875b
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.]]>
	</programlisting>
	However, the version string may vary.
	</para>
	</section>

	<section id="ChToolsWin32Yacc">
	<title>Win32 native: -</title>
	<para>
	The authors don't know of any working win32 native yacc/bison 
	implementation.
	</para>
	</section>
	</section>


	<section id="ChToolsLexx">
	<title>lexx (flex)</title>
	<para>
	Flex is a free implementation of lexx.
	</para>
	
	<section id="ChToolsUnixLexx">
	<title>Unix: flex</title>
	<para>
	Flex is available for most of the unix-like platforms and as the 
	<application>flex</application> package from the <link 
	linkend="ChToolsInstallCygwin">Cygwin setup</link>.
	</para>
	<para>
	If GNU Flex isn't already installed and also not available as a package 
	for your platform, you can get it at: 
	<ulink url="http://www.gnu.org/software/flex/"/>.
	</para>
	<para>
	After correct installation, typing inside the bash:
	</para>
	<para>
	<prompt>$</prompt> <userinput>flexx --version</userinput>
	</para>
	<para>
	should result in something like:
	<programlisting>
<![CDATA[flex version 2.5.4]]>
	</programlisting>
	However, the version string may vary.
	</para>
	</section>

	<section id="ChToolsWin32Lexx">
	<title>Win32 native: -</title>
	<para>
	The authors don't know of any working win32 native lexx/flex 
	implementation.
	</para>
	</section>
	</section>


	<section id="ChToolsSubversion">
	<title>Subversion (SVN) client (optional)</title>
	<para>
	The Ethereal project uses it's own subversion (or short SVN) server to keep 
	track of all the changes done to the source code. Details about the usage
	of subversion in the Ethereal project can be found in <xref 
	linkend="ChSrcSVNServer"/>.
	</para>
	<para>	
	If you want to work with the source code and planning to commit your
	changes back to the Ethereal community, it is recommended to use a SVN 
	client to get the latest source files. For detailed information about the 
	different ways to obtain the Ethereal sources, see 
	<xref linkend="ChSrcObtain"/>.
	</para>
	<para>
	Along with the traditional command-line client, several GUI clients are 
	available for a number of platforms, see
	<ulink url="http://subversion.tigris.org/project_links.html"/>.
	</para>
	<para>
	You will find more instructions in <xref linkend="ChSrcAnon"/> how to 
	use the subversion client.
	</para>

	<section id="ChToolsUnixSVN">
	<title>Unix: svn</title>
	<para>
	SVN is available for most of the unix-like platforms and as the 
	<application>SVN</application> package from the <link 
	linkend="ChToolsInstallCygwin">Cygwin setup</link>
	</para>
	<para>
	If Subversion isn't already installed and also not available as a package 
	for your platform, you can get it at: 
	<ulink url="http://subversion.tigris.org/"/> (together with the server 
	software).
	</para>
	<para>
	After correct installation, typing inside the bash:
	</para>
	<para>
	<prompt>$</prompt> <userinput>svn --version</userinput>
	</para>
	<para>
	should result in something like:
	<programlisting>
<![CDATA[svn, version 1.0.5 (r9954)
   compiled Jun 20 2004, 23:28:30

Copyright (C) 2000-2004 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

...]]>
	</programlisting>
	However, the version string may vary.
	</para>
	</section>

	<section id="ChToolsTortoiseSVN">
	<title>Win32 native: TortoiseSVN</title>
	<para>
	A good subversion client for Win32 can be found at: 
	<ulink url="http://tortoisesvn.tigris.org/"/>. It will nicely integrate 
	into the windows Explorer window.
	</para>
	</section>

	</section>

	<section id="ChToolsDiff">
	<title>diff (optional)</title>
	<para>
	Diff is used to get a file of all differences between two source
	files/trees (sometimes called a patch). The diff tool isn't needed for 
	building ethereal, but it's needed if you are going to commit your changes 
	back to the ethereal community.
	</para>
	<note><title>Note!</title>
	<para>
	The recommended way to build patches is using the subversion client,
	see <xref linkend="ChToolsSubversion"/> for details.
	</para>
	</note>	
	<para>
	You will find more instructions in <xref linkend="ChSrcDiff"/> how to 
	use the diff tool.
	</para>

	<section id="ChToolsGNUDiff">
	<title>Unix: GNU diff</title>
	<para>
	Diff is available for most of the unix-like platforms and as the 
	<application>diffutils</application> package from the <link 
	linkend="ChToolsInstallCygwin">Cygwin setup</link>.
	</para>
	<para>
	If GNU diff isn't already installed and also not available as a package 
	for your platform, you can get it at: 
	<ulink url="http://www.gnu.org/software/diffutils/diffutils.html"/>.
	</para>
	<para>
	After correct installation, typing inside the bash:
	</para>
	<para>
	<prompt>$</prompt> <userinput>diff --version</userinput>
	</para>
	<para>
	should result in something like:
	<programlisting>
<![CDATA[diff (GNU diffutils) 2.8.7
Written by Paul Eggert, Mike Haertel, David Hayes,
Richard Stallman, and Len Tower.

Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.]]>
	</programlisting>
	However, the version string may vary.
	</para>
	</section>

	<section id="ChToolsWin32Diff">
	<title>Win32 native: -</title>
	<para>
	The authors don't know of any win32 native command line diff 
	implementation. 
	</para>
	<para>
	The subversion client TortoiseSVN has a build in diff feature, see 
	<xref linkend="ChToolsTortoiseSVN"/>. If this can be used to create diff 
	files in the required format, so other persons can use them, is currently 
	unknown.
	</para>
	</section>

	</section>


	<section id="ChToolsPatch">
	<title>patch (optional)</title>
	<para>
	The patch utility is used to merge a diff file into your own source
	tree. This tool is only needed, if you want to apply a patch (diff file) 
	from someone else (probably from the developer mailing list) to try out 
	in your own private source tree.
	</para>
	<tip><title>Tip!</title>
	<para>
	Unless you are in the rare case needing to apply a patch to your private 
	source tree, you won't need the patch tool installed.
	</para>
	</tip>
	<para>
	You will find more instructions in <xref linkend="ChSrcPatchApply"/> how 
	to use the patch tool.
	</para>

	<section id="ChToolsUnixPatch">
	<title>Unix: patch</title>
	<para>
	Patch is available for most of the unix-like platforms and as the 
	<application>patch</application> package from the <link 
	linkend="ChToolsInstallCygwin">Cygwin setup</link>.
	</para>
	<para>
	If GNU patch isn't already installed and also not available as a package 
	for your platform, you can get it at: 
	<ulink url="http://www.gnu.org/software/patch/patch.html"/>.
	</para>
	<para>
	After correct installation, typing inside the bash:
	</para>
	<para>
	<prompt>$</prompt> <userinput>patch --version</userinput>
	</para>
	<para>
	should result in something like:
	<programlisting>
<![CDATA[patch 2.5.8
Copyright (C) 1988 Larry Wall
Copyright (C) 2002 Free Software Foundation, Inc.

This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

written by Larry Wall and Paul Eggert]]>
	</programlisting>
	However, the version string may vary.
	</para>
	</section>

	<section id="ChToolsWin32Patch">
	<title>Win32 native: -</title>
	<para>
	The authors don't know of any working win32 native patch implementation.
	</para>
	<para>
	The subversion client TortoiseSVN has a build in patch feature, see 
	<xref linkend="ChToolsTortoiseSVN"/>. The last time tested (Version 1.1.0), 
	this feature failed to apply patches known to be ok.
	</para>
	</section>

	</section>


	<section id="ChToolsWget">
	<title>Win32: GNU wget (optional)</title>
	<para>
	GNU wget is used to download files from the internet using the command line.
	</para>
	<para>
	GNU wget is available for most of the unix-like platforms and as the 
	<application>wget</application> package from the <link 
	linkend="ChToolsInstallCygwin">Cygwin setup</link>.
	</para>
	<para>
	You will only need wget, if you want to use the win32 automated library 
	download, see <xref linkend="ChLibsSetup"/> for details.
	</para>
	<para>
	If GNU wget isn't already installed and also not available as a package 
	for your platform (well, for win32 it is available as a cygwin package), 
	you can get it at: 
	<ulink url="http://www.gnu.org/software/wget/wget.html"/>.
	</para>
	<para>
	If wget is trying to download files but fails to do so, your internet 
	connection might use a HTTP proxy. Some internet providers using such a 
	proxy and it is common for company networks today. In this case, you 
	must set the environment variable 
	http_proxy before using wget. For example, if you are behind proxy.com 
	which is listening on port 8080, you have to set it to something like:
	</para>
	<para>
	<programlisting>set HTTP_PROXY=http://proxy.com:8080/</programlisting>
	</para>
	<para>
	If you are unsure about the settings, you might ask your system 
	administrator.
	</para>
	</section>


	<section id="ChToolsNSIS">
	<title>Win32: NSIS (optional)</title>
	<para>
	The NSIS (Nullsoft Scriptable Install System) is used to generate a
	setup.exe from all the files needed to be installed, including all
	required DLL's and such.
	</para>
	<para>
	To install it, simply download the latest released version (currently: 2.0
	final) from <ulink url="http://nsis.sourceforge.net"/>
	and start the downloaded installer. You will need NSIS version 2 final 
	or higher.
	</para>
	<para>
	You will find more instructions in <xref linkend="ChSrcNSIS"/> how to 
	use the NSIS tool.
	</para>
	</section>


	<section id="ChToolsCVS">
	<title>Obsolete: CVS client</title>
	<para>
	Some time ago, the Ethereal project was using CVS to keep track of all 
	the source code changes. As now subversion (SVN) is used, a CVS client
	is no longer helpful, see <xref linkend="ChToolsSubversion"/> for details 
	about subversion clients.
	</para>
	</section>


	<section id="ChToolsWin32Verify">
	<title>Win32: Verify installed tools</title>
	<para>
	After you've installed the Ethereal sources (see <xref 
	linkend="ChSrcObtain"/>), you can check the correct installation of 
	all tools by using the verify_tools target of the 
	<filename>Makefile.nmake</filename> from the source package.
	</para>
	<warning><title>Warning!</title>
	<para>
	You will need the Ethereal sources and some tools (nmake, bash) installed, 
	before this verification is able to work.
	</para>
	</warning>
	<para>
	Enter at the command line:
	</para>
	<para>
	<prompt>&gt;</prompt> 
	<userinput>nmake -f Makefile.nmake verify_tools</userinput>
	</para>
	<para>
	This will check for the various tools needed to build Ethereal:
	</para>
	<para>
	<programlisting>
<![CDATA[Checking for required applications:
        cl: /cygdrive/c/Program Files/Microsoft Visual Studio/VC98/bin/cl
        link: /cygdrive/c/Program Files/Microsoft Visual Studio/VC98/bin/link
        nmake: /cygdrive/c/Program Files/Microsoft Visual Studio/VC98/bin/nmake
        bash: /usr/bin/bash
        bison: /usr/bin/bison
        flex: /usr/bin/flex
        env: /usr/bin/env
        grep: /usr/bin/grep
        find: /usr/bin/find
        perl: /usr/bin/perl
        env: /usr/bin/env
        python: /usr/bin/python
        sed: /usr/bin/sed
        unzip: /usr/bin/unzip
        wget: /usr/bin/wget]]>
	</programlisting>
	</para>	
	<para>	
	If you have problems with all the first three ones, check if you called 
	...\Microsoft Visual Studio\VC98\Bin\vcvars32.bat before 
	(which will "fix" your PATH settings).
	</para>	
	<para>	
	Unfortunately, the link command is defined both from cygwin and from MSVC 
	with completely different purpose, you'll need the MSVC link. 
	If your link command looks something like: /usr/bin/link, the link command 
	of cygwin takes precedence over the MSVC one. To fix this, you can change 
	your PATH environment setting or simply renaming the link.exe in cygwin. 
	If you rename it, make sure to remember that a cygwin update may provide 
	a new version of it.
	</para>	
	</section>

</chapter>
<!-- End of EUG Chapter Tools -->