Subject: pkg/24208: Can't install some perl packages from pkgsrc under Solaris - buildlink3 problems?
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <rquinn@sec.sprint.net>
List: netbsd-bugs
Date: 01/23/2004 21:43:55
>Number:         24208
>Category:       pkg
>Synopsis:       Can't install some perl packages from pkgsrc under Solaris - buildlink3 problems?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 23 21:44:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Rob Quinn
>Release:        pkgsrc current
>Organization:
>Environment:
SunOS crn-sen 5.8 Generic_108528-19 sun4u sparc SUNW,Netra-T4

>Description:
I'm unable to build several perl packages.  The compiles fail in similar ways.  Rolling back
to before bl3 changes also fixes the problem.


>How-To-Repeat:
crn-sen:/usr/pkgsrc/security/p5-Net-SSLeay #bmake cleandir
===> Cleaning for p5-Net-SSLeay-1.25nb1
crn-sen:/usr/pkgsrc/security/p5-Net-SSLeay #bmake 
===> Checking for vulnerabilities in p5-Net-SSLeay-1.25nb1
=> Checksum OK for Net_SSLeay.pm-1.25.tar.gz.
work -> /usr/obj/pkg/security/p5-Net-SSLeay/work
===> Extracting for p5-Net-SSLeay-1.25nb1
===> Required installed package perl>=5.0: perl-5.8.1nb1 found
===> Required installed package openssl>=0.9.6l: openssl-0.9.6l found
===> Required installed package gcc3>=3.3: gcc3-3.3nb5 found
[...]
Manifying ../blib/man3/Net::SSLeay::Handle.3
/usr/pkg/bin/perl /usr/pkg/lib/perl5/5.8.1/ExtUtils/xsubpp  -typemap /usr/pkg/lib/perl5/5.8.1/ExtUtils/typemap -typemap typemap  SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c
gcc -c  -I/usr/pkg/include -I/usr/pkg/inc32 -I/usr/kerberos/include  -fno-strict-aliasing -I/usr/pkg/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -I/usr/pkg/include   -I/usr/pkg/include    -DVERSION=\"1.25\"  -DXS_VERSION=\"1.25\" -fPIC "-I/usr/pkg/lib/perl5/5.8.1/sparc-solaris/CORE"  -DPERL5 -DOPENSSL_NO_KRB5 SSLeay.c
SSLeay.xs:74:20: EXTERN.h: No such file or directory
SSLeay.xs:75:18: perl.h: No such file or directory
SSLeay.xs:76:18: XSUB.h: No such file or directory
^C



crn-sen:/usr/pkgsrc/security/p5-Net-SSLeay #ls -l /usr/pkg/lib/perl5/5.8.1/sparc-solaris/CORE/EXTERN.h 
-r--r--r--   1 root     other       1751 Jan 12 16:05 /usr/pkg/lib/perl5/5.8.1/sparc-solaris/CORE/EXTERN.h

>Fix:
cd to work/Net_SSLeay.pm-1.25 and run the gcc command by hand (cut and paste) and
it will work fine. After that, the rest of the package builds fine and installs.

Rolling back my CVS version to before the buildlink3 changes also works.

>Release-Note:
>Audit-Trail:
>Unformatted: