[OpenAFS-devel] Tru64 5.0 broken?

Johan Danielsson joda+openafs@pdc.kth.se
07 Jul 2001 23:53:22 +0200


Derrick J Brashear <shadow@dementia.org> writes:

> Suggest how? I can't assume they'll be root. I suppose I could add an
> include path.

You shouldn't make the link, just figure out what directory to include
from. The Arla configure.in does this:

  # XXX find kernel include dir
  nodename=`hostname | sed 's/\..*//' | tr 'a-z' 'A-Z'`
  foo=`ls $SYS/inet.h $SYS/GENERIC/inet.h $SYS/$nodename/inet.h $SYS/*/inet.h 2> /dev/null | head -1 | sed -e 's,/inet.h,,'`
  KERNEL_CPPFLAGS="${KERNEL_CPPFLAGS} -I/usr/sys/include -I$foo"

where SYS is the --with-sys provided path.

/Johan