pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/41163: Problem building 2008Q4 tk8.4 on PowerPC Mac OS X Tiger 10.4 (with fix)
>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: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 07 00:15:00 +0000 2009
>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
Home |
Main Index |
Thread Index |
Old Index