bison and m4 with uclibs linuxthreads (new): error: field '_sp' has incomplete type

Natanael Copa natanael.copa at gmail.com
Tue Mar 30 07:13:34 UTC 2010


Hi,

I just wonder if anyone have tried compile latest bison and m4 with uclibc.

With bison-2.4.2  I get this error:
depbase=`echo pipe.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	ccache gcc -std=gnu99  -I.   -march=i486 -Os -fomit-frame-pointer
-pipe  -march=i486 -Os -fomit-frame-pointer -pipe -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:48:
./spawn.h:112: error: field '_sp' has incomplete type


and with m4-1.4.14 i get this:

In file included from pipe.c:48:
./spawn.h:112: error: field '_sp' has incomplete type
make[3]: *** [pipe.o] Error 1

The spawn.h itself looks like this:

/* Data structure to contain attributes for thread creation.  */
#if 0
# define posix_spawnattr_t rpl_posix_spawnattr_t
#endif
#if 0 || !0
typedef struct
{
  short int _flags;
  pid_t _pgrp;
  sigset_t _sd;
  sigset_t _ss;
  struct sched_param _sp;    // this is line 112
  int _policy;
  int __pad[16];
} posix_spawnattr_t;
#endif


any ideas for workaround? Or I wait with upgrading til i have
uclibc-nptl properly in place?

thanks!

-- 
Natanael Copa


More information about the uClibc mailing list