On 2018-08-01 20:08 -0500, Bruce Dubbs wrote:
> On 08/01/2018 06:30 PM, Douglas R. Reno wrote:
> > 
> > 
> > On Wed, Aug 1, 2018 at 6:26 PM Bruce Dubbs <[email protected] 
> > <mailto:[email protected]>> wrote:
> > 
> >     Trying to insert glibc-2.28 into the book.  In chapter 5, m4 will not
> >     build.  I found one fix:
> > 
> >     sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
> > 
> >     https://github.com/coreutils/gnulib/blob/master/lib/freadahead.c
> > 
> >     But it still fails at
> > 
> >     return (fp->_IO_read_end - fp->_IO_read_ptr)
> >                + (fp->_flags & _IO_IN_BACKUP ? fp->_IO_save_end -
> >     fp->_IO_save_base :
> > 
> >     because _IO_IN_BACKUP is not defined.  It is in bits/libio.h with
> >     glibc-2.27, but not in glibc-2.28.
> > 
> >     Still trying to find a better/more complete fix.  If anyone comes
> >     across
> >     with something, please let me know.
> > I'm concerned about libarchive. It still uses the macros that were just 
> > moved (major, minor, and makedev).
> 
> I'm also concerned with many of the packages (e.g. coreutils) that use 
> gnulib.  They include the files instead of referencing a separate 
> library and it shows up a lot.

Gnulib upstream workaround this by define _IO_IN_BACKUP if not already defined:
http://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=4af4a4a71827c0bc5e0ec67af23edef4f15cee8e

We can use a sed to do this, or provide a patch for stdio-impl.h.
-- 
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to