[OpenAFS] afs-krb5 problems
Steve Devine
sdevine@msu.edu
Thu, 14 Apr 2005 13:46:57 -0400
This is a multi-part message in MIME format.
--------------050205040403020209090903
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Florian Flachmeier wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Steve Devine wrote:
>
>
>
>>Florian Flachmeier wrote:
>>
>>
>>
>[...]
>
>
>>Notice the make errors .. =========================
>>
>>
>
>
>
>>afs2k5db.c:39:23: afs/param.h: No such file or directory
>>afs2k5db.c:40:28: afs/cellconfig.h: No such file or directory
>>afs2k5db.c:41:22: afs/auth.h: No such file or directory
>>afs2k5db.c:42:23: afs/kauth.h: No such file or directory
>>afs2k5db.c:43:18: ubik.h: No such file or directory
>>
>>
>
>
>
>>========================= You need the afslibs and the kdc libs
>>
>>
>
>
>
>>Here is my configure script for building afs-krb5 Your mileage may
>>vary. ##################### #!/bin/sh env
>>CPPFLAGS='-I/usr/build_src/dest/include
>>-I/usr/build_src/dest/include/afs' \
>>LDFLAGS='-L/usr/build_src/dest/lib -L/usr/build_src/dest/lib/afs' \
>>#THIS is what did it. #And hacking k5-int.h line 1815
>>
>>
>
>
>
>>./configure --with-krb5-src=/usr/build_src/krb5-1.3.4/src
>>--with-krb5-config=/usr/local/krb5/bin/krb5-config
>>##############################
>>
>>
>
>
>
>>/sd
>>
>>
>
>Sorry, I possibly don't get it. Where do I get the afs libs and the
>kdc libs? Aren't they part of the whole package?
>
>
>
>>#THIS is what did it. #And hacking k5-int.h line 1815
>>
>>
>And what hacked you at that position? When I used that script (with
>edited paths) I got this error:
>
>gcc -c -g -O2 -I/usr/local/include
>- -I/root/testing/openafs-1.2.11/src/include -DPACKAGE_NAME=\"afs-krb5\"
>- -DPACKAGE_TARNAME=\"afs-krb5\" -DPACKAGE_VERSION=\"1.4\"
>- -DPACKAGE_STRING=\"afs-krb5\ 1.4\"
>- -DPACKAGE_BUGREPORT=\"kenh@cmf.nrl.navy.mil\" -DAFS=1 -DPRE_AFS35=1
>- -DAFS_TRY_FULL_PRINC=1 -DHAVE_DAEMON=1 -DSTDC_HEADERS=1
>- -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
>- -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
>- -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
>- -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MEMORY_H=1 -DHAVE_PATHS_H=1
>- -DHAVE_MALLOC_H=1 -DHAVE_STRERROR=1 -DRETSIGTYPE=void
>- -DALLOW_REGISTER -I/root/testing/krb5-1.3.3/src/include
>- -I/root/testing/krb5-1.3.3/src/include/krb5 afs2k5db.c
>In file included from /root/testing/krb5-1.3.3/src/include/k5-int.h:125,
> from afs2k5db.c:35:
>/root/testing/krb5-1.3.3/src/include/krb5/autoconf.h:167:1: warning:
>"KRB5_DEPRECATED" redefined
>In file included from afs2k5db.c:32:
>/root/testing/krb5-1.3.3/src/include/krb5.h:65:1: warning: this is the
>location of the previous definition
>In file included from /root/testing/krb5-1.3.3/src/include/k5-int.h:125,
> from afs2k5db.c:35:
>/root/testing/krb5-1.3.3/src/include/krb5/autoconf.h:182:1: warning:
>"KRB5_PRIVATE" redefined
>In file included from afs2k5db.c:32:
>/root/testing/krb5-1.3.3/src/include/krb5.h:69:1: warning: this is the
>location of the previous definition
>In file included from /root/testing/krb5-1.3.3/src/include/k5-int.h:125,
> from afs2k5db.c:35:
>/root/testing/krb5-1.3.3/src/include/krb5/autoconf.h:195:1: warning:
>"PACKAGE_BUGREPORT" redefined
><command line>:8:1: warning: this is the location of the previous
>definition
>/root/testing/krb5-1.3.3/src/include/krb5/autoconf.h:198:1: warning:
>"PACKAGE_NAME" redefined
><command line>:4:1: warning: this is the location of the previous
>definition
>/root/testing/krb5-1.3.3/src/include/krb5/autoconf.h:201:1: warning:
>"PACKAGE_STRING" redefined
><command line>:7:1: warning: this is the location of the previous
>definition
>/root/testing/krb5-1.3.3/src/include/krb5/autoconf.h:204:1: warning:
>"PACKAGE_TARNAME" redefined
><command line>:5:1: warning: this is the location of the previous
>definition
>/root/testing/krb5-1.3.3/src/include/krb5/autoconf.h:207:1: warning:
>"PACKAGE_VERSION" redefined
><command line>:6:1: warning: this is the location of the previous
>definition
>In file included from afs2k5db.c:35:
>/root/testing/krb5-1.3.3/src/include/k5-int.h:1816: error: syntax
>error before "krb5_donot_replay"
>afs2k5db.c:39:23: afs/param.h: No such file or directory
>afs2k5db.c:40:28: afs/cellconfig.h: No such file or directory
>afs2k5db.c:41:22: afs/auth.h: No such file or directory
>afs2k5db.c:42:23: afs/kauth.h: No such file or directory
>afs2k5db.c:43:18: ubik.h: No such file or directory
>afs2k5db.c:63: error: field `stats' has incomplete type
>afs2k5db.c:83: error: syntax error before "Date"
>afs2k5db.c:83: warning: no semicolon at end of struct or union
>afs2k5db.c:84: warning: data definition has no type or storage class
>afs2k5db.c:86: error: syntax error before "change_password_time"
>afs2k5db.c:86: warning: data definition has no type or storage class
>afs2k5db.c:106: error: `kaident' undeclared here (not in a function)
>afs2k5db.c:106: error: invalid application of `sizeof' to an
>incomplete type
>afs2k5db.c:107: error: syntax error before '}' token
>afs2k5db.c:128: error: syntax error before "Date"
>afs2k5db.c: In function `main':
>afs2k5db.c:152: error: storage size of `uheader' isn't known
>afs2k5db.c:154: error: storage size of `dbentry' isn't known
>afs2k5db.c:280: error: invalid application of `sizeof' to an
>incomplete type
>afs2k5db.c:282: error: invalid application of `sizeof' to an
>incomplete type
>afs2k5db.c:286: error: invalid application of `sizeof' to an
>incomplete type
>afs2k5db.c:331: error: invalid application of `sizeof' to an
>incomplete type
>afs2k5db.c:334: error: invalid application of `sizeof' to an
>incomplete type
>afs2k5db.c: At top level:
>afs2k5db.c:104: error: storage size of `userID' isn't known
>afs2k5db.c:105: error: storage size of `key' isn't known
>make: *** [afs2k5db.o] Error 1
>
>It is different from my earlier errors, but even when I remove
>afs2k5db from the PROGS variable at the Makefile again, I get an error
>at compiling... :(
>
>Any hints?
>
>flow
>- --
>Florian Flachmeier Diepholz,
>florianflachmeier@gmx.de Germany
>- --
>My GnuPG Key:
>http://ffla.dyndns.org/~florian/public-key.asc
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.3-nr1 (Windows XP)
>Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
>iD8DBQFCXqcnq0IILoh1gTsRAh+CAJ4kPZdKUvLOliwzZoEgBJZVfdRKEQCeJwwi
>tHpWNNisCV+5OnCc/1e11YU=
>=MYJQ
>-----END PGP SIGNATURE-----
>
>
>_______________________________________________
>OpenAFS-info mailing list
>OpenAFS-info@openafs.org
>https://lists.openafs.org/mailman/listinfo/openafs-info
>
>
>
Get the openafs source and build openafs from source. Then you will
have the afs libs. ( thats the directory dest in my script) .
Then I can't remember which I built first the kerberos stuff or the
afs-krb5 .. try building afs-krb5 first.
I kinda doubt you will have much luck doing this with packages. Besides
openafs-1.2.11 is old.
/sd
--
Steve Devine
Storage Systems
Academic Computing & Network Services
Michigan State University
Baseball is ninety percent mental; the other half is physical.
- Yogi Berra
--------------050205040403020209090903
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
<br>
Florian Flachmeier wrote:<br>
<blockquote type="cite" cite="mid425EA727.8060303@gmx.de">
<pre wrap="">-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Steve Devine wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Florian Flachmeier wrote:
</pre>
</blockquote>
<pre wrap=""><!---->[...]
</pre>
<blockquote type="cite">
<pre wrap="">Notice the make errors .. =========================
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">afs2k5db.c:39:23: afs/param.h: No such file or directory
afs2k5db.c:40:28: afs/cellconfig.h: No such file or directory
afs2k5db.c:41:22: afs/auth.h: No such file or directory
afs2k5db.c:42:23: afs/kauth.h: No such file or directory
afs2k5db.c:43:18: ubik.h: No such file or directory
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">========================= You need the afslibs and the kdc libs
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">Here is my configure script for building afs-krb5 Your mileage may
vary. ##################### #!/bin/sh env
CPPFLAGS='-I/usr/build_src/dest/include
-I/usr/build_src/dest/include/afs' \
LDFLAGS='-L/usr/build_src/dest/lib -L/usr/build_src/dest/lib/afs' \
#THIS is what did it. #And hacking k5-int.h line 1815
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">./configure --with-krb5-src=/usr/build_src/krb5-1.3.4/src
--with-krb5-config=/usr/local/krb5/bin/krb5-config
##############################
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">/sd
</pre>
</blockquote>
<pre wrap=""><!---->
Sorry, I possibly don't get it. Where do I get the afs libs and the
kdc libs? Aren't they part of the whole package?
</pre>
<blockquote type="cite">
<pre wrap="">#THIS is what did it. #And hacking k5-int.h line 1815
</pre>
</blockquote>
<pre wrap=""><!---->And what hacked you at that position? When I used that script (with
edited paths) I got this error:
gcc -c -g -O2 -I/usr/local/include
- -I/root/testing/openafs-1.2.11/src/include -DPACKAGE_NAME=\"afs-krb5\"
- -DPACKAGE_TARNAME=\"afs-krb5\" -DPACKAGE_VERSION=\"1.4\"
- -DPACKAGE_STRING=\"afs-krb5\ 1.4\"
- -DPACKAGE_BUGREPORT=\<a class="moz-txt-link-rfc2396E" href="mailto:kenh@cmf.nrl.navy.mil\">"kenh@cmf.nrl.navy.mil\"</a> -DAFS=1 -DPRE_AFS35=1
- -DAFS_TRY_FULL_PRINC=1 -DHAVE_DAEMON=1 -DSTDC_HEADERS=1
- -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
- -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
- -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
- -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MEMORY_H=1 -DHAVE_PATHS_H=1
- -DHAVE_MALLOC_H=1 -DHAVE_STRERROR=1 -DRETSIGTYPE=void
- -DALLOW_REGISTER -I/root/testing/krb5-1.3.3/src/include
- -I/root/testing/krb5-1.3.3/src/include/krb5 afs2k5db.c
In file included from /root/testing/krb5-1.3.3/src/include/k5-int.h:125,
from afs2k5db.c:35:
/root/testing/krb5-1.3.3/src/include/krb5/autoconf.h:167:1: warning:
"KRB5_DEPRECATED" redefined
In file included from afs2k5db.c:32:
/root/testing/krb5-1.3.3/src/include/krb5.h:65:1: warning: this is the
location of the previous definition
In file included from /root/testing/krb5-1.3.3/src/include/k5-int.h:125,
from afs2k5db.c:35:
/root/testing/krb5-1.3.3/src/include/krb5/autoconf.h:182:1: warning:
"KRB5_PRIVATE" redefined
In file included from afs2k5db.c:32:
/root/testing/krb5-1.3.3/src/include/krb5.h:69:1: warning: this is the
location of the previous definition
In file included from /root/testing/krb5-1.3.3/src/include/k5-int.h:125,
from afs2k5db.c:35:
/root/testing/krb5-1.3.3/src/include/krb5/autoconf.h:195:1: warning:
"PACKAGE_BUGREPORT" redefined
<command line>:8:1: warning: this is the location of the previous
definition
/root/testing/krb5-1.3.3/src/include/krb5/autoconf.h:198:1: warning:
"PACKAGE_NAME" redefined
<command line>:4:1: warning: this is the location of the previous
definition
/root/testing/krb5-1.3.3/src/include/krb5/autoconf.h:201:1: warning:
"PACKAGE_STRING" redefined
<command line>:7:1: warning: this is the location of the previous
definition
/root/testing/krb5-1.3.3/src/include/krb5/autoconf.h:204:1: warning:
"PACKAGE_TARNAME" redefined
<command line>:5:1: warning: this is the location of the previous
definition
/root/testing/krb5-1.3.3/src/include/krb5/autoconf.h:207:1: warning:
"PACKAGE_VERSION" redefined
<command line>:6:1: warning: this is the location of the previous
definition
In file included from afs2k5db.c:35:
/root/testing/krb5-1.3.3/src/include/k5-int.h:1816: error: syntax
error before "krb5_donot_replay"
afs2k5db.c:39:23: afs/param.h: No such file or directory
afs2k5db.c:40:28: afs/cellconfig.h: No such file or directory
afs2k5db.c:41:22: afs/auth.h: No such file or directory
afs2k5db.c:42:23: afs/kauth.h: No such file or directory
afs2k5db.c:43:18: ubik.h: No such file or directory
afs2k5db.c:63: error: field `stats' has incomplete type
afs2k5db.c:83: error: syntax error before "Date"
afs2k5db.c:83: warning: no semicolon at end of struct or union
afs2k5db.c:84: warning: data definition has no type or storage class
afs2k5db.c:86: error: syntax error before "change_password_time"
afs2k5db.c:86: warning: data definition has no type or storage class
afs2k5db.c:106: error: `kaident' undeclared here (not in a function)
afs2k5db.c:106: error: invalid application of `sizeof' to an
incomplete type
afs2k5db.c:107: error: syntax error before '}' token
afs2k5db.c:128: error: syntax error before "Date"
afs2k5db.c: In function `main':
afs2k5db.c:152: error: storage size of `uheader' isn't known
afs2k5db.c:154: error: storage size of `dbentry' isn't known
afs2k5db.c:280: error: invalid application of `sizeof' to an
incomplete type
afs2k5db.c:282: error: invalid application of `sizeof' to an
incomplete type
afs2k5db.c:286: error: invalid application of `sizeof' to an
incomplete type
afs2k5db.c:331: error: invalid application of `sizeof' to an
incomplete type
afs2k5db.c:334: error: invalid application of `sizeof' to an
incomplete type
afs2k5db.c: At top level:
afs2k5db.c:104: error: storage size of `userID' isn't known
afs2k5db.c:105: error: storage size of `key' isn't known
make: *** [afs2k5db.o] Error 1
It is different from my earlier errors, but even when I remove
afs2k5db from the PROGS variable at the Makefile again, I get an error
at compiling... :(
Any hints?
flow
- --
Florian Flachmeier Diepholz,
<a class="moz-txt-link-abbreviated" href="mailto:florianflachmeier@gmx.de">florianflachmeier@gmx.de</a> Germany
- --
My GnuPG Key:
<a class="moz-txt-link-freetext" href="http://ffla.dyndns.org/~florian/public-key.asc">http://ffla.dyndns.org/~florian/public-key.asc</a>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Thunderbird - <a class="moz-txt-link-freetext" href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</a>
iD8DBQFCXqcnq0IILoh1gTsRAh+CAJ4kPZdKUvLOliwzZoEgBJZVfdRKEQCeJwwi
tHpWNNisCV+5OnCc/1e11YU=
=MYJQ
-----END PGP SIGNATURE-----
_______________________________________________
OpenAFS-info mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenAFS-info@openafs.org">OpenAFS-info@openafs.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openafs.org/mailman/listinfo/openafs-info">https://lists.openafs.org/mailman/listinfo/openafs-info</a>
</pre>
</blockquote>
Get the openafs source and build openafs from source. Then you will
have the afs libs. ( thats the directory dest in my script) .<br>
Then I can't remember which I built first the kerberos stuff or the
afs-krb5 .. try building afs-krb5 first.<br>
I kinda doubt you will have much luck doing this with packages. Besides
openafs-1.2.11 is old.<br>
/sd<br>
<pre class="moz-signature" cols="72">--
Steve Devine
Storage Systems
Academic Computing & Network Services
Michigan State University
Baseball is ninety percent mental; the other half is physical.
- Yogi Berra
</pre>
</body>
</html>
--------------050205040403020209090903--