Commit graph

658 commits

Author SHA1 Message Date
Stig Bjørlykke
8443bbbf75 Replace all strerror() with g_strerror().
Remove our local strerror implementation.
Mark strerror as locale unsafe API.

This fixes bug 5715.

svn path=/trunk/; revision=37812
2011-06-28 09:00:11 +00:00
Gerald Combs
8d88f3a790 Make pcap-ng the default. Add a compile-time option to prefer pcap-ng or
pcap.  Add a "-P" capture option which tries to use pcap instead of
pcap-ng ("-P" seemed to be the best option but we may want to use a
different letter).

Update the documentation and release notes.

svn path=/trunk/; revision=37696
2011-06-17 17:52:31 +00:00
Guy Harris
350ec69e9a Do the Python embedding similarly to other "default = yes, if available"
items.

Add some quoting to the zlib tests, just in case the argument contains
white space.

Clean up capitalization of Lua and Python.

Link programs that use libwireshark with the Python libraries, and build
Epan with the Python cflags.

svn path=/trunk/; revision=37652
2011-06-11 19:05:17 +00:00
Anders Broman
afb0e8b434 From Michael Mann:
Make interlink built-in dissector (from plugin).
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6005

svn path=/trunk/; revision=37610
2011-06-08 05:20:43 +00:00
Guy Harris
e25095dfe5 The SERCOS III dissector is now built-in.
svn path=/trunk/; revision=37605
2011-06-08 01:37:18 +00:00
Anders Broman
2ef145dfb2 Remove HAVE_AIRPDCAP
svn path=/trunk/; revision=37496
2011-05-31 21:41:00 +00:00
Jeff Morriss
e7974bf250 AirPcap is disabled by default; fix the help text to reflect that fact.
svn path=/trunk/; revision=37423
2011-05-27 03:22:48 +00:00
Anders Broman
2756b787d3 Copy-paste error.
svn path=/trunk/; revision=37394
2011-05-25 15:01:07 +00:00
Anders Broman
84a22ed17e Make it easier to add custom asn1 dissectors.
svn path=/trunk/; revision=37393
2011-05-25 14:21:42 +00:00
Guy Harris
17d758799e One "-Warray-bounds" suffices; as we're including it in the default
options, no need to include it in the "extra warnings" options as well.

svn path=/trunk/; revision=37387
2011-05-25 02:35:30 +00:00
Jörg Mayer
07265037dd Update CMakeLists to follow commit 37219.
Remove a duplicate check in configure.in

svn path=/trunk/; revision=37277
2011-05-19 04:35:04 +00:00
Guy Harris
e902f33d18 Add -Wold-style-definition and -Wdeclaration-after-statement to the list
of warnings we enable by default; we'll move them if they break any
builds in non-fixable ways.

Add -Wmissing-prototypes and -Wmissing-declarations to the list of
things we don't enable by default, and explain why those, and
-Wstrict-prototypes can't be used.

Also explain why we check for clang before checking whether we can
enable -fexcess-precision=fast.

svn path=/trunk/; revision=37219
2011-05-17 22:24:26 +00:00
Jeff Morriss
99a76aca46 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5875 :
Error out if the user asked us to install dumpcap with a particular group but
we are not building dumpcap.

svn path=/trunk/; revision=37208
2011-05-17 19:59:18 +00:00
Gerald Combs
1c831b6343 1.5.2 → 1.7.0.
svn path=/trunk/; revision=37148
2011-05-14 20:17:37 +00:00
Jeff Morriss
86f69833bf We need both gthread and gmodule.
svn path=/trunk/; revision=37101
2011-05-12 20:35:13 +00:00
Michael Tüxen
3501febf60 Initialize the glib thread system on all platforms, not only on Windows.
This requires to be linked against a different library. This is only
required for dumpcap, but the configure files currently doesn't check
this in a target specific way. So use these libs for all binaries.

svn path=/trunk/; revision=37095
2011-05-12 18:55:24 +00:00
Jakub Zawadzki
b680407847 Conditional support for packet-editor [default=no].
svn path=/trunk/; revision=37084
2011-05-12 17:14:59 +00:00
Guy Harris
7eb4723184 Don't bother checking for gzgets(), as we don't use it, and don't even
need to use its presence in zlib as a proxy for "not the crufty old zlib
that comes with some versions of X11".

Do, however, check for inflatePrime() there, instead, just in case the
crufty old zlib that comes with some versions of X11 lack it; this is to
prevent the configure script from assuming a shiny new zlib by testing
with a non-X11 program, causing the build to fail when you build
Wireshark.

svn path=/trunk/; revision=36969
2011-05-03 04:48:02 +00:00
Jakub Zawadzki
229adbc1e5 configure: remove test for gzclearerr (not used anymore), add test for inflatePrime.
svn path=/trunk/; revision=36949
2011-04-29 07:49:55 +00:00
Stephen Fisher
49d5d071a0 Don't pass -fexcess-precision=fast to clang like we do for gcc.
svn path=/trunk/; revision=36828
2011-04-22 19:31:09 +00:00
Guy Harris
4bdde629bb Oh, dear, autoconf thinks clang is GCC, because it defines __GNUC__.
svn path=/trunk/; revision=36733
2011-04-20 09:31:47 +00:00
Guy Harris
b9d4c025d1 Instead of having GCC and CLANG variables, just have
ac_supports_gcc_flags and ac_supports_W_linker_passthrough flags, the
first of which, for now, we set for GCC and clang, and the latter of
which we set for GCC, clang, and xlc (probably true for some other
compilers as well).

Rename AC_WIRESHARK_GCC_LDFLAGS_CHECK to AC_WIRESHARK_LDFLAGS_CHECK, as
it's not checking for anything GCC-specific.  (Leave
AC_WIRESHARK_GCC_CFLAGS_CHECK unrenamed for now, as the flags we test
with it are originally GCC flags that clang also supports for GCC
compatibility.)

Fix some string-equality tests to use = rather than ==; the former is
what the test/[ command uses.

Don't turn on "-no-cpp-precomp" for clang - it whines if you do.

svn path=/trunk/; revision=36731
2011-04-20 08:37:45 +00:00
Guy Harris
05e06f7a7a First cut at support for clang. We may want to have specific items for
"supports GCC-style -W flags", etc., and may want to improve the check
for "is this clang", as well as deciding what other stuff should be done
if we have clang as well.  clang should, I think, largely be
gcc-compatible at the command line.

svn path=/trunk/; revision=36729
2011-04-20 03:22:19 +00:00
Guy Harris
c349caf925 Use AC_SYS_LARGEFILE to turn on large file support on platforms that
support it.

Rename ws_lseek to ws_lseek64, as it should be given a 64-bit offset,
and have it use _lseeki64 on Windows, to try to get 64-bit offset
support; AC_SYS_LARGEFILE should cause lseek() to support 64-bit offsets
on UN*X if possible.

svn path=/trunk/; revision=36542
2011-04-10 18:22:47 +00:00
Gerald Combs
d7d45f8072 1.5.1 → 1.5.2. Reenable Babel.
svn path=/trunk/; revision=36540
2011-04-10 17:03:43 +00:00
Stig Bjørlykke
a5ad6dbefe Added a configure message when having c-ares instead of adns.
svn path=/trunk/; revision=36215
2011-03-20 12:38:31 +00:00
Jeff Morriss
ec75406c30 Remove the --enable-new-packet-list option (since the code no longer supports the old packet list)
svn path=/trunk/; revision=36164
2011-03-08 14:41:12 +00:00
Stig Bjørlykke
5868c7d026 Renamed x411 to p1, x420 to p22 and s4406 to p772 to be consistent
on the naming policy for X.400 protocols.

svn path=/trunk/; revision=36013
2011-02-20 17:03:29 +00:00
Guy Harris
b4f663a29b On Windows, try putting __declspec(noreturn) in front of declarations of
routines that don't return.  (This requires that some files include
config.h to get WS_MSVC_NORETURN declared properly.)

svn path=/trunk/; revision=35989
2011-02-17 23:11:49 +00:00
Stephen Fisher
5e5aa3c09e Add a command line argument for the configure script of "--with-gtk3" to
attempt to compile against GTK+ 3.0 (which can be installed at the same
time as GTK+ 2.0).  Also place a copy of the autoconf macro for finding
GTK+ 3.0 in the aclocal-fallback directory taken from the GTK+ 3.0
distribution.

(Note: Wireshark won't finish compiling with GTK+ 3.0 yet...)


svn path=/trunk/; revision=35918
2011-02-11 20:21:32 +00:00
Bill Meier
32ca1b0490 Remove duplicate 'asn1/gprscdr/Makefile' entry
svn path=/trunk/; revision=35770
2011-02-02 22:02:53 +00:00
Anders Broman
2395973d17 Integrate and build the tetra dissector.
svn path=/trunk/; revision=35766
2011-02-02 20:11:02 +00:00
Guy Harris
8a0d5c1526 Add the gprscdr Makefile to the list of Makefiles to be generated.
svn path=/trunk/; revision=35765
2011-02-02 20:06:05 +00:00
Gerald Combs
1635ef0ddf 1.5.0 → 1.5.1.
svn path=/trunk/; revision=35639
2011-01-24 19:27:38 +00:00
Guy Harris
e26e9891b5 Add a comment asking where to check for YACC/Bison and Flex.
svn path=/trunk/; revision=35262
2010-12-25 08:21:53 +00:00
Guy Harris
3be1fe366d We only need to do AC_PATH_PROG on flex once.
We don't define FLEX_PATH, so no need to AC_SUBST it.

svn path=/trunk/; revision=35261
2010-12-24 22:51:53 +00:00
Balint Reczey
7f690fd086 Export only defined symbols from libwsutil.
Exported symbols are the symbols listed in libwsutil.def, but the
symbols defined in not used optional objects are filtered out.

svn path=/trunk/; revision=35202
2010-12-16 16:42:34 +00:00
Stephen Fisher
6b7aa68613 Define HAVE_GTK in config.h when compiling with GTK for the GUI
svn path=/trunk/; revision=35036
2010-11-26 23:50:56 +00:00
Jörg Mayer
95a48cd208 Enable Airpcap build by default: There should be no
side effects on non-windows systems and it will increase
the common source code coverage between Win32 and other
systems.

svn path=/trunk/; revision=34356
2010-10-03 20:51:02 +00:00
Jörg Mayer
6a13fff801 Fix typo reported by Jose Pedro Oliveira
svn path=/trunk/; revision=34273
2010-09-28 19:07:42 +00:00
Jörg Mayer
a2a8cd0f65 Enable Python in HEAD to find problems during testing.
svn path=/trunk/; revision=34196
2010-09-23 06:45:30 +00:00
Jeff Morriss
80d78c6794 Very old versions of libz (such as the one that comes with Solaris 10) don't have gzclearerr(). Check for that function and only use it if we have it.
svn path=/trunk/; revision=34187
2010-09-22 21:51:53 +00:00
Guy Harris
c66f97ddad Put the definition of NEW_PACKET_LIST into config.h rather than the
Makefile; that will force a rebuild if you configure it on or off
(that'll rebuild stuff that doesn't need to be rebuilt, but it'll also
rebuild stuff that *does* need to be rebuilt and that wouldn't be
rebuilt otherwise).

svn path=/trunk/; revision=34145
2010-09-17 07:24:35 +00:00
Balint Reczey
a89c52939f Use local copy of Wireshark documentation on UNIX if it's available.
Installation has to be done manually to the location specified by --docdir
configure option.

svn path=/trunk/; revision=33683
2010-08-01 10:45:42 +00:00
Guy Harris
d7e9136268 Only link programs that call stuff in Application Services or Core
Foundation with those frameworks.

svn path=/trunk/; revision=33541
2010-07-15 19:43:01 +00:00
Jaap Keuter
526a2946a3 From Jan Šafránek:
dftest and randpkt are installed during make install, but they are not
documented in any man page.
This is a start. It's more or less a compilation of information found elsewhere.

svn path=/trunk/; revision=33504
2010-07-13 21:21:38 +00:00
Stig Bjørlykke
933ca0bdfd Check if /usr/local exists before adding to CFLAGS/CPPFLAGS and LDFLAGS.
svn path=/trunk/; revision=33205
2010-06-10 10:31:46 +00:00
Stig Bjørlykke
70c26add0a Build Makefile in asn1/idmp.
svn path=/trunk/; revision=33181
2010-06-09 14:40:35 +00:00
Gerald Combs
349fac664b 1.3.6 -> 1.5.0
svn path=/trunk/; revision=33138
2010-06-07 16:43:09 +00:00
Gerald Combs
423669df7d Back out r33088 for now.
svn path=/trunk/; revision=33102
2010-06-05 00:29:31 +00:00