[OpenAFS] 1.6.2 compilation notes, Sol10

Simon Wilkinson simonxwilkinson@gmail.com
Fri, 15 Mar 2013 13:47:23 +0000


On 14 Mar 2013, at 22:05, M=E5ns Nilsson wrote:

> # cd src/venus/
> # LC_ALL=3DC make  # not all people read swedish compiler errors =
fluently
> /opt/SUNWspro/bin/cc -I/usr/heimdal/include    -O =
-I/tank/scratch/openafs-1.6.2/src/config =
-I/tank/scratch/openafs-1.6.2/include -I. -I.  -mt -DAFS_PTHREAD_ENV -dy =
-Bdynamic -o afsio afsio.o vldbint.cs.o afscbint.ss.o vldbint.xdr.o =
/tank/scratch/openafs-1.6.2/lib/libafscp.a  =
/tank/scratch/openafs-1.6.2/lib/libafsauthent.a  =
/tank/scratch/openafs-1.6.2/lib/libafsrpc.a  =
/tank/scratch/openafs-1.6.2/lib/libcmd.a  =
/tank/scratch/openafs-1.6.2/lib/libafsutil.a \
>        -lpthread -lsocket -lresolv -lsocket -lnsl -lintl -ldl -lkrb5 =
-lcom_err -lsocket -lnsl -lresolv
> ld: fatal: library -lcom_err: not found
> ld: fatal: File processing errors. No output written to afsio
> *** Error code 1
> make: Fatal error: Command failed for target `afsio'

When we use @KRB5_LIBS@, we also need to pass the linker @KRB5_LDFLAGS@. =
aklog gets this right, afsio gets it wrong.

S.