Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: jay.st.pierre [...] colorado.edu
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in:
  • 804.028
  • 804.028_501
Fixed in: (no value)



Subject: build failure on IRIX64
When compiling the PNG subdirectory of the Tk distribution on IRIX64 using gcc-4.3.2, the compilation fails with: gcc -fpic -s -L../zlib -o pngtest pngtest.o libpng.a -lz -lm ld32: FATAL 12 : Expecting 32-bit objects: ../zlib/libz.a is 64-bit. The PNG/zlib subdirectory gets built with compiler invocations like: gcc -fpic -D_BSD_TYPES -D_BSD_TIME -mabi=64 -fno-strict-aliasing -pipe -Wdeclaration-after-statement -DLANGUAGE_C -fpic -DUSE_MMAP -c -o inffast.o inffast.c But the PNG/libpng subdirectory gets built with compiler invocations like: gcc -fpic -c -Wall -O2 -I../zlib pngwutil.c Note that I tried both the 804.028 and 804.028_501 releases. In fact, it appears everything up to the point of compiling the PNG/libpng subdirectory uses the -mabi=64 switch.
On Mon Nov 10 16:25:22 2008, stpierre wrote: Show quoted text
> When compiling the PNG subdirectory of the Tk distribution on IRIX64 > using gcc-4.3.2, the compilation fails with: > > gcc -fpic -s -L../zlib -o pngtest pngtest.o libpng.a -lz -lm > ld32: FATAL 12 : Expecting 32-bit objects: ../zlib/libz.a is 64-bit. > > The PNG/zlib subdirectory gets built with compiler invocations like: > > gcc -fpic -D_BSD_TYPES -D_BSD_TIME -mabi=64 -fno-strict-aliasing -pipe > -Wdeclaration-after-statement -DLANGUAGE_C -fpic -DUSE_MMAP -c -o > inffast.o inffast.c > > But the PNG/libpng subdirectory gets built with compiler invocations like: > > gcc -fpic -c -Wall -O2 -I../zlib pngwutil.c > > Note that I tried both the 804.028 and 804.028_501 releases. > > In fact, it appears everything up to the point of compiling the > PNG/libpng subdirectory uses the -mabi=64 switch.
Can you make a change PNG/Makefile.libpng.maybe? Just change the last condition, which reads if ($^O eq 'darwin' || $Config{'archname'} =~ m{^amd64-freebsd($|-.*)} || $Config{'archname'} =~ m{^sun4-solaris($|-.*)} ) to if (1) and try to make again. If this is successful, then send me the output of perl -V:archname and I will include support for IRIX64. Regards, Slaven
From: jay.st.pierre [...] colorado.edu
On Mon Nov 10 17:03:14 2008, SREZIC wrote: Show quoted text
> Can you make a change PNG/Makefile.libpng.maybe? Just change the last > condition, which reads > > if ($^O eq 'darwin' || > $Config{'archname'} =~ m{^amd64-freebsd($|-.*)} || > $Config{'archname'} =~ m{^sun4-solaris($|-.*)} > ) > > to > > if (1) > > and try to make again. > > If this is successful, then send me the output of > > perl -V:archname > > and I will include support for IRIX64.
I untarred a fresh tree from the 501 tarball and made your suggested modification. Now it terminates with: gcc -shared -mabi=64 -L/usr/lib64 -L/usr/local/lib PNG.o imgPNG.o -o ../blib/arch/auto/Tk/PNG/PNG.so libpng/libpng.a zlib/libz.a \ -lm \ ld64: FATAL 12 : Expecting 64-bit objects: libpng/libpng.a is 32-bit. -Jay
On Wed Nov 12 18:03:09 2008, stpierre wrote: Show quoted text
> On Mon Nov 10 17:03:14 2008, SREZIC wrote: >
> > Can you make a change PNG/Makefile.libpng.maybe? Just change the last > > condition, which reads > > > > if ($^O eq 'darwin' || > > $Config{'archname'} =~ m{^amd64-freebsd($|-.*)} || > > $Config{'archname'} =~ m{^sun4-solaris($|-.*)} > > ) > > > > to > > > > if (1) > > > > and try to make again. > > > > If this is successful, then send me the output of > > > > perl -V:archname > > > > and I will include support for IRIX64.
> > I untarred a fresh tree from the 501 tarball and made your suggested > modification. Now it terminates with: > > gcc -shared -mabi=64 -L/usr/lib64 -L/usr/local/lib PNG.o imgPNG.o -o > ../blib/arch/auto/Tk/PNG/PNG.so libpng/libpng.a zlib/libz.a \ > -lm \ > > ld64: FATAL 12 : Expecting 64-bit objects: libpng/libpng.a is 32-bit. >
OK, next try. This time I attached the changed PNG/Makefile.libpng.maybe. Don't forget to send me the output of perl -V:archname Regards, Slaven
Download Makefile.libpng.maybe
application/octet-stream 1.8k

Message body not shown because it is not plain text.

From: jay.st.pierre [...] colorado.edu
On Fri Nov 14 16:00:49 2008, SREZIC wrote: Show quoted text
> OK, next try. This time I attached the changed > PNG/Makefile.libpng.maybe. Don't forget to send me the output of perl > -V:archname
Yes, that worked. And a "make test" passed all tests. $ perl -V:archname archname='IP35-irix'; I also tried the fix on a sun4-solaris box (Solaris 9) and it worked fine there too, with "make test" passing all tests too. Thanks. -Jay
Fixed in forthcoming Tk-804.028_502 release.