Subject: | Compile issues with Mac OSX Yosemite |
Date: | Fri, 7 Nov 2014 08:01:01 -0500 |
To: | bug-Tk [...] rt.cpan.org |
From: | Gregory Wagner <rengawg [...] cfl.rr.com> |
Hello,
I upgraded to Mac OSX Yosemite yesterday and discovered that the install
blew away the Perl Tk.pm I compiled a couple of years ago. I downloaded
Tk-804.032.tar.gz to recompile and ran into the following issues:
# Perl version
% perl -v
...
This is perl 5, version 18, subversion 2 (v5.18.2) built for
darwin-thread-multi-2level (with 2 registered patches, see
perl -V for more detail)
...
# Operating system
% uname -a
...
Darwin Gregory-Wagners-MacBook-Pro.local 14.0.0 Darwin Kernel
Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014;
root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
# Start Tk-804.032 install
# No errors for this.
% perl Makefile.PL X11INC=/Developer/SDKs/MacOSX10.6.sdk/usr/X11R6/include
# Error(s) for `make`.
% make
...
ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o
trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
ar: libz.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
ar: libz.a: Inappropriate file type or format
make[2]: *** [libz.a] Error 1
make[1]: *** [zlib/libz.a] Error 2
make: *** [subdirs] Error 2
# libz.a compiled OK after I changed the following:
% vi ./PNG/zlib/Makefile
...
AR=ar rc
AR=/usr/bin/ar -r ## redefine AR
# No `make` error(s) after above mod.
% make
# Error(s) for `make test`.
% make test
...
Strange: could not load Tk library: Can't load
'/Users/gwagner/src/perl/Tk/Tk-804.032/blib/arch/auto/Tk/Tk.bundle'
for module Tk: dlopen(
/Users/gwagner/src/perl/Tk/Tk-804.032/blib/arch/auto/Tk/Tk.bundle, 1):
Symbol not found: _XAllocClassHint
Referenced from:
/Users/gwagner/src/perl/Tk/Tk-804.032/blib/arch/auto//Tk/Tk.bundle
Expected in: flat namespace in
/Users/gwagner/src/perl/Tk/Tk-804.032/blib/arch/auto/Tk/Tk.bundle at
/System/Library/Perl/5.18/darwin-thread-multi-2level/DynaLoader.pm
line 194. at (eval 4) line 3.
Compilation failed in require at (eval 4) line 3.
BEGIN failed--compilation aborted at (eval 4) line 3.
make: *** [test_dynamic] Error 255
% file /Users/gwagner/src/perl/Tk/Tk-804.032/blib/arch/auto/Tk/Tk.bundle
...
/Users/gwagner/src/perl/Tk/Tk-804.032/blib/arch/auto/Tk/Tk.bundle:
Mach-O universal binary with 2 architectures
/Users/gwagner/src/perl/Tk/Tk-804.032/blib/arch/auto/Tk/Tk.bundle
(for architecture x86_64): Mach-O 64-bit bundle x86_64
/Users/gwagner/src/perl/Tk/Tk-804.032/blib/arch/auto/Tk/Tk.bundle
(for architecture i386): Mach-O bundle i386
__END__
gwagner