[PVFS-developers] A couple buglets in pvfs-kernel 1.6.1 on ia64

Troy Baer troy@osc.edu
Tue, 18 Nov 2003 14:34:52 -0500


Hi gang,

I got the following errors trying to build pvfs-kernel 1.6.1 on
an ia64 system running Linux 2.4.21:


make[1]: Entering directory
`/usr/local/src/pvfs/troy/pvfs-kernel-1.6.1-mck/libkernsys'
gcc -MMD -I/usr/local/src/kernel/linux-2.4.21-mck/include  -Iinclude -I../ -O2
-Wall -Wstrict-prototypes -DMODULE -D__KERNEL__ -DLINUX -pipe
-fomit-frame-pointer -fno-strict-aliasing -ffixed-r13
-mfixed-range=f10-f15,f32-f127 -falign-functions=32 -DARCH_IA64  -c ksyscall.c
-o ksyscall.o
ksyscall.c: In function `kern_recv':
ksyscall.c:540: `msg' undeclared (first use in this function)
ksyscall.c:540: (Each undeclared identifier is reported only once
ksyscall.c:540: for each function it appears in.)
[a bunch of possibly-used-before-initialized warnings]
make[1]: *** [ksyscall.o] Error 1


I had to make the following change there to get it to build:

...
#elif defined(ARCH_ALPHA) || defined(ARCH_IA64)
    /* err = recv(sockfd, msg, len, flags); */
   err = recv(sockfd, buf, len, flags);
#endif
...

I also had to move references to "-mpreferred-stack-boundary=2"
in the following files:

libkernsys/Makefile.in
libkpvfs/klib/Makefile.in
libkpvfs/kshared/Makefile.in

It looks like the configure script will add this if it's on an x86
system anyway.

	--Troy
-- 
Troy Baer                       email:  troy@osc.edu
Science & Technology Support    phone:  614-292-9701
Ohio Supercomputer Center       web:  http://oscinfo.osc.edu