Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unable to install Tk-804.028

583 views
Skip to first unread message

Thomas Martin Widmann

unread,
Mar 26, 2008, 6:31:30 PM3/26/08
to
Hi there,

I just tried to install Tk, but I got some errors from pngread.c:

make[2]: Entering directory `/home/viralbus/Tk-804.028/PNG/libpng'
cc -fPIC -c -Wall -O2 -I../zlib pngtest.c
cc -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+0xb55): undefined reference to `png_combine_row'
pngread.c:(.text+0xb7b): undefined reference to `png_combine_row'
pngread.c:(.text+0xc08): undefined reference to `png_combine_row'
pngread.c:(.text+0xc21): undefined reference to `png_combine_row'
pngread.c:(.text+0xc53): undefined reference to `png_read_filter_row'
pngread.c:(.text+0xc8e): undefined reference to `png_do_read_interlace'
pngread.c:(.text+0xcd6): undefined reference to `png_combine_row'
collect2: ld returned 1 exit status
make[2]: *** [pngtest] Error 1
make[2]: Leaving directory `/home/viralbus/Tk-804.028/PNG/libpng'

I'm using Perl v5.10.0 built for x86_64-linux-thread-multi.

Based on a quick Google search, I'm wondering whether it's the fact I'm
using 64-bit Linux that is causing problems. I couldn't find anything
directly related to Perl/Tk, though.

Any help would be appreciated!

Thanks,

Thomas
--
Thomas Widmann tw...@bibulus.org http://twid.bibulus.org
27 Kinloch Road, Newton Mearns, Glasgow G77 6LY, Scotland, EU

gle...@gmail.com

unread,
Mar 27, 2008, 4:32:23 PM3/27/08
to
On Mar 26, 6:31 pm, Thomas Martin Widmann <t...@bibulus.org> wrote:
> Hi there,
>
> I just tried to install Tk, but I got some errors from pngread.c:

Upgrade libpng to a more recent version. The troublesome MMX stuff
has been gone since libpng-1.2.20 (current version is 1.2.25).

Thomas Martin Widmann

unread,
Mar 27, 2008, 6:02:33 PM3/27/08
to

Thanks, that worked. I'm using Ubuntu, btw -- funny that it comes with
such as old libpng (1.2.15).

Cheers,

Damian

unread,
Mar 28, 2014, 9:29:52 PM3/28/14
to
sudo apt-get install libpng-dev

is what just worked for me on an AWS instance of ubuntu 12.04 and probably will work for other debian systems as well...

Note: First I had to uncover another problem pertaining to an x11 lib which required me to do:
sudo apt-get install libx11-dev
0 new messages