From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 6 Oct 2010 01:39:06 +0400 From: "Dmitry V. Levin" To: ALT Linux Team development discussions Message-ID: <20101005213906.GA7528@altlinux.org> Mail-Followup-To: ALT Linux Team development discussions References: <20101004193504.GA13540@altlinux.org> <20101004204144.GB13540@altlinux.org> <20101004214037.GD13540@altlinux.org> <4CAA8785.7060609@mmedia2.kemsu.ru> <20101005093544.GB9992@altlinux.org> <4CAAE5EF.3040408@mmedia2.kemsu.ru> <20101005100103.GA28486@altlinux.org> <20101005101717.GF9992@altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline In-Reply-To: <20101005101717.GF9992@altlinux.org> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [devel] I: rpm 4.0.4-alt98.49, latter rain X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 21:39:07 -0000 Archived-At: List-Archive: List-Post: --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 05, 2010 at 02:17:17PM +0400, Alexey Tourbin wrote: > On Tue, Oct 05, 2010 at 02:01:03PM +0400, Dmitry V. Levin wrote: > > overlinked libraries =CF=DA=CE=C1=DE=C1=C5=D4, =DE=D4=CF ELF c=CC=C9=CE= =CB=CF=D7=C1=CE =D3 =D4=C5=CD, =D3 =DE=C5=CD =CE=C5 =C4=CF=CC=D6=C5=CE. > > underlinked libraries =CF=DA=CE=C1=DE=C1=C5=D4, =DE=D4=CF ELF =CE=C5 c= =CC=C9=CE=CB=CF=D7=C1=CE =D3 =D4=C5=CD, =D3 =DE=C5=CD =C4=CF=CC=D6=C5=CE. > >=20 > > =F3 =D0=C5=D2=D7=D9=CD =CD=D9 =D5=D6=C5 =C4=C1=D7=CE=CF =C2=CF=D2=C5=CD= =D3=D1 =D3 =D0=CF=CD=CF=DD=D8=C0 -Wl,--as-needed, =D0=CF=DC=D4=CF=CD=D5 =CE= =C1=CC=C9=DE=C9=C5 > > overlinked libraries, =D3=CB=CF=D2=C5=C5 =D7=D3=C5=C7=CF, =D1=D7=CC=D1= =C5=D4=D3=D1 =D3=CC=C5=C4=D3=D4=D7=C9=C5=CD =C9=D3=D0=CF=CC=D8=DA=CF=D7=C1= =CE=C9=D1 > > -Wl,--no-as-needed. > >=20 > > C=CF =D7=D4=CF=D2=D9=CD =CD=D9 =D4=CF=D6=C5 =C4=C1=D7=CE=CF =C2=CF=D2= =C5=CD=D3=D1 =D3 =D0=CF=CD=CF=DD=D8=C0 "%set_verify_elf_method strict". >=20 > C =CE=C5=C4=CF=CC=C9=CE=CB=CF=D7=CB=CF=CA =D7=CF=D0=D2=CF=D3 =CE=C5=D3=CB= =CF=CC=D8=CB=CF =D3=CC=CF=D6=CE=C5=C5: verify-elf/ldd =CE=C5 =D2=D5=C7=C1= =C5=D4=D3=D1 > =CE=C1 =CE=C5=D0=D2=D1=CD=D9=C5 =D4=D2=C1=CE=DA=C9=D4=C9=D7=CE=D9=C5 =DA= =C1=D7=C9=D3=C9=CD=CF=D3=D4=C9 (=D0=CF =D3=C9=CD=D7=CF=CC=C1=CD), =C5=D3=CC= =C9 =CF=CE=C9 =D2=C1=DA=D2=C5=DB=C1=C0=D4=D3=D1 > =D0=D2=C9 =DA=C1=C7=D2=D5=DA=CB=C5. =F7 =DC=D4=CF=CD =D7=D3=D1 =D3=CF=CC= =D8. =E9 =D7 =DC=D4=CF=CD =CF=C4=CE=C1 =C9=DA =D0=D2=C5=D4=C5=CE=DA=C9=CA = =CB =D4=D5=CC=DE=C5=CA=CE=D5! >=20 > =F1 =D3=C5=CA=DE=C1=D3 =CE=C5 =CD=CF=C7=D5 =D0=D2=C9=C4=D5=CD=C1=D4=D8 = =D4=D2=C9=D7=C9=C1=CC=D8=CE=D9=CA =D0=D2=C9=CD=C5=D2, =D7=CF=D4 =CD=C5=CE= =C5=C5 =D4=D2=C9=D7=C9=C1=CC=D8=CE=D9=CA > =D0=D2=C9=CD=C5=D2: >=20 > lib.req: WARNING: /usr/lib64/libwx_gtk2u_adv-2.8.so.0.7.0: underlinked li= braries: /usr/lib64/libX11.so.6 > lib.req: WARNING: /usr/lib64/libwx_gtk2u_core-2.8.so.0.7.0: underlinked l= ibraries: /usr/lib64/libX11.so.6 >=20 > =EB=C1=CB =D4=C1=CB =CD=CF=D6=CE=CF =C2=D9=CC=CF =D3=CC=C9=CE=CB=CF=D7=C1= =D4=D8? > =F0=D2=CF=C2=CC=C5=CD=D9 =D7 =CB=CF=CE=D3=C5=D2=D7=C1=D4=CF=D2=C9=C9 =C9= =CD=C5=C0=D4=D3=D1. =F7=CF=D4 =D4=D2=C9=D7=C9=C1=CC=D8=CE=D9=CA =D0=D2=C9=CD=C5=D2: $ cat test.c #include #include int foo(void){return !gtk_major_version || !XOpenDisplay(0);} $ gcc -fpic -shared test.c -o test.so $(pkg-config --cflags gtk+-2.0) -lgtk= -x11-2.0 $ /usr/lib/rpm/lib.req test.so rtld(GNU_HASH) libc.so.6(GLIBC_2.2.5)(64bit) lib.req: WARNING: /usr/src/tmp/test.so: underlinked libraries: /usr/lib64/l= ibX11.so.6 lib.req: WARNING: libgtk-x11-2.0.so.0()(64bit) is not yet set-versioned libgtk-x11-2.0.so.0()(64bit) $ readelf -d test.so |fgrep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libgtk-x11-2.0.so= .0] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] =E9 =C5=DD=A3 =D0=D2=C9=CD=C5=D2: $ cat test.c #include int foo(void){return !XOpenDisplay(0);} $ gcc -fpic -shared test.c -o test.so $(pkg-config --cflags gtk+-2.0) -Wl,-= -no-as-needed -lgtk-x11-2.0 $ /usr/lib/rpm/lib.req test.so rtld(GNU_HASH) libc.so.6(GLIBC_2.2.5)(64bit) lib.req: WARNING: /usr/src/tmp/test.so: overlinked libraries: /usr/lib64/li= bgtk-x11-2.0.so.0 lib.req: WARNING: /usr/src/tmp/test.so: underlinked libraries: /usr/lib64/l= ibX11.so.6 libgtk-x11-2.0.so.0()(64bit) $ readelf -d test.so |fgrep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libgtk-x11-2.0.so= .0] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] =F4=CF=CC=D8=CB=CF =CF=D4=CB=D5=C4=C1 =D3=CC=C5=C4=D5=C5=D4, =DE=D4=CF =DC= =D4=CF =D0=CF=D7=C5=C4=C5=CE=C9=C5 ld(1) =CE=C5=D0=D2=C1=D7=C9=CC=D8=CE=CF= =C5? --=20 ldv --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkyrmvoACgkQfKvmrJ41Nh6lkQCgwm1ttKkywwjeJpFek2cTjXJP bfsAnj4SrbqEGJrAx5xjNW1YVs6rpIWv =6vWO -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--