NetBSD Problem Report #41163

From www@NetBSD.org  Tue Apr  7 00:12:45 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 61B9363B8C8
	for <gnats-bugs@gnats.netbsd.org>; Tue,  7 Apr 2009 00:12:45 +0000 (UTC)
Message-Id: <20090407001245.0128463B8A5@www.NetBSD.org>
Date: Tue,  7 Apr 2009 00:12:44 +0000 (UTC)
From: mun3ch@gmail.com
Reply-To: mun3ch@gmail.com
To: gnats-bugs@NetBSD.org
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
>Organization:
>Environment:
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
>Description:
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) 
executed.

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

The multiply defined symbols were:

_Tcl_InitStubs
_tclIntPlatStubsPtr
_tclIntStubsPtr
_tclPlatStubsPtr
_tclStubsPtr



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.

>How-To-Repeat:
On PowerPC with Mac OS 10.4:

cd pkgsrc/x11/tk
bmake package

>Fix:
diff unix/Makefile{.orig,.modified}
258,259c258,262
< 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
528c531
< 
---
> # [jkp 20090402 - added -m]
531c534
<               $(WISH_LIBS) $(CC_SEARCH_FLAGS) -o wish
---
>               -m $(WISH_LIBS) $(CC_SEARCH_FLAGS) -o wish

>Release-Note:

>Audit-Trail:

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


Responsible-Changed-From-To: darwin-pkg-people->macos-pkg-people
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Wed, 07 Mar 2012 08:28:17 +0000
Responsible-Changed-Why:
darwin-pkg-people has been changed to macos-pkg-people


>Unformatted:

NetBSD Home
NetBSD PR Database Search

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