Re: [OpenAFS] env vars being ignored - 1.4.2 building aklog

2007-01-04 Thread Joakim Fallsjo
Derrick J Brashear [EMAIL PROTECTED] writes:


 CC will be ignored. Because we build kernel stuff, we go out of our
 way to ensure we use the compiler we want.l If someone wants to
 contribute the autoconf work needed to fix it (and it's not simple,
 how do you test a kernel compiler) we will fix it.

I belive Haba and I wrote auto* tests to locate a working Sun Compiler, 
originally committed in
DELTA solaris-find-valid-cc-for-compiling-kernel-20020813

Later updated by Love.

/JockeF
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] env vars being ignored - 1.4.2 building aklog

2007-01-03 Thread Jeffrey Altman
Configure OpenAFS with --with-krb5 then aklog will build.


Jeff Blaine wrote:
 CC and CPPFLAGS being ignored (I am using GNU make of course)
 when building aklog.  Also, isn't this supposed to build by
 default, what with kaserver's deprecation and all... ?
 
 Any ideas?
 
 LDFLAGS=-L/export/k5/lib -R/export/k5/lib
 CPPFLAGS=-I/export/k5/include
 export LDFLAGS CPPFLAGS
 CC=gcc; export CC
 
 configure --opts-here... , make, make dest blah blah
 ...
 src  cd aklog
 aklog  make
 /opt/SUNWspro/bin/cc  -DALLOW_REGISTER
 -I/export/home/src/openafs-1.4.2/src/config -I. -I.
 -I/export/home/src/openafs-1.4.2/include
 -I/export/home/src/openafs-1.4.2/include/afs
 -I/export/home/src/openafs-1.4.2/include/rx
 -I/export/home/src/openafs-1.4.2 -I/export/home/src/openafs-1.4.2/src
 -I/export/home/src/openafs-1.4.2/src -dy -Bdynamic  -c aklog.c
 aklog.h, line 15: cannot find include file: krb5.h
 aklog.c, line 21: warning: implicit function declaration: exit
 cc: acomp failed for aklog.c
 make: *** [aklog.o] Error 2
 aklog  grep SUNWspro *
 aklog  ls /export/k5/include/
 com_err.hgssrpc/  krb5/profile.h
 gssapi/  kerberosIV/  krb5.h
 aklog 
 ___
 OpenAFS-info mailing list
 OpenAFS-info@openafs.org
 https://lists.openafs.org/mailman/listinfo/openafs-info


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [OpenAFS] env vars being ignored - 1.4.2 building aklog

2007-01-03 Thread Jim Rees
Jeff Blaine wrote:

  CC and CPPFLAGS being ignored (I am using GNU make of course)
  when building aklog.  Also, isn't this supposed to build by
  default, what with kaserver's deprecation and all... ?

You want KRB5CFLAGS and KRB5LIBS.  These are options to configure, not to
make.  If this isn't documented somewhere it should be.

To build aklog you need configure --with-krb5.  This is not currently the
default but I'm sure it will be soon.  Note that if you are using heimdal
you don't need aklog, use heimdal's afslog instead.  Again, if this isn't
documented, it should be.

You shouldn't need gmake.  I don't know about the compiler issue but I'm
sure it's been discussed on the -devel mailing list.
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] env vars being ignored - 1.4.2 building aklog

2007-01-03 Thread Jeff Blaine

Indeed - error on my part.

I mistakenly assumed that the option for pointing to
krb5-config would be --with-krb5-config=PATH

It's --with-krb5-conf :|

Jeffrey Altman wrote:

Configure OpenAFS with --with-krb5 then aklog will build.


Jeff Blaine wrote:

CC and CPPFLAGS being ignored (I am using GNU make of course)
when building aklog.  Also, isn't this supposed to build by
default, what with kaserver's deprecation and all... ?

Any ideas?

LDFLAGS=-L/export/k5/lib -R/export/k5/lib
CPPFLAGS=-I/export/k5/include
export LDFLAGS CPPFLAGS
CC=gcc; export CC

configure --opts-here... , make, make dest blah blah
...
src  cd aklog
aklog  make
/opt/SUNWspro/bin/cc  -DALLOW_REGISTER
-I/export/home/src/openafs-1.4.2/src/config -I. -I.
-I/export/home/src/openafs-1.4.2/include
-I/export/home/src/openafs-1.4.2/include/afs
-I/export/home/src/openafs-1.4.2/include/rx
-I/export/home/src/openafs-1.4.2 -I/export/home/src/openafs-1.4.2/src
-I/export/home/src/openafs-1.4.2/src -dy -Bdynamic  -c aklog.c
aklog.h, line 15: cannot find include file: krb5.h
aklog.c, line 21: warning: implicit function declaration: exit
cc: acomp failed for aklog.c
make: *** [aklog.o] Error 2
aklog  grep SUNWspro *
aklog  ls /export/k5/include/
com_err.hgssrpc/  krb5/profile.h
gssapi/  kerberosIV/  krb5.h
aklog 
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info

___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] env vars being ignored - 1.4.2 building aklog

2007-01-03 Thread Jeff Blaine

Jim Rees wrote:

Jeff Blaine wrote:

  CC and CPPFLAGS being ignored (I am using GNU make of course)
  when building aklog.  Also, isn't this supposed to build by
  default, what with kaserver's deprecation and all... ?

You want KRB5CFLAGS and KRB5LIBS.  These are options to configure, not to
make.  If this isn't documented somewhere it should be.


Thanks Jim -

If I'm not misunderstanding the current configure output, these
are set by configure these days (when one runs configure properly).

config.log:configure:19785: result: Adding -I/export/k5/include to 
KRB5CFLAGS


[ I assume you saw (or will see) my response to J.A. ]


To build aklog you need configure --with-krb5.  This is not currently the
default but I'm sure it will be soon.  Note that if you are using heimdal
you don't need aklog, use heimdal's afslog instead.  Again, if this isn't
documented, it should be.

You shouldn't need gmake.  I don't know about the compiler issue but I'm
sure it's been discussed on the -devel mailing list.

___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] env vars being ignored - 1.4.2 building aklog

2007-01-03 Thread Jim Rees
Jeff Blaine wrote:

  If I'm not misunderstanding the current configure output, these
  are set by configure these days (when one runs configure properly).

That's only if you have krb5-config.  I thought you didn't, because a) you
have Solaris and I thought Solaris didn't come with anything, and b) I
misunderstood your problem.
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] env vars being ignored - 1.4.2 building aklog

2007-01-03 Thread Ken Hornstein
  CC and CPPFLAGS being ignored (I am using GNU make of course)
  when building aklog.  Also, isn't this supposed to build by
  default, what with kaserver's deprecation and all... ?

You want KRB5CFLAGS and KRB5LIBS.  These are options to configure, not to
make.  If this isn't documented somewhere it should be.

Those variables are now marked with AC_ARG_VAR(), so they should display
useful information in the configure help output at least.  For a while
they weren't this way, because of old autoconfs still in use.

(The way it works is that if a krb5-config script is being used, it
overrides KRB5CFLAGS and KRB5LIBS; if one is not being used, either the
environment settings or what is given on the autoconf command line for
those variables is used).

--Ken
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] env vars being ignored - 1.4.2 building aklog

2007-01-03 Thread Jeffrey Altman
Jim Rees wrote:

 To build aklog you need configure --with-krb5.  This is not currently the
 default but I'm sure it will be soon.  Note that if you are using heimdal
 you don't need aklog, use heimdal's afslog instead.  Again, if this isn't
 documented, it should be.

aklog builds with Heimdal.  asetkey does not.





smime.p7s
Description: S/MIME Cryptographic Signature


Re: [OpenAFS] env vars being ignored - 1.4.2 building aklog

2007-01-03 Thread Derrick J Brashear

On Wed, 3 Jan 2007, Jeff Blaine wrote:


CC and CPPFLAGS being ignored (I am using GNU make of course)
when building aklog.  Also, isn't this supposed to build by
default, what with kaserver's deprecation and all... ?


CC will be ignored. Because we build kernel stuff, we go out of our way to 
ensure we use the compiler we want.l If someone wants to contribute the 
autoconf work needed to fix it (and it's not simple, how do you test a 
kernel compiler) we will fix it.



configure --with-krb5 or no aklog. does --opts-here include --with-krb5?
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] env vars being ignored - 1.4.2 building aklog

2007-01-03 Thread Brandon S. Allbery KF8NH


On Jan 3, 2007, at 16:30 , Jeffrey Altman wrote:


Jim Rees wrote:

To build aklog you need configure --with-krb5.  This is not  
currently the
default but I'm sure it will be soon.  Note that if you are using  
heimdal
you don't need aklog, use heimdal's afslog instead.  Again, if  
this isn't

documented, it should be.


aklog builds with Heimdal.  asetkey does not.


I would add that, while asetkey is not necessary with Heimdal  
(anywhere you can specify a keytab, you can use AFSKEYFILE:...  
instead), aklog has some advantages over afslog because it  
communicates with the ptserver and produces tokens which look more  
correct when your Kerberos principal's pts ID is different from your  
Unix uid (as with admin instances, for example).


--
brandon s. allbery[linux,solaris,freebsd,perl] [EMAIL PROTECTED]
system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED]
electrical and computer engineering, carnegie mellon universityKF8NH



___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] env vars being ignored - 1.4.2 building aklog

2007-01-03 Thread Marcus Watts
[EMAIL PROTECTED] replied:
 Jim Rees wrote:
 
  To build aklog you need configure --with-krb5.  This is not currently the
  default but I'm sure it will be soon.  Note that if you are using heimdal
  you don't need aklog, use heimdal's afslog instead.  Again, if this isn't
  documented, it should be.
 
 aklog builds with Heimdal.  asetkey does not.

I have patches for asetkey to build with heimdal as well.
Right now they're part of the rxk5 patch - but could
be split out.  The problem is trivial:
 mit:heimdal:
key-contents   key-keyvalue.data
key-length key-keyvalue.length

-Marcus Watts
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info