NetBSD Problem Report #36187

From martin@duskware.de  Sat Apr 21 11:47:44 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 9A46063B964
	for <gnats-bugs@gnats.netbsd.org>; Sat, 21 Apr 2007 11:47:44 +0000 (UTC)
Message-Id: <20070421050658.238EE63B964@narn.NetBSD.org>
Date: Sat, 21 Apr 2007 05:06:58 +0000 (UTC)
From: naoto@morishima.net
Reply-To: naoto@morishima.net
To: netbsd-bugs-owner@NetBSD.org
Subject: SunPro does not know the options related to Position Independent Executables
X-Send-Pr-Version: www-1.0

>Number:         36187
>Category:       pkg
>Synopsis:       SunPro does not know the options related to Position Independent Executables
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    rillig
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 21 11:50:00 +0000 2007
>Closed-Date:    Sat Jun 09 11:28:54 +0000 2007
>Last-Modified:  Sat Jun 09 11:30:00 +0000 2007
>Originator:     Naoto Morishima
>Release:        NetBSD 3.1_STABLE
>Organization:
>Environment:
SunOS XXX 5.8 Generic_108528-27 sun4u sparc SUNW,Sun-Fire-480R

>Description:
SunPro does not know the options related to Position Independent Executables such as -pie, -fpie and -fPIE.
>How-To-Repeat:
Build a package which uses -pie option.  e.x. net/freeradius.
>Fix:
We might need to discard these options with following patch to mk/wrapper/transform-sunpro-cc:

--- mk/wrapper/transform-sunpro-cc.orig	2007-04-21 14:01:12.365006000 +0900
+++ mk/wrapper/transform-sunpro-cc	2007-04-21 14:01:53.973042000 +0900
@@ -106,6 +106,11 @@
 # (at least until it can be statically linked).
 -fast		) transform_to_and_split "-fast -xnolibmopt" ;;

+# Ignore options related to Position Independent Executables.
+-pie		|\
+-fpie		|\
+-fPIE		) transform_discard ;;
+
 # Pass through those options that SunPro understands.
 -Bdynamic	|\
 -Bstatic	|\

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Thu, 26 Apr 2007 13:42:02 +0000
Responsible-Changed-Why:
I assigned to developer who did similar work to same file. I hope that is okay.


State-Changed-From-To: open->closed
State-Changed-By: rillig@netbsd.org
State-Changed-When: Sat, 09 Jun 2007 11:28:54 +0000
State-Changed-Why:
I committed code similar to the patch. Thanks for your work.


From: Roland Illig <rillig@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36187 CVS commit: pkgsrc/mk/wrapper
Date: Sat,  9 Jun 2007 11:27:34 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	rillig
 Date:		Sat Jun  9 11:27:33 UTC 2007

 Modified Files:
 	pkgsrc/mk/wrapper: transform-sunpro-cc

 Log Message:
 Added a slight variation of the patch provided in PR 36187 by Naoto
 Morishima.


 To generate a diff of this commit:
 cvs rdiff -r1.25 -r1.26 pkgsrc/mk/wrapper/transform-sunpro-cc

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.