aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/findutils.xml6
-rw-r--r--chapter05/gzip.xml5
-rw-r--r--chapter05/m4.xml5
3 files changed, 16 insertions, 0 deletions
diff --git a/chapter05/findutils.xml b/chapter05/findutils.xml
index f7e5e4982..d9d1a7a74 100644
--- a/chapter05/findutils.xml
+++ b/chapter05/findutils.xml
@@ -43,6 +43,12 @@
<sect2 role="installation">
<title>Installation of Findutils</title>
+ <para>First, make some fixes required by glibc-2.28:</para>
+
+<screen><userinput remap="pre">sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' gl/lib/*.c
+sed -i '/unistd/a #include &lt;sys/sysmacros.h&gt;' gl/lib/mountlist.c
+echo "#define _IO_IN_BACKUP 0x100" >> gl/lib/stdio-impl.h</userinput></screen>
+
<para>Prepare Findutils for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen>
diff --git a/chapter05/gzip.xml b/chapter05/gzip.xml
index 44b25faf7..4b2cc586f 100644
--- a/chapter05/gzip.xml
+++ b/chapter05/gzip.xml
@@ -43,6 +43,11 @@
<sect2 role="installation">
<title>Installation of Gzip</title>
+ <para>First, make some fixes required by glibc-2.28:</para>
+
+<screen><userinput remap="pre">sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
+echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h</userinput></screen>
+
<para>Prepare Gzip for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen>
diff --git a/chapter05/m4.xml b/chapter05/m4.xml
index 4be3a0f36..a4ed71be8 100644
--- a/chapter05/m4.xml
+++ b/chapter05/m4.xml
@@ -43,6 +43,11 @@
<sect2 role="installation">
<title>Installation of M4</title>
+ <para>First, make some fixes required by glibc-2.28:</para>
+
+<screen><userinput remap="pre">sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
+echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h</userinput></screen>
+
<para>Prepare M4 for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen>