Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 May 2012 19:03:06 -0400 (EDT)
From:      Benjamin Kaduk <kaduk@MIT.EDU>
To:        Jerry McAllister <jerrymc@msu.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: AFS install
Message-ID:  <alpine.GSO.1.10.1205191844150.27539@multics.mit.edu>
In-Reply-To: <20120516214416.GA14804@gizmo.acns.msu.edu>
References:  <20120514222724.GA5158@gizmo.acns.msu.edu> <alpine.GSO.1.10.1205150013570.27539@multics.mit.edu> <20120516214416.GA14804@gizmo.acns.msu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 16 May 2012, Jerry McAllister wrote:

> On Tue, May 15, 2012 at 12:51:04AM -0400, Benjamin Kaduk wrote:
>
> Hello Ben,
>
> Thank you for your response.
>
> I cleaned and then copied the 82 file to 83 and then edited it
> to replace all 82-s with 83 or added it where there seemed to be
> a list of versions.   It got a lot further, but now dies not finding
> another file.
>
>  ../rpc/types.h:77:27: error: rpc/netconfig.h: No such file or directory

Ah, I see what is going on.  This is an artifact of the old build system I 
inherited, which is no longer used for OpenAFS git master; unfortunately, 
the new code (which uses FreeBSD's standard kernel module building 
infrastructure) is not directly mergable to the OpenAFS 1.6.x branch, so 
the release version is still using the old build system.

The "proper" way to fix it is to clean the work tree, redo the copying 
param.amd64_fbsd_82.h file, and then find this part of 
openafs-1.6.0/src/libafs/MakefileProto.FBSD.in:
%        -ln -fs ${KSRC}/nfs nfs
%<all -fbsd_71 -fbsd_72 -fbsd_72 -fbsd_73 -fbsd_74 -fbsd_80 -fbsd_81 -fbsd_82 -fbsd_90>
%        -ln -fs /usr/include/rpc rpc
%<fbsd_71 fbsd_72 fbsd_73 fbsd_74 fbsd_80 fbsd_81 fbsd_82 fbsd_90>
%        -ln -fs ${KSRC}/rpc rpc
%<all>
which is doing conditionals on the particular FreeBSD version to account 
for moved headers, instead of a more intelligent version number 
comparison.  Add "-fbsd_83" to the first line ("all -fbsd_71 [...]")
and "fbsd_83" to the second one ("fbsd_71 fbsd_72 [...]"), and then a 
build should get past this issue.

However, if you just want it to build now, I think there is an easier fix. 
(I'm not 100% sure, since there are some ... weird ... things going on in 
this build system, and I haven't played with it recently.)
Edit openafs-1.6.0/src/libafs/Makefile and find the line that has
"-ln -fs /usr/include/rpc rpc"
and change that to be
"-ln -fs ${KSRC}/rpc rpc"
instead (preserving the tab character at the beginning of the line).  I 
expect that to let the build continue.

Again, sorry for all these troubles; I'll bump up the priority of getting 
the port updated.

-Ben Kaduk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.GSO.1.10.1205191844150.27539>