[Th] [EMAIL PROTECTED]

2007-10-13 Thread Tomasz Mateja
I still cannot manage to get rpm at sparc64 working with rpms compressed 
with lzma (f.ex. noarch from our ftp) those compressed with bzip working 
without any problems, rpmbuild produces good lzma compressed rpms. So 
problem is only with extracting.

simple gdb log: http://rg4.polsl.pl/pldsparc/rpm.gdb

[EMAIL PROTECTED] RPMS]# rpm -ihv  autoconf-2.61-9.noarch.rpm 

Preparing...### 
[100%]
1:autoconf   ### 
[100%]
error: unpacking of archive failed: cpio: Bad magic
[EMAIL PROTECTED] RPMS]#

[EMAIL PROTECTED] RPMS]# rpm -ihvvv autoconf-2.61-9.noarch.rpm

D: == autoconf-2.61-9.noarch.rpm
D: Expected size:   827801 = lead(96)+sigs(180)+pad(4)+data(827521)
D:   Actual size:   827801
D: autoconf-2.61-9.noarch.rpm: Header SHA1 digest: OK 
(1096335571ff4a49cf8c3b361161254c09a1c0f8)
D:  added binary package [0]
D: found 0 source and 1 binary packages
D: opening  db environment /var/lib/rpm/Packages cdb:mpool
D: opening  db index   /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index   /var/lib/rpm/Packages
D: == +++ autoconf-2.61-9 noarch/linux 0x0
D: opening  db index   /var/lib/rpm/Depends create mode=0x0
D: opening  db index   /var/lib/rpm/Basenames rdonly mode=0x0
D:  read h#1071 Header SHA1 digest: OK 
(7e960413be7abeba8778d1bab64f1e6cbbeeb88c)
D:  Requires: /bin/awk  YES (db files)
D:  read h#1115 Header SHA1 digest: OK 
(5aca719fedbae2220cead65afc13bf9226b6e818)
D:  Requires: /bin/sh   YES (db files)
D:  Requires: /bin/sh   YES (cached)
D:  Requires: /bin/sh   YES (cached)
D:  read h# 863 Header SHA1 digest: OK 
(38ce8cea546f83d017e001ff79a9b83710622b0d)
D:  Requires: /usr/bin/perl YES (db files)
D: opening  db index   /var/lib/rpm/Providename rdonly mode=0x0
D:  read h# 975 Header SHA1 digest: OK 
(034e288283eb299655a8702b26cbe2a685464d0f)
D:  Requires: diffutils YES (db 
provides)
D:  read h#1105 Header SHA1 digest: OK 
(5d3547d13b0c02de3b3cc81a616a00c29a53b34d)
D:  Requires: m4 = 3:1.4.10 YES (db 
provides)
D:  read h#1102 Header SHA1 digest: OK 
(e6add778369f676d01257bbfc86f96fa28538059)
D:  Requires: mktempYES (db 
provides)
D:  Requires: perl(Autom4te::C4che) YES (added 
provide)
D:  Requires: perl(Autom4te::ChannelDefs)   YES (added 
provide)
D:  Requires: perl(Autom4te::Channels)  YES (added 
provide)
D:  Requires: perl(Autom4te::Configure_ac)  YES (added 
provide)
D:  Requires: perl(Autom4te::FileUtils) YES (added 
provide)
D:  Requires: perl(Autom4te::General)   YES (added 
provide)
D:  Requires: perl(Autom4te::Request)   YES (added 
provide)
D:  Requires: perl(Autom4te::Struct)YES (added 
provide)
D:  Requires: perl(Autom4te::XFile) YES (added 
provide)
D:  Requires: perl(Carp)YES (db 
provides)
D:  Requires: perl(Cwd) YES (db 
provides)
D:  read h# 864 Header SHA1 digest: OK 
(15fe68908580bc2ec87cf52922a2315a454006c2)
D:  Requires: perl(Data::Dumper)YES (db 
provides)
D:  Requires: perl(DynaLoader)  YES (db 
provides)
D:  Requires: perl(Errno)   YES (db 
provides)
D:  Requires: perl(Exporter)YES (db 
provides)
D:  Requires: perl(File::Basename)  YES (db 
provides)
D:  Requires: perl(File::Compare)   YES (db 
provides)
D:  Requires: perl(File::Copy)  YES (db 
provides)
D:  Requires: perl(File::Find)  YES (db 
provides)
D:  Requires: perl(File::Path)  YES (db 
provides)
D:  Requires: perl(File::stat)  YES (db 
provides)
D:  Requires: perl(Getopt::Long)YES (db 
provides)
D:  Requires: perl(IO::File)YES (db 
provides)
D:  Requires: perl(POSIX)   YES (db 
provides)
D:  Requires: perl(Text::ParseWords)YES (db 
provides)
D:  Requires: perl(strict)  YES (db 
provides)
D:  Requires: perl(vars)YES (db 
provides)
D:  Requires: perl-base = 0:5.000  YES (db 
provides)
D:  Requires: perl-base = 0:5.005  YES (db 
provides)
D:  Requires: perl-base = 0:5.005_03   

Re: [Th] [EMAIL PROTECTED]

2007-10-13 Thread Jeff Johnson

On Oct 13, 2007, at 12:18 PM, Tomasz Mateja wrote:
...

 D: mounted filesystems:
 D: idevbsize   bavail   iavail mount point
 D: 0 0x0003 81920   -1 rw /proc
 D: 1 0x0003 81920   -1 rw /proc
 D: 2 0x0003 81920   -1 rw /proc
 D: 3 0x0003 81920   -1 rw /proc
 D: 4 0x0003 81920   -1 rw /proc
 D: 5 0x0003 81920   -1 rw /proc
 D: 6 0x0003 81920   -1 rw /proc
 D: 7 0x0003 81920   -1 rw /proc
 D: 8 0x0003 81920   -1 rw /proc
 D: 9 0x0003 81920   -1 rw /proc
 D:10 0x0003 81920   -1 rw /proc
 D:11 0x0003 81920   -1 rw /proc
 D:12 0x0003 81920   -1 rw /proc
 D:12 0x0003 81920   -1 rw /proc
 D:13 0x000a 81920   -1 rw /dev/pts
 D:14 0x0003 81920   -1 rw /proc
 D:15 0x000a 81920   -1 rw /dev/pts
 D:16 0x0003 81920   -1 rw /proc
 D:17 0x000a 81920   -1 rw /dev/pts
 D:18 0x0003 81920   -1 rw /proc
 D:19 0x000a 81920   -1 rw /dev/pts
 D:20 0x0003 81920   -1 rw /proc
 D:21 0x0003 81920   -1 rw /proc
 D:22 0x0003 81920   -1 rw /proc
 D:23 0x0003 81920   -1 rw /proc
 D:24 0x0003 81920   -1 rw /proc
 D:25 0x0003 81920   -1 rw /proc
 D:26 0x0003 81920   -1 rw /proc
 D:27 0x0003 81920   -1 rw /proc
 D:28 0x0003 81920   -1 rw /proc
 D:29 0x0003 81920   -1 rw /proc
 D:30 0x0003 81920   -1 rw /proc
 D:31 0x0003 81920   -1 rw /proc
 D:32 0x0003 81920   -1 rw /proc
 D:33 0x0003 81920   -1 rw /proc
 D:34 0x000a 81920   -1 rw /dev/pts
 D:35 0x0003 81920   -1 rw /proc
 D:36 0x000a 81920   -1 rw /dev/pts
 D:37 0x0003 81920   -1 rw /proc
 D:38 0x000a 81920   -1 rw /dev/pts
 D:39 0x0003 81920   -1 rw /proc
 D:40 0x000a 81920   -1 rw /dev/pts

Ick. Smells like lots of chroots.

...
 LZDIO: 244 reads, 8557275660681216 total bytes in 0.668983 secs

Hmmm, looks like a int32 vs size_t, or a big - little endian,  
problem somewhere.

What version of rpm?

73 de Jeff
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: [Th] [EMAIL PROTECTED]

2007-06-18 Thread Jeff Johnson
This is likely the -pie linkage and -fpie compilation, new in rpm-4.4.9.

Remove PIE compilation/linkage is the easy fix.

Upgrading binutils and/or rewriting rpm code may help.

73 de Jeff

On Jun 18, 2007, at 12:29 PM, Tomasz Mateja wrote:

 Already mentioned on devel-pl:
 http://lists.pld-linux.org/mailman/pipermail/pld-devel-pl/2007-June/ 
 141330.html

 sparc64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv - 
 mcpu=ultrasparc
 -fno-strict-aliasing -gdwarf-2 -g2 -fPIC -DPIC -D_GNU_SOURCE
 -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes
 -Wmissing-prototypes -Wno-char-subscripts -Wl,--as-needed -pie -o
 .libs/rpm rpm.o  ./build/.libs/librpmbuild.a ./lib/.libs/librpm.so
 /home/users/builder/rpm/BUILD/rpm-4.4.9/rpmdb/.libs/librpmdb.so
 -lselinux ./rpmdb/.libs/librpmdb.so
 /home/users/builder/rpm/BUILD/rpm-4.4.9/rpmio/.libs/librpmio.so -lelf
 /usr/lib64/libdb-4.5.so ./rpmio/.libs/librpmio.so
 /usr/lib64/libbeecrypt.so -lrt -lm -ldl /usr/lib64/libmagic.so
 /usr/lib64/libpopt.so -lpthread -lz /usr/lib64/libbz2.so
 rpm.o: In function `argerror':
 /home/users/builder/rpm/BUILD/rpm-4.4.9/rpmqv.c:143: relocation
 truncated to fit: R_SPARC_GOT13 against symbol `stderr@@GLIBC_2.2'
 defined in .data section in /lib64/libc.so.6
 /home/users/builder/rpm/BUILD/rpm-4.4.9/rpmqv.c:143: relocation
 truncated to fit: R_SPARC_GOT13 against symbol
 `__assert_program_name@@LIBRPM_0' defined in .bss section in
 ./lib/.libs/librpm.so
 rpm.o: In function `main':
 /home/users/builder/rpm/BUILD/rpm-4.4.9/rpmqv.c:238: relocation
 truncated to fit: R_SPARC_GOT13 against symbol
 `__assert_program_name@@LIBRPM_0' defined in .bss section in
 ./lib/.libs/librpm.so
 /home/users/builder/rpm/BUILD/rpm-4.4.9/rpmqv.c:254: relocation
 truncated to fit: R_SPARC_GOT13 against symbol `rpmQVKArgs@@LIBRPM_0'
 defined in .bss section in ./lib/.libs/librpm.so
 /home/users/builder/rpm/BUILD/rpm-4.4.9/rpmqv.c:292: relocation
 truncated to fit: R_SPARC_GOT13 against symbol `rpmQVKArgs@@LIBRPM_0'
 defined in .bss section in ./lib/.libs/librpm.so
 /home/users/builder/rpm/BUILD/rpm-4.4.9/rpmqv.c:256: relocation
 truncated to fit: R_SPARC_GOT13 against symbol `rpmQVKArgs@@LIBRPM_0'
 defined in .bss section in ./lib/.libs/librpm.so
 /home/users/builder/rpm/BUILD/rpm-4.4.9/rpmqv.c:293: relocation
 truncated to fit: R_SPARC_GOT13 against symbol `rpmDBArgs@@LIBRPMDB_0'
 defined in .bss section in
 /home/users/builder/rpm/BUILD/rpm-4.4.9/rpmdb/.libs/librpmdb.so
 /home/users/builder/rpm/BUILD/rpm-4.4.9/rpmqv.c:338: relocation
 truncated to fit: R_SPARC_GOT13 against symbol `rpmIArgs@@LIBRPM_0'
 defined in .bss section in ./lib/.libs/librpm.so
 /home/users/builder/rpm/BUILD/rpm-4.4.9/rpmqv.c:457: relocation
 truncated to fit: R_SPARC_GOT13 against symbol  
 `rpmcliRootDir@@LIBRPM_0'
 defined in .data section in ./lib/.libs/librpm.so
 /home/users/builder/rpm/BUILD/rpm-4.4.9/rpmqv.c:502: relocation
 truncated to fit: R_SPARC_GOT13 against symbol `stderr@@GLIBC_2.2'
 defined in .data section in /lib64/libc.so.6
 /home/users/builder/rpm/BUILD/rpm-4.4.9/rpmqv.c:340: additional
 relocation overflows omitted from the output
 collect2: ld returned 1 exit status
 make[2]: *** [rpm] Error 1
 make[2]: Leaving directory `/home/users/builder/rpm/BUILD/rpm-4.4.9'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/users/builder/rpm/BUILD/rpm-4.4.9'
 make: *** [all] Error 2
 error: Bad exit status from /home/users/builder/tmp/rpm-tmp.94714 (% 
 build)


 [EMAIL PROTECTED] SPECS]$ rpm -q rpm
 rpm-4.4.8-0.1.sparc64
 [EMAIL PROTECTED] SPECS]$ rpm -q glibc
 glibc-2.6-3.sparc64
 [EMAIL PROTECTED] SPECS]$ rpm -q gcc
 gcc-4.2.0-5.sparc64

 -- 
 T.
 ___
 pld-devel-en mailing list
 pld-devel-en@lists.pld-linux.org
 http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: [Th] [EMAIL PROTECTED]

2007-06-18 Thread Tomasz Mateja
Jeff Johnson napisaƂ(a):
 This is likely the -pie linkage and -fpie compilation, new in rpm-4.4.9.
 
 Remove PIE compilation/linkage is the easy fix.
 
 Upgrading binutils and/or rewriting rpm code may help.
 
 73 de Jeff
 
removed and it's built right now, btw binutils are current.

-- 
T.
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: [Th] [EMAIL PROTECTED]

2007-06-18 Thread Jeff Johnson

On Jun 18, 2007, at 2:10 PM, Tomasz Mateja wrote:


 removed and it's built right now, btw binutils are current.

 not working:

 [EMAIL PROTECTED] RPMS]# gdb rpm
 GNU gdb 6.6
 Copyright (C) 2006 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License,  
 and you are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB.  Type show warranty for  
 details.
 This GDB was configured as sparc64-pld-linux...
 Using host libthread_db library /lib64/libthread_db.so.1.
 (gdb) run --rebuilddb
 Starting program: /bin/rpm --rebuilddb

 Program received signal SIGBUS, Bus error.
 0xf801fbec in intGetEntry (h=0x26b4e0, tag=1184,
 type=0x7feffef9518, p=0x7feffef951c, c=0x7feffef950c, minMem=1) at
 header.c:1785
 1785if (p) *p = NULL;

Likely alignment on sparc64. Pointers aligned on 64bit boundary on  
sparc64?

One hack-a-round is:
 memset(p, 0, sizeof(*p));
instead of
 *p = NULL;
but you may die in caller instead.

FWIW, tag=1184 is RPMTAG_PACKAGECOLOR added on
multilib systems. That's likely not PLD/sparc64.

Lemme look a bit more.

73 de Jeff
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en