[Top][All Lists]

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

Re: Fix compilation error on NetBSD 9

From: Jose E. Marchesi
Subject: Re: Fix compilation error on NetBSD 9
Date: Wed, 24 Feb 2021 10:23:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hi Bruno.

> 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  
> -DPOKEGUIDIR=\"/home/bruno/share/poke/gui\"  
> -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.

OK for master.

reply via email to

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