[prev in list] [next in list] [prev in thread] [next in thread]
List: sisuite-users
Subject: Re: [Sisuite-users] Error with "make initrd_install"
From: dann frazier <dannf () dannf ! org>
Date: 2003-11-14 16:39:38
[Download RAW message or body]
On Fri, Nov 14, 2003 at 12:29:23PM +0000, Simon Fryer wrote:
> I am trying to recompile the kernel with the natsemi network card driver
> but
> cannot make install_initrc because the following error occurs
>
> gcc -Wall -Os -falign-functions=1 -march=i386
> -mpreferred-stack-boundary=2
> -falign-jumps=0 -falign-loops=0 -fno-builtin -nostdinc
> -I../../../include
> -iwithprefix include -I. -D_LIBC -DNDEBUG -fPIC -D_LIBC_REENTRANT -c
> alphasort.c -o alphasort.o
> In file included from dirstream.h:30,
> from alphasort.c:3:
> ../../../include/pthread.h:163: error: parse error before "__thread"
> ../../../include/pthread.h:165: error: `pthread_create' declared as
try this:
dannf@jale:~/cvs/systemimager.head/initrd_source/patches$ cat uclibc.10gcc3_3_buildfixes.patch
--- uClibc-0.9.12.orig/include/pthread.h 2001-11-13 23:46:50.000000000 -0700
+++ uClibc-0.9.12/include/pthread.h 2003-06-08 21:55:40.000000000 -0600
@@ -160,7 +160,8 @@
/* Create a thread with given attributes ATTR (or default attributes
if ATTR is NULL), and call function START_ROUTINE with given
arguments ARG. */
-extern int pthread_create (pthread_t *__restrict __thread,
+
+extern int pthread_create (pthread_t *__restrict __thread_id,
__const pthread_attr_t *__restrict __attr,
void *(*__start_routine) (void *),
void *__restrict __arg) __THROW;
@@ -588,7 +589,7 @@
extern int pthread_setcanceltype (int __type, int *__oldtype) __THROW;
/* Cancel THREAD immediately or at the next possibility. */
-extern int pthread_cancel (pthread_t __thread) __THROW;
+extern int pthread_cancel (pthread_t __thread_id) __THROW;
/* Test for pending cancellation for the current thread and terminate
the thread as per pthread_exit(PTHREAD_CANCELED) if it has been
--- uClibc-0.9.12.orig/libc/sysdeps/linux/common/bits/sigthread.h 2002-03-01 13:46:02.000000000 -0700
+++ uClibc-0.9.12/libc/sysdeps/linux/common/bits/sigthread.h 2003-06-08 21:54:36.000000000 -0600
@@ -33,6 +33,6 @@
__sigset_t *__restrict __oldmask)__THROW;
/* Send signal SIGNO to the given thread. */
-extern int pthread_kill (pthread_t __thread, int __signo) __THROW;
+extern int pthread_kill (pthread_t __thread_id, int __signo) __THROW;
#endif /* bits/sigthread.h */
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Sisuite-users mailing list
Sisuite-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic