Re: freadseek.c not ported to GNU when building M4

Bruno Haible <[email protected]>
Newsgroups gmane.comp.gnu.m4.bugs,gmane.comp.lib.gnulib.bugs
Message-ID <5721812.QCxsTEyBWZ@omega>
Hi,

Mohammad Akhlaghi wrote in
<https://lists.gnu.org/archive/html/bug-gnulib/2019-04/msg00004.html>:
> I am trying to build M4 from source, but it crashes with the following 
> Gnulib error after running `make' (which asks to directly contact 
> bug-gnulib instead of M4 developers):
> 
>    CC       freadseek.lo
> freadseek.c: In function 'freadptrinc':
> freadseek.c:68:3: error: #error "Please port gnulib freadseek.c to your 
> platform! Look at the definition of getc, getc_unlocked on your system, 
> then report this to bug-gnulib."
>    #error "Please port gnulib freadseek.c to your platform! Look at the 
> definition of getc, getc_unlocked on your system, then report this to 
> bug-gnulib."
>     ^~~~~
> make[4]: *** [Makefile:2386: freadseek.lo] Error 1

Thanks for the report. It has already been reported on the bug-m4 list:

https://lists.gnu.org/archive/html/bug-m4/2018-08/msg00000.html
https://lists.gnu.org/archive/html/bug-m4/2018-11/msg00001.html
https://lists.gnu.org/archive/html/bug-m4/2018-12/msg00000.html

m4 uses gnulib as a submodule, which means that an explicit action is needed
by the m4 maintainers to move it past 2018-03-05 (which is when the fix was
added to gnulib).

> $ git clone git://git.savannah.gnu.org/m4.git
> $ cd m4
> $ ./bootstrap --copy --gnulib-srcdir=/path/to/gnulib
> $ ./configure
> $ make

Probably you'll want to use the 'branch-1.4' branch, instead of the 'master'
branch.

Bruno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.