ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: [devel] Re: I: how does dlsym work
Date: Sat, 19 Mar 2005 00:31:42 +0300
Message-ID: <20050318213142.GE12596@solemn.turbinal.org> (raw)
In-Reply-To: <20050214124335.GC31727@basalt.office.altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 2076 bytes --]

On Mon, Feb 14, 2005 at 03:43:35PM +0300, Dmitry V. Levin wrote:
> Познавательное чтение для тех, кто пишет разные обёртки:
> http://sources.redhat.com/ml/libc-alpha/2005-02/msg00054.html                                                
> и далее по треду.

Есть такая беда.

:r ~/RPM/SOURCES/perl-5.8.6-alt-rh-threads-lpthread.patch
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=101767

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 => 'threads.pm', # retrieve abstract from module
        AUTHOR     => 'Artur Bergman  <artur@contiller.se>') : ()),
     'MAN3PODS'		=> {},  # Pods will be built by installman
-    'LIBS'		=> [''], # e.g., '-lm'
+    'LIBS'		=> [ '-lpthread' ], # e.g., '-lm'
     'DEFINE'		=> '', # e.g., '-DHAVE_SOMETHING'
 	# Insert -I. if you add *.h files later:
 #    'INC'		=> '', # 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 => 'shared.pm', # retrieve abstract from module
        AUTHOR     => 'Arthur Bergman <arthur@contiller.se>') : ()),
     'MAN3PODS'		=> {},  # Pods will be built by installman
-    'LIBS'		=> [''], # e.g., '-lm'
+    'LIBS'		=> [ '-lpthread' ], # e.g., '-lm'
     'DEFINE'		=> '', # e.g., '-DHAVE_SOMETHING'
 	# Insert -I. if you add *.h files later:
     'INC'		=> '', # e.g., '-I/usr/include/other'


> -- 
> ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-03-18 21:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-14 12:43 [devel] " Dmitry V. Levin
2005-03-18 21:31 ` Alexey Tourbin [this message]
2005-03-19 21:26   ` [devel] " Dmitry V. Levin
2005-03-20 11:56     ` Alexey Morozov
2005-03-20 12:26       ` Dmitry V. Levin
2005-03-24 22:48     ` Dmitry V. Levin
2005-03-25 15:41       ` Alexey Tourbin
2005-03-29 17:29         ` Dmitry V. Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050318213142.GE12596@solemn.turbinal.org \
    --to=at@altlinux.ru \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git