NetBSD Problem Report #29440

From www@netbsd.org  Fri Feb 18 18:23:44 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 6E61A63B845; Fri, 18 Feb 2005 18:23:44 +0000 (UTC)
Message-Id: <20050218182344.6E61A63B845@narn.netbsd.org>
Date: Fri, 18 Feb 2005 18:23:44 +0000 (UTC)
From: pschmied@yahoo.com
Reply-To: pschmied@yahoo.com
To: gnats-bugs@netbsd.org
Subject: lang/perl58 fails on AIX 5.3 with GCC compiler
X-Send-Pr-Version: www-1.0

>Number:         29440
>Category:       pkg
>Synopsis:       lang/perl58 fails on AIX 5.3 with GCC compiler
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    grant
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 18 18:24:00 +0000 2005
>Closed-Date:    Sat Nov 14 18:33:01 +0000 2009
>Last-Modified:  Sat Nov 14 18:33:01 +0000 2009
>Originator:     Peter Schmiedeskamp
>Release:        AIX 5.3
>Organization:
n/a
>Environment:
AIX sv007 3 5 000000000000
>Description:
GCC fails during linking due to improper linker flag handling.

By default, linker flags are not prepended with the required "-Wl," flag.  This will actually be a problem for many, many packages on AIX.  I'm not sure if there is a way to fix this in one place permanently, but it would appear that at least the perl package requires special treatment.


>How-To-Repeat:
cd /usr/pkgsrc/lang/perl58; bmake
>Fix:
--- Makefile.SH.foo     2005-02-18 09:59:34.000000000 -0700
+++ Makefile.SH 2005-02-18 10:00:55.000000000 -0700
@@ -77,11 +77,11 @@
                linklibperl="-L. -lperl"
                ;;
        aix*)
-               shrpldflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:perl.exp"
+               shrpldflags="-Wl,-H512 -Wl,-T512 -Wl,-bhalt:4 -Wl,-bM:SRE -Wl,-b
E:perl.exp"
                case "$osvers" in
                3*)     shrpldflags="$shrpldflags -e _nostart"
                        ;;
-               *)      shrpldflags="$shrpldflags -b noentry"
+               *)      shrpldflags="$shrpldflags -Wl,-bnoentry"
                        ;;
                esac
                shrpldflags="$shrpldflags $ldflags $perllibs $cryptlib"

A patch should look something like that.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->jlam
Responsible-Changed-By: recht@netbsd.org
Responsible-Changed-When: Fri, 18 Feb 2005 21:58:03 +0000
Responsible-Changed-Why:
over to maintainer


Responsible-Changed-From-To: jlam->grant
Responsible-Changed-By: grant@netbsd.org
Responsible-Changed-When: Sat, 19 Feb 2005 02:48:49 +0000
Responsible-Changed-Why:
I'll take this.. garbled@ and I have been working on AIX support...


State-Changed-From-To: open->analyzed
State-Changed-By: grant@netbsd.org
State-Changed-When: Sat, 19 Feb 2005 02:48:49 +0000
State-Changed-Why:
garbled@ and I are working on AIX support... I will commit some changes
which should allow a number of packages to build on AIX after testing a
bit more...


State-Changed-From-To: analyzed->open
State-Changed-By: joerg@netbsd.org
State-Changed-When: Fri, 29 Dec 2006 19:25:34 +0000
State-Changed-Why:
22 month should be enough time for a bit more testing.


State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 09 Nov 2009 06:54:49 +0000
State-Changed-Why:
Is this an issue with perl 5.10?


State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 09 Nov 2009 07:24:49 +0000
State-Changed-Why:
feedback bounced. anyone want to test perl on aix?


State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 14 Nov 2009 18:33:01 +0000
State-Changed-Why:
Same as 41814.


>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.