From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 18 Mar 2006 22:06:45 +0300 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20060318190645.GA24097@basalt.office.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20060306030940.GA17733@basalt.office.altlinux.org> <20060306053626.GN6860@wrars-comp.wrarsdomain> <20060306120843.GA7241@basalt.office.altlinux.org> <20060306132203.GB11690@basalt.office.altlinux.org> <20060306153733.GD2873@master.mivlgu.local> <20060307095433.GH18807@basalt.office.altlinux.org> <1141728461.4187.20.camel@localhost.localdomain> <20060307131126.GB4524@basalt.office.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: <20060307131126.GB4524@basalt.office.altlinux.org> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [devel] --as-needed X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.7 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: Sat, 18 Mar 2006 19:06:45 -0000 Archived-At: List-Archive: List-Post: --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 07, 2006 at 04:11:26PM +0300, Dmitry V. Levin wrote: > On Tue, Mar 07, 2006 at 01:47:40PM +0300, Mikhail Zabaluev wrote: > > =F7 =F7=D4=D2, 07/03/2006 =D7 12:54 +0300, Dmitry V. Levin =D0=C9=DB=C5= =D4: > > > =F7=D3=C5 =CF=CE=C9 =CE=C5 =D3=CF=C2=D2=C1=CC=C9=D3=D8 =D0=CF =D0=D2= =C9=DE=C9=CE=C5 > > > /usr/bin/ld: BFD 2.16.91.0.6 20060212 internal error, aborting at elf= link.c line 6453 in elf_link_output_extsym > > > /usr/bin/ld: Please report this bug. > > >=20 > > > =F0=CF=C8=CF=D6=C5, =CD=D9 =D5=D3=D4=D2=CF=C9=CC=C9 --as-needed =CE= =C1=C7=D2=D5=DA=CF=DE=CE=CF=C5 =D4=C5=D3=D4=C9=D2=CF=D7=C1=CE=C9=C5. :) > >=20 > > =FA=CE=C1=DE=C9=D4, =D7=C5=D3=D8 =DC=D4=CF=D4 =CB=CF=DB=CD=C1=D2 =D0=CF= =CB=C1 =CF=D4=CB=CC=C1=C4=D9=D7=C1=C5=D4=D3=D1? =E6-=C6=D5=C8 :) >=20 > =EE=D5 =D0=CF=DE=C5=CD=D5 =CF=D4=CB=CC=C1=C4=D9=D7=C1=C5=D4=D3=D1? =E2= =C1=C7=C9 =C2=D5=C4=C5=CD =D7=C9=CB=D3=C9=D4=D8. :) =E2=C1=C7=C1 =C9=D3=D0=D2=C1=D7=CC=C5=CE=C1, =CD=CF=D6=CE=CF =D3=D0=CF=CB= =CF=CA=CE=CF =CC=C9=CE=CB=CF=D7=C1=D4=D8. =EF=C2=CE=C1=D2=D5=D6=C9=CC=C1=D3=D8 =C5=DD=A3 =CF=C4=CE=C1 =D4=C9=D0=C9=DE= =CE=C1=D1 =D0=D2=CF=C2=CC=C5=CD=C1, =CB=CF=D4=CF=D2=D5=C0 =CC=C5=C7=CB=CF = =D0=CF=CE=D1=D4=D8 =CE=C1 =D0=D2=C9=D7=C5=C4=A3=CE=CE=CF=CD =CE=C9=D6=C5 =D0=D2=CF=D3=D4=CF=CD =D0=D2= =C9=CD=C5=D2=C5: $ cat libfoo1.c=20 int foo1(void) { return 0; } $ cat libfoo2.c extern int foo1(void); int foo2(void) { return foo1(); } $ cat foo3.c=20 extern int foo2(void); int main(void) { return foo2(); } $ gcc -Wall -fpic -shared libfoo1.c -o libfoo1.so $ gcc -Wall -fpic -shared libfoo2.c -o libfoo2.so -L. -lfoo1 $ gcc -Wall foo3.c -o foo3 -L. -lfoo2 /usr/bin/ld: warning: libfoo1.so, needed by ./libfoo2.so, not found (try us= ing -rpath or -rpath-link) =2E/libfoo2.so: undefined reference to `foo1' collect2: ld returned 1 exit status $ gcc -Wall foo3.c -o foo3 -L. -lfoo2 -Wl,-rpath-link,. =F4=CF=CE=CB=CF=D3=D4=D8 =D7 =D4=CF=CD, =DE=D4=CF =D2=C1=CE=D8=DB=C5 =C5=DD= =A3 =C9 =D4=C1=CB =D2=C1=C2=CF=D4=C1=CC=CF (=C8=CF=D4=D8 =C9 =D2=D5=C7=C1= =CC=CF=D3=D8): $ gcc -Wall foo3.c -o foo3 -L. -lfoo2 -lfoo1 /usr/bin/ld: warning: libfoo1.so, needed by ./libfoo2.so, not found (try us= ing -rpath or -rpath-link) =E1 =D4=C5=D0=C5=D2=D8 =D4=C1=CB =CE=C5 =D2=C1=C2=CF=D4=C1=C5=D4: $ gcc -Wall foo3.c -o foo3 -L. -lfoo2 -lfoo1 /usr/bin/ld: warning: libfoo1.so, needed by ./libfoo2.so, not found (try us= ing -rpath or -rpath-link) =2E/libfoo2.so: undefined reference to `foo1' collect2: ld returned 1 exit status =F1 =D0=CF=CB=C1 =DE=D4=CF =CE=C5 =DA=CE=C1=C0, =DC=D4=CF =C6=C9=DE=C1 =C9= =CC=C9 =CE=C5=D4. =F3=CB=CF=D2=CF =D3=C9=D4=D5=C1=C3=C9=D1 =D0=D2=CF=D1=D3= =CE=C9=D4=D3=D1. --=20 ldv --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD4DBQFEHFpFfKvmrJ41Nh4RApF6AJ98+NBP7I3tNUJXPz7EXagzoIYozwCY49rL lGdVq6/E8fO6l+JM3tgY7Q== =Y/D2 -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--