Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 109474
Status: open
Priority: 0/
Queue: Tk

People
Owner: Nobody in particular
Requestors: lserena [...] gmail.com
Cc:
AdminCc:

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



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
On 2015-11-23 05:41:43, lserena@gmail.com wrote: Show quoted text
> 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
Tk either picks the system libpng, or if missing, the bundled libpng. The system libpng is only used if the devel files are available, which does not seem to be the case on your system. So what you can try is to install the libpng-devel package, and retry compilation. For me it means to check if the bundled libpng can be updated to work also with RHEL 6.
On Sun Aug 27 04:28:17 2017, SREZIC wrote: Show quoted text
> On 2015-11-23 05:41:43, lserena@gmail.com wrote:
> > 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
> > Tk either picks the system libpng, or if missing, the bundled libpng. > The system libpng is only used if the devel files are available, which > does not seem to be the case on your system. So what you can try is to > install the libpng-devel package, and retry compilation. > > For me it means to check if the bundled libpng can be updated to work > also with RHEL 6.
I got the same error on Ubuntu 18.04. It appears to be failing while building the bundled libpng make[2]: Entering directory '/home/khw/.cpanm/work/1530989855.25819/Tk-804.034/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+0xb1f): undefined reference to `png_mmx_support' libpng.a(pngread.o): In function `png_read_row': pngread.c:(.text+0x10ed): undefined reference to `png_combine_row' pngread.c:(.text+0x1111): undefined reference to `png_combine_row' pngread.c:(.text+0x11c6): undefined reference to `png_combine_row' pngread.c:(.text+0x11e0): undefined reference to `png_combine_row' pngread.c:(.text+0x122b): undefined reference to `png_read_filter_row' pngread.c:(.text+0x125f): undefined reference to `png_do_read_interlace' pngread.c:(.text+0x12ae): undefined reference to `png_combine_row' pngread.c:(.text+0x12ef): undefined reference to `png_combine_row' pngread.c:(.text+0x1323): undefined reference to `png_combine_row' pngread.c:(.text+0x1357): undefined reference to `png_combine_row' pngread.c:(.text+0x1396): undefined reference to `png_combine_row' libpng.a(pngread.o):pngread.c:(.text+0x13d0): more undefined references to `png_combine_row' follow collect2: error: ld returned 1 exit status Makefile:58: recipe for target 'pngtest' failed make[2]: *** [pngtest] Error 1 make[2]: Leaving directory '/home/khw/.cpanm/work/1530989855.25819/Tk-804.034/PNG/libpng' Makefile:517: recipe for target 'subdirs' failed make[1]: *** [subdirs] Error 2 make[1]: Leaving directory '/home/khw/.cpanm/work/1530989855.25819/Tk-804.034/PNG' Makefile:747: recipe for target 'subdirs' failed make: *** [subdirs] Error 2 I then tried to install the libpng-devel, as you suggest: 1218 § sudo apt-get install libpng-devel [sudo] password for khw: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libpng-devel
On Sat Jul 07 13:21:10 2018, khw wrote: Show quoted text
> On Sun Aug 27 04:28:17 2017, SREZIC wrote:
> > On 2015-11-23 05:41:43, lserena@gmail.com wrote:
> > > 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
> > > > Tk either picks the system libpng, or if missing, the bundled libpng. > > The system libpng is only used if the devel files are available, > > which > > does not seem to be the case on your system. So what you can try is > > to > > install the libpng-devel package, and retry compilation. > > > > For me it means to check if the bundled libpng can be updated to work > > also with RHEL 6.
> > I got the same error on Ubuntu 18.04. It appears to be failing while > building the bundled libpng > > make[2]: Entering directory > '/home/khw/.cpanm/work/1530989855.25819/Tk-804.034/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+0xb1f): undefined reference to `png_mmx_support' > libpng.a(pngread.o): In function `png_read_row': > pngread.c:(.text+0x10ed): undefined reference to `png_combine_row' > pngread.c:(.text+0x1111): undefined reference to `png_combine_row' > pngread.c:(.text+0x11c6): undefined reference to `png_combine_row' > pngread.c:(.text+0x11e0): undefined reference to `png_combine_row' > pngread.c:(.text+0x122b): undefined reference to `png_read_filter_row' > pngread.c:(.text+0x125f): undefined reference to > `png_do_read_interlace' > pngread.c:(.text+0x12ae): undefined reference to `png_combine_row' > pngread.c:(.text+0x12ef): undefined reference to `png_combine_row' > pngread.c:(.text+0x1323): undefined reference to `png_combine_row' > pngread.c:(.text+0x1357): undefined reference to `png_combine_row' > pngread.c:(.text+0x1396): undefined reference to `png_combine_row' > libpng.a(pngread.o):pngread.c:(.text+0x13d0): more undefined > references to `png_combine_row' follow > collect2: error: ld returned 1 exit status > Makefile:58: recipe for target 'pngtest' failed > make[2]: *** [pngtest] Error 1 > make[2]: Leaving directory '/home/khw/.cpanm/work/1530989855.25819/Tk- > 804.034/PNG/libpng' > Makefile:517: recipe for target 'subdirs' failed > make[1]: *** [subdirs] Error 2 > make[1]: Leaving directory '/home/khw/.cpanm/work/1530989855.25819/Tk- > 804.034/PNG' > Makefile:747: recipe for target 'subdirs' failed > make: *** [subdirs] Error 2 > > I then tried to install the libpng-devel, as you suggest: > > 1218 § sudo apt-get install libpng-devel > [sudo] password for khw: > Reading package lists... Done > Building dependency tree > Reading state information... Done > E: Unable to locate package libpng-devel
James Keenan suggested that the name is "libpng-dev", and I tried that, and it worked. It still does not explain why the bundled version is not compiling.