четверг, 1 апреля 2010 г.

libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'

libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'

On the webpage http://www.oracle.com/technology/software/products/middleware/htdocs/111110_fmw.html there is an entry for GCC Libraries.
Download the file mentioned as disk1 (as_linux_x86_gcc_runtime_lib_access_manager_101401.cpio)

Extract the as_linux_x86_gcc_runtime_lib_access_manager_101401.cpio file:
cpio -i < as_linux_x86_gcc_runtime_lib_access_manager_101401.cpio

This gives you the Oracle_Access_Manager10_1_4_0_1_linux_GCClib.zip file
Unzip this one:

unzip Oracle_Access_Manager10_1_4_0_1_linux_GCClib.zip

This gives you 2 files:
libgcc_s.so.1
libstdc++.so.5

Now move the libgcc_s.so.1 file to /lib/libgcc_s.oracle.so.1
sudo mv libgcc_s.so.1 /lib/libgcc_s.oracle.so.1

And the most important one:
sudo ln -sf /lib/libgcc_s.oracle.so.1 /lib/libgcc_s.so

(Even after the ldconfig command is given in the reboot fase, the link for /lib/libgcc_s.so remains!)

Then you have to rename the /usr/lib/gcc/i586-redhat-linux/4.4.1/libgcc_s.so to /usr/lib/gcc/i586-redhat-linux/4.4.1/libgcc_s_so
Otherwise /lib/libgcc_s.so.1 will be used in link and not /lib/libgcc_s.so, therefore the link will fail

Now you can start the intstaller by
./runInstaller.sh

And the linking will succeed.

Комментариев нет:

Отправить комментарий