Coda File System

Compiling on OS X - results so far

From: Christer Bernérus <bernerus_at_cs.chalmers.se>
Date: Sun, 28 Mar 2004 16:42:57 -0500
Hi all.

I'm new to this list, but have worked with AFS and DFS for some years  
now. Time to move on. I really miss the disconnected filesystem feature  
on OSX so I decided to give it a try using the
instructions from Bill that Ivan sent me. Here are the results so far.

I used the lwp 1.11, rvm1.9 and rpc2.1.21 and indeed, I didn't have to  
remove  traditional-cpp from the configure source. Thanks Jan, and  
you're right. I've been in touch with one of the Apple developer and he  
told me that traditional-cpp is no longer needed, and is even  
deprecated, so it's time to zap it completely for OSX. It's still left  
in coda-6.0.5 btw.

Another thing that I should report is that the resolv.h file does not  
compile during configure. A big box  is drawn and tells me to report  
it. Well, I dug into that and it seems that resolv.h won't compile  
unless you have first #include'd <netinet/in.h>

Third, the Makefile.in's in  coda-src/auth2 and coda-src/venus seems to  
need -lresolv in LIBS to make everything compile.

Apart from the above, the coda code compiles nicely on my TiBook.

When it comes to the kernel module I found BIll's instructions somewhat  
confusing, and could really not proceed.
  I hope you can comment on this Bill:


>  % setenv CVSROOT :pserver:anoncvs_at_anoncvs.FreeBSD.org:/home/ncvs %  
> cvs login
>  At the prompt, enter the password ``anoncvs''.
> % cvs co sys/coda
> % cvs release -d sys/coda
That would really throw away the code I just fetched. I'm not sure that  
is what was intended. In any case releasing the code failed for me and  
I was left with something that may have been partly deleted.
When going back to the freebsd server, the login hangs forever,  
hopefully something is wrong in their end :-)
> % cvs logout

>   
> http://www.coda.cs.cmu.edu/pub/coda/freebsd/freebsd-current- 
> realms.patch
>
> patch -p0 < freebsd-current-realms.patch

I ran the patch command and it seems like the patch has been applied in  
the CVS repository now. In any case, patch told be that
the hunks were already applied.
>
I would have expected some kind of build here, but found none. There  
were no Makefiles around either.
>  rm -rf /dev/cfs0
>  mknod /dev/cfs0 c 93 0
>  chmod 666 /dev/cfs0
>
>  tar zxvf coda.tar.gz -C /usr/local
The coda.tar.gz file was missing, maybe the  cvs release threw it away?
>  chown -R root:wheel /usr/local
This might seem reasonable to do, but may not be so if something else  
has been installed in /usr/local. OK for testing though.
>  sudo venus-setup testserver.coda.cs.cmu.edu 20000
I tried to do that using the venus-setup found in the coda-src/scripts  
directory, but failed utterly.
But this is where I expected things to fail anyway since I don't have  
any kernel extension yet.

I would like to do some work to get a working kext for coda, but  
getting the build environment right is beyond my competence - really!  
So
a little help here would be nice.
I guess  the kext code will have to be developed in an xcode  
environment to get all the darwin bookkeeping stuff right.

-- 
|  Christer Bernérus
|  System Manager
|  IT systems & services/Medic
|  Chalmers University of Technology
|   Email: bernerus_at_cs.chalmers.se    |
Received on 2004-03-29 16:18:57