From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 19 Mar 2005 00:31:42 +0300 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20050318213142.GE12596@solemn.turbinal.org> Mail-Followup-To: ALT Devel discussion list References: <20050214124335.GC31727@basalt.office.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xJK8B5Wah2CMJs8h" Content-Disposition: inline In-Reply-To: <20050214124335.GC31727@basalt.office.altlinux.org> Subject: [devel] Re: I: how does dlsym work X-BeenThere: devel@altlinux.ru 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: Fri, 18 Mar 2005 21:37:18 -0000 Archived-At: List-Archive: List-Post: --xJK8B5Wah2CMJs8h Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 14, 2005 at 03:43:35PM +0300, Dmitry V. Levin wrote: > =F0=CF=DA=CE=C1=D7=C1=D4=C5=CC=D8=CE=CF=C5 =DE=D4=C5=CE=C9=C5 =C4=CC=D1 = =D4=C5=C8, =CB=D4=CF =D0=C9=DB=C5=D4 =D2=C1=DA=CE=D9=C5 =CF=C2=A3=D2=D4=CB= =C9: > http://sources.redhat.com/ml/libc-alpha/2005-02/msg00054.html = =20 > =C9 =C4=C1=CC=C5=C5 =D0=CF =D4=D2=C5=C4=D5. =E5=D3=D4=D8 =D4=C1=CB=C1=D1 =C2=C5=C4=C1. :r ~/RPM/SOURCES/perl-5.8.6-alt-rh-threads-lpthread.patch https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=3D101767 At least following libraries: /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/threads/threads.so /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/threads/shared/shared.so were not linked against -lpthread, even though they are using pthread_* functions provided only by libpthread. This results in the symbols being non-versioned, and thus pthread_create@GLIBC_2.0 being called instead of the expected pthread_create@@GLIBC_2.1 --- perl-5.8.6/ext/threads/Makefile.PL~ 2003-04-03 06:08:54 +0000 +++ perl-5.8.6/ext/threads/Makefile.PL 2004-12-11 02:03:13 +0000 @@ -10,7 +10,7 @@ WriteMakefile( (ABSTRACT_FROM =3D> 'threads.pm', # retrieve abstract from module AUTHOR =3D> 'Artur Bergman ') : ()), 'MAN3PODS' =3D> {}, # Pods will be built by installman - 'LIBS' =3D> [''], # e.g., '-lm' + 'LIBS' =3D> [ '-lpthread' ], # e.g., '-lm' 'DEFINE' =3D> '', # e.g., '-DHAVE_SOMETHING' # Insert -I. if you add *.h files later: # 'INC' =3D> '', # e.g., '-I/usr/include/other' --- perl-5.8.6/ext/threads/shared/Makefile.PL~ 2002-07-12 22:17:07 +0000 +++ perl-5.8.6/ext/threads/shared/Makefile.PL 2004-12-11 02:03:08 +0000 @@ -13,7 +13,7 @@ WriteMakefile( (ABSTRACT_FROM =3D> 'shared.pm', # retrieve abstract from module AUTHOR =3D> 'Arthur Bergman ') : ()), 'MAN3PODS' =3D> {}, # Pods will be built by installman - 'LIBS' =3D> [''], # e.g., '-lm' + 'LIBS' =3D> [ '-lpthread' ], # e.g., '-lm' 'DEFINE' =3D> '', # e.g., '-DHAVE_SOMETHING' # Insert -I. if you add *.h files later: 'INC' =3D> '', # e.g., '-I/usr/include/other' > --=20 > ldv --xJK8B5Wah2CMJs8h Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFCO0i+fBKgtDjnu0YRAu8wAKDjdPgxYFvICqnXVl9wmRx43qmrMQCbB0CV 1pZprQeg4SuvpdkEJAjZKMQ= =rrv8 -----END PGP SIGNATURE----- --xJK8B5Wah2CMJs8h--