[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

raidtools-pre3-0.42 compile problem



Hi all.

I've compiled raidtools-pre3-0.42 in my debian alpha/linux box,
and I've had the following problems:

1) /usr/include/adm/unistd.h from libc6.1-dev_2.0.5c-0.1 and
   linux-2.0.32/include/asm-alpha/unistd.h differ:

--- /usr/include/asm/unistd.h      Sun Oct  5 22:44:52 1997
+++ /home/tmp/kernel/linux-2.0.32/include/asm-alpha/unistd.h    Sun Dec  7 05:49:31 1997
@@ -214,7 +214,7 @@
 type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5)	\
 {									\
	extern long syscall (int, ...);					\
-	return syscall(__NR_##name, arg1, arg2, arg3, arg4);		\
+	return syscall(__NR_##name, arg1, arg2, arg3, arg4, arg5);	\
 }

 #endif /* __LIBRARY__ && __GNUC__ */

I think the one from linux kernel is ok.

2) in both /usr/include/asm/unistd.h and kernel-source/include/asm-alpha/unistd.h
   _syscall5 (and _syscall0, 1, ...) are between
#if defined(__LIBRARY__) && defined(__GNUC__)
...
#endif /* __LIBRARY__ && __GNUC__ */

so I've had to add -D__LIBRARY__ (!!) so gcc doesn't complain about
"parse error".

3) definition of syscall() is different between
/usr/include/unistd.h and ( /usr/include/asm/unistd.h or
linux-2.0.32/include/asm-alpha/unistd.h ):

/usr/include/unistd.h:
	extern long int syscall __P ((long int __sysno, ...));

/usr/include/asm/unistd.h, linux-2.0.32/include/asm-alpha/unistd.h:
	extern long syscall (int, ...);

so I get...
raid_io.c: In function `_llseek':
raid_io.c:88: conflicting types for `syscall'
/usr/include/unistd.h:790: previous declaration of `syscall'

I've commented out the definition in /usr/include/unistd.h, and
then it compiles.

Well... ideas?? :)

Regards,
-- 
Roberto Lumbreras Pastor  *  mailto:rover@lander.es
Lander Internet - Spain   *  http://www.lander.es/
Tel +34 1 556.28.83       *  Fax +34 1 556.30.01

------ Hiroshima '45 ---- Chernobyl '86 ---- Windows '95 ------------


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-alpha-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: