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

Re: gEDA: Problems compiling gerbv: -lz, -lm



On Fri, Aug 20, 2004 at 08:23:45AM +0000, Karel Kulhavý wrote:
> I got numerous problems with missing -lz, -lm in addition to -lpng during compilation
> of gerbv-0.16

> configure:3716: gcc -o conftest -O2 -march=athlon-xp -fomit-frame-pointer -fstrength-reduce -fschedule-insns -I/home/clock/usr/include   conftest.c -lpng   >&5
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../libpng.so: undefined reference to `deflate'

That means your libpng is built wrong. It should link against libz
itself if it needs it, rather then depending on user applications to
provide that link.

> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../libpng.so: undefined reference to `deflateReset'

You only changed configure. You would need to change the makefiles also.

> I think the ./configure and make mechanism of gerbv must be broken somehow.

No, your libpng is broken.

Hamish
-- 
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>