Subject: pkg/31985: [lang/perl5] cannot build 64-bit binaries on Solaris 10 (amd64) with Sun Studio 10
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <nakaji@jp.freebsd.org>
List: pkgsrc-bugs
Date: 11/03/2005 02:52:01
>Number:         31985
>Category:       pkg
>Synopsis:       [lang/perl5] cannot build 64-bit binaries on Solaris 10 (amd64) with Sun Studio 10
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 03 02:52:00 +0000 2005
>Originator:     NAKAJI Hiroyuki
>Release:        Solaris 10 (x86_64)
>Organization:
>Environment:
SunOS deepsea.c3922.takamatsu-nct.ac.jp 5.10 Generic i86pc i386 i86pc
>Description:
Because the variables PERL5_HINTS_LDFLAGS and PERL5_HINTS_LDDLFLAGS are reset empty in Makefile, no additional LDFLAGS settings in mk.conf are effective. And then, link of miniperl fails because *.o are 64-bit and miniperl will be linked 32-bit.
>How-To-Repeat:
o Install Sun Studio 10 on your Solaris (x86_64) system
o Set PKGSRC_COMPILER=sunpro and CC=cc in your mk.conf
o Set CFLAGS and LDFLAGS "-xarch=amd64"
o run

# cd /usr/pkgsrc/lang/perl5
# bmake all

>Fix:
lang/perl5/Makefile needs change. I made a patch, which is availeble at http://heimat.jp/~nakaji/solaris/10/pkgsrc_with_cc/perl5.diff