On Wed, Feb 22, 2006 at 06:59:37AM +1100, Nathan Scott wrote: > > attached is a patch which fixes the compilation of the ioctl syscalls on > > hurd-i386 by essentially exempting that file. > > OOC, what was the compiler error?
Actually, it appears the compile runs fine (modulo the PATH_MAX issue which has been reported in a seperate bug), but {get,set}fattr fail with SIGILL: [EMAIL PROTECTED]:~/attr-2.4.25$ LD_PRELOAD=libattr/.libs/libattr.so.1.1.0 getfattr/.libs/getfattr -d -m "gnu.*" /servers/exec Illegal instruction #0 0x0112b92a in syscall () from /lib/libc.so.0.3 #1 0x01022568 in listxattr (path=0xe8 <Address 0xe8 out of bounds>, list=0xe8 <Address 0xe8 out of bounds>, size=232) at syscalls.c:248 I don't think the syscall() is useful on the Hurd, see below. > > A more elegant fix would be to check whether the *xattr are available in > > glibc and use them rather than the syscalls. Not sure how upstream > > feels about this. > > It would be better to simply exclude syscalls.c from the build on > your platform. From this patch I take it that the Hurd is using > a libc that provides the Linux extended attribute system calls? > That seems a bit odd, but OK. As the Hurd is running in user space, it has no syscalls per se. Conventional Unix syscalls are handled via RPCs by glibc. The *xattr calls are just regular glibc functions on the Hurd, as the file systems reside in user space as well and need no kernel handling. While the patch to add these functions has been around for a while, it only get committed to glibc's trunk two days ago, see http://sources.redhat.com/ml/glibc-cvs/2006-q1/msg00693.html > I can easily fix up the Makefile for you - what is the definition > of PKG_PLATFORM in the generated attr/include/builddefs file from > your build (is it "hurd"?) It is 'gnu'. Thanks for looking into this. cheers, Michael -- Michael Banck Debian Developer [EMAIL PROTECTED] http://www.advogato.org/person/mbanck/diary.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]