[OpenAFS] Re: 1.6.2 compilation notes, Sol10
Måns Nilsson
mansaxel@besserwisser.org
Sat, 16 Mar 2013 19:52:45 +0100
--SLDf9lqlvOQaIe6s
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: [OpenAFS] Re: 1.6.2 compilation notes, Sol10 Date: Fri, Mar 15=
, 2013 at 02:11:41PM +0100 Quoting M=C3=A5ns Nilsson (mansaxel@besserwisser=
=2Eorg):
> Subject: Re: [OpenAFS] Re: 1.6.2 compilation notes, Sol10 Date: Thu, Mar =
14, 2013 at 02:16:57PM -0400 Quoting Derrick Brashear (shadow@gmail.com):
> > Pretty sure by 1.6.2 it's PATH_KRB5_CONFIG, but yes, that's the idea=20
>=20
> Without setting that variable, ./configure finds the right krb5-config
> and proceeds to ignore it. (see my last mail) I'm afraid setting the
> variable is, in effect, a NOOP. Am i worng?
Didn't get it right, anyway:=20
./configure --disable-kernel-module \
--prefix=3D/opt/openafs \
--exec-prefix=3D/opt/openafs-162 \
PATH_KRB5_CONFIG=3D/usr/heimdal/bin/krb5-config \
CC=3D/opt/SUNWspro/bin/cc && make dest
=2E..twiddle...
+ cd src
+ cd aklog
+ make all
/opt/SUNWspro/bin/cc -o aklog -O -I/tank/scratch/openafs-1.6.2/src/config =
-I/tank/scratch/openafs-1.6.2/include -I. -I. -dy -Bdynamic -DALLOW_REGIS=
TER aklog.o aklog_roken.o krb_util.o linked_list.o -lnsl -lsocket -lkrb5=
-lsocket -lnsl -lresolv /tank/scratch/openafs-1.6.2/lib/libprot.a /tank/sc=
ratch/openafs-1.6.2/lib/libauth.a /tank/scratch/openafs-1.6.2/lib/libubik.=
a /tank/scratch/openafs-1.6.2/lib/librxkad.a /tank/scratch/openafs-1.6.2/l=
ib/libsys.a /tank/scratch/openafs-1.6.2/lib/librx.a /tank/scratch/openafs-=
1.6.2/lib/libsys.a /tank/scratch/openafs-1.6.2/lib/liblwp.a /tank/scratch/=
openafs-1.6.2/lib/libdes.a /tank/scratch/openafs-1.6.2/lib/libafscom_err.a =
/tank/scratch/openafs-1.6.2/lib/libcmd.a /tank/scratch/openafs-1.6.2/lib/l=
ibafsutil.a -lresolv -lsocket -lnsl -lintl -ldl
Odefinierad f=C3=B6rst refererad
symbol i fil
krb5_encrypt_EncryptedData aklog.o
krb5_principal_get_realm aklog.o
encode_EncTicketPart aklog.o
krb5_crypto_init aklog.o
krb5_generate_random_keyblock aklog.o
krb5_crypto_destroy aklog.o
length_Ticket aklog.o
krb524_convert_creds_kdc aklog.o
krb5_524_conv_principal aklog.o
encode_Ticket aklog.o
length_EncTicketPart aklog.o
ld: allvarligt: Symbolreferensfel. Inga utdata skrivs till aklog
*** Error code 1
make: Fatal error: Command failed for target `aklog'
Oh. Let's try another way:=20
make clean && \
./configure --disable-kernel-module \
--prefix=3D/opt/openafs \
--exec-prefix=3D/opt/openafs-162 \
KRB5_CONFIG=3D/usr/heimdal/bin/krb5-config \
CC=3D/opt/SUNWspro/bin/cc && make dest=20
=2E..twiddle...
cd src && cd libafscp && make all
/opt/SUNWspro/bin/cc -O -I/tank/scratch/openafs-1.6.2/src/config -I/tank/s=
cratch/openafs-1.6.2/include -I. -I. -I.. -DNINTERFACE -mt -DAFS_PTHREAD_E=
NV -dy -Bdynamic -DRXDEBUG -c afscp_callback.c
/opt/SUNWspro/bin/cc -O -I/tank/scratch/openafs-1.6.2/src/config -I/tank/s=
cratch/openafs-1.6.2/include -I. -I. -I.. -DNINTERFACE -mt -DAFS_PTHREAD_E=
NV -dy -Bdynamic -DRXDEBUG -c afscp_server.c
"afscp_server.c", line 40: cannot find include file: <krb5.h>
"afscp_server.c", line 172: undefined symbol: krb5_context
"afscp_server.c", line 172: syntax error before or at: k5con
"afscp_server.c", line 182: warning: implicit function declaration: krb5_in=
it_context
"afscp_server.c", line 182: undefined symbol: k5con
"afscp_server.c", line 187: warning: implicit function declaration: krb5_se=
t_default_realm
"afscp_server.c", line 203: cannot recover from previous errors
cc: acomp failed for afscp_server.c
*** Error code 2
make: Fatal error: Command failed for target `afscp_server.o'
Current working directory /tank/scratch/openafs-1.6.2/src/libafscp
*** Error code 1
make: Fatal error: Command failed for target `libafscp'
Current working directory /tank/scratch/openafs-1.6.2
*** Error code 1
make: Fatal error: Command failed for target `build'
Current working directory /tank/scratch/openafs-1.6.2
*** Error code 1
make: Fatal error: Command failed for target `all'
Something is wrong; lets try to use a few grep'ed things: =20
make clean ; \
./configure --disable-kernel-module \
--prefix=3D/opt/openafs \
--exec-prefix=3D/opt/openafs-162 \
KRB5_CONFIG=3D/usr/heimdal/bin/krb5-config \
CC=3D/opt/SUNWspro/bin/cc \
KRB5_LIBS=3D'-L/usr/heimdal/lib -lkrb5 -lhx509 -lcom_err -lhcrypto -lasn1 =
-lwind -lroken -ldoor -lresolv -lnsl -lsocket -pthreads' \
KRB5_CPPFLAGS=3D'-I/usr/heimdal/include' && make dest=20
=2E..twiddle...
cd src && cd libafscp && make all
/opt/SUNWspro/bin/cc -O -I/tank/scratch/openafs-1.6.2/src/config -I/tank/s=
cratch/openafs-1.6.2/include -I. -I. -I.. -DNINTERFACE -mt -DAFS_PTHREAD_E=
NV -dy -Bdynamic -DRXDEBUG -c afscp_callback.c
/opt/SUNWspro/bin/cc -O -I/tank/scratch/openafs-1.6.2/src/config -I/tank/s=
cratch/openafs-1.6.2/include -I. -I. -I.. -DNINTERFACE -mt -DAFS_PTHREAD_E=
NV -dy -Bdynamic -DRXDEBUG -c afscp_server.c
"afscp_server.c", line 40: cannot find include file: <krb5.h>
"afscp_server.c", line 172: undefined symbol: krb5_context
"afscp_server.c", line 172: syntax error before or at: k5con
"afscp_server.c", line 182: warning: implicit function declaration: krb5_in=
it_context
"afscp_server.c", line 182: undefined symbol: k5con
"afscp_server.c", line 187: warning: implicit function declaration: krb5_se=
t_default_realm
"afscp_server.c", line 203: cannot recover from previous errors
cc: acomp failed for afscp_server.c
*** Error code 2
make: Fatal error: Command failed for target `afscp_server.o'
Current working directory /tank/scratch/openafs-1.6.2/src/libafscp
*** Error code 1
make: Fatal error: Command failed for target `libafscp'
Current working directory /tank/scratch/openafs-1.6.2
*** Error code 1
make: Fatal error: Command failed for target `build'
Current working directory /tank/scratch/openafs-1.6.2
*** Error code 1
make: Fatal error: Command failed for target `all'
Adding -I/usr/heimdal/include helps, just as for src/libafscp/afscp_util.c.=
But generally, compiling halts time after time.=20
The only thing that helps is to force both preprocessor, compiler and
linker to _always_ look at heimdal libs and .h files (using CPPFLAGS
and LDFLAGS). And, I'm quite certain that is malletstyle fault-finding. Or
carpet bombing.
--=20
M=C3=A5ns Nilsson primary/secondary/besserwisser/machina
MN-1334-RIPE +46 705 989668
Is it NOUVELLE CUISINE when 3 olives are struggling with a scallop in a
plate of SAUCE MORNAY?
--SLDf9lqlvOQaIe6s
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAlFEv30ACgkQ02/pMZDM1cUjFQCeMEXC8qNi/TdEe+l5fWZjCWoH
q24An3SiU7F2diP0jPe3vo/yuuK5A51D
=FcdY
-----END PGP SIGNATURE-----
--SLDf9lqlvOQaIe6s--