Re: VPATH build fails in "make check" step

Thomas Dickey <[email protected]>
Newsgroups gmane.comp.lib.ncurses.bugs
Message-ID <[email protected]>
On Tue, Aug 11, 2026 at 11:53:03PM +0200, Bruno Haible via Bug reports for ncurses, the GNU implementation of curses wrote:
> Hi,
> 
> The newest snapshot, ncurses-6.6-20260808, fails the "make check" step
> in a VPATH build (whereas it works fine in an in-tree build).
> 
> How to reproduce:
> 
> $ tar xfz ncurses.tar.gz
> $ cd ncurses-6.6-20260808/
> $ mkdir bb
> $ cd bb/
> $ ../configure --with-shared --enable-rpath --disable-lib-suffixes --enable-widec --with-pthread
> $ make
> $ make check
> ...
> make[1]: Entering directory '/home/bruno/ncurses-6.6-20260808/bb/test'
> ** testing *.h
> headers.c:1:10: fatal error: *.h: No such file or directory
>     1 | #include <*.h>
>       |          ^~~~~
> compilation terminated.
> make[1]: *** [Makefile:170: check] Error 1
> make[1]: Leaving directory '/home/bruno/ncurses-6.6-20260808/bb/test'
> make: *** [Makefile:137: check] Error 2

see attached

-- 
Thomas E. Dickey <[email protected]>
https://invisible-island.net
fix.diff (text/x-diff, 1 KB)
--- test/Makefile.in	2025/10/18 16:08:41	1.133
+++ test/Makefile.in	2026/08/12 00:04:18	1.134
@@ -1,6 +1,6 @@
-# $Id: Makefile.in,v 1.132 2025/07/12 14:59:48 tom Exp $
+# $Id: Makefile.in,v 1.133 2025/10/18 16:08:41 tom Exp $
 ##############################################################################
-# Copyright 2020-2024,2025 Thomas E. Dickey                                  #
+# Copyright 2020-2025,2026 Thomas E. Dickey                                  #
 # Copyright 1998-2017,2018 Free Software Foundation, Inc.                    #
 #                                                                            #
 # Permission is hereby granted, free of charge, to any person obtaining a    #
@@ -167,8 +167,9 @@
 
 # Verify that each header-file can be compiled without including another.
 check::
-	@$(SHELL) -c "for header in *.h;\
+	@$(SHELL) -c "for header in $(srcdir)/*.h;\
 		do \
+			test -f \"\$${header}\" || continue ; \
 			echo \"** testing \$${header}\" ; \
 			echo \"#include <\$${header}>\" >headers.c; \
signature.asc (application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE-----

iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmp7ulwACgkQzCr0RyFn
vgONFwv/VylhBsfdaU+FuCb+8DWRVrp4MIy5AbbS4DTObiudGLMq1PXRuvUuG78i
/ioStP+WCVHiJ/qCuge+LsF5CSHu7FHVZSIaBWtfvf8YeWwuxX9kKSoOBT0ejhA1
r82IX9+3vGRPvJeoBtgpKYqAwy6ZX201NjQZjxHHYZEsCIDw27NbBguU6YcM6Qcv
Wn07C74iPiOq3EEtX1/j7MzUVrTK2Rdbq4OVfkkrkCObWKNHKOV+qFWAbZQCDf5x
UrqCIzPCJ2fhKhcZZQdppr1I0RLha9WIG91JmTR8sCOeA/7CsUvSGB1Fh6tuHJp8
dFsw5zTXlDB8g2nXqMhfPXoz83HMPIcx4sKyeKQoUHor/1Sn1S9ovoWHqLXauYEl
39e7Ye3j8lAicpdOcu/Ybjy+u7eX6Qzd+J6Q8r9VGb/76wLAwtw/az7K/KNEgZWp
cI6j9swMywTrATzNVkoaHRL0aiLrgOMlFJY9/9eBQlkoasOpl8gEGC/io3bNUuZO
50E1ZoJG
=V/6F
-----END PGP SIGNATURE-----
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.