Hello,

I'm trying to compile OOo_2.0bc_src on Linux with
- linux 2.6.11.7
- glibc 2.3.5 / nptl (shared)
- gcc 3.4.3

I'm getting the following error while compiling sal/osl/unx/process.c:


../unxlngi4.pro/slo/process.o(.text+0x585): In function `ChildStatusProc':
process.c: undefined reference to `pthread_kill_other_threads_np'
collect2: ld returned 1 exit status
dmake:  Error code 1, while making '../unxlngi4.pro/lib/libuno_sal.so.3'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making /opt/cd/OOo_2.0bc_src/sal/util
dmake:  Error code 1, while making 'build_all'


I looked into libpthread.so and got the following:

nm /lib/libpthread.so | grep pthread_kill_other_threads_np
0000c040 t __pthread_kill_other_threads_np
0000c040 T [EMAIL PROTECTED]

glibc 2.3.4 (old linuxthreads) defined it without the "@glibc_2.0".


Afterwards, I looked into nptl/pthread_kill_other_threads.c of glibc 2.3.5
and found the following:

#ifdef SHARED
/* This function does not serve a useful purpose in the thread library
   implementation anymore.  It used to be necessary when then kernel
   could not shut down "processes" but this is not the case anymore.

   We could theoretically provide an equivalent implementation but
   this is not necessary since the kernel already does a much better
   job than we ever could.  */
void
__pthread_kill_other_threads_np (void)
{
}
compat_symbol (libpthread, __pthread_kill_other_threads_np,
               pthread_kill_other_threads_np, GLIBC_2_0);
#endif

Is it therefore possible to comment this call ini OO, if I run OO with
2.6.-kernels?

sal/osl/unx/process.c:

/*#if defined(LINUX)
            /* mfe: linux likes to have just one thread when the exec
family is called */
            /*      this np function has this purpose ...
             */
/*            pthread_kill_other_threads_np();
#endif
*/


Well, I tried it ...



Another thing is the following warning, which occures all the way :-)
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.

Not really a problem, but just for info :-).




Kind regards,
Andreas Hartmann

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to