[OpenAFS-devel] Trip report FreeBSD 12.2 and 1.9.0

Måns Nilsson mansaxel@besserwisser.org
Wed, 3 Feb 2021 22:35:05 +0100


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

Good evening,=20

Every few months I take a whack at getting FreeBSD 12 working. This is one =
of those tries.=20

First, a success report: I thoughtlessly rebooted my media player
middleware server that ran 1.8.2 and was hit with the bug that resulted in
1.8.7 release. I can report that 1.8.7 compiles on FreeBSD 11.4 as soon
as the predictable changes in src/config/ are applied; ie. sysnames and
such. Configure ran without arguments and produced a working binary set.

I then tried 1.8.7 on 12.2, with appropriate changes for sysnames. No
such luck. To my untrained eye, malloc does not want a redefinition:
(yeah, I know, that's a 1.9.0 compile run, but do read on. Same thing happe=
ns there too)=20

########################################
In file included from /usr/local/src/openafs-1.9.0/src/external/heimdal/hcr=
ypto/sha256.c:34:
/usr/local/src/openafs-1.9.0/src/crypto/hcrypto/kernel/config.h:63:9: error=
: 'malloc' macro redefined [-Werror,-Wmacro-redefined]
#define malloc _afscrypto_malloc
        ^
/usr/src/sys/sys/malloc.h:220:9: note: previous definition is here
#define malloc(size, type, flags) ({                                    \
        ^
1 error generated.
*** Error code 1

Stop.
make[4]: stopped in /usr/local/src/openafs-1.9.0/src/libafs/MODLOAD
*** Error code 1
########################################

I then redid the attempt on 1.9.0 and FreeBSD 12.2, again with src/config
changes, and hit what looks like the same snag.

That entire trip, including context diff for my changes in src/config,
a config.log, and the "typescript" file of the compilation run, is
available as

/afs/besserwisser.org/home/mansaxel/Public/trip.12.2.tgz

Suggestions welcome. Including clue-bats.=20

Regards,=20
--=20
M=C3=A5ns Nilsson     primary/secondary/besserwisser/machina
MN-1334-RIPE           SA0XLR            +46 705 989668
Wait ... is this a FUN THING or the END of LIFE in Petticoat Junction??

--NzB8fVQJ5HfG6fxh
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQQxgwSLnuJIMBVUuk/Tb+kxkMzVxQUCYBsXBQAKCRDTb+kxkMzV
xaXTAJ9n5Jcqw5GyNnMjE7QCcqcrFglZuwCfUkBwyNJAz+F+v7sVvbrmyk9j8Dg=
=pUQe
-----END PGP SIGNATURE-----

--NzB8fVQJ5HfG6fxh--