Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 58011
Status: resolved
Priority: 0/
Queue: Tk

People
Owner: Nobody in particular
Requestors: steve.baldwin [...] gmail.com
f.garillot [...] free.fr
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 804.029_500



Subject: Building on OS/X 10.6
Date: Tue, 1 Jun 2010 17:57:28 +1000
To: bug-Tk [...] rt.cpan.org
From: Steve Baldwin <steve.baldwin [...] gmail.com>
Hi, Is the current release of Tk known to build on OS/X 10.6? I am getting an error on the 'make' step. I have attached output from : perl Makefile.PL (build-tk-1.log) make (build-tk-2.log) perl -V (perl-V.log) If Tk is known to build, could you please have a look at the output and tell me what I've screwed up? Thanks a lot. Steve
Download build-tk-1.log
application/octet-stream 21.2k

Message body not shown because it is not plain text.

Download build-tk-2.log
application/octet-stream 127.9k

Message body not shown because it is not plain text.

Download perl-V.log
application/octet-stream 2.8k

Message body not shown because it is not plain text.

From: jon [...] spotspace.net
Hi Steve, I had the same exact error on OS X (10.6.3). I found a post which suggested to install these binaries: http://ethan.tira-thompson.org/Mac_OS_X_Ports.html. Once I did, the make passed just fine. HTH
Hi all! I tried to install Tk on OSX 10.6.4 and had some errors, too. Log is attached. hth, Alex
Subject: tk_install_log.txt

Message body is not shown because it is too large.

Subject: Re: [rt.cpan.org #58011] Building on OS/X 10.6
Date: Sun, 18 Jul 2010 10:47:49 +0200
To: bug-Tk [...] rt.cpan.org
From: Slaven Rezic <slaven [...] rezic.de>
On Thu, 2010-07-15 at 05:03 -0400, Alexander Becker via RT wrote: Show quoted text
> Queue: Tk > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=58011 > > > Hi all! > > I tried to install Tk on OSX 10.6.4 and had some errors, too. > Log is attached. >
Hello Alexander, can you send me the contents of the generated Makefile? Regards, Slaven
RT-Send-CC: slaven [...] rezic.de
Hi Slaven, attached you will find the generated Makefile. hth, Alex Am So 18. Jul 2010, 04:48:01, slaven@rezic.de schrieb: Show quoted text
> On Thu, 2010-07-15 at 05:03 -0400, Alexander Becker via RT wrote:
> > Queue: Tk > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=58011 > > > > > Hi all! > > > > I tried to install Tk on OSX 10.6.4 and had some errors, too. > > Log is attached. > >
> > Hello Alexander, > > can you send me the contents of the generated Makefile? > > Regards, > Slaven > >
Subject: Makefile
Download Makefile
application/octet-stream 60.7k

Message body not shown because it is not plain text.

Subject: Tk Build fails under MacOS 10.6.4
Latest Tk804.029 retrieved from cpan make fails with: <quote> mkdir .libs gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG - DPNG_NO_ASSEMBLER_CODE -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common - DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -MT libpng12_la-png.lo -MD -MP - MF .deps/libpng12_la-png.Tpo -c png.c -fno-common -DPIC -o .libs/libpng12_la-png.o gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags make[3]: *** [libpng12_la-png.lo] Error 1 make[2]: *** [all] Error 2 make[1]: *** [libpng/libpng.a] Error 2 make: *** [subdirs] Error 2 </quote> attach files reflect the output of the commands you can expect from their filenames, launched from the build dir: perl makefile.PL -> makefile.pl.txt (succeeds) make -> make.txt (fails with above error) home:build huitseeker$ uname -a Darwin home.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386 home:build huitseeker$ perl -v This is perl, v5.10.0 built for darwin-thread-multi-2level (with 2 registered patches, see perl -V for more detail) Selected lines from perl -V: Linker and Libraries: ld='gcc-4.2 -mmacosx-version-min=10.6.3', ldflags ='-arch x86_64 -arch i386 -arch ppc -L/usr/local/lib Locally applied patches: /Library/Perl/Updates/<version> comes before system perl directories installprivlib and installarchlib points to the Updates directory
Subject: make.txt

Message body is not shown because it is too large.

From: f.garillot [...] free.fr
Adding makefile.pl.txt
Subject: makefile.pl.txt

Message body is not shown because it is too large.

On 2010-09-26 08:37:15, huitseeker wrote: Show quoted text
> Adding makefile.pl.txt
Can you re-run it with the VERBOSE option, i.e. perl Makefile.PL VERBOSE=1 and send me the log again? Do you have a native libpng with include headers already installed? Regards, Slaven
I believe the compile issue on MacOSX 10.6.4 should be solved with the attached patch. Can you try it out? Just save the patch file somewhere and execute patch -p1 < /path/to/libpng.patch from the Tk root directory and rerun Makefile.PL and make. Regards, Slaven
Subject: libpng.patch
commit 6562d71b0407d886897f7f751a34db6886b168a8 Author: Slaven Rezic <slaven@rezic.de> Date: Mon Sep 27 23:13:16 2010 +0200 * compiling libpng with MacOSX 10.6.4 did not work (RT #58011) Error message was: gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags Removing multiple -arch options seems to workaround the problem. But note that the resulting object is not anymore universal! diff --git a/PNG/Makefile.libpng.maybe b/PNG/Makefile.libpng.maybe index 638ded8..d8cdfb6 100755 --- a/PNG/Makefile.libpng.maybe +++ b/PNG/Makefile.libpng.maybe @@ -80,6 +80,9 @@ sub try_configure { local $ENV{CC} = $Config{cc}; local $ENV{CFLAGS} = "$Config{ccflags} $Config{cccdlflags}"; + if ($^O eq 'darwin' && $ENV{CFLAGS} =~ m{-arch .*-arch }) { # multiple architectures not supported --- at least MacOSX is affected + $ENV{CFLAGS} =~ s{-arch \S+}{}g; + } system(sh => "./configure"); open my $fh, ">> Makefile" or die "Can't write to Makefile: $!"; print $fh <<'EOF';
From: stanleylab [...] gmail.com
Hi Slaven, I had same error messages before. After adding the patch you attached, I got new error messages: gcc-4.2 -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -DUSE_MMAP -c -o inffast.o inffast.c 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 Could you take a look at it when you get a chance? Thanks a lot MM On Mon Sep 27 17:18:09 2010, SREZIC wrote: Show quoted text
> I believe the compile issue on MacOSX 10.6.4 should be solved with the > attached patch. Can you try it out? Just save the patch file somewhere > and execute > > patch -p1 < /path/to/libpng.patch > > from the Tk root directory and rerun Makefile.PL and make. > > Regards, > Slaven
From: brad [...] facefault.org
The patch works for me on 10.6.4.
From: f.garillot [...] free.fr
Sorry for the very late answer (to the point that it's probably useless, now). I've been away from my Mac lately. On Sun Sep 26 14:48:19 2010, SREZIC wrote: Show quoted text
> Do you have a native libpng with include headers already installed?
As provided by Xcode, I believe so, yes.
Subject: makefile.pl.txt
Subject: make.txt
Btw, patch works for on 10.6.6, too.