[Wireshark-dev] Buildbot issues

2013-11-30 Thread Gerald Combs
Most of the Wireshark builders are down due to what appears to be a DHCP
issue. I hope to have them back up soon.
___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] [Wireshark-commits] rev 53676: / /trunk/codecs/G722/: G722decode.c G722decode.h /trunk/codecs/G726/: G726decode.c G726decode.h /trunk/codecs/SBC/: sbc.c sbc.h /trunk/codecs/: CMake

2013-11-30 Thread Joerg Mayer
On Sat, Nov 30, 2013 at 03:42:14PM +, mm...@wireshark.org wrote:
> http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=53676
> 
> User: mmann
> Date: 2013/11/30 03:42 PM
> 
> Log:
>  Add G.722, G.726 and SBC codecs.  G.722 and G.726 are from bug 5619 
> (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5619) and SBC is from 
> bug 7893 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7893).
>  
>  Codecs are added, but (intentionally) not hooked to the RTP player as a 
> "more generic architecture" is desired.  There are some discussions in bug 
> 7893 on how to do this.  One thing to add would be how to handle codecs that 
> may not be supported on all platforms.  Should the codec not be "registered" 
> at all (with a #define over the whole module) or should it's register 
> functions be stubbed (with a #define in each function that requires a 
> non-supported library)

The plugins should only be built in case the necessary libraries are available
(just like we do not build wireshark in case we do not find gtk2 or gtk3).

Ciao
 Jörg
-- 
Joerg Mayer   
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Status Cmake Win32 support

2013-11-30 Thread Guy Harris

On Nov 24, 2013, at 11:45 AM, Graham Bloice  wrote:

>   • As mentioned in my previous message, the VS solution chops out every 
> 8192nd byte from the command line passed to make-dissector-reg.py.  My patch 
> (make-reg.patch) gets CMake to write out the required source file list to a 
> file and modifies the python script to read in the file.  The python changes 
> *should* be backwards compatible.

...but they aren't:

Making register.c with python
../../tools/make-dissector-reg.py:72: Warning: 'with' will become a 
reserved keyword in Python 2.6
  File "../../tools/make-dissector-reg.py", line 72
with open(sys.argv[3]) as f:
^
SyntaxError: invalid syntax

This is on the buildbot that's building the 10.5 version of Wireshark (i.e., 
the build on that buildbot is broken); the buildbot is running 10.6, and I 
infer from

  PYTHONPATH=/Library/Python/2.5/site-packages

that it's using Python 2.5.

"Warning: 'with' will become a reserved keyword in Python 2.6" presumably means 
it's not a reserved keyword in Python 2.5; perhaps that means it's not 
supported in 2.5, in which case you can't use it in a Python script in the 
build procedure unless we choose to require Python 2.6, not just Python 2.5 (as 
we do now).
___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Status Cmake Win32 support

2013-11-30 Thread Guy Harris

On Nov 22, 2013, at 2:07 PM, Graham Bloice  wrote:

> Next, still failing on the command line passed to make-dissector-reg.py.  The 
> command line in the epan.vcxproj file is good, but what ends up being passed 
> into the python script is decidedly odd.  I added debugging into the script 
> to write out all the files passed into the script and it seems that every 
> 8192 bytes of the command line parameter string, one is dropped ??

Have you either reported this to Microsoft as a bug, or checked to see whether 
it's an already-known bug?

___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Status Cmake Win32 support

2013-11-30 Thread Joerg Mayer
It took some preparational time before I could test your patches:
- I needed to get a working Windows build first
- I've finally managed to be able to compile via cygwin-ssh, so no more
  remote desktop sessions :-)
- Finish some other small issues first so I didn't have any uncommitted
  stuff in my tree.

On Sun, Nov 24, 2013 at 07:45:07PM +, Graham Bloice wrote:
> I've now got tshark to build from a VS solution file, had to do some hacks
> to get there though, patch files attached for others to peruse, as I'm not
> sure if they are the optimal solutions:

Before I comment on the individual things in this patch: With your stuff
committed so far I've been able to build on my Windows with both
cmake -> nmake and cmake -> vs (msbuild). Great!

>1. I had to add some MSC version definitions to CMakeLists.txt

There are two independent parts to this patch:

1) I applied the MSC_VER_REQUIRED part (after I understood the cmake specific
   part of it).

2)
-   set( CMAKE_PREFIX_PATH "${QT5_BASE_PATH}\\msvc2010" )
+#  set( CMAKE_PREFIX_PATH "${QT5_BASE_PATH}\\msvc2010" )
+   set( CMAKE_PREFIX_PATH "${QT5_BASE_PATH}" )

I have no idea why/how this is supposed to work: Is Qt5 supposed to 
automagically
add the right msvc version back into the path?
After applying and testing this it didn't fail right away but it no longer
found Qt5LinguistTools and Qt5PrintSupport.

>2. I had to remove some definitions from cmakeconfig.h.in for windows.
>The windows config.h produced for the normal nmake build is quite a bit
>different than the cmake produced one.  I've attached my patch to get the
>cmake build to work. Folks can check config.h.win32 to see the starting
>point for the normal nmake build.

--- cmakeconfig.h.in(revision 53524)
+++ cmakeconfig.h.in(working copy)
+#if !defined(_WIN32)
 /* Define to 1 if you have the  header file. */
 #cmakedefine HAVE_STDLIB_H 1
+#endif

+#if !defined(_WIN32)
 /* Define to 1 if you have the  header file. */
 #cmakedefine HAVE_STRING_H 1
+#endif

What is the problem here? I only get a warning for these two symbols. Also,
if we do not include kerberos then these symbols will not be defined at all,
which is also not a good idea. I see two cleaner solutions to this:
- Rename our HAVE_STRING_H to WS_HAVE_STRING_H
- Undef HAVE_STRING_H etc. in the outer file before including the (broken) 
includes
  of krb/krb5.h, not without adding a comment about bad taste in putting the
  values of the included win-mac.h unprotected into a global include file.
I'll probably go with the second one.

>3. As mentioned in my previous message, the VS solution chops out every
>8192nd byte from the command line passed to make-dissector-reg.py.  My
>patch (make-reg.patch) gets CMake to write out the required source file
>list to a file and modifies the python script to read in the file.  The
>python changes *should* be backwards compatible.

I committed your patch but it seems to break on older python. Can you please 
take
a look at the OS X buildbot?

>4. As I've moved over to building the GTK3 version, some CMake FindXXX
>modules had to be fixed, not entirely convinced by my changes here, but it
>works for me (Findxxx.patch).

I do my builds with GTK3 as well and they seem to build just fine. I agree that
using gtk[23] is a hack and you cleaned that up properly. What I don't 
understand
is why you removed the "IF( NOT GMODULE2_FOUND  )" (or similar) in
FindGMODULE2.cmake and FindGTHREAD2.cmake.

>5. The current setpath method for fixing up paths to all the dll's and
>executables doesn't work for VS solution builds, as a solution will usually
>have multiple build configurations (Debug, Release, etc.) and the build
>artefacts go in different places depending on the build config used, e.g.
>builddir\Debug\tshark.exe, builddir\lib\Debug\libwireshark.dll.  As the
>build config is chosen at build time, not cmake generation time the paths
>required can't be generated by cmake.  I think we'll have to move to the
>normal nmake option of copying everything into a target directory.

I'll look some more into this but it looks doable: After a complete build
with msbuild everything is in ./Debug/ except the dlls, which are in
./lib/Debug/, so I'm optimistic I can find a solution.

>6. I have one warning in the tshark build:
> 
> Build succeeded.
>"E:\Wireshark\build\Wireshark.sln" (Executables\tshark target) (1) ->
>"E:\Wireshark\build\tshark.vcxproj.metaproj" (default target) (2) ->
>"E:\Wireshark\build\tshark.vcxproj" (default target) (16) ->
>(ClCompile target) ->
>  ..\trunk\capture-wpcap.c(906): warning C4003: not enough actual
> parameters for macro 'G_STRINGIFY_ARG' [E:\Wireshark\build\tshark.vcxproj]
> 1 Warning(s)
> 0 Error(s)
> Time Elapsed 00:01:26.80

I get that warning as well. It's also happening with cm