[Clfs-commits] [CLFS Trac] #134: glibc compilation error `multiple __memcpy_chk definition`

CLFS Trac trac at cross-lfs.org
Fri Dec 21 15:06:49 PST 2007


#134: glibc compilation error `multiple __memcpy_chk definition`
----------------------+-----------------------------------------------------
 Reporter:  insecure  |       Owner:  clfs-commits at lists.cross-lfs.org.
     Type:  defect    |      Status:  new                              
 Priority:  major     |   Milestone:                                   
Component:  BOOK      |     Version:                                   
 Keywords:  glibc     |  
----------------------+-----------------------------------------------------
 I'm just fiddling around with CLFS. I used the following version:[[BR]]
 "Cross-Compiled Linux From Scratch - Version SVN-20071221-x86"[[BR]]
 HOST and TARGET environment variables are:[[BR]]
 CLFS_HOST="x86_64-cross-linux-gnu"[[BR]]
 CLFS_TARGET="i586-pc-linux-gnu"[[BR]]
 The host system is a 64bit gentoo without multilib.[[BR]]

 Everything went fine until the compilation of glibc in chapter 5. Then I
 got
 errors from make telling me about
 `multiple __memcpy_chk definition` and
 `multiple __memset_chk definition`.

 I found the solution to this "behaviour" on
 http://bugs.gentoo.org/show_bug.cgi?id=199479 .
 The same bug. It seems like it is an i586-only problem. I applied the
 patch from here:
 http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.7/0040_all_glibc-i586-chk.patch?rev=1.1
 with
 {{{
 cd /mnt/lfs/sources/glibc-2.7
 patch -Np0 -i ../0040_all_glibc-i586-chk.patch
 }}}
 Then compiled again and it worked. (I repeated the glibc part completely
 to be sure
 to have a clean source tree.)

-- 
Ticket URL: <http://trac.cross-lfs.org/ticket/134>
CLFS Trac <http://trac.cross-lfs.org>
The Cross Linux From Scratch Project.


More information about the Clfs-commits mailing list