[Top][All Lists]

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

Fix compilation error on NetBSD 9

From: Bruno Haible
Subject: Fix compilation error on NetBSD 9
Date: Wed, 24 Feb 2021 03:36:50 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-201-generic; KDE/5.18.0; x86_64; ; )

On NetBSD 9.0/x86_64, I see this compilation error (in a VPATH build):

Making all in gui
gcc -DHAVE_CONFIG_H -I. -I../../gui -I../poke  -I../common -I../../gl-gui  
-I/usr/pkg/include -I/usr/pkg/include  
-DLOCALEDIR=\"/home/bruno/share/locale\" -I/home/bruno/include 
-I/usr/pkg/include -Wall -Wall -g -O2 -MT poke_gui-poke-gui.o -MD -MP -MF 
.deps/poke_gui-poke-gui.Tpo -c -o poke_gui-poke-gui.o `test -f 'poke-gui.c' || 
echo '../../gui/'`poke-gui.c
../../gui/poke-gui.c:25:10: fatal error: alloca.h: No such file or directory
 #include <alloca.h>
compilation terminated.
*** Error code 1

The cause is that
  - on this platform, there is no <alloca.h>,
  - therefore the gnulib module 'alloca' provides an <alloca.h>,
  - this alloca.h is generated in the gl-gui/ build dir,
  - but this dir is not among the -I options.

This proposed patch fixes it.

Attachment: 0003-Fix-compilation-error-on-NetBSD-9.patch
Description: Text Data

reply via email to

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