bug-gcal
[Top][All Lists]
Advanced

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

[Bug-gcal] [gcal_bug] [build] gcal-3.6 does not build


From: Otmar Struwe
Subject: [Bug-gcal] [gcal_bug] [build] gcal-3.6 does not build
Date: Sat, 30 Oct 2010 19:32:25 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.12) Gecko/20101026 SUSE/3.1.6 Thunderbird/3.1.6

Hello,
when I build gcal-3.6 on a cross system with gcc-4.3.3 and uClibc 0.9.32 i get an error while compiling:


mipsel-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/otmar/workspace/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.32/usr/include -I/home/otmar/workspace/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.32/include -I/home/otmar/workspace/openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.32/usr/include -I/home/otmar/workspace/openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.32/include -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float -MT pipe.o -MD -MP -MF $depbase.Tpo -c -o pipe.o pipe.c &&\
        mv -f $depbase.Tpo $depbase.Po
In file included from pipe.c:47:
./spawn.h:403: error: field '_sp' has incomplete type


The problem is that the system has no "spawn.h" but "sched.h" is avaliable.

Snippet "config.h":


    /* Define to 1 if you have the <sched.h> header file. */
    #define HAVE_SCHED_H 1

    /* Define to 1 if you have the `sched_setparam' function. */
    #define HAVE_SCHED_SETPARAM 1

    /* Define to 1 if you have the <spawn.h> header file. */
    /* #undef HAVE_SPAWN_H */

As far as I see the detected "shed.h" is not included from pipe, neither from "spawn.h" used inside gcal.

As a possible solution I changed "spawn.in.h" (See diff output). As far as I understand the "sched.h" has to be included by spawn.h in any GNU Linux case. For other systems I am unsure.

Kind regard
 Otmar


DIFF:

--- spawn.in.h  2010-03-22 13:31:49.000000000 +0100
+++ tmp/spawn.in.h 2010-10-30 16:57:51.000000000 +0200
@@ -24,6 +24,11 @@
 /* The include_next requires a split double-inclusion guard.  */
 #if @HAVE_SPAWN_H@
 # @INCLUDE_NEXT@ @NEXT_SPAWN_H@
+#else
+/* At least the sched.h and the signal.h are required
+   from gcal or glibc  */
+#include <sched.h>
+#include <signal.h>
 #endif

 #ifndef _GL_SPAWN_H





reply via email to

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