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

raidtools 0.42 doesn't compile on the alpha



I'm trying to compile raidtools-pre3-0.42 on an alpha with libc6.1 and
2.1.102. The compilation produces these warnings:

In file included from /usr/src/linux/include/linux/fs.h:20,
                 from common.h:31,
                 from mdadd.c:18:
/usr/src/linux/include/linux/stat.h:10: warning: `S_IFMT' redefined
/usr/include/sys/stat.h:35: warning: this is the location of the
      previous definition

This happens in all files, not just mdadd.c.

The serious problem is this however:

raid_io.c:86: parse error before `_llseek'
raid_io.c: In function `_syscall5':
raid_io.c:91: parse error before `{'
raid_io.c:97: parse error before `retval'
raid_io.c:95: declaration for parameter `retval' but no such parameter
raid_io.c:94: declaration for parameter `result' but no such parameter
raid_io.c:91: declaration for parameter `raidseek' but no such parameter
raid_io.c: In function `writer_thread':
raid_io.c:317: warning: cast from pointer to integer of different size
raid_io.c: In function `init_set':
raid_io.c:390: warning: cast to pointer from integer of different size

I don't know what's going on. I tried to look at the source but right
at the beginning (around line 86) I don't understand this portion:

static int _llseek (unsigned int, unsigned long,
		unsigned long, long long *, unsigned int);

static _syscall5( int, _llseek, unsigned int, fd, unsigned long, offset_high,
		unsigned long, offset_low, long long *, result,
		unsigned int, origin)

Shouldn't there be a semicolon at the end of the declaration of
_syscall5??? I tried putting the semicolon, and got these errors:

raid_io.c:86: parse error before `_llseek'
raid_io.c: In function `writer_thread':
raid_io.c:317: warning: cast from pointer to integer of different size
raid_io.c: In function `init_set':
raid_io.c:390: warning: cast to pointer from integer of different size
raid_io.c: At top level:
raid_io.c:84: warning: `_llseek' declared `static' but never defined

I also don't understand the syntax of the declaration of _syscall5...
Is it a gcc extension?

This is with egcs-2.90.28 980423 (egcs-1.0.3 prerelease).

None of these problems appear in x86 machines...

Thanks in advance,
Carlos


--
To UNSUBSCRIBE, email to debian-alpha-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: