[haiku-bugs] Re: [Haiku] #6329: GCC2 compilation failure under Ubuntu Linux 10.04 (Lucid).

  • From: "Shisui" <trac@xxxxxxxxxxxx>
  • Date: Sun, 18 Jul 2010 17:01:26 -0000

#6329: GCC2 compilation failure under Ubuntu Linux 10.04 (Lucid).
---------------------------+------------------------------------------------
  Reporter:  bga           |         Owner:  bonefish      
      Type:  bug           |        Status:  new           
  Priority:  normal        |     Milestone:  R1            
 Component:  Build System  |       Version:  R1/Development
Resolution:                |      Keywords:                
Blocked By:                |   Has a Patch:  1             
  Platform:  All           |      Blocking:                
---------------------------+------------------------------------------------

Comment (by Shisui):

 I got the same error when re-configuring my Haiku build under Ubuntu 10.04
 x64. The first time, I was able to bypass this error by replacing the
 generated makeinfo by a symlink to /usr/bin/makeinfo. This time, I search
 in the makeinfo sourcecode what was going wrong.

  A bad strcpy() call is involved, which tries to copy a buffer over
 himself, which is strongly discouraged since it may or may not work,
 depending on the implementation (I believe the strcpy implementation in
 the x64 version of libc can't handle buffer overlap).

  The above patch correct this strcpy() call. :-)

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6329#comment:4>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: