1 <qandaentry id="xfree-png-lz">
2 <question><para>undefined reference to `deflate'</para></question>
3 <answer><para>If, when compiling XFree86, you get:
4 <screen>make[3]: Entering directory `/usr/src/xc/programs/xcursorgen'
6 gcc -m32 -o xcursorgen -O2 -fno-strength-reduce -fno-strict-aliasing -ansi
7 -pedantic -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
8 -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wundef
9 -L../../exports/lib xcursorgen.o -lXcursor -lXext -lX11 -lpng -lm
10 -Wl,-rpath-link,../../exports/lib
11 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
13 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
15 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
17 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
19 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
21 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
23 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
25 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
27 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
29 collect2: ld returned 1 exit status
30 make[3]: *** [xcursorgen] Error 1
31 make[3]: Leaving directory `/usr/src/xc/programs/xcursorgen'
32 make[2]: *** [install] Error 2
33 make[2]: Leaving directory `/usr/src/xc/programs'
34 make[1]: *** [install] Error 2
35 make[1]: Leaving directory `/usr/src/xc'
36 make: *** [install] Error 2
38 Then refer to the <link linkend="undefined-deflate">general entry</link>