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.