Ol�,

� um bug do linux.

Este patch (da oracle- P3006854) � bem pequeno, ent�o segue abaixo, ok?
torne-o execut�vel e rode como root, mas certifique-se ANTES de rodar  de
que possui o pacote gcc*  instalado, sen�o vai ter que ter uma manha para
resolver...

-----------
#!/bin/bash

USER=`whoami`

if [ $USER != root ]; then

echo "Must be root to run this script, please login as root and re-try"

exit

fi

# see if libcwait.so is already being loaded

if [ -f "/etc/ld.so.preload" ] && [ -n "`grep libcwait
/etc/ld.so.preload`" ]; then

echo "Patch has already been applied"

exit

else

echo "Applying patch..."

fi

cat << EOF |

#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"



---------------------------

Ok, rodou o patch, agora adicione ao final do .bashrc (para usu�rio com
shell bash) ou do arquivo .profile (para shel sh) do usu�rio "oracle"

export  LD_ASSUME_KERNEL=2.4.1

Pronto, � s� rodar o "runInstaller"

;-)


----- Original Message ----- 
From: "Leonardo Dias" <[EMAIL PROTECTED]>
To: "caio ferreira" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, June 28, 2004 6:34 PM
Subject: Re: (linux-br)Oracle 9i e Suse 9.1


> O mesmo erro ocorre quando tento instalar em um Fedora Core 2.
>
> Algu�m sabe como resolver?
>
> Leonardo Dias
>
> >
> > Unable to load native library:
> > /tmp/OraInstall2004-06-08_07-03-47PM/jre/lib/i386/libjava.so: symbol
> > __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link
> > time reference

---------------------------------------------------------------------------
Esta lista � patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br

Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utiliza��o da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html

Responder a