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)



MIME-Version: 1.0
X-Spam-Status: No, score=-2.698 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
X-Spam-Flag: NO
X-Virus-Checked: Checked
Content-Type: multipart/alternative; boundary="001a114764d25679e4052532ded3"
Message-ID: <CAH7iQYPtCrr0EMJqG0ofrbx-KNHats9zd4QOkQ+khTQVHLJVBA [...] mail.gmail.com>
X-Received: by 10.55.18.40 with SMTP id c40mr25292966qkh.99.1448275292345; Mon, 23 Nov 2015 02:41:32 -0800 (PST)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -2.698
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id B661224020E for <cpan-bug+Tk [...] hipster.bestpractical.com>; Mon, 23 Nov 2015 05:41:41 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j42U1UPcTtYm for <cpan-bug+Tk [...] hipster.bestpractical.com>; Mon, 23 Nov 2015 05:41:39 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 353402400A8 for <bug-Tk [...] rt.cpan.org>; Mon, 23 Nov 2015 05:41:39 -0500 (EST)
Received: (qmail 5979 invoked by alias); 23 Nov 2015 10:41:39 -0000
Received: from mail-qk0-f173.google.com (HELO mail-qk0-f173.google.com) (209.85.220.173) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 23 Nov 2015 02:41:36 -0800
Received: by qkda6 with SMTP id a6so57365895qkd.3 for <bug-Tk [...] rt.cpan.org>; Mon, 23 Nov 2015 02:41:32 -0800 (PST)
Received: by 10.55.49.73 with HTTP; Mon, 23 Nov 2015 02:41:13 -0800 (PST)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Delivered-To: cpan-bug+Tk [...] hipster.bestpractical.com
Subject: Error building Tk on RHEL 6.6
Return-Path: <lserena [...] gmail.com>
X-RT-Mail-Extension: tk
X-Original-To: cpan-bug+Tk [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=G3YLYE7ARm8ZhLPbpMqNgSTfNXlaJqiq0qdkREOrFU0=; b=RB7Cie2+ULA+vX5z9Rb4bN5x0dy4F8cq4mcOVSzfYxAGZ0+IM4S/DkUx+KHLwXMQTh 2xAEO3cTjCrAsFgCp+1hCGWnWXcyctopuJ4hoTFKOoKv/JZot3a30dBCDEnmKOS4fNZq oa4nsMbtV8MmK1VXS0Cia0xG90QnDYNsOptX+ofRuLmGXi3DlUjI4+N4+3Gp9PRPakhI BntPaldKN+g2G5NwMtUnBGgNEsDFIs2qNdDkSdCHS3BMwm8P1OuWOuwutKm/yLEVQKDo qX0gv0kyPo+yJahwg6zRmQspVAvXvBu5yqSkABbUGnBSLGvSUFfbvU0UmMPzbNvdSPmQ IXdg==
Date: Mon, 23 Nov 2015 10:41:13 +0000
X-Spam-Level:
To: bug-Tk [...] rt.cpan.org
From: Loris Serena <lserena [...] gmail.com>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 4239
Download (untitled) / with headers
text/plain 4.1k
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
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 4998
MIME-Version: 1.0
In-Reply-To: <CAH7iQYPtCrr0EMJqG0ofrbx-KNHats9zd4QOkQ+khTQVHLJVBA [...] mail.gmail.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CAH7iQYPtCrr0EMJqG0ofrbx-KNHats9zd4QOkQ+khTQVHLJVBA [...] mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-32643-1503829697-712.109474-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 4845
Download (untitled) / with headers
text/plain 4.7k
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.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-32643-1503829697-712.109474-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CAH7iQYPtCrr0EMJqG0ofrbx-KNHats9zd4QOkQ+khTQVHLJVBA [...] mail.gmail.com> <rt-4.0.18-32643-1503829697-712.109474-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-20560-1530991270-1967.109474-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 7094
Download (untitled) / with headers
text/plain 6.9k
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
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-20560-1530991270-1967.109474-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CAH7iQYPtCrr0EMJqG0ofrbx-KNHats9zd4QOkQ+khTQVHLJVBA [...] mail.gmail.com> <rt-4.0.18-32643-1503829697-712.109474-0-0 [...] rt.cpan.org> <rt-4.0.18-20560-1530991270-1967.109474-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-18246-1531021113-848.109474-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 7627
Download (untitled) / with headers
text/plain 7.4k
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.