NetBSD Problem Report #41163

From  Tue Apr  7 00:12:45 2009
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 61B9363B8C8
	for <>; Tue,  7 Apr 2009 00:12:45 +0000 (UTC)
Message-Id: <>
Date: Tue,  7 Apr 2009 00:12:44 +0000 (UTC)
Subject: Problem building 2008Q4 tk8.4 on PowerPC Mac OS X Tiger 10.4 (with fix)
X-Send-Pr-Version: www-1.0

>Number:         41163
>Category:       pkg
>Synopsis:       Problem building 2008Q4 tk8.4 on PowerPC Mac OS X Tiger 10.4 (with fix)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    macos-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 07 00:15:00 +0000 2009
>Last-Modified:  Wed Mar 07 08:28:17 +0000 2012
>Originator:     munch paulson
>Release:        n/a
Darwin pbg4.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
Could not build tk because the symbols in unix/libtclstub84.a.E, 
which should have been suppressed when building the .la file, 
weren't.  Modified the link to allow completion even in the presence 
of multiply defined symbols.  The resulting executable (wish) 

Also, the CoreFoundation framework could not be found (!?) 
when linking so I added an explicit -F.

The multiply defined symbols were:


Fixed by modifying unix/Makefile (post configure).  As I'm 
using an old version of Mac OS and have successfully built tk
on a newer x86 10.5 mac without any modifications, it would be 
enough that this fix be findable by search engines and not 
incorporated into the package.

On PowerPC with Mac OS 10.4:

cd pkgsrc/x11/tk
bmake package

diff unix/Makefile{.orig,.modified}
< LIBS =  -lpthread -framework CoreFoundation $(X11_LIB_SWITCHES)  
< WISH_LIBS = $(TCL_LIB_SPEC)  -lpthread -framework CoreFoundation $(X11_LIB_SWITCHES)   -sectcreate __TEXT __info_plist Wish-Info.plist
> # [jkp 20090401 - added -F/System/Library/Frameworks]
> LIBS =  -lpthread -F/System/Library/Frameworks -framework CoreFoundation $(X11_LIB_SWITCHES)  
> WISH_LIBS = $(TCL_LIB_SPEC)  -lpthread -F/System/Library/Frameworks -framework CoreFoundation $(X11_LIB_SWITCHES)   -sectcreate __TEXT __info_plist Wish-Info.plist
> #LIBS =  -lpthread -framework CoreFoundation $(X11_LIB_SWITCHES)  
> #WISH_LIBS = $(TCL_LIB_SPEC)  -lpthread -framework CoreFoundation $(X11_LIB_SWITCHES)   -sectcreate __TEXT __info_plist Wish-Info.plist
> # [jkp 20090402 - added -m]
<               $(WISH_LIBS) $(CC_SEARCH_FLAGS) -o wish
>               -m $(WISH_LIBS) $(CC_SEARCH_FLAGS) -o wish



Responsible-Changed-From-To: pkg-manager->darwin-pkg-people
Responsible-Changed-When: Sat, 16 May 2009 02:45:26 +0000
Problem on MacOS X 10.4.

Responsible-Changed-From-To: darwin-pkg-people->macos-pkg-people
Responsible-Changed-When: Wed, 07 Mar 2012 08:28:17 +0000
darwin-pkg-people has been changed to macos-pkg-people


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.