From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 6 Oct 2010 12:22:22 +0400 From: "Alexey I. Froloff" To: ALT Devel discussion list Message-ID: <20101006082222.GA23143@altlinux.org> References: <20101005093544.GB9992@altlinux.org> <4CAAE5EF.3040408@mmedia2.kemsu.ru> <20101005100103.GA28486@altlinux.org> <20101005101717.GF9992@altlinux.org> <20101005213906.GA7528@altlinux.org> <20101005215602.GD13828@altlinux.org> <20101005220144.GA18362@altlinux.org> <20101005220435.GE13828@altlinux.org> <20101005221209.GB18362@altlinux.org> <20101005222941.GC18362@altlinux.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: <20101005222941.GC18362@altlinux.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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: Wed, 06 Oct 2010 08:22:24 -0000 Archived-At: List-Archive: List-Post: --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 06, 2010 at 02:29:41AM +0400, Dmitry V. Levin wrote: > =E5=D3=CC=C9 =D0=C5=D2=C5=C4 =DA=C1=D0=D5=D3=CB=CF=CD =DC=D4=CF=CA =C4=CC= =C9=CE=CE=CF=CA =CB=CF=CD=C1=CE=C4=D9 =D7=D9=D0=CF=CC=CE=C9=D4=D8 > $ alias gcc=3D'gcc -Wl,--no-copy-dt-needed-entries' > =D4=CF =D2=C5=DA=D5=CC=D8=D4=C1=D4 =CE=C5 =CD=C5=CE=D1=C5=D4=D3=D1, =DE= =D4=CF =CE=C5=D3=CB=CF=CC=D8=CB=CF =D3=D4=D2=C1=CE=CE=CF. =F3=D0=C1=D4=D8 =CE=C1=C4=CF =C2=CF=CC=D8=DB=C5. =FC=D4=CF =CE=C5 =C4=CC= =D1 =C2=C9=C2=CC=C9=CF=D4=C5=CB: $ echo 'int foo1(){return 1;}' | gcc -fpic -shared -o libfoo1.so -xc - && echo 'int foo2(){return foo1()+1;}' | gcc -fpic -shared -o libfoo2.so -xc - -Wl,--rpath,$PWD -L. -lfoo1 && echo 'int main(){return foo1()+foo2();}' | gcc -o main -xc - -Wl,--rpath,$PWD -L. -lfoo2 && /usr/lib/rpm/lib.req main =20 /lib64/ld-linux-x86-64.so.2 rtld(GNU_HASH) /home/raorn/tmp/l/libfoo1.so /home/raorn/tmp/l/libfoo2.so libc.so.6(GLIBC_2.2.5)(64bit) $ alias gcc=3D'gcc -Wl,--no-copy-dt-needed-entries' $ echo 'int foo1(){return 1;}' | gcc -fpic -shared -o libfoo1.so -xc - && echo 'int foo2(){return foo1()+1;}' | gcc -fpic -shared -o libfoo2.so -xc - -Wl,--rpath,$PWD -L. -lfoo1 && echo 'int main(){return foo1()+foo2();}' | gcc -o main -xc - -Wl,--rpath,$PWD -L. -lfoo2 && /usr/lib/rpm/lib.req main =20 /usr/bin/ld: /tmp/.private/raorn/ccf6VsNk.o: undefined reference to symbol 'foo1' /usr/bin/ld: note: 'foo1' is defined in DSO /home/raorn/tmp/l/libfoo1.so so try adding it to the linker command line /home/raorn/tmp/l/libfoo1.so: could not read symbols: Invalid operation collect2: ld returned 1 exit status --=20 Regards, -- Sir Raorn. --- http://thousandsofhate.blogspot.com/ --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkysMbsACgkQVqT7+fkT8wqTtACeLzAWwz32t0vWmHLe7Qpbh0yV j18AoNI1t1llmsP6gm3a1Oc55hFxrpRt =pJ/j -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2--