[Top][All Lists]

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

compilation error on Solaris OpenIndiana

From: Bruno Haible
Subject: compilation error on Solaris OpenIndiana
Date: Sun, 07 Mar 2021 19:50:09 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-203-generic; KDE/5.18.0; x86_64; ; )

On Solaris 11/OpenIndiana, I get this compilation error (both in 32-bit and
64-bit mode):

libtool: compile:  gcc -m64 -O2 -D_XOPEN_SOURCE=700 -DHAVE_CONFIG_H -I. 
-I../../jitter -I./config-private -I./jitter -DJITTER_DISPATCH_DIRECT_THREADING 
-I/export/home/bruno/prefix64/include -Wall -fvisibility=hidden -g -O2 -MT 
jitter/lib_libjitter__direct_threading__partial_la-jitter-signals.lo -MD -MP 
-MF jitter/.deps/lib_libjitter__direct_threading__partial_la-jitter-signals.Tpo 
-c ../../jitter/jitter/jitter-signals.c  -fPIC -DPIC -o 
../../jitter/jitter/jitter-signals.c: In function 
../../jitter/jitter/jitter-signals.c:57:23: error: 'NSIG' undeclared (first use 
in this function)
     = jitter_xmalloc (NSIG * sizeof (struct jitter_signal_notification));
../../jitter/jitter/jitter-signals.c:57:23: note: each undeclared identifier is 
reported only once for each function it appears in
../../jitter/jitter/jitter-signals.c: In function 
../../jitter/jitter/jitter-signals.c:69:19: error: 'NSIG' undeclared (first use 
in this function)
   for (i = 0; i < NSIG; i ++)
*** Error code 1

The jitter code uses NSIG. On this platform, NSIG is defined by <signal.h>
only if __EXTENSIONS__ is defined. __EXTENSIONS__ gets defined (in <config.h>)
by the Gnulib module 'extensions'. The problem is that jitter-signals.c
does not include <config.h>.

The Gnulib documentation
states the requirement to include <config.h> in the main source file of
every compilation unit.

Here is a proposed patch. With it, the compilation succeeds (for the jitter

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

reply via email to

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