Current BE-LFS (but w/ GCC 3.3.3) merged -> 6.0 branch
[linux_from_scratch.git] / FAQ-OBSOLETE / xfree-png-lz.xml
blobe37aebfaf868ba82c918bd54c573f968d8837f6c
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'
5 rm -f 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
12 to `deflate'
13 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
14 to `inflate'
15 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
16 to `inflateInit_'
17 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
18 to `crc32'
19 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
20 to `deflateInit2_'
21 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
22 to `inflateReset'
23 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
24 to `deflateReset'
25 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
26 to `inflateEnd'
27 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
28 to `deflateEnd'
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
37 </screen>
38 Then refer to the <link linkend="undefined-deflate">general entry</link>
39 for this issue.
40 </para></answer>
41 </qandaentry>