Adding gnulib

On Thu, Jun 05, 2025 at 10:35:36AM +0000, Kirill Makurin wrote:
> Hello,
> 
> I tried to build m4-1.4.20 release with MSVC.
> 
> Build fails with the following diagnostic (from many files):
> 
> ```
> H:\releases\m4-1.4.20\src\builtin.c(1472): error C2065: 'OBSTACK_CPTR': 
> undeclared identifier
> H:\releases\m4-1.4.20\src\builtin.c(1472): error C2064: term does not 
> evaluate to a function taking 0 arguments
> ```
> 
> It comes from gnulib's lib/obstack.h.in, line 593:
> 
> ```
>    (((_OBSTACK_CPTR) (h)->chunk < (OBSTACK_CPTR) (h)->temp.tempptr
> ```
> 
> where _OBSTACK_CPTR mistakenly referenced as OBSTACK_CPTR. Adding an 
> underscore fixes the build error.

Thanks for the report.

> 
> I also noticed that configure fails to locate/use installed libintl:
> 
> ```
> checking for GNU gettext in libc... no
> checking for iconv... (cached) yes
> checking for working iconv... (cached) yes
> checking how to link with libiconv... -liconv
> checking for GNU gettext in libintl... no
> checking whether to use NLS... no
> ```

Is there a relevant snippet of config.log that shows why configure was
unable to use your installed library?  Is it something you can work
around by priming appropriate cache variables during the configure
run?

> 
> Please let me know if you are interested in result of `make check`.

Did it pass, or did you see particular failures?

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization:  qemu.org | libguestfs.org


Reply via email to