miscutils/nmeter.c:19: warning: redefinition of `ulong'

walter harms wharms at bfs.de
Mon Dec 4 00:30:13 PST 2006


ulong != int64_t

far better would be a s/ulong/unsigned long/g

trivia: ulong is a BSDism so far i know

re,
 wh

Yuwen Dai wrote:
> On 12/3/06, Yuwen Dai <yuwend at gmail.com> wrote:
>>
>> Dear all,
>>
>> When I built the current svn source, the following error showed up:
>>
>>   miscutils/nmeter.c:19: warning: redefinition of `ulong'
>>   /usr/include/sys/types.h:151: warning: `ulong' previously declared here
>>   make[1]: *** [miscutils/nmeter.o] Error 1
>>   make: *** [miscutils] Error 2
>>
>> other info:
>> $ uname -a
>> Linux latitude 2.6.8-2-686 #1 Tue Aug 16 13:22:48 UTC 2005 i686 GNU/Linux
>> $ gcc --version
>> gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
>>
>> It seems a bug.
> 
> 
> On a Redhat Linux box, I compiled this applet successfully.  The 
> version of
> glibc is 2.3.4, higher than that of in Debian sarge,  whose glibc is 2.3.2.
> 
> Since C99 uses a new <inttype.h>,  is it better to use somthing like
> int64_t
> ?
> 
> Yuwen
> 
> 
> 
> 
> Best regards,
>> Dai Yuwen
>>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox


More information about the busybox mailing list