ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] rev 50749: /trunk/ /trunk/: CMakeLists.txt

From: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Date: Mon, 22 Jul 2013 16:00:34 +0200
Hi,

I try also in my Ubunux box (12.04) with clang 3.0 ( Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0) Target: x86_64-pc-linux-gnu Thread model: posix )

and i have the following error when i try to build with clang :

[  4%] Building C object wiretap/CMakeFiles/wiretap.dir/file_wrappers.c.o
/home/alagoutte/wireshark2/wiretap/file_wrappers.c:818:13: error: implicit conversion loses integer precision:
      '__blksize_t' (aka 'long') to 'int' [-Werror,-Wshorten-64-to-32]
                want = st.st_blksize;
                     ~ ~~~^~~~~~~~~~

Have also for all file the following warning...
warning: unknown warning option '-Wpragmas' [-Wunknown-warning-option]

Regards,




On Sun, Jul 21, 2013 at 6:09 PM, Joerg Mayer <jmayer@xxxxxxxxx> wrote:
On Sun, Jul 21, 2013 at 05:33:30PM +0200, Joerg Mayer wrote:
> looks like there is no clang++ on that system but clang is there, and (using cmake),
> I have _U_ properly defined in config.h
>
> So the question is what is different on your system.
>
> What I did to build (relative to svn/trunk/):
> rm -rf build
> mkdir build
> cd build
> CC=clang cmake ..
> less config.h <== _U_ is now defined as it should
> make (still compiling).

OK, now finished. I needed to fix a syntax error in a system include file but
after that wireshark built fine with -Werror.

[  6%] Building C object epan/CMakeFiles/epan.dir/dissectors/packet-kerberos.c.o
In file included from /Users/jmayer/wireshark/svn/epan/dissectors/packet-kerberos.c:437:
/System/Library/Frameworks/Kerberos.framework/Headers/krb5.h:2932:8: error: extra tokens at end of #endif directive [-Wextra-tokens]
#endif \* __KERBEROS5__ */
       ^
       //
1 error generated.

I think it is valid to expect a solution to this problem outside wireshark
(or we could add a patch to macos-setup).

> Can you please check that there is nothing cached, then you build config.h
> and then check that?

Ciao
      Jörg

--
Joerg Mayer                                           <jmayer@xxxxxxxxx>
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 <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe