[Top][All Lists]

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

Fix a compilation error on Solaris

From: Bruno Haible
Subject: Fix a compilation error on Solaris
Date: Sun, 21 Feb 2021 13:12:56 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-201-generic; KDE/5.18.0; x86_64; ; )

On Solaris 10, I see a compilation error:

gcc -m64 -O2 -DHAVE_CONFIG_H -I. -I../../poke  -I../gl -I../../gl  
-I../../common  -I../../libpoke -I../libpoke  
-I/home/haible/prefix-x86_64/include -Wall -D_REENTRANT -Wall 
-I/opt/csw/include/json-c -g -O2 -MT poke-pk-map-tab.o -MD -MP -MF 
.deps/poke-pk-map-tab.Tpo -c -o poke-pk-map-tab.o `test -f 'pk-map-tab.c' || 
echo '../../poke/'`pk-map-tab.c
In file included from 
                 from ../gl/stdio.h:43,
                 from ../gl/textstyle.h:38,
                 from ../../poke/pk-term.h:24,
                 from pk-map-tab.y:42:
pk-map-tab.y: In function 'pk_map_parse_file':
pk-map-tab.y:373:9: error: expected identifier or '(' before '&' token
*** Error code 1

It is caused by a declaration of a local variable named 'stderr'. On many
platforms, 'stdin', 'stdout', 'stderr' expand to some array references.

Here is a proposed fix.

Attachment: 0001-Fix-a-compilation-error-on-Solaris.patch
Description: Text Data

reply via email to

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