summaryrefslogtreecommitdiff
path: root/os-patches
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-28 03:07:35 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-28 03:07:35 +0000
commit7b50f5d4564ab21f0cd6834b58aa5ae7f6668afa (patch)
tree6b6b47805886f154b3285e78ca0f4bad8af81e3b /os-patches
parentd1731b091196d99d56b001fda98c248705642ce5 (diff)
downloadATCD-7b50f5d4564ab21f0cd6834b58aa5ae7f6668afa.tar.gz
updated to reflect glibc-2.0.7-7 success
Diffstat (limited to 'os-patches')
-rw-r--r--os-patches/linux-patches.html128
1 files changed, 66 insertions, 62 deletions
diff --git a/os-patches/linux-patches.html b/os-patches/linux-patches.html
index e5f07f598df..a5e0e5f621b 100644
--- a/os-patches/linux-patches.html
+++ b/os-patches/linux-patches.html
@@ -1,5 +1,5 @@
-<html> <head>
-<title></title>
+<html><head>
+ <title>Linux patches to support ACE</title>
</head>
<BODY text = "#000000"
@@ -10,51 +10,42 @@ bgcolor="#ffffff">
With RedHat 5.0 distributions of Linux, it's best to upgrade the
distribution with these:
<ul>
- <li>egcs 1.0.1
- <li>glibc-2.0.6 (from ftp://sunsite.unc.edu/pub/gnu plus Torbjörn's patch)
- <li>linuxthreads 0.7? for the glibc-2.0.6 above
+ <li>egcs 1.0.2
+ <li>glibc-2.0.7-7 (from ftp://sunsite.unc.edu/pub/gnu)
+ <li>linuxthreads 0.71, which is included with the glibc-2.0.7-7 above
</ul>
-In addition, you'll need to apply Torbjörn Lindgren's
-&lt;tl@funcom.com&gt; patch to glibc-2.0.6's LinuxThread:<p>
+Thanks to James CE Johnson &lt;jjohnson@lads.com&gt;, Torbjörn
+Lindgren &lt;tl@funcom.com&gt;, and Oleg Krivosheev
+&lt;kriol@fnal.gov&gt; for this information. With the above
+configuration, ACE compiles on runs cleanly on Intel platforms. It
+compiles and runs cleanly on Alpha platforms with the patches listed
+below.<p>
+
+<strong><blink><font color="#ff0000">WARNING:</font></blink></strong>
+There is a bug in <code>getsockname ()</code> on versions of Linux
+through 2.0.30, at least. <code>getsockname ()</code> returns an
+Internet host address of 127.0.0.1 (localhost) instead of 0.0.0.0 for
+sockets that aren't connected. This bug prevents TAO servers from
+working correctly. To fix it, comment out these two lines in function
+<code>inet_getname ()</code> in
+<code>/usr/src/linux/net/ipv4/af_inet.c</code>:
<pre>
---- signals.c.old Wed Jan 14 01:09:02 1998
-+++ signals.c Wed Jan 14 01:11:37 1998
-@@ -82,7 +82,7 @@
- pthread_mutex_lock(&sigwaited_mut);
- /* Make sure no other thread is waiting on our signals */
- test_again:
-- for (s = 0; s &lt; NSIG; s++) {
-+ for (s = 1; s &lt; NSIG; s++) {
- if (sigismember(set, s) && sigismember(&sigwaited, s)) {
- pthread_cond_wait(&sigwaited_changed, &sigwaited_mut);
- goto test_again;
-@@ -96,7 +96,7 @@
- /* Install our signal handler on all signals in set,
- and unblock them in mask.
- Also mark those signals as being sigwaited on */
-- for (s = 1; s &lt;= NSIG; s++) {
-+ for (s = 1; s &lt; NSIG; s++) {
- if (sigismember(set, s) && s != PTHREAD_SIG_CANCEL) {
- sigdelset(&mask, s);
- action.sa_handler = __pthread_sighandler;
-@@ -121,7 +121,7 @@
- self-&gt;p_cancel_jmp = NULL;
- /* The signals are now reblocked. Restore the sighandlers. */
- pthread_mutex_lock(&sigwaited_mut);
-- for (s = 1; s &lt;= NSIG; s++) {
-+ for (s = 1; s &lt; NSIG; s++) {
- if (sigismember(set, s) && s != PTHREAD_SIG_CANCEL) {
- sigaction(s, &(saved_signals[s]), NULL);
- sigdelset(&sigwaited, s);
+ } else {
+ __u32 addr = sk-&gt;rcv_saddr;
+ if (!addr) {
+ addr = sk-&gt;saddr;
+/* comment out this line: if (!addr) */
+/* comment out this line: addr = ip_my_addr(); */
+ }
+ sin-&gt;sin_port = sk-&gt;dummy_th.source;
+ sin-&gt;sin_addr.s_addr = addr;
+ }
</pre>
-Thanks to James CE Johnson &lt;jjohnson@lads.com&gt;, Torbjörn
-Lindgren &lt;tl@funcom.com&gt;, and Oleg Krivosheev
-&lt;kriol@fnal.gov&gt; for this information; Torbjörn supplied the
-above patch. With the above configuration, Jame and Torbjörn report
-that only ACE Thread_Manager_Test seg faults on Intel platforms!
+and rebuild your kernel. This fix has been implemented in 2.1.x
+versions of the kernel.<p>
Without the following patch from Scott Snyder &lt;sss@d0linux01.fnal.gov&gt;,
egcs 1.0.1 on Linux won't be able to compile
@@ -162,29 +153,42 @@ library by patching linuxthreads/Makefile:
With that and the above configuration/pathes, all ACE tests run
perfectly cleanly on Alpha!<p>
-<strong><blink><font color="#ff0000">WARNING:</font></blink></strong>
-There is a bug in <code>getsockname ()</code> on versions of Linux
-through 2.0.30, at least. <code>getsockname ()</code> returns an
-Internet host address of 127.0.0.1 (localhost) instead of 0.0.0.0 for
-sockets that aren't connected. This bug prevents TAO servers from
-working correctly. To fix it, comment out these two lines in function
-<code>inet_getname ()</code> in
-<code>/usr/src/linux/net/ipv4/af_inet.c</code>:
+<hr>
+<h3>Old patches</h3>
+
+If you use glibc-2.0.6, you'll need to apply Torbjörn Lindgren's
+&lt;tl@funcom.com&gt; patch to glibc-2.0.6's LinuxThreads:<p>
<pre>
- } else {
- __u32 addr = sk-&gt;rcv_saddr;
- if (!addr) {
- addr = sk-&gt;saddr;
-/* comment out this line: if (!addr) */
-/* comment out this line: addr = ip_my_addr(); */
- }
- sin-&gt;sin_port = sk-&gt;dummy_th.source;
- sin-&gt;sin_addr.s_addr = addr;
- }
+--- signals.c.old Wed Jan 14 01:09:02 1998
++++ signals.c Wed Jan 14 01:11:37 1998
+@@ -82,7 +82,7 @@
+ pthread_mutex_lock(&sigwaited_mut);
+ /* Make sure no other thread is waiting on our signals */
+ test_again:
+- for (s = 0; s &lt; NSIG; s++) {
++ for (s = 1; s &lt; NSIG; s++) {
+ if (sigismember(set, s) && sigismember(&sigwaited, s)) {
+ pthread_cond_wait(&sigwaited_changed, &sigwaited_mut);
+ goto test_again;
+@@ -96,7 +96,7 @@
+ /* Install our signal handler on all signals in set,
+ and unblock them in mask.
+ Also mark those signals as being sigwaited on */
+- for (s = 1; s &lt;= NSIG; s++) {
++ for (s = 1; s &lt; NSIG; s++) {
+ if (sigismember(set, s) && s != PTHREAD_SIG_CANCEL) {
+ sigdelset(&mask, s);
+ action.sa_handler = __pthread_sighandler;
+@@ -121,7 +121,7 @@
+ self-&gt;p_cancel_jmp = NULL;
+ /* The signals are now reblocked. Restore the sighandlers. */
+ pthread_mutex_lock(&sigwaited_mut);
+- for (s = 1; s &lt;= NSIG; s++) {
++ for (s = 1; s &lt; NSIG; s++) {
+ if (sigismember(set, s) && s != PTHREAD_SIG_CANCEL) {
+ sigaction(s, &(saved_signals[s]), NULL);
+ sigdelset(&sigwaited, s);
</pre>
-and rebuild your kernel. This fix has been implemented in 2.1.x
-versions of the kernel.<p>
-
</body> </html>