]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix several portability issues affecting Solaris master 1481/head
authorMartin Řehák <rehak@tekkirk.org>
Wed, 11 Feb 2026 07:17:39 +0000 (02:17 -0500)
committerGreg Hudson <ghudson@mit.edu>
Fri, 13 Feb 2026 01:44:19 +0000 (20:44 -0500)
commit4c8ec1637252a6b22e2665e6003a88e709f8db6c
tree30cd89ead1e30cafa0469760076d8dde1f84f094
parente5b1787d8fbd77208312465107893e5bb98d4651
Fix several portability issues affecting Solaris

Commit 1bfcf572241a4ec0e44e609e5c6b7c0b11b08eea added a trailing
semicolon to the Solaris INIT_FINI_PREP, causing a syntax error when
MAKE_SHLIB_COMMAND uses it as "$(INIT_FINI_PREP} && ${LDCOMBINE} ...".
Remove it.

Commit a575589ef525fb139cafa0de1a05382845f0afbd introduced UNIX domain
socket variables named "sun", which is defined to 1 on Solaris.  Use
"unaddr" or avoid declaring a variable.

Commit 1c87ce6c44a9de0824580a2d72a8a202237e01f4 changed
pkinit_constants.c to use char arrays for OID constants, for brevity
when including them in krb5_data initializers.  But many of the array
elements are not within the range of a signed char, causing errors
with the Solaris C compiler.  Change these constants to uint8_t arrays
and introduce a macro to shorten the krb5_data initializers.

[ghudson@mit.edu: edited for style; wrote commit message]

ticket: 9195
src/config/shlib.conf
src/lib/apputils/net-server.c
src/lib/krb5/os/addr.c
src/lib/krb5/os/locate_kdc.c
src/plugins/preauth/pkinit/pkinit_constants.c