NetBSD Problem Report #29645

From www@netbsd.org  Wed Mar  9 22:12:42 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id AFFDF63B116; Wed,  9 Mar 2005 22:12:42 +0000 (UTC)
Message-Id: <20050309221242.AFFDF63B116@narn.netbsd.org>
Date: Wed,  9 Mar 2005 22:12:42 +0000 (UTC)
From: georg.schwarz@freenet.de
Reply-To: georg.schwarz@freenet.de
To: gnats-bugs@netbsd.org
Subject: x11/py-Tk uses optimizer flag when calling ld
X-Send-Pr-Version: www-1.0

>Number:         29645
>Category:       pkg
>Synopsis:       x11/py-Tk uses optimizer flag when calling ld
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 09 22:13:00 +0000 2005
>Closed-Date:    Sun Apr 15 21:49:50 +0000 2012
>Last-Modified:  Sun Apr 15 21:49:50 +0000 2012
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
It looks like x11/py-Tk passes CFLAGS directly to the linker:

creating build/lib.irix-5.3-2.3
ld -shared -L/usr/local/pkg/lib/python2.3/config -Wl,-rpath,/usr/local/pkg/lib/python2.3/config -Wl,-rpath,/usr/local/pkg/lib -L/usr/lib32 -Wl,-rpath,/usr/lib32 -O2 -O2 -mips2 -I/usr/local/pkg/include -I/usr/local/pkg/include/python2.3 -I/usr/include -I/usr/local/pkg/include -I/usr/local/pkg/include/python2.3 -I/usr/include build/temp.irix-5.3-2.3/Modules/_tkinter.o build/temp.irix-5.3-2.3/Modules/tkappinit.o -L/usr/local/pkg/lib -L/usr/lib -R/lib -R/lib -R/usr/lib -ltk -ltcl -lX11 -o build/lib.irix-5.3-2.3/_tkinter.so -L/usr/local/pkg/lib/python2.3/config -Wl,-rpath,/usr/local/pkg/lib/python2.3/config -Wl,-rpath,/usr/local/pkg/lib -L/usr/lib32 -Wl,-rpath,/usr/lib32
/usr/bin/../lib/ld:
Unknown flag: -O2
/usr/bin/../lib/ld: Usage: /usr/bin/../lib/ld [options] file [...]
error: command 'ld' failed with exit status 1

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->tsarna
Responsible-Changed-By: cube@netbsd.org
Responsible-Changed-When: Sun, 13 Mar 2005 18:14:49 +0000
Responsible-Changed-Why:
tsarna maintains py-Tk.


State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 02 Oct 2011 04:22:17 +0000
State-Changed-Why:
Have you seen this recently? I haven't, but I don't have a mips build box.


Responsible-Changed-From-To: tsarna->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 15 Apr 2012 21:49:50 +0000
Responsible-Changed-Why:
Back to role account, tsarna left


State-Changed-From-To: feedback->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Sun, 15 Apr 2012 21:49:50 +0000
State-Changed-Why:
Feedback timeout


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