This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Bug report for 'mipsel-linux' and latest glibc as of 01-14-2001...
- To: "Steven J. Hill" <sjhill at cotw dot com>
- Subject: Re: Bug report for 'mipsel-linux' and latest glibc as of 01-14-2001...
- From: Andreas Jaeger <aj at suse dot de>
- Date: 15 Jan 2001 07:07:20 +0100
- Cc: libc-alpha at sourceware dot cygnus dot com
- References: <3A6239B1.300BC674@cotw.com>
>>>>> Steven J Hill writes:
> Greetings.
> I was attempting to build a new cross toolchain for the
> 'mipsel-linux' target and got the error message below. I
> could not find 'kernel_sigset_t' anywhere in the linux
> kernel include files. I checked the glibc mailing list
> archives and found nothing. TIA.
> -Steve
> ***********************************************************
> mipsel-linux-gcc ../sysdeps/unix/sysv/linux/sigprocmask.c -c -O -Wall -Winline
> -Wstrict-prototypes -Wwrite-strings -g -I../include -I.
> -I/data/mips-stuff/build-glibc/signal -I.. -I../libio
> -I/data/mips-stuff/build-glibc -I../sysdeps/mips/elf
> -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
> -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix
> -I../linuxthreads/sysdeps/mips -I../sysdeps/unix/sysv/linux/mips
> -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
> -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv
> -I../sysdeps/unix/mips -I../sysdeps/unix -I../sysdeps/posix
> -I../sysdeps/mips/mipsel -I../sysdeps/mips/fpu -I../sysdeps/mips
> -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64
> -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc
> -isystem /usr/mipsel-linux/lib/gcc-lib/mipsel-linux/2.97/include -isystem
> /usr/mipsel-linux/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h
> -DPIC -o /data/mips-stuff/build-glibc/signal/sigprocmask.o
> ../sysdeps/unix/sysv/linux/mips/sigaction.c: In function `__libc_sigaction':
> ../sysdeps/unix/sysv/linux/mips/sigaction.c:74: `kernel_sigset_t' undeclared
> (first use in this function)
Seems that a file is missing in the tar ball - I'm appending it.
Andreas
/* This is the sigaction structure from the Linux 2.1.24 kernel. */
#include <sgidefs.h>
#define HAVE_SA_RESTORER
struct old_kernel_sigaction {
unsigned int sa_flags;
__sighandler_t k_sa_handler;
unsigned long sa_mask;
unsigned int __pad0[3]; /* reserved, keep size constant */
/* Abi says here follows reserved int[2] */
void (*sa_restorer)(void);
#if (_MIPS_ISA == _MIPS_ISA_MIPS1) || (_MIPS_ISA == _MIPS_ISA_MIPS2)
/*
* For 32 bit code we have to pad struct sigaction to get
* constant size for the ABI
*/
int pad1[1]; /* reserved */
#endif
};
#define _KERNEL_NSIG 128
#define _KERNEL_NSIG_BPW 32
#define _KERNEL_NSIG_WORDS (_KERNEL_NSIG / _KERNEL_NSIG_BPW)
typedef struct {
unsigned long sig[_KERNEL_NSIG_WORDS];
} kernel_sigset_t;
/* This is the sigaction structure from the Linux 2.1.68 kernel. */
struct kernel_sigaction {
unsigned int sa_flags;
__sighandler_t k_sa_handler;
kernel_sigset_t sa_mask;
void (*sa_restorer)(void);
int s_resv[1]; /* reserved */
};
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj