[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: [msbREMOVE-THIS@winterdrache.de: Re: [png-implement] -lz and -lm]

You see the final statement :) It's funny :)

----- Forwarded message from "Matthias B." <msbREMOVE-THIS@winterdrache.de> -----

Date: Mon, 23 Aug 2004 16:45:30 +0200
From: "Matthias B." <msbREMOVE-THIS@winterdrache.de>
To: png-implement@ccrc.wustl.edu
Cc: clock@twibright.com
Subject: Re: [png-implement] -lz and -lm
In-Reply-To: <20040823075840.GA15692@beton.cybernet.src>
X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i586-pc-linux-gnu)
X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:95d11223a40b7ac6df081cef1fe1fef2
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on beton.cybernet.src
X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham 

On Mon, 23 Aug 2004 07:58:40 +0000 Karel Kulhavý <clock@twibright.com>

> [non-member submission]
> Hello
> I had problems compiling application "gerbv" and it showed it's
> allegedly caused by libpng.so not asking for linking also zlib and -lm:
> clock@beton:~/libpng-1.2.6$ ldd ./libpng12.so
>         libc.so.6 => /lib/libc.so.6 (0x4003d000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> On an allegedly correct system it should look like this:
> clock@vagabond:~$ ldd /usr/lib/libpng.so
>                 libz.so.1 => /usr/lib/libz.so.1 (0x40039000)
>         libm.so.6 => /lib/tls/libm.so.6 (0x4004a000)
>         libc.so.6 => /lib/tls/libc.so.6 (0x4006e000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> I would like to know which version is correct. I got the first result by
> following README during installation of libpng-1.2.6.

Yes, it's been decided at some point in the past that libpng should not be
linked against libm and libz. This decision was controversial from the
beginning and several distributors of libpng have patched it to continue
linking against libm and libz. The decision is being re-evaluated and I
hope that libpng 1.2.7 will again link against libm and libz by default.
In the meantime you can use the following patch. Apply it and recompile



I used to be sane, but I got better.

----- End forwarded message -----