[haiku-bugs] [Haiku] #5518: broken symbolic link

  • From: "andrey86" <trac@xxxxxxxxxxxx>
  • Date: Wed, 03 Mar 2010 08:32:52 -0000

#5518: broken symbolic link
------------------------------------+---------------------------------------
 Reporter:  andrey86                |       Owner:  nobody   
     Type:  bug                     |      Status:  new      
 Priority:  high                    |   Milestone:  R1       
Component:  - General               |     Version:  R1/alpha1
 Keywords:  link, c++, gcc, broken  |   Blockedby:           
 Platform:  x86                     |    Blocking:           
------------------------------------+---------------------------------------
 Hello,

 I've tried to compile simple test.cpp using
 /boot/develop/abi/x86/gcc4/tools/gcc-4.3.3-haiku-090629/bin/g++:

 int main()
 {
  int * x=new int();
  return 0;
 }

 Compiler reports the following error:
 ...libstdc++.a: undefined reference to _Unwind_Resume

 This error has occurred because of the broken symbolic link
 /boot/develop/abi/x86/gcc4/tools/gcc-4.3.3-haiku-090629/lib/libstdc++.so
 pointed to file /boot/system/lib/libstdc++.so that isn't exist.

 I've corrected symbolic link by the command:

 ln -fs /boot/system/lib/gcc4/libstdc++.so
 /boot/develop/abi/x86/gcc4/tools/gcc-4.3.3-haiku-090629/lib/libstdc++.so

 ... and test.cpp has been compiled correctly.

 So, I suppose it is a bug in the Haiku and the command mentioned above is
 a bugfix/patch.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5518>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: