From: Heiko Helmle (heiko.helmle_at_head.de)
Date: Thu Nov 23 2006 - 13:21:53 CET
Message-ID: <45659261.9030401@head.de> Date: Thu, 23 Nov 2006 13:21:53 +0100 From: Heiko Helmle <heiko.helmle@head.de> Subject: Re: [suse-sles-e] is mt a bit broken on SLES10?
Marcus Meissner wrote:
>
> Can you try compiling mt.c with the additional "-fno-strict-aliasing"
> compile time option?
Sure: I recompiled the whole package from the SRPM (with rpmbuild -bc)
and with -fno-strict-aliasing appended to the CFLAGS in the spec.
This is the compile output for mt.c:
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../lib -O2 -g -m32
-march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -MT mt.o
-MD -MP -MF ".deps/mt.Tpo" -c -o mt.o mt.c; \
then mv -f ".deps/mt.Tpo" ".deps/mt.Po"; else rm -f ".deps/mt.Tpo"; exit
1; fi
mt.c: In function ‘print_position’:
mt.c:573: warning: passing argument 3 of ‘rmt_ioctl__’ from incompatible
pointer type
mt.c: In function ‘main’:
mt.c:640: warning: passing argument 2 of ‘argmatch’ from incompatible
pointer type
gcc -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0
-D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-fno-strict-aliasing -o mt mt.o ../lib/libcpio.a -lnsl
No change in behaviour:
/usr/src/packages/BUILD/cpio-2.6/src # ./mt -f /dev/nst0 datcompression 0
Compression on.
/usr/src/packages/BUILD/cpio-2.6/src # ./mt -f /dev/nst0 datcompression 1
Compression on.
/usr/src/packages/BUILD/cpio-2.6/src # ./mt -f /dev/nst0 datcompression 0
Compression on.
/usr/src/packages/BUILD/cpio-2.6/src # strace ./mt -f /dev/nst0
datcompression 0
execve("./mt", ["./mt", "-f", "/dev/nst0", "datcompression", "0"], [/*
57 vars */]) = 0
brk(0) = 0x8050000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f84000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=34681, ...}) = 0
mmap2(NULL, 34681, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f7b000
close(3) = 0
open("/lib/libnsl.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`5\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=87850, ...}) = 0
mmap2(NULL, 83712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)
= 0xb7f66000
madvise(0xb7f66000, 83712, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7f77000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10) = 0xb7f77000
mmap2(0xb7f79000, 5888, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f79000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300Y\1"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1408371, ...}) = 0
mmap2(NULL, 1181084, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7e45000
madvise(0xb7e45000, 1181084, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7f5f000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x119) = 0xb7f5f000
mmap2(0xb7f63000, 9628, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f63000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7e44000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e446b0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7f5f000, 8192, PROT_READ) = 0
munmap(0xb7f7b000, 34681) = 0
brk(0) = 0x8050000
brk(0x8071000) = 0x8071000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f83000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2528
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7f83000, 4096) = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=238624, ...}) = 0
mmap2(NULL, 238624, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7e09000
close(3) = 0
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=25404, ...}) = 0
mmap2(NULL, 25404, PROT_READ, MAP_SHARED, 3, 0) = 0xb7f7d000
close(3) = 0
open("/dev/nst0", O_WRONLY|O_NONBLOCK|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFCHR|0660, st_rdev=makedev(9, 128), ...}) = 0
ioctl(3, FIBMAP, 0xbfe2c992) = 0
ioctl(3, FIBMAP, 0xbfe2c992) = 0
ioctl(3, FIBMAP, 0xbfe2c98c) = 0
ioctl(3, FIBMAP, 0xbfe2c992) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f7c000
write(1, "Compression on.\n", 16Compression on.
) = 16
close(3) = 0
exit_group(0) = ?
Process 27124 detached
---------------------------------------------------------------------
To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com
For additional commands, e-mail: suse-sles-e-help@suse.com
This archive was generated by hypermail 2.1.7 : Thu Nov 23 2006 - 15:25:47 CET