[LFS Trac] #2691: Zlib 1.2.5 issues

LFS Trac trac at linuxfromscratch.org
Sat Jun 19 06:39:06 PDT 2010


#2691: Zlib 1.2.5 issues
---------------------+------------------------------------------------------
 Reporter:  willimm  |       Owner:  lfs-book@…                   
     Type:  defect   |      Status:  new                          
 Priority:  normal   |   Milestone:  6.7                          
Component:  Book     |     Version:  SVN                          
 Severity:  normal   |    Keywords:                               
---------------------+------------------------------------------------------
 These are some issues with Zlib 1.2.5 that I think need fixing:

  * Zlib 1.2.5 segfaults a lot when built with GCC 4.5.0, either while
 building, or while a program using it is running (IE: with Firefox). The
 solution: add -mstackrealign to CFLAGS (You need to do this on the
 configure step, not on the make step), as documented at
 http://linuxfromscratch.org/pipermail/blfs-support/2010-June/067355.html.
  * Also, when building a shared libary Perl (using -Duseshrplib) on 64bit
 systems, the Compress::Raw::Zlib module fails because of the module
 attempting to use the static Zlib, but because it's not compiled with
 -fPIC, the build fails. To avoid this, -fPIC should be added to CFLAGS,
 along with -mstackrealign.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2691>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.



More information about the lfs-book mailing list