[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wireshark-dev
Subject:    Re: [Wireshark-dev] Fwd: About building the wireshark
From:       "woniu1753 () gmail ! com" <woniu1753 () gmail ! com>
Date:       2016-03-28 9:15:24
Message-ID: 2016032817152049278333 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

Hi,

After configure with "--disable-warnings-as-errors" ,  make without problems.
There are two other problems:
    1. I have install an older version of wireshark on my Ubuntu 12.04, is it OK to \
run "make insall" to install wireshark? Or is it possible to run the new make \
wireshark without "make install"?  2. Is there a tutorial for newbie to setup build \
environment of wireshark? I followed \
https://www.wireshark.org/lists/wireshark-dev/201404/msg00117.html to setup build \
environment on my Ubuntu 12.04(64 bit), but still got pains caused by the default \
version of libs(such as Qt and GTK) on Ubuntu 12.04 (:



woniu1753@gmail.com
 
From: João Valverde
Date: 2016-03-28 16:37
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] Fwd: About building the wireshark
 
 
On 28-03-2016 08:59, woniu1753@gmail.com wrote:
> Hi,
> 
> Thanks for your help.
> "-nn' works well now, but I got another problem as below: (I am a newbie
> for C)
> 
> make[2]: Leaving directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/qt'
> Making all in ui/gtk
> make[2]: Entering directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/gtk'
> make  all-am
> make[3]: Entering directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/gtk'
> depbase=`echo wireshark-gresources.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../.. -D_FORTIFY_SOURCE=2 \
> -DG_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED \
> -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DGSEAL_ENABLE -pthread \
> -isystem/usr/include/gtk-3.0 -isystem/usr/include/pango-1.0 \
> -isystem/usr/include/gio-unix-2.0/ -isystem/usr/include/atk-1.0 \
> -isystem/usr/include/cairo -isystem/usr/include/gdk-pixbuf-2.0 \
> -isystem/usr/include/freetype2 -isystem/usr/include/glib-2.0 \
> -isystem/usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem/usr/include/pixman-1 \
> -isystem/usr/include/libpng12     -Werror -Wall -Wextra -Wendif-labels \
> -Wpointer-arith -Warray-bounds -Wformat-security -fwrapv -fno-strict-overflow \
> -fno-delete-null-pointer-checks -Wvla -Waddress -Wattributes -Wdiv-by-zero \
> -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wc++-compat \
> -Wdeclaration-after-statement -Wshadow -Wno-pointer-sign -Wold-style-definition \
> -Wstrict-prototypes -Wlogical-op -Wjump-misses-in
i
t -fexcess-precision=fast -fvisibility=hidden -g -O2 -MT wireshark-gresources.o -MD \
-MP -MF $depbase.Tpo -c -o wireshark-gresources.o wireshark-gresources.c &&\
> mv -f $depbase.Tpo $depbase.Po
> wireshark-gresources.c:9958:1: error: missing initializer \
> [-Werror=missing-field-initializers] wireshark-gresources.c:9958:1: error: (near \
> initialization for ‘static_resource.resource') \
>                 [-Werror=missing-field-initializers]
> cc1: all warnings being treated as errors
> make[3]: *** [wireshark-gresources.o] Error 1
> make[3]: Leaving directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/gtk'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/gtk'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25'
> make: *** [all] Error 2
 
 
wireshark-gresources.c is a generated source file (using 
glib-compile-resources).
 
It seems the generated code is triggering compiler warnings. GTK+ 3.4 is 
somewhat old so personally I'm not too concerned by this.
 
One of our build-bots is using Ubuntu 12.04 with GTK+ 3.10 and the 
warning isn't showing there.
 
To get Wireshark to build you can try passing 
"--disable-warnings-as-errors" to configure.
 
(I also think it is misguided that -Werror is enabled by default but 
that is another topic).
 
Any issues you have feel free to ask.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe


[Attachment #5 (text/html)]

<html><head><meta http-equiv="content-type" content="text/html; \
charset=utf-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; \
margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: \
微软雅黑; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body> \
<div><span></span>Hi,</div><div><br></div><div>After configure with&nbsp;<span \
style="font-size: 10.5pt; line-height: 1.5; background-color: \
window;">"--disable-warnings-as-errors"</span><span style="font-size: 10.5pt; \
line-height: 1.5; background-color: window;">&nbsp;, &nbsp;make without \
problems.</span></div><div>There are two other problems:</div><div><span \
style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: \
1.5;">&nbsp; &nbsp;&nbsp;</span>1. I have install an older version of wireshark on my \
Ubuntu 12.04, is it OK to run "make insall" to install wireshark? Or is it possible \
to run the new make wireshark without "make install"?</div><div><span style="color: \
rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">&nbsp; &nbsp; 2. Is there a \
tutorial for newbie to setup build environment of wireshark? I \
followed&nbsp;</span><span style="background-color: rgba(0, 0, 0, 0); font-size: \
10.5pt; line-height: 1.5;"></span><a \
href="https://www.wireshark.org/lists/wireshark-dev/201404/msg00117.html" \
style="font-size: 10.5pt; line-height: 1.5; background-color: window;" \
class="">https://www.wireshark.org/lists/wireshark-dev/201404/msg00117.html</a><span \
style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: \
rgba(0, 0, 0, 0);">&nbsp;to setup build environment on my Ubuntu 12.04(64 bit), but \
still got pains caused by the default version of libs(such as Qt and GTK) on Ubuntu \
12.04 (:</span></div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, \
0, 0);"></span> <div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" \
size="1" align="left"> <div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; \
FONT-SIZE: 10pt"><div>woniu1753@gmail.com</div></div></span></div> <blockquote \
style="margin-top: 0px; margin-bottom: 0px; margin-left: \
0.5em;"><div>&nbsp;</div><div style="border:none;border-top:solid #B5C4DF \
1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; \
FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; \
PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b>&nbsp;<a \
href="mailto:joao.valverde@tecnico.ulisboa.pt">João \
Valverde</a></div><div><b>Date:</b>&nbsp;2016-03-28&nbsp;16:37</div><div><b>To:</b>&nbsp;<a \
href="mailto:wireshark-dev@wireshark.org">Developer support list for \
Wireshark</a></div><div><b>Subject:</b>&nbsp;Re: [Wireshark-dev] Fwd: About building \
the wireshark</div></div></div><div><div>&nbsp;</div> <div>&nbsp;</div>
<div>On 28-03-2016 08:59, woniu1753@gmail.com wrote:</div>
<div>&gt; Hi,</div>
<div>&gt;</div>
<div>&gt; Thanks for your help.</div>
<div>&gt; "-nn' works well now, but I got another problem as below: (I am a \
newbie</div> <div>&gt; for C)</div>
<div>&gt;</div>
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; make[2]: Leaving directory \
`/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/qt'</div> \
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Making all in ui/gtk</div> \
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; make[2]: Entering directory \
`/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/gtk'</div> \
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; make&nbsp; all-am</div> \
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; make[3]: Entering directory \
`/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/gtk'</div> \
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; depbase=`echo wireshark-gresources.o | sed \
's|[^/]*$|.deps/&amp;|;s|\.o$||'`;\</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; gcc \
-std=gnu99 -DHAVE_CONFIG_H -I. -I../..&nbsp; -I../.. -D_FORTIFY_SOURCE=2 \
-DG_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DGSEAL_ENABLE -pthread \
-isystem/usr/include/gtk-3.0 -isystem/usr/include/pango-1.0 \
-isystem/usr/include/gio-unix-2.0/ -isystem/usr/include/atk-1.0 \
-isystem/usr/include/cairo -isystem/usr/include/gdk-pixbuf-2.0 \
-isystem/usr/include/freetype2 -isystem/usr/include/glib-2.0 \
-isystem/usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem/usr/include/pixman-1 \
-isystem/usr/include/libpng12&nbsp;&nbsp;&nbsp;&nbsp; -Werror -Wall -Wextra \
-Wendif-labels -Wpointer-arith -Warray-bounds -Wformat-security -fwrapv \
-fno-strict-overflow -fno-delete-null-pointer-checks -Wvla -Waddress -Wattributes \
-Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long \
-Wc++-compat -Wdeclaration-after-statement -Wshadow -Wno-pointer-sign \
-Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wjump-misses-in</div> <div> \
i</div> <div>t -fexcess-precision=fast -fvisibility=hidden -g -O2 -MT \
wireshark-gresources.o -MD -MP -MF $depbase.Tpo -c -o wireshark-gresources.o \
wireshark-gresources.c &amp;&amp;\</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; mv -f \
$depbase.Tpo $depbase.Po</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; \
wireshark-gresources.c:9958:1: error: missing initializer \
[-Werror=missing-field-initializers]</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; \
wireshark-gresources.c:9958:1: error: (near initialization for \
‘static_resource.resource') [-Werror=missing-field-initializers]</div> \
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; cc1: all warnings being treated as errors</div> \
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; make[3]: *** [wireshark-gresources.o] Error 1</div> \
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; make[3]: Leaving directory \
`/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/gtk'</div> \
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; make[2]: *** [all] Error 2</div> \
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; make[2]: Leaving directory \
`/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/gtk'</div> \
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; make[1]: *** [all-recursive] Error 1</div> \
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; make[1]: Leaving directory \
`/home/lqx/bin/wireshark-2.1.0-2469-g162df25'</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; \
make: *** [all] Error 2</div> <div>&nbsp;</div>
<div>&nbsp;</div>
<div>wireshark-gresources.c is a generated source file (using </div>
<div>glib-compile-resources).</div>
<div>&nbsp;</div>
<div>It seems the generated code is triggering compiler warnings. GTK+ 3.4 is </div>
<div>somewhat old so personally I'm not too concerned by this.</div>
<div>&nbsp;</div>
<div>One of our build-bots is using Ubuntu 12.04 with GTK+ 3.10 and the </div>
<div>warning isn't showing there.</div>
<div>&nbsp;</div>
<div>To get Wireshark to build you can try passing </div>
<div>"--disable-warnings-as-errors" to configure.</div>
<div>&nbsp;</div>
<div>(I also think it is misguided that -Werror is enabled by default but </div>
<div>that is another topic).</div>
<div>&nbsp;</div>
<div>Any issues you have feel free to ask.</div>
<div>___________________________________________________________________________</div>
 <div>Sent via:&nbsp;&nbsp;&nbsp; Wireshark-dev mailing list \
&lt;wireshark-dev@wireshark.org&gt;</div> <div>Archives:&nbsp;&nbsp;&nbsp; \
https://www.wireshark.org/lists/wireshark-dev</div> <div>Unsubscribe: \
https://wireshark.org/mailman/options/wireshark-dev</div> \
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe</div> \
</div></blockquote> </body></html>



___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic