bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fail to build after gnulib update?


From: Patrice Dumas
Subject: fail to build after gnulib update?
Date: Mon, 26 Jul 2021 14:26:17 +0200

Hello,

I get an error when building, my guess is that it is is related to the
gnulib update.  It is fixed by adding the following line in
parsetexi/Parsetexi.xs:

#include <config.h>

before

#include "perl.h"

but I have no idea whether it is a good fix.



make[5]: Entering directory '/home/dumas/src/texinfo/tp/Texinfo/XS'
/bin/bash ./libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc 
-DHAVE_CONFIG_H -I.  -I./parsetexi -I. -I./gnulib/lib -I./gnulib/lib 
-DDATADIR=\"/usr/local/share\"  -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0\" -DXS_VERSION=\"0\" 
-I/usr/lib/x86_64-linux-gnu/perl/5.32/CORE  -MT 
parsetexi/Parsetexi_la-Parsetexi.lo -MD -MP -MF 
parsetexi/.deps/Parsetexi_la-Parsetexi.Tpo -c -o 
parsetexi/Parsetexi_la-Parsetexi.lo `test -f 'parsetexi/Parsetexi.c' || echo 
'./'`parsetexi/Parsetexi.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./parsetexi -I. 
-I./gnulib/lib -I./gnulib/lib -DDATADIR=\"/usr/local/share\" -D_REENTRANT 
-D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0\" 
-DXS_VERSION=\"0\" -I/usr/lib/x86_64-linux-gnu/perl/5.32/CORE -MT 
parsetexi/Parsetexi_la-Parsetexi.lo -MD -MP -MF 
parsetexi/.deps/Parsetexi_la-Parsetexi.Tpo -c parsetexi/Parsetexi.c  -fPIC 
-DPIC -o parsetexi/.libs/Parsetexi_la-Parsetexi.o
In file included from /usr/lib/x86_64-linux-gnu/perl/5.32/CORE/perl.h:989,
                 from parsetexi/Parsetexi.xs:6:
./gnulib/lib/unistd.h:663:3: error: #error "Please include config.h first."
  663 |  #error "Please include config.h first."
      |   ^~~~~
./gnulib/lib/unistd.h:665:24: error: expected ‘;’ before ‘extern’
  665 | _GL_INLINE_HEADER_BEGIN
      |                        ^
      |                        ;
./gnulib/lib/unistd.h:2815:22: error: expected ‘;’ before ‘extern’
 2815 | _GL_INLINE_HEADER_END
      |                      ^
      |                      ;
make[5]: *** [Makefile:1561: parsetexi/Parsetexi_la-Parsetexi.lo] Error 1


-- 
Pat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]