siginfo_t not defined?
Posted: Sun Dec 14, 2008 11:16 pm
Hi,
I'm trying to port the pixman library to the gc/wii. I ran the configure script on the source using and it created the makefile. I modifed the makefile to include the flags specified in the makefile for the example gc project that came with devkitPro. When I issue make, I get the following errors:
This indicates to me that siginfo_t is undefined. So I started searching for why. The file's lines are below (line numbers 2043-2050):
So it includes <signal.h>, and that includes <sys/signal.h> that contains the definition for signal_t. But there are some preprocessor definitions that are required for signal_t to get defined (__rtems__ and _POSIX_REALTIME_SIGNALS).
Does anyone know why these might be undefined? Or does anyone have any ideas of what to try (besides defining those 2 things myself)?
Thanks.
I'm trying to port the pixman library to the gc/wii. I ran the configure script on the source using
Code: Select all
./configure --host=ppc
Code: Select all
powerpc-gekko-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPIXMAN_DISABLE_DEPRECATED -g -O2 -Wall -DGEKKO -mogc -mcpu=750 -meabi -mhard-float -g -O2 -Wall -fvisibility=hidden -MT libpixman_1_la-pixman-pict.lo -MD -MP -MF .deps/libpixman_1_la-pixman-pict.Tpo -c pixman-pict.c -o libpixman_1_la-pixman-pict.o
pixman-pict.c:2048: error: expected declaration specifiers or '...' before 'siginfo_t'
pixman-pict.c: In function 'pixman_have_vmx':
pixman-pict.c:2056: error: 'SA_SIGINFO' undeclared (first use in this function)
pixman-pict.c:2056: error: (Each undeclared identifier is reported only once
pixman-pict.c:2056: error: for each function it appears in.)
pixman-pict.c:2058: error: 'struct sigaction' has no member named 'sa_sigaction'
pixman-pict.c:2059: warning: implicit declaration of function 'sigaction'
make: *** [libpixman_1_la-pixman-pict.lo] Error 1
Code: Select all
#include <signal.h>
#include <setjmp.h>
static jmp_buf jump_env;
static void vmx_test(int sig, siginfo_t *si, void *unused) {
longjmp (jump_env, 1);
}
Does anyone know why these might be undefined? Or does anyone have any ideas of what to try (besides defining those 2 things myself)?
Thanks.