Fix vinagre, transcode and dhcp for GCC 10

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23134 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Pierre Labastie 2020-05-14 15:08:11 +00:00
parent 547c0ebc6c
commit 5fccdfc8c6
4 changed files with 24 additions and 4 deletions

View File

@ -108,7 +108,7 @@
commands:
</para>
<screen><userinput>./configure --prefix=/usr \
<screen><userinput>./configure --prefix=/usr CFLAGS="$CFLAGS -fcommon" \
--enable-compile-warnings=minimum &amp;&amp;
make</userinput></screen>

View File

@ -44,6 +44,16 @@
<listitem>
<para>May 14th, 2020</para>
<itemizedlist>
<listitem>
<para>[pierre] - Fix building transcode with GCC-10.</para>
</listitem>
<listitem>
<para>[pierre] - Fix building vinagre with GCC-10.</para>
</listitem>
<listitem>
<para>[pierre] - Fix building dhcp with GCC-10. From a patch
by Xi Ruoyao.</para>
</listitem>
<listitem>
<para>[pierre] - Fix building menu-cache with GCC-10.</para>
</listitem>

View File

@ -188,9 +188,10 @@
$(find . -name Makefile.in -exec grep -l 'docsdir =' {} \;) &amp;&amp;
patch -Np1 -i ../transcode-&transcode-version;-ffmpeg4-1.patch &amp;&amp;
./configure --prefix=/usr \
--enable-alsa \
--enable-libmpeg2 &amp;&amp;
./configure --prefix=/usr \
CFLAGS="$CFLAGS -fcommon" \
--enable-alsa \
--enable-libmpeg2 &amp;&amp;
make</userinput></screen>
<para>

View File

@ -127,6 +127,15 @@
<sect2 role="installation">
<title>Installation of ISC DHCP</title>
<para>
First, fix a build issue with GCC 10 and later:
</para>
<screen><userinput>sed -i '/o.*dhcp_type/d' server/mdb.c &amp;&amp;
sed -r '/u.*(local|remote)_port/d' \
-i client/dhclient.c \
relay/dhcrelay.c</userinput></screen>
<note>
<para>
This package does not support parallel build.