I'm running my Linux From Scratch 6.7 build under a uClibc root
filesystem, and building m4 1.14.4 has this error:
gcc -std=gnu99 -I. -g -O2 -MT execute.o -MD -MP -MF
.deps/execute.Tpo -c -o execute.o execute.c
In file included from execute.c:47:
./spawn.h:112: error: field '_sp' has incomplete type
distcc[23848] ERROR: compile execute.c on localhost failed
make[3]: *** [execute.o] Error 1
make[3]: Leaving directory `/home/m4/lib'
The attached patch made m4 and bison build against 0.9.31, but it
doesn't fix it in 0.9.32-rc3. Apparently uClibc has "optimized" away
fields that both m4 and bison are reaching out and touching directly.
(Oh, and some of the time the configure test to see if strstr happens in
linear time hangs indefinitely, the alarm() that's supposed to wake it
up apparently doesn't. For that one it might be relevant that I'm
currently testing on mips, for the rest it's not target specific.)
Rob
diff -ru uClibc/libc/sysdeps/linux/common/bits/sched.h uClibc.bak/libc/sysdeps/linux/common/bits/sched.h
--- uClibc/libc/sysdeps/linux/common/bits/sched.h 2010-04-02 10:34:27.000000000 -0500
+++ uClibc.bak/libc/sysdeps/linux/common/bits/sched.h 2010-10-15 13:38:43.000000000 -0500
@@ -61,6 +61,7 @@
# define CLONE_STOPPED 0x02000000 /* Start in stopped state. */
#endif
+#undef sched_param
/* The official definition. */
struct sched_param
{
@@ -82,6 +83,8 @@
__END_DECLS
+#else
+#define sched_param __sched_param
#endif /* need schedparam */
#if !defined __defined_schedparam \
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc