Subject: pkg/28422: perl-5.8.5nb3 does not compile
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <martti.kuparinen@iki.fi>
List: pkgsrc-bugs
Date: 11/26/2004 10:57:01
>Number:         28422
>Category:       pkg
>Synopsis:       perl-5.8.5nb3 does not compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 26 10:57:00 +0000 2004
>Originator:     Martti Kuparinen
>Release:        NetBSD 1.6.2_STABLE
>Organization:
>Environment:
System: NetBSD outside 1.6.2_STABLE NetBSD 1.6.2_STABLE (OUTSIDE) #0: Mon Aug 30 10:32:43 EEST 2004 root@outside:/usr/src/sys/arch/i386/compile/OUTSIDE i386
Architecture: i386
Machine: i386
>Description:

perl-5.8.5nb3 does not compile on NetBSD/i386 1.6.2_STABLE

>How-To-Repeat:

# cd /usr/pkgsrc/lang/perl58
# ident Makefile 
Makefile:
     $NetBSD: Makefile,v 1.62 2004/11/25 22:02:49 jlam Exp $
# make
===> Checking for vulnerabilities in perl-5.8.5nb3
=> Checksum OK for perl-5.8.5.tar.bz2.
===> Extracting for perl-5.8.5nb3
===> Required installed package pth>=2.0.0nb2: pth-2.0.0nb2 found
...
Any additional ld flags (NOT including libraries)? [ -L/usr/pkg/lib]
Checking your choice of C compiler and flags for coherency...
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:

        gcc -o try -O2 -D_REENTRANT -I/usr/include -I/usr/pkg/include -fno-stric
t-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/perl58
*** Error code 1

>Fix: