<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cebitec.uni-bielefeld.de/brf-software/index.php?action=history&amp;feed=atom&amp;title=TheMeanPthreadHack</id>
	<title>TheMeanPthreadHack - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cebitec.uni-bielefeld.de/brf-software/index.php?action=history&amp;feed=atom&amp;title=TheMeanPthreadHack"/>
	<link rel="alternate" type="text/html" href="https://wiki.cebitec.uni-bielefeld.de/brf-software/index.php?title=TheMeanPthreadHack&amp;action=history"/>
	<updated>2026-04-29T01:45:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wiki.cebitec.uni-bielefeld.de/brf-software/index.php?title=TheMeanPthreadHack&amp;diff=3085&amp;oldid=prev</id>
		<title>Admin: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://wiki.cebitec.uni-bielefeld.de/brf-software/index.php?title=TheMeanPthreadHack&amp;diff=3085&amp;oldid=prev"/>
		<updated>2011-10-26T06:18:54Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:18, 26 October 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.cebitec.uni-bielefeld.de/brf-software/index.php?title=TheMeanPthreadHack&amp;diff=3084&amp;oldid=prev</id>
		<title>imported&gt;MichaelDondrup at 10:31, 9 April 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.cebitec.uni-bielefeld.de/brf-software/index.php?title=TheMeanPthreadHack&amp;diff=3084&amp;oldid=prev"/>
		<updated>2009-04-09T10:31:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;lt;!-- ##language:en --&amp;gt;&lt;br /&gt;
== A little workaround for packages using the PThread library ==&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
When trying to compile some bioconductor packages eg. the affyio packages in Biobase you may experinece compilation errors&lt;br /&gt;
like &amp;#039;&amp;#039;undefined symbol PTHREAD_STACK_MIN&amp;#039;&amp;#039; or &amp;#039;&amp;#039;undefined symbol PTHREAD_DESTRUCTOR_ITERATIONS&amp;#039;&amp;#039;.&lt;br /&gt;
These are symbols used in included pthread.h but they are defined in limits.h. with the given compilation options however these macros are&lt;br /&gt;
not defined, because of a conditional define checking for a given POSIX_C_SOURCE version. A workaround is to place a mock pthread.h include file&lt;br /&gt;
in the directory &amp;lt;R-installdirectory&amp;gt;/lib/R/include, which looks like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
#include &amp;quot;/usr/include/pthread.h&amp;quot;&lt;br /&gt;
#include &amp;lt;limits.h&amp;gt;&lt;br /&gt;
#include &amp;lt;unistd.h&amp;gt;&lt;br /&gt;
#warning Using selfdefined PTHREAD_ macros in my own pthread.h in R_HOME/lib/R/include&lt;br /&gt;
&lt;br /&gt;
extern long _sysconf(int);	/* System Private interface to sysconf() */&lt;br /&gt;
#ifndef _SC_THREAD_STACK_MIN&lt;br /&gt;
#error _SC_THREAD_STACK_MIN is not defined&lt;br /&gt;
#endif&lt;br /&gt;
&lt;br /&gt;
#define	PTHREAD_STACK_MIN	((size_t)_sysconf(_SC_THREAD_STACK_MIN))&lt;br /&gt;
/* Added for UNIX98 conformance */&lt;br /&gt;
#define	PTHREAD_DESTRUCTOR_ITERATIONS	_POSIX_THREAD_DESTRUCTOR_ITERATIONS&lt;br /&gt;
#define	PTHREAD_KEYS_MAX		_POSIX_THREAD_KEYS_MAX&lt;br /&gt;
#define	PTHREAD_THREADS_MAX		_POSIX_THREAD_THREADS_MAX&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a bad workaround, because we include the absolute path and define the missing symbols ourselves. If you have abetter idea feel free to fix&lt;br /&gt;
either the affyio package or the Solaris pthread.h, limits.h&lt;/div&gt;</summary>
		<author><name>imported&gt;MichaelDondrup</name></author>
	</entry>
</feed>