Commit Graph

410 Commits

Author SHA1 Message Date
Jaap Keuter b65cc92385 Add the UNISTIM plugin to Wireshark.
svn path=/trunk/; revision=22558
2007-08-20 20:50:29 +00:00
Guy Harris f104bfa2ad I think the intent, at least, is to allow people to build Wireshark from
a source release tarball without having Flex (think of a source release
tarball being as much a platform-independent distribution format for
people *not* interested in development, and who are on platforms for
which there aren't binary packages, as a way of getting the source to do
development).  Don't check Flex's capabilities in the configure script
(handling reentrant scanners would have to be done differently).

svn path=/trunk/; revision=22414
2007-07-27 18:52:05 +00:00
Guy Harris 96ef450636 Step 1 in adding support for reentrant Flex scanners if Flex supports
them - check whether Flex supports them.

svn path=/trunk/; revision=22410
2007-07-27 02:51:42 +00:00
Guy Harris 3242580dfa Check %l[doux] first, when looking for the format to use with 64-bit
integral data types, so we handle LP64 platforms if "gint64" is just a
"long int".

svn path=/trunk/; revision=22281
2007-07-09 20:27:38 +00:00
Sebastien Tandel 6f8bc99620 default value of --with-gcrypt must be set to yes.
svn path=/trunk/; revision=22157
2007-06-21 22:36:33 +00:00
Sebastien Tandel adebfe60f1 Fix bug #1395
Configure options '--with-libgnutls-prefix' and '--with-libgcrypt-prefix' could
be used to indicate the path where the respective libraries had been installed.
However, these options could not be used to compile wireshark without the use
of them if installed on the system.
These two macros are not part of the wireshark project. configure.in has
therefore been modified so that wireshark can be compiled without gnutls or
gcrypt. Two configure options have been introduced : '--with-gnutls' and
'--with-gcrypt'. They take precedence on their 'prefix-specification'
counterpart or in other words, if '-with-gnutls=no' and
'--with-libgnutls-prefix' are used, wireshark will be compiled *without*
gnutls.

svn path=/trunk/; revision=22127
2007-06-18 03:03:54 +00:00
Sebastien Tandel d3b8c062ea get rid of the "case" statement to test the value of withval.
svn path=/trunk/; revision=22126
2007-06-18 02:23:44 +00:00
Gerald Combs ad56f2ee36 0.99.6 has been split off. Bump the trunk to 0.99.7.
svn path=/trunk/; revision=22111
2007-06-15 18:44:43 +00:00
Guy Harris d2ac4f7133 Check for G_GINT64_MODIFIER in Wireshark as we do in Wiretap.
In all the places where a cast to "long long" or "unsigned long long"
was done, use G_GINT64_MODIFIER and get rid of the cast, as

	1) there's no guarantee that "%ll" works

and

	2) there's no guarantee that "long long" works

(the latter definitely does *NOT* work with MSVC++; the former doesn't
work with regular printf in MSVC++, but it might work with the GLib
printf-based functions).

svn path=/trunk/; revision=21978
2007-05-29 06:56:07 +00:00
Gerald Combs a491fec183 From Mike Harvey: Support for WiMAX and the WiMAX M2M encapsulation protocol.
Add support for WiMAX and M2M to various makefiles and installer files.  Add
basic support for M2M to randpkt.

svn path=/trunk/; revision=21945
2007-05-25 23:40:42 +00:00
Guy Harris b0f2653497 Back out the previous change.
svn path=/trunk/; revision=21918
2007-05-24 12:00:55 +00:00
Guy Harris cbd762e968 Temporarily turn on a bunch of warnings and turn off -Werror, to see
what the complete set of warnings we should either try to fix or, for
cases where it can't be fixed, turn off or or avoid -Werror for.  I'll
revert this change as soon as a complete set of buildbot builds start
with it.

svn path=/trunk/; revision=21917
2007-05-24 11:43:53 +00:00
Guy Harris e531c23af4 If GTK+ isn't available, fail unless the user explicitly specified
"--disable-wireshark"; if they haven't explicitly said that they don't
want Wireshark, assume they do, and that they won't be happy if, when
the build finishes, they don't have Wireshark and weren't made
sufficiently aware that they wouldn't get it.

People who want to build TShark for machines that don't have GTK+
installed, but don't want to build Wireshark because they can't install
GTK+ on the build/target machine, can still do that; they just have to
explicitly specify "--disable-wireshark" to do it.

svn path=/trunk/; revision=21883
2007-05-22 07:52:11 +00:00
Sebastien Tandel c60b0a4f3a temporarily put cast-align in extra-gcc-warnings while compilation on Solaris
slave generates 'cast increases required alignment of target type' warnings. 


svn path=/trunk/; revision=21835
2007-05-19 18:38:45 +00:00
Sebastien Tandel 93314fc852 typo fix
svn path=/trunk/; revision=21822
2007-05-18 00:15:31 +00:00
Sebastien Tandel 55a4b5ad93 temporarily disable cast-align warnings
svn path=/trunk/; revision=21821
2007-05-18 00:04:58 +00:00
Ulf Lamping dd8feca514 from Gerhard Gappmeier (ascolab):
new dissector for OPCUA protocol

svn path=/trunk/; revision=21760
2007-05-14 13:58:54 +00:00
Ronnie Sahlberg 57f4b01fa9 there was a syntax error introduced in this file which made it
impossible to configure and build wireshark under gtk1


svn path=/trunk/; revision=21709
2007-05-07 07:23:38 +00:00
Guy Harris 0ac1bdfc22 If the user explicitly specified "--enable-wireshark", fail immediately
if the test for GTK+ fails; that lets the user insist on getting
Wireshark and gives them immediate feedback if they can't have it, so
they can either give up and just get TShark or fix the problem.

svn path=/trunk/; revision=21687
2007-05-05 00:24:53 +00:00
Guy Harris 1bc049906a Add some GCC warnings to the standard set, and add some others to the
--enable-extra-gcc-checks set.

If we turn on -pedantic, try turning on -Wno-long-long as well, so that
it's not *so* pedantic that it rejects the 64-bit integral data types
that we explicitly require.

Constify a bunch of stuff, and make some other changes, to get rid of
warnings.

Clean up some indentation.

svn path=/trunk/; revision=21526
2007-04-23 10:59:26 +00:00
Jörg Mayer 8ff9801ec1 Fix regression: Automatically disable -Werror in case of extra gcc flags.
svn path=/trunk/; revision=21513
2007-04-22 23:01:49 +00:00
Sebastien Tandel 706627f882 adding AC_(WIRESHARK|WIRETAP)_GCC_CFLAGS_OPTION macro to test whether gcc
supports the options passed as arguments. If the options are supported, they
are added to CFLAGS.


svn path=/trunk/; revision=21493
2007-04-22 09:27:21 +00:00
Guy Harris 23faf81799 Use AC_HELP_STRING for the help strings for --with and --enable flags.
Add -Wpointer-arith to the GCC -W flags by default.

Make "extra-gcc-checks" and "warnings-as-errors" --enable flags rather
than --with flags - autoconf's model is that --enable is for turning
features on or off, --with is for enabling or disabling the use of
external packages (libpcap, Net-SNMP, GNU ADNS, etc.).

When testing whether the compiler is GCC, use the same style all the
time - check whether "x$GCC" equals "xyes".  (The "x" might be overkill
- if you don't quote the arguments, it avoids a missing argument to
"test"/"[", but if you do, it might not be needed.)

svn path=/trunk/; revision=21492
2007-04-22 07:22:37 +00:00
Jeff Morriss 046cf4db31 Fix --with(out)-warnings-as-errors test so warnings-as-errors can be disabled (with gcc)
svn path=/trunk/; revision=21453
2007-04-17 10:01:39 +00:00
Jörg Mayer 6c8b972c62 Disable warnings as errors if extra gcc warnings was specified.
Change to positive logic --without-warnings-as-errors (default no)
==> --with-warnings-as-errors (default yes)

svn path=/trunk/; revision=21425
2007-04-14 00:35:53 +00:00
Sebastien Tandel 7098b76ee0 change the script to automatically stop on warning if compiling with gcc.
svn path=/trunk/; revision=21421
2007-04-13 22:52:33 +00:00
Guy Harris c45434ce68 Fix a comment.
svn path=/trunk/; revision=21356
2007-04-08 20:42:08 +00:00
Guy Harris 233a8fb918 Get rid of extra white space in configure message.
Quote the message about flags added for the Apple linker, so it shows up
correctly.

svn path=/trunk/; revision=21354
2007-04-08 20:32:21 +00:00
Stephen Fisher 8fd3ee0560 Remove almost all of the casts I committed recently and in place of
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it.


svn path=/trunk/; revision=21253
2007-03-28 21:55:11 +00:00
Jeff Morriss a2f4ee6daf Fix distcheck by removing the reference to the megaco plugin
svn path=/trunk/; revision=21209
2007-03-26 10:26:16 +00:00
Jeff Morriss 8c858b3787 Change the test for -Wdeclaration-after-statement slightly to make it work for me. Also redirect its stderr to /dev/null to avoid worrying users
svn path=/trunk/; revision=21208
2007-03-26 08:31:23 +00:00
Ronnie Sahlberg 6ecf2ccc7b older versions of gcc do not check -W parameters when only running the preprocessor.
change the test for whether -Wdeclaration-after-statement so that it also works for ancient gcc



svn path=/trunk/; revision=21205
2007-03-26 06:52:04 +00:00
Jeff Morriss d14c5ba107 If we're using gcc, try to use -Wdeclaration-after-statement to catch more non-portable commits. I'm not sure if this is the Right Way to test to see if the compiler can handle a specific option but it's simple and efficient enough.
svn path=/trunk/; revision=21195
2007-03-26 00:32:13 +00:00
Stephen Fisher 62f88a4a04 From Sebastien Tandel:
(Temporarily disable the warnings as errors default on Unix to get
to get the buildbots and people with gcc40 going again until those
additional warnings gcc40 generates can be fixed-I'm working on it
ASAP)

   Patch for configure.in which disables by default the treatment of
warnings as errors.
It can be enabled with './configure --with-warnings-as-errors'.
The macro will test first if GCC is present. If it's the case,
HAVE_WARNINGS_AS_ERRORS is defined. All the USING_GCC have been replaced
by HAVE_WARNINGS_AS_ERRORS.
With this switch, people won't suffer from unexpected warnings when
downloading svn sources during the transition time ;)


svn path=/trunk/; revision=21153
2007-03-23 17:49:59 +00:00
Stephen Fisher cdf47e536b Add -Werror when using GCC only to the Makefile.am of the base
directory and most of the plugins to match the same command 
put in the Makefile.nmake files for Windows compliations.  Fix
a few warnings when compiling under gcc 3.4.4 on FreeBSD.  Create
new automake file variable called USING_GCC in configure.in and
wiretap/configure.in to acomplish the above -Werror addition. 


svn path=/trunk/; revision=21127
2007-03-22 23:03:39 +00:00
Gerald Combs 9f8fa9cfe2 Bump the trunk version to 0.99.6.
svn path=/trunk/; revision=20526
2007-01-22 22:57:32 +00:00
Guy Harris bbdb2dd733 Automake variables ending with _LDFLAGS are special:
http://sources.redhat.com/ml/automake/2001-08/msg00046.html

so call it LDFLAGS_SHAREDLIB rather than SHAREDLIB_LDFLAGS.

svn path=/trunk/; revision=20410
2007-01-12 21:04:33 +00:00
Guy Harris 405b7189a4 On Darwin, build shared libraries with -Wl,-single_module to the LDFLAGS
used with shared libraries, to fix some error that shows up in some
cases; some Apple documentation recommends it for most shared libraries.

svn path=/trunk/; revision=20312
2007-01-04 20:47:43 +00:00
Guy Harris fb85064c5e -Wl,-single_module breaks the configure script.
svn path=/trunk/; revision=20302
2007-01-04 11:55:05 +00:00
Guy Harris 461d5cc45f Add -Wl,-single_module to the linker flags in Darwin. The page at
http://developer.apple.com/releasenotes/DeveloperTools/RN-dyld/index.html

says

	The static linker ld(1) supports building dylibs as either
	-multi_module or -single_module.  Conceptually, a multi-module
	dylib is like a group of smaller dylibs - one per source file. 
	The extra meta-data in a multi-module dylib allowed (pre-10.4)
	dyld to delay binding and running initializers on the individual
	modules.  In Mac OS X 10.4 dyld ignores all multi-module
	meta-data and completely binds and runs all initializers the
	same as if it were built single-module.  In general, building
	dylibs -single_module is preferred.  The one case where
	multi-module is still useful is it allows internal functions of
	a dylib to be interposable.  For instance, libSystem.dylib is
	built multi_module so that malloc() can be overridden and all
	uses of malloc in libSystem (e.g.  strdup) would be redirected
	to use the overridden version.

and we don't need the interposability for our dylibs, and Andreas Fink
indicates that it's necessary for the packaged Wireshark builds he's
doing.

svn path=/trunk/; revision=20301
2007-01-04 11:50:41 +00:00
Guy Harris 3c26f89630 When building for Darwin, link with -search_paths_first, so that
--with-pcap=/usr/local will, if there's only a static libpcap in
/usr/local/lib, link with that rather than the system's dynamic version.

Move the check for Cygwin that adds -no-undefined to LDFLAGS to the
section checking for linker flags to add.

svn path=/trunk/; revision=20241
2006-12-30 00:13:00 +00:00
Gerald Combs bd282b4114 Move the contents of airpdcap to epan/crypt. Try to fix the current
distcheck failure.  Move the nmake build targets for airpdcap from 
epan/dissectors to epan.  This will probably break the Windows build.

svn path=/trunk/; revision=20231
2006-12-28 17:22:12 +00:00
Gerald Combs 2437fd2e77 Prepare to move the airpdcap code to epan/crypt (SVN won't let me actually
move the files until these changes are checked in).  Add an AC_DEFINE
for airpdcap (which will be removed once the changes have settled).
Update the airpdcap code to compile on non-Windows systems.  Fix up
comments and whitespace to conform more closely to the rest of the
code base.  Verified to compile under Windows and OS X.

svn path=/trunk/; revision=20227
2006-12-27 23:05:55 +00:00
Jaap Keuter 20e6c8c66f Remove mention of UCD SNMP completely.
svn path=/trunk/; revision=20081
2006-12-09 16:37:54 +00:00
Jörg Mayer e26860607d Get rid of UCD SNMP support (it's not longer supported and
superseeded by net-snmp). Replace some_snmp by net_snmp
where appropriate.


svn path=/trunk/; revision=20071
2006-12-08 15:05:41 +00:00
Gerald Combs c77637f7fa Fix an inadvertent change.
svn path=/trunk/; revision=19837
2006-11-06 23:08:11 +00:00
Gerald Combs 7a6159175f Remove ACN.
svn path=/trunk/; revision=19836
2006-11-06 23:04:53 +00:00
Gerald Combs a076a8731d Bump the version to 0.99.5.
svn path=/trunk/; revision=19781
2006-11-03 06:55:30 +00:00
Jörg Mayer 760e4dfc18 Repeat after me: Test submission before sending.
Repeat after me: Test patches before committing.

svn path=/trunk/; revision=19755
2006-10-31 14:47:34 +00:00
Jörg Mayer 63f00dfdc7 Robert Schwebel:
Fix for http://bugs.wireshark.org/bugzilla/attachment.cgi?id=419&action=view
  cross compilation fails

With the following change: Use only AC_CANONICAL_TARGET

From the autoconf manual:
     The user is encouraged to use either `AC_CANONICAL_BUILD', or
     `AC_CANONICAL_HOST', or `AC_CANONICAL_TARGET', depending on the
     needs.  Using `AC_CANONICAL_TARGET' is enough to run the two other
     macros.


svn path=/trunk/; revision=19753
2006-10-31 11:35:55 +00:00