Subject: | Error building Tk on RHEL 6.6 |
Date: | Mon, 23 Nov 2015 10:41:13 +0000 |
To: | bug-Tk [...] rt.cpan.org |
From: | Loris Serena <lserena [...] gmail.com> |
Hi guys,
I'm trying to install Tk-804.033 on a RHEL 6.6 x64 box.
perl Makefile.PL completes ok.
make ends with:
<snip>
gcc -fPIC -c -Wall -O2 -I../zlib pngset.c
gcc -fPIC -c -Wall -O2 -I../zlib pngtrans.c
gcc -fPIC -c -Wall -O2 -I../zlib pngwio.c
gcc -fPIC -c -Wall -O2 -I../zlib pngwrite.c
gcc -fPIC -c -Wall -O2 -I../zlib pngwtran.c
gcc -fPIC -c -Wall -O2 -I../zlib pngwutil.c
ar rcs libpng.a png.o pngerror.o pngget.o pngmem.o pngpread.o pngread.o
pngrio.o pngrtran.o pngrutil.o pngset.o pngtrans.o pngwio.o pngwrite.o
pngwtran.o pngwutil.o
: libpng.a
make[2]: Leaving directory `/home/lserena/Tk-804.033/PNG/libpng'
make[2]: Entering directory `/home/lserena/Tk-804.033/PNG/libpng'
gcc -fPIC -c -Wall -O2 -I../zlib pngtest.c
gcc -fPIC -s -L../zlib -o pngtest pngtest.o libpng.a -lz -lm
libpng.a(png.o): In function `png_init_mmx_flags':
png.c:(.text+0x8f): undefined reference to `png_mmx_support'
libpng.a(pngread.o): In function `png_read_row':
pngread.c:(.text+0xc61): undefined reference to `png_combine_row'
pngread.c:(.text+0xc87): undefined reference to `png_combine_row'
pngread.c:(.text+0xd16): undefined reference to `png_combine_row'
pngread.c:(.text+0xd2f): undefined reference to `png_combine_row'
pngread.c:(.text+0xd63): undefined reference to `png_read_filter_row'
pngread.c:(.text+0xd8b): undefined reference to `png_do_read_interlace'
pngread.c:(.text+0xdde): undefined reference to `png_combine_row'
pngread.c:(.text+0xe2a): undefined reference to `png_combine_row'
pngread.c:(.text+0xe5d): undefined reference to `png_combine_row'
pngread.c:(.text+0xe9f): undefined reference to `png_combine_row'
pngread.c:(.text+0xed9): undefined reference to `png_combine_row'
libpng.a(pngread.o):pngread.c:(.text+0xf08): more undefined references to
`png_combine_row' follow
collect2: ld returned 1 exit status
make[2]: *** [pngtest] Error 1
make[2]: Leaving directory `/home/lserena/Tk-804.033/PNG/libpng'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/home/lserena/Tk-804.033/PNG'
make: *** [subdirs] Error 2
make test ends with:
<snip>
make[1]: Leaving directory `/home/lserena/Tk-804.033/TList'
make[1]: Entering directory `/home/lserena/Tk-804.033/Scrollbar'
make[1]: Leaving directory `/home/lserena/Tk-804.033/Scrollbar'
make[1]: Entering directory `/home/lserena/Tk-804.033/Scale'
make[1]: Leaving directory `/home/lserena/Tk-804.033/Scale'
make[1]: Entering directory `/home/lserena/Tk-804.033/PNG'
cd zlib && make libz.a "CC=gcc -fPIC" RANLIB=":"
make[2]: Entering directory `/home/lserena/Tk-804.033/PNG/zlib'
make[2]: `libz.a' is up to date.
make[2]: Leaving directory `/home/lserena/Tk-804.033/PNG/zlib'
make[2]: Entering directory `/home/lserena/Tk-804.033/PNG/libpng'
gcc -fPIC -s -L../zlib -o pngtest pngtest.o libpng.a -lz -lm
libpng.a(png.o): In function `png_init_mmx_flags':
png.c:(.text+0x8f): undefined reference to `png_mmx_support'
libpng.a(pngread.o): In function `png_read_row':
pngread.c:(.text+0xc61): undefined reference to `png_combine_row'
pngread.c:(.text+0xc87): undefined reference to `png_combine_row'
pngread.c:(.text+0xd16): undefined reference to `png_combine_row'
pngread.c:(.text+0xd2f): undefined reference to `png_combine_row'
pngread.c:(.text+0xd63): undefined reference to `png_read_filter_row'
pngread.c:(.text+0xd8b): undefined reference to `png_do_read_interlace'
pngread.c:(.text+0xdde): undefined reference to `png_combine_row'
pngread.c:(.text+0xe2a): undefined reference to `png_combine_row'
pngread.c:(.text+0xe5d): undefined reference to `png_combine_row'
pngread.c:(.text+0xe9f): undefined reference to `png_combine_row'
pngread.c:(.text+0xed9): undefined reference to `png_combine_row'
libpng.a(pngread.o):pngread.c:(.text+0xf08): more undefined references to
`png_combine_row' follow
collect2: ld returned 1 exit status
make[2]: *** [pngtest] Error 1
make[2]: Leaving directory `/home/lserena/Tk-804.033/PNG/libpng'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/home/lserena/Tk-804.033/PNG'
make: *** [subdirs] Error 2
The only png packages I have installed is:
yum list installed | grep -i png
libpng.x86_64 2:1.2.49-1.el6_2
@rhel-x86_64-server-6
So... what am I missing here?
Please advise
Thanks a mill
Loris