pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/31091: perl 5.8.7 won't build with threads on 1.6.2



>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
>Organization:
        
>Environment:
        
        
System: NetBSD rollcage2.bl.echidna.id.au 1.6.2 NetBSD 1.6.2 (rollcage) #1: Fri 
Apr 23 00:50:50 EST 2004 
carl%rollcage2.bl.echidna.id.au@localhost:/usr/src/sys/arch/i386/compile/rollcage
 i386
Architecture: i386
Machine: i386
>Description:
        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 :

PKG_OPTIONS.perl+=threads

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
         ./try

and I got the following output:

Shared object "libpthread.so.20" 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

Stop.
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

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




But, libpthread.so.20 exists :

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

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

>How-To-Repeat:
        cvs up current tree on NetBSD 1.6.2/i386.  try to build
threaded perl or p5-subversion

>Fix:

>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index