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] SVN revision 36552 on Debian Lenny and gzopen64 function

From: Pascal Quantin <pascal.quantin@xxxxxxxxx>
Date: Mon, 11 Apr 2011 14:28:23 +0200
Hi,

for the record, current trunk (revision 36552 as I'm speaking) does not compile on my Debian Lenny machine. I get the following error:
cc1: warnings being treated as errors
file_access.c: In function ‘wtap_dump_file_open’:
file_access.c:1016: error: implicit declaration of function ‘gzopen64’
file_access.c:1016: error: return makes pointer from integer without a cast
make[2]: *** [libwiretap_la-file_access.lo] Error 1

After googling a little bit, I found the following suggestion that seems to work fine:
CFLAGS="-D_LARGEFILE64_SOURCE" ./configure

I thought it could be useful to share the information with others.

Regards,
Pascal.