PDA

View Full Version : ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded



ntrajesh
31st January 2008, 08:47 PM
:eek: While trying to install p3006854_9204_LINUX.zip patch for oracle 9i on Fedora 8_x86_64. I got the follwing error.

ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.

Since then this error is filling up my /var/log/messages. I dont have access to http://metalink.oracle.com. to check if I have downloaded the right patch or not.

Any help in troubleshooting this or pointing me in right direction is greately appreciated.


rhel3_pre_install.sh
-----------------------
#include <errno.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/wait.h>
pid_t
__libc_wait (int *status)
{
int res;
asm volatile ("pushl %%ebx\n\t"
"movl %2, %%ebx\n\t"
"movl %1, %%eax\n\t"
"int \$0x80\n\t"
"popl %%ebx"
: "=a" (res)
: "i" (__NR_wait4), "0" (WAIT_ANY), "c" (status), "d" (0), "S" (0));
return res;
}
EOF
gcc -O2 -shared -fpic -xc - -o /etc/libcwait.so
echo "/etc/libcwait.so" >>/etc/ld.so.preload

echo "Patch successfully applied"