cvs commit: LFS/FAQ xfree-png-lz.xml faq.xml listofentries.ent

sklein at linuxfromscratch.org sklein at linuxfromscratch.org
Thu Jan 23 22:09:10 PST 2003


sklein      03/01/24 01:09:10

  Modified:    FAQ      faq.xml listofentries.ent
  Added:       FAQ      xfree-png-lz.xml
  Log:
  For the error with libpng 1.2.5 and xfree86
  
  Revision  Changes    Path
  1.145     +1 -0      LFS/FAQ/faq.xml
  
  Index: faq.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/FAQ/faq.xml,v
  retrieving revision 1.144
  retrieving revision 1.145
  diff -u -r1.144 -r1.145
  --- faq.xml	22 Jan 2003 06:07:22 -0000	1.144
  +++ faq.xml	24 Jan 2003 06:09:10 -0000	1.145
  @@ -97,6 +97,7 @@
   		<qandadiv id="fee-compile-specific">
   				<title>Compile Time Errors From Specific Packages</title>
   			&conflicting-gethostname;
  +			&xfree-png-lz;
   			&no-linuxthreads;
   			&perl-missing-separator;
   			&unknown-pseudo-op-hidden;
  
  
  
  1.18      +1 -0      LFS/FAQ/listofentries.ent
  
  Index: listofentries.ent
  ===================================================================
  RCS file: /home/cvsroot/LFS/FAQ/listofentries.ent,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- listofentries.ent	22 Jan 2003 06:07:22 -0000	1.17
  +++ listofentries.ent	24 Jan 2003 06:09:10 -0000	1.18
  @@ -62,3 +62,4 @@
   <!ENTITY why-not-package-management SYSTEM "why-not-package-management.xml">
   <!ENTITY why-not-new-lilo SYSTEM "why-not-new-lilo.xml">
   <!ENTITY why-vim SYSTEM "why-vim.xml">
  +<!ENTITY xfree-png-lz SYSTEM "xfree-png-lz.xml">
  
  
  
  1.1                  LFS/FAQ/xfree-png-lz.xml
  
  Index: xfree-png-lz.xml
  ===================================================================
  <qandaentry id="xfree-png-lz">
  <question><para>undefined reference to `deflate'</para></question>
  <answer><para>If, when compiling XFree86, you get:
  <screen>make[3]: Entering directory `/usr/src/xc/programs/xcursorgen'
  rm -f xcursorgen
  gcc -m32 -o xcursorgen -O2 -fno-strength-reduce -fno-strict-aliasing -ansi
  -pedantic -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
  -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wundef
  -L../../exports/lib   xcursorgen.o -lXcursor -lXext -lX11 -lpng -lm
  -Wl,-rpath-link,../../exports/lib
  /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
  to `deflate'
  /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
  to `inflate'
  /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
  to `inflateInit_'
  /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
  to `crc32'
  /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
  to `deflateInit2_'
  /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
  to `inflateReset'
  /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
  to `deflateReset'
  /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
  to `inflateEnd'
  /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
  to `deflateEnd'
  collect2: ld returned 1 exit status
  make[3]: *** [xcursorgen] Error 1
  make[3]: Leaving directory `/usr/src/xc/programs/xcursorgen'
  make[2]: *** [install] Error 2
  make[2]: Leaving directory `/usr/src/xc/programs'
  make[1]: *** [install] Error 2
  make[1]: Leaving directory `/usr/src/xc'
  make: *** [install] Error 2
  </screen>
  Then rebuild libpng with the patch at
  <ulink url="http://www.linuxfromscratch.org/~sklein/libpng-1.2.5-lz.patch"/>.
  Make sure you apply the patch immediately after unpacking the sources.
  Like this:
  <screen>tar --no-same-owner -xvjf libpng-1.2.5.tar.bz2
  cd libpng-1.2.5
  cat ../libpng-1.2.5-lz.patch | patch -p0
  ln -s scripts/makefile.linux Makefile
  make ZLIBLIB=/lib ZLIBINC=/usr/include
  make ZLIBLIB=/lib ZLIBINC=/usr/include install
  cd ..
  rm -r libpng-1.2.5
  </screen>
  Needless to say, if you originally put zlib in /usr/local
  or did something else different,
  you'll have to adjust those instructions accordingly.
  </para></answer>
  </qandaentry>
  
  
  
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-book' in the subject header of the message



More information about the lfs-book mailing list