Re: it`s a bug or a feature ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



GMX wrote:

> [compile output]
> core:/tmp/fedora# make
> gcc -O2 -Wall -D_GNU_SOURCE -DHAVE_STRNLEN -c test.c
> gcc -O2 -Wall -D_GNU_SOURCE -DHAVE_STRNLEN test.o -static -o test
> strip test
> core:/tmp/fedora# ls -la
> insgesamt 446
> drwxr-xr-x 3 root root 1024 2006-11-02 23:34 .
> drwxrwxrwt 6 root root 2048 2006-11-02 23:34 ..
> drwxr-xr-x 2 root root 1024 2006-11-02 23:14 dir1
> lrwxrwxrwx 1 root root 4 2006-11-02 23:15 dir2 -> dir1
> -rw-r--r-- 1 root root 283 2006-11-02 23:11 Makefile
> -rwxr-xr-x 1 root root 445984 2006-11-02 23:34 test
> -rw-r--r-- 1 root root 1134 2006-11-02 23:14 test.c
> -rw-r--r-- 1 root root 1380 2006-11-02 23:34 test.o
> 
> debian3.1/ suse10(x64) / freebsd says:
> 
> core:/tmp/fedora# ./test
> type (8) - file (Makefile)
> type (8) - file (test.c)
> type (4) - dir (dir1)
> type (10) - link (dir2)
> type (8) - file (test.o)
> type (8) - file (test)
> 
> but fc4 (x64) says:
> uname -a
> Linux dev 2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:16:33 EDT 2005 x86_64
> x86_64 x86_64 GNU/Linux
> ./test
> type (0) - unused (Makefile)
> type (0) - unused (test.c)
> type (0) - unused (dir1)
> type (0) - unused (dir2)
> type (0) - unused (test.o)
> type (0) - unused (test)

Well, the first thing that pops to mind is 64bit vs 32bit numbers?
Do you have to use a %l instead of a %i for FC4 X64?
This looks like printf() only printed out the first 32bits of a 64bit
integer....


> strange :/
> 
> any comments aviable ?
> 
> /mfg tcmdk
> http://ircDB.eu
> 
> 


-- 
Kevin J. Cummings
kjchome@xxxxxxx
cummings@xxxxxxxxxxxxxxxxxx
cummings@xxxxxxxxxxxxxxxxxxxxxxx
Registered Linux User #1232 (http://counter.li.org)


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux