Subject: Re: [OpenAFS] Re: 1.6.2 compilation notes, Sol10 Date: Fri, Mar 15, 2013 at 02:11:41PM +0100 Quoting Måns Nilsson ([email protected]): > Subject: Re: [OpenAFS] Re: 1.6.2 compilation notes, Sol10 Date: Thu, Mar 14, > 2013 at 02:16:57PM -0400 Quoting Derrick Brashear ([email protected]): > > Pretty sure by 1.6.2 it's PATH_KRB5_CONFIG, but yes, that's the idea > > 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:
./configure --disable-kernel-module \
--prefix=/opt/openafs \
--exec-prefix=/opt/openafs-162 \
PATH_KRB5_CONFIG=/usr/heimdal/bin/krb5-config \
CC=/opt/SUNWspro/bin/cc && make dest
...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_REGISTER
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/scratch/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/lib/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/libafsutil.a -lresolv -lsocket -lnsl -lintl -ldl
Odefinierad först 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:
make clean && \
./configure --disable-kernel-module \
--prefix=/opt/openafs \
--exec-prefix=/opt/openafs-162 \
KRB5_CONFIG=/usr/heimdal/bin/krb5-config \
CC=/opt/SUNWspro/bin/cc && make dest
...twiddle...
cd src && cd libafscp && make all
/opt/SUNWspro/bin/cc -O -I/tank/scratch/openafs-1.6.2/src/config
-I/tank/scratch/openafs-1.6.2/include -I. -I. -I.. -DNINTERFACE -mt
-DAFS_PTHREAD_ENV -dy -Bdynamic -DRXDEBUG -c afscp_callback.c
/opt/SUNWspro/bin/cc -O -I/tank/scratch/openafs-1.6.2/src/config
-I/tank/scratch/openafs-1.6.2/include -I. -I. -I.. -DNINTERFACE -mt
-DAFS_PTHREAD_ENV -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_init_context
"afscp_server.c", line 182: undefined symbol: k5con
"afscp_server.c", line 187: warning: implicit function declaration:
krb5_set_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:
make clean ; \
./configure --disable-kernel-module \
--prefix=/opt/openafs \
--exec-prefix=/opt/openafs-162 \
KRB5_CONFIG=/usr/heimdal/bin/krb5-config \
CC=/opt/SUNWspro/bin/cc \
KRB5_LIBS='-L/usr/heimdal/lib -lkrb5 -lhx509 -lcom_err -lhcrypto -lasn1
-lwind -lroken -ldoor -lresolv -lnsl -lsocket -pthreads' \
KRB5_CPPFLAGS='-I/usr/heimdal/include' && make dest
...twiddle...
cd src && cd libafscp && make all
/opt/SUNWspro/bin/cc -O -I/tank/scratch/openafs-1.6.2/src/config
-I/tank/scratch/openafs-1.6.2/include -I. -I. -I.. -DNINTERFACE -mt
-DAFS_PTHREAD_ENV -dy -Bdynamic -DRXDEBUG -c afscp_callback.c
/opt/SUNWspro/bin/cc -O -I/tank/scratch/openafs-1.6.2/src/config
-I/tank/scratch/openafs-1.6.2/include -I. -I. -I.. -DNINTERFACE -mt
-DAFS_PTHREAD_ENV -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_init_context
"afscp_server.c", line 182: undefined symbol: k5con
"afscp_server.c", line 187: warning: implicit function declaration:
krb5_set_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.
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.
--
Måns 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?
signature.asc
Description: Digital signature
