pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/40302: Compiling pkgsrc perl on linux-amd64 with support for threads
The following reply was made to PR pkg/40302; it has been noted by GNATS.
From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/40302: Compiling pkgsrc perl on linux-amd64 with support
for threads
Date: Sun, 7 Mar 2010 05:29:07 +0000
On Tue, Dec 30, 2008 at 09:50:00PM +0000, cirnatdan%gmail.com@localhost wrote:
> LD_LIBRARY_PATH=/usr/work/lang/perl5/work/perl-5.10.0 gcc
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o miniperl `echo gv.o toke.o perly.o
op.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o hv.o av.o perl.o run.o
pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o
taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o
mathoms.o locale.o pp_pack.o pp_sort.o | sed 's/ op.o / /'` miniperlmain.o
opmini.o -lm -lcrypt -ldl -lnsl
> #
> util.c:(.text+0x22eb): undefined reference to `pthread_getspecific'
On the Linux box I have accessible right now, some pthread functions
are in libc but pthread_getspecific apparently requires -pthread or
-lpthread. Since neither of those appears on the link line above, it's
not surprising that it fails.
Probably the configure script is checking for pthread_self or
pthread_mutex_init or something that's in libc to figure out whether
it needs -pthread, and getting the wrong answer.
Can you paste the sections from the build log that report what it's
doing/finding about compiler flags for threads?
(Also, check with the latest perl just in case this was fixed in 5.10.1)
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index