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

Wireshark-dev: [Wireshark-dev] wireshark didn't compile for Win32

From: "Denis Kondratenko" <denis.kondratenko@xxxxxxxxx>
Date: Tue, 19 Dec 2006 20:56:04 +0200
Log from console:

nmake -f Makefile.nmake all
...
...
Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

'codecs.lib' is up-to-date
       cd ..
       cd wiretap
       NMAKE /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

       cl -DWIN32 -DNULL=0 -D_MT -D_DLL -DHAVE_CONFIG_H /IC:\wireshark-win32-li
bs\glib\include\glib-2.0  /IC:\wireshark-win32-libs\glib\lib\glib-2.0\include /I
C:\wireshark-win32-libs\zlib123-dll\include /IC:\wireshark-win32-libs\WPdpack/in
clude  -D_U_="" /Zi /W3 -Fd.\ -c ber.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

ber.c
ber.c(69) : error C2146: syntax error : missing ')' before identifier 'G_GINT64_
MODIFIER'
ber.c(69) : error C2059: syntax error : ')'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\WINDOWS\NMAKE.EXE' : return code '0x2'
Stop.


it happens in line #69:
   *err_info = g_strdup_printf("ber: File has %" G_GINT64_MODIFIER
"d-byte packet, bigger than maximum of %u", file_size,
WTAP_MAX_PACKET_SIZE);


The G_GINT64_MODIFIER is not defined.
I see that it can be defined in "acinclude.m4", but I don't know why it not.

Why it not defined and how I can go forward?

It my first time in wireshark compiling, so please be patient :)

Thanks,
Denis