</answer>
</qandaentry>
-<qandaentry id="faq.defdeath">
- <question>
- <para>My program dies like this:</para>
- </question>
- <answer>
-<screen>
-% error: /lib/librt.so.1: symbol __pthread_clock_settime,
- version GLIBC_PRIVATE not defined in file libpthread.so.0 with link time reference
-</screen>
-
- <para>This is a total swamp. Nevertheless there is a way out.
- It's a problem which is not easy to fix. Really the problem is
- that <filename>/lib/librt.so.1</filename> refers to some
- symbols <literal>__pthread_clock_settime</literal> and
- <literal>__pthread_clock_gettime</literal> in
- <filename>/lib/libpthread.so</filename> which are not intended
- to be exported, ie they are private.</para>
-
- <para>Best solution is to ensure your program does not use
- <filename>/lib/librt.so.1</filename>.</para>
-
- <para>However ... since you're probably not using it directly,
- or even knowingly, that's hard to do. You might instead be
- able to fix it by playing around with
- <filename>coregrind/vg_libpthread.vs</filename>. Things to
- try:</para>
-
- <para>Remove this:</para>
-<programlisting>
-GLIBC_PRIVATE {
- __pthread_clock_gettime;
- __pthread_clock_settime;
-};
-</programlisting>
-
-<para>or maybe remove this</para>
-<programlisting>
-GLIBC_2.2.3 {
- __pthread_clock_gettime;
- __pthread_clock_settime;
-} GLIBC_2.2;
-</programlisting>
-
-<para>or maybe add this:</para>
-<programlisting>
-GLIBC_2.2.4 {
- __pthread_clock_gettime;
- __pthread_clock_settime;
-} GLIBC_2.2;
-
-GLIBC_2.2.5 {
- __pthread_clock_gettime;
- __pthread_clock_settime;
-} GLIBC_2.2;
-</programlisting>
-
- <para>or some combination of the above. After each change you
- need to delete <filename>coregrind/libpthread.so</filename> and
- do <computeroutput>make && make
- install</computeroutput>.</para>
-
- <para>I just don't know if any of the above will work. If you
- can find a solution which works, I would be interested to hear
- it.</para>
-
- <para>To which someone replied:</para>
-<screen>
-I deleted this:
-
-GLIBC_2.2.3 {
- __pthread_clock_gettime;
- __pthread_clock_settime;
-} GLIBC_2.2;
-
-and it worked.
-</screen>
-
- </answer>
-</qandaentry>
-
</qandaset>
</chapter>