[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Pilot link
On Fri, 2008-03-21 at 00:16 +0200, Peter Slegg wrote:
> The pilot-link build now gets as far this:
>
> make[3]: Entering directory `/i/usr/src/pilot-link-0.12.3/src'
> /bin/sh ../libtool --tag=CC --mode=link gcc -g2 -Wall -o pilot-read-notepad
> pilot-read-notepad.o libpiuserland.la ../popt/libpopt.la -lpng ../libpisock/libpisock.la -lsocket
> gcc -g2 -Wall -o pilot-read-notepad pilot-read-notepad.o ./.libs/libpiuserland.a
> ../popt/.libs/libpopt.a -lpng ../libpisock/.libs/libpisock.a -lsocket
>
> /usr/lib/libpng.a(pngwrite.o)(.text+0x1012): undefined reference to `deflate'
> /usr/lib/libpng.a(pngwrite.o)(.text+0x114e): undefined reference to `deflateEnd'
> /usr/lib/libpng.a(png.o)(.text+0x2d0): undefined reference to `crc32'
> /usr/lib/libpng.a(png.o)(.text+0x326): undefined reference to `crc32'
> /usr/lib/libpng.a(png.o)(.text+0xad4): undefined reference to `inflateReset'
> /usr/lib/libpng.a(pngwutil.o)(.text+0x27e): undefined reference to `deflate'
> /usr/lib/libpng.a(pngwutil.o)(.text+0x267a): undefined reference to `deflate'
> /usr/lib/libpng.a(pngwutil.o)(.text+0x34a6): undefined reference to `deflate'
> /usr/lib/libpng.a(pngwutil.o)(.text+0x51e): undefined reference to `deflateReset'
> /usr/lib/libpng.a(pngwutil.o)(.text+0x94a): undefined reference to `deflateInit2_'
> /usr/lib/libpng.a(pngwutil.o)(.text+0x26fa): undefined reference to `deflateReset'
> collect2: ld returned 1 exit status
> make[3]: *** [pilot-read-notepad] Error 1
>
> I thought these were missing functions in libpng but J-F says they are
> functions from the zlib compression library, needed by libpng.
>
> The Sparemint libs don't look very old. Could the error be caused by a missing
> include in the jpilot code ?
Looks like that compilation line is missing "-lz" to link the zlib
library.
Alan.