From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 19 Oct 2005 21:17:25 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Subject: Re: [devel] Re: RPM::Database Message-ID: <20051019171724.GA14948@nomad.office.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20051018233018.GF7934@solemn.turbinal.org> <20051019090524.GA4908@basalt.office.altlinux.org> <20051019130136.GI7934@solemn.turbinal.org> <20051019135635.GK7934@solemn.turbinal.org> <20051019141810.GM7934@solemn.turbinal.org> <20051019155032.GO7934@solemn.turbinal.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline In-Reply-To: <20051019155032.GO7934@solemn.turbinal.org> X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 Cc: X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Oct 2005 17:17:24 -0000 Archived-At: List-Archive: List-Post: --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 19, 2005 at 07:50:32PM +0400, Alexey Tourbin wrote: > On Wed, Oct 19, 2005 at 06:18:10PM +0400, Alexey Tourbin wrote: > > On Wed, Oct 19, 2005 at 05:56:35PM +0400, Alexey Tourbin wrote: > > > > =F0=CF=D3=CC=C5 =D0=C5=D2=C5=D3=C2=CF=D2=CB=C9 perl-RPM =D2=C1=C2= =CF=D4=C1=C5=D4. > > > =F3=CC=CF=CD=C1=CC=D3=D1 rpmTagTable. > > $ cat test.c >=20 > =EE=D5? =F3=D4=D2=C1=CE=CE=CF =D7=D3=A3 =DC=D4=CF: $ cvs diff -u -r rpm-4_0_4-alt51 lib/rpmlib.h [...] --- lib/rpmlib.h 29 Feb 2004 14:14:02 -0000 1.6 +++ lib/rpmlib.h 17 Oct 2005 11:49:21 -0000 [...] @@ -178,7 +196,7 @@ */ /*@-redecl@*/ /*@observer@*/ /*@unchecked@*/ -extern const struct headerTagTableEntry_s rpmTagTable[]; +extern const struct headerTagTableEntry_s * rpmTagTable; /*@=3Dredecl@*/ =20 /** $ cat rttest.c #include #include int main() { printf("rpmTagTableSize =3D %i\nrpmTagTable =3D %p\nrpmTagTable[0].name = =3D %s (%p)\n", rpmTagTableSize, rpmTagTable, rpmTagTable[0].name, rpmTagTable[0].name); return 0; } alt51$ gcc -Wall -Werror -I/usr/include/rpm rttest.c -lrpm -orttest-alt51 alt51$ ./rttest-alt51=20 rpmTagTableSize =3D 125 rpmTagTable =3D 0x8049740 rpmTagTable[0].name =3D RPMTAG_HEADERIMAGE (0x16b8e4) alt52$ gcc -Wall -Werror -I/usr/include/rpm rttest.c -lrpm -orttest-alt52 alt52$ ./rttest-alt52=20 rpmTagTableSize =3D 125 rpmTagTable =3D 0x2b00a0 rpmTagTable[0].name =3D RPMTAG_HEADERIMAGE (0x2ae760) alt51$ ./rttest-alt52=20 =2E/rttest-alt52: Symbol `rpmTagTable' has different size in shared object,= consider re-linking rpmTagTableSize =3D 125 rpmTagTable =3D 0x16b8e4 Segmentation fault alt52$ ./rttest-alt51=20 rpmTagTableSize =3D 125 rpmTagTable =3D 0x8049740 rpmTagTable[0].name =3D `=E7* (0x2b00a0) =F4=D5=D4 =CF=CE =D0=D2=C1=D7, =D0=CF=CC=CE=CF=C5 =E7*. =EE=D5 =DE=D4=CF, =D0=D2=C9=C4=A3=D4=D3=D1 =CF=D4=CB=C1=D4=C9=D4=D8 =DC=D4= =CF=D4 backport? --=20 ldv --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDVn+k9viEa8HiNCkRAgITAJ4zrUy3YrPjRoJ3nyYL/ulgFx9KbwCfatKX bGnrDjOzE402iJEd3s8QG3I= =+2TN -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5--