Subject: pkg/31091: perl 5.8.7 won't build with threads on 1.6.2
To: None <,,>
From: Carl Brewer <>
List: pkgsrc-bugs
Date: 08/30/2005 04:05:00
>Number:         31091
>Category:       pkg
>Synopsis:       perl 5.8.7 won't build with threads on 1.6.2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 30 04:05:00 +0000 2005
>Originator:     Carl Brewer
>Release:        NetBSD 1.6.2
System: NetBSD 1.6.2 NetBSD 1.6.2 (rollcage) #1: Fri Apr 23 00:50:50 EST 2004 i386
Architecture: i386
Machine: i386
	while trying to bump subversion to 1.2.3, p5-subversion started
complainng abuot needing a threaded perl.

So, I add this to /etc/mk.conf :


But, re-compiliong perl (after a full CVS up & make clean) :

I've tried to compile and run the following simple program:

#include <stdio.h>
int main() { printf("Ok\n"); return(0); }

I used the command:

        cc -o try -O2 -D_REENTRANT -I/usr/include -I/usr/pkg/include -fno-strict-aliasing -pipe -I/usr/pkg/include -L/usr/pkg/lib try.c -lm -lcrypt -lpthread

and I got the following output:

Shared object "" not found
The program compiled OK, but exited with status 1.
You have a problem.  Shall I abort Configure [y]
Ok.  Stopping Configure.
*** Error code 1

make: stopped in /usr/pkgsrc/lang/perl5
===> There was an error during the ``configure'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/pkgsrc/lang/perl5/work/.work.log
*** Error code 1

make: stopped in /usr/pkgsrc/lang/perl5

But, exists :

rollcage2# ls -la /usr/pkg/lib/*
lrwxr-xr-x  1 root  wheel     21 Aug 30 12:39 /usr/pkg/lib/ ->
-rwxr-xr-x  1 root  wheel  96086 Aug 30 12:39 /usr/pkg/lib/

I rebuilt pth2 just in case there was something wrong with it, but
with no change.

	cvs up current tree on NetBSD 1.6.2/i386.  try to build
threaded perl or p5-subversion