This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

A compensation to 'Successful Build Report for GCC 4.0.0 C and C++'


Hello:

This is a compensation to Simon G. Best's build report
(http://gcc.gnu.org/ml/gcc/2005-04/msg01402.html).

As Simon G. Best mentioned, after final-install, gcc's shared libs
should be configed as below:
  1. add the line '/usr/local/lib' to the end of '/etc/ld.so.conf';

  2. run 'ldconfig' as root.


But I found this is not enough.

One shared lib 'libgcc_s.so.1' of installed gcc is conflict with
'/lib/libgcc_s.so.1' of RedHat self contained gcc. If they are not the
same version, program built with new gcc will report 'libgcc_s.so.1
version not correctly' error.

It is caused by that these two libs are both configed into shared lib
cache by '/sbin/ldconfig', and '/lib/libgcc_s.so.1' is always be found
earier by  run-time linker( '/lib' is scaned before dirs listed in
'/etc/ld.so.conf' ).

Solution:
  mv /lib/libgcc_s.so.1 '/lib/libgcc_s.so.1.bk
  ln -s newgccdir/lib/libgcc_s.so.1 /lib/libgcc_s.so.1
  /sbin/ldconfig

Hint: '/lib/libgcc_s.so.1' can not be removed, for it will be recreated
by '/sbin/ldconfig'


Deng Xun


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]