Subject: pkg/32174: [Solaris] security/openssl does not care of Solaris(x86)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <nakaji@jp.freebsd.org>
List: pkgsrc-bugs
Date: 11/27/2005 14:07:01
>Number:         32174
>Category:       pkg
>Synopsis:       [Solaris] security/openssl does not care of Solaris(x86)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 27 14:07:00 +0000 2005
>Originator:     NAKAJI Hiroyuki
>Release:        Solaris 10 (x86)
>Organization:
>Environment:
SunOS mokuba.heimat.gr.jp 5.10 Generic_118844-20 i86pc i386 i86pc

>Description:
This is not only a problem of security/openssl but also of other packages which use ${SPARC_TARGET_ARCH} variable.

Anyway, security/openssl cannot build with Sun Studio 11.

cd /usr/pkgsrc/security/openssl/work/openssl-0.9.7i && /usr/pkg/bin/perl util/perlpath.pl /usr/pkg/bin/perl
Operating system: i86pc-whatever-solaris2
This system (solaris-x86-sc3) is not supported. See file INSTALL for details.
===> Building for openssl-0.9.7i
Makefile is older than Makefile.org.
Reconfigure the source tree (via './config' or 'perl Configure'), please.
gmake: *** [Makefile] Error 255
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/security/openssl

>How-To-Repeat:
Set in /etc/mk.conf,

PKGSRC_COMPILER=sunpro
CC=/opt/SUNWspro/bin/cc
CXX=/opt/SUNWspro/bin/CC
FC=/opt/SUNWspro/bin/f77

And run.

cd /usr/pkgsrc/security/openssl
bmake install

>Fix:
This fix is only for x86 (i386). If you want to build 64-bit binary on x86_64 like Athlon64 or Opteron, some .mk files in pkgsrc/mk need be modified.

A patch for x86 is available at
http://heimat.jp/~nakaji/solaris/10/pkgsrc_with_cc/openssl.diff