[OpenAFS] OpenAFS 1.4.0 and FreeBSD 6.0 on AMD64

Ryan Sheidow ryansheidow@hotmail.com
Sun, 01 Jan 2006 14:37:41 -0400


Hello,

I have been madly trying to get the OpenAFS client running on my FreeBSD 
box.  Below are the steps I have taken thus far, but I am now pretty much 
stuck.  Any assistance is greatly appreciated.

-- Start What I have done ----

- Installed kernel source ( If this is not done the afs make will complain 
about opt_global.h missing )
$ sysinstall
- Choose 'Configure'
- Choose 'Distributions'
- Choose 'src'
- Choose 'sys' and then choose 'OK', and 'OK' again.
- Choose an FTP site to download the sources from. Skip the network 
configuration if prompted. After the install is complete,
- Choose the 'Exit' options until you exit sysinstall.
$ cd /usr/src/sys/i386/conf
$ config GENERIC

- I created /usr/src/openafs/openafs-1.4.0/src/config/param.amd64_fbsd_60.h 
based on param.amd64_fbsd_53.h and param.i386_fbsd_60.h

- I added "#define SYS_NAME_ID_amd64_fbsd_60 3009" to 
/usr/src/openafs/openafs-1.4.0/src/config/afs_sysnames.h "#define 
SYS_NAME_ID_amd64_fbsd_60 3009"

cd /usr/src/openafs/openafs-1.4.0
grep -r mpreferred *
- Changed all references to "-mpreferred-stack-boundary=2" to 
"-mpreferred-stack-boundary=4"
- If this is not done the afs make will complain 
"-mpreferred-stack-boundary=2 is not between 4 and 12"

cd /usr/src/openafs/openafs-1.4.0/src/libafs/MODLOAD/
vim vnode_if.h
# commented out references to "vnode_if_typedef.h" and "vnode_if_newproto.h"

$ cd /usr/src/openafs/openafs-1.4.0
$ ./configure --with-afs-sysname=amd64_fbsd_60 --enable-transarc-paths 
--with-bsd-kernel-headers=/usr/src/sys 
--with-bsd-kernel-build=/usr/src/sys/amd64/compile/GENERIC
$ gmake

-- End What I have done ----

Currently I am getting the following error during make and I am unsure how 
to proceed.

"Error: Incorrect register `%rax' used with `l' suffix"
In file included from ../h/systm.h:42,
                 from 
/usr/src/openafs/openafs-1.4.0/src/afs/sysincludes.h:127,
                 from 
/usr/src/openafs/openafs-1.4.0/src/afs/afs_analyze.c:20:
../machine/cpufunc.h: In function `invlpg':
../machine/cpufunc.h:448: warning: cast to pointer from integer of different 
size
/var/tmp//ccZSD7zr.s: Assembler messages:
/var/tmp//ccZSD7zr.s:1104: Error: Incorrect register `%rax' used with `l' 
suffix
*** Error code 1

Stop in /usr/src/openafs/openafs-1.4.0/src/libafs/MODLOAD.
*** Error code 1

Stop in /usr/src/openafs/openafs-1.4.0/src/libafs.
*** Error code 1

Stop in /usr/src/openafs/openafs-1.4.0.
*** Error code 1

Stop in /usr/src/openafs/openafs-1.4.0.
*** Error code 1

Stop in /usr/src/openafs/openafs-1.4.0.

_________________________________________________________________
Don't just Search. Find! http://search.sympatico.msn.ca/default.aspx The new 
MSN Search! Check it out!