Wireshark mailing list archives

Re: Compilation error 2


From: Anders Broman <anders.broman () ericsson com>
Date: Thu, 21 Apr 2011 15:58:31 +0200

Hi,
You should seriosly consider moving to a more modern Linux system (BETE/Vipro)
As this is quite old (gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4))
And seems to have trouble with a more modern Wireshark.
Regards
Anders 
 

-----Original Message-----
From: wireshark-dev-bounces () wireshark org [mailto:wireshark-dev-bounces () wireshark org] On Behalf Of Jeff Morriss
Sent: den 21 april 2011 15:49
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] Compilation error 2

Anders Broman wrote:
Hi,
gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)
 
tempfile.c: In function `create_tempfile':
tempfile.c:197: warning: implicit declaration of function `time'
tempfile.c:198: warning: implicit declaration of function `strftime'
tempfile.c:198: warning: implicit declaration of function `localtime'
tempfile.c:198: warning: passing arg 4 of `strftime' makes pointer 
from integer without a cast
make[2]: *** [wireshark-tempfile.o] Error 1
 
Including time.h solves the problem, should that be added? Why is this 
turning up now, for this compiler?

On my Fedora Core 10 system (glib 2.18) glib.h includes gdate.h which includes time.h .

On a RHEL 4 system (glib 2.4), gdate.h does not include time.h but instead has this comment:

/* make struct tm known without having to include time.h */

So I'd guess including time.h is the right thing to do here.  (I think some other glib 2.4 systems--like Solaris 
10--get time.h through other headers like select.h which comes in through types.h .) 
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: