[OpenAFS] 1.6.2 compilation notes, Sol10

Måns Nilsson mansaxel@besserwisser.org
Thu, 14 Mar 2013 23:05:06 +0100


--yRA+Bmk8aPhU85Qt
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Subject: Re: [OpenAFS] 1.6.2 compilation notes, Sol10 Date: Thu, Mar 14, 20=
13 at 09:06:44AM -0400 Quoting Derrick Brashear (shadow@gmail.com):
> I take it the krb5-config from your heimdal doesn't put out a useful
> set of libs?

Did not check, actually. Same machine, make distclean, and:=20

=2E/configure --prefix=3D/opt/openafs \
	--disable-kernel-module \
	--exec-prefix=3D/opt/openafs-162   \
	--with-krb5=3D/usr/heimdal  CC=3D/opt/SUNWspro/bin/cc

Almost similar:=20

# 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=
=2E6.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 vldbi=
nt.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  /ta=
nk/scratch/openafs-1.6.2/lib/libcmd.a  /tank/scratch/openafs-1.6.2/lib/liba=
fsutil.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'

Again, doing:=20

#KRB5LIBS =3D -lkrb5 -lcom_err -lsocket -lnsl -lresolv
KRB5LIBS =3D -lkrb5 -lsocket -lnsl -lresolv

=2E..helps us to continue.=20

And, the other issue, in src/aklog, remains as well. I'll try to upgrade He=
imdal, just to eliminate that. krb5-conf returns:=20

# krb5-config --libs
-L/usr/heimdal-1.2.1/lib -lkrb5 -lhx509 -lcom_err -lhcrypto -lasn1 -lwind -=
lroken -ldoor -lresolv -lnsl -lsocket -pthreads
# krb5-config --cflags
-I/usr/heimdal-1.2.1/include=20
#=20

=2E..which apparently isn't used. config.log reports:=20

# grep krb5-config config.log
configure:22407: checking for krb5 support in krb5-config
KRB5_CONFIG=3D'/usr/heimdal/bin/krb5-config'

I'm running 1.6.2 now, and doing fine, so the imminent issues (security)
are gone but even so we want compiles on Solaris to work.
=20
> On Thu, Mar 14, 2013 at 8:37 AM, M=C3=A5ns Nilsson <mansaxel@besserwisser=
=2Eorg> wrote:
> > Just a little headsup on compiling on Sol10 (old release, I can't,
> > for reasons of lawnmower, upgrade as easily as I wish.)
> >
> >
> > SunOS 5.10 Generic_142900-07 sun4u sparc SUNW,UltraAX-i2
> >
> > ./configure --disable-kernel-module --with-sysname=3Dsun4x_510
> >             # this is a zone with RO mounted /usr
> >             --prefix=3D/opt/openafs
> >             --exec-prefix=3D/opt/openafs-162
> >             --with-krb5=3D/usr/heimdal
> >             CC=3D/opt/SUNWspro/bin/cc CFLAGS=3D-I/usr/heimdal/include
> >             LDFLAGS=3D-L/usr/heimdal/lib  -lkrb5 -lhx509
> >
> > src/venus lotsa borkenedness, can be built through if not fault-free by
> > removing -lcom_err from the KRB5LIBS variable in Makefile
> >
> > src/aklog needs -lasn1 in the corresponding variable.
> >
> >
> > --
> > M=C3=A5ns Nilsson     primary/secondary/besserwisser/machina
> > MN-1334-RIPE                             +46 705 989668
> > ... I see TOILET SEATS ...
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.10 (GNU/Linux)
> >
> > iEYEARECAAYFAlFBxJwACgkQ02/pMZDM1cVktACgpqxULBb3syCOINX4nhrNKyzv
> > YRwAnja4BB51UM0yPSBn4N9lXd+oMm2X
> > =3DZilc
> > -----END PGP SIGNATURE-----
> >
>=20
>=20
>=20
> --=20
> Derrick

--=20
M=C3=A5ns Nilsson     primary/secondary/besserwisser/machina
MN-1334-RIPE                             +46 705 989668
I'm meditating on the FORMALDEHYDE and the ASBESTOS leaking into my
PERSONAL SPACE!!

--yRA+Bmk8aPhU85Qt
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)

iEYEARECAAYFAlFCSZIACgkQ02/pMZDM1cUoYACfZn1e1TJfTLU1OUwY8CankSHC
aE8AnRHqPuvfU2DxaEUhQdObQhiE8ASR
=CBYu
-----END PGP SIGNATURE-----

--yRA+Bmk8aPhU85Qt--