Building krb5 libs without openssl

Isaac Boukris iboukris at gmail.com
Sun Dec 5 13:20:34 EST 2021


On Sun, Dec 5, 2021 at 8:10 PM Isaac Boukris <iboukris at gmail.com> wrote:
>
> On Sun, Dec 5, 2021 at 6:40 PM Greg Hudson <ghudson at mit.edu> wrote:
> >
> > On 12/5/21 8:16 AM, Isaac Boukris wrote:
> > > The configure help isn't clear about '--with-tls-impl' alternatives,
> > > from the script it looks like 'no' is an option but even though it
> > > still compiles the files at 'lib/crypto/openssl' unless I comment it
> > > out from the Makefile.
> >
> > I recently changed how the crypto build system works so that all source
> > files are built, but some of them generate empty objects.  This improves
> > automatic dependency generation and allows the OpenSSL back end to
> > borrow from the builtin back end depending on the OpenSSL version.  See
> > commit 7e8c41afc54db2ca75de5a1e2e440b034be8887b .
>
> The actual error I see when I try to build with emscripten, maybe
> something gets wrong in the configure stage:
>
> making all in lib/crypto/openssl/des...
> make[4]: Entering directory '/home/admin/git/krb5/src/lib/crypto/openssl/des'
> /home/admin/git/emsdk/upstream/emscripten/emcc -DHAVE_CONFIG_H
> -I../../../../include -I../../../../include -I./../../krb
> -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE  -g -O0
> -Werror=unknown-warning-option -Wall -Wcast-align -Wshadow
> -Wmissing-prototypes -Wno-format-zero-length -Woverflow
> -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes
> -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch
> -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
> -Wunknown-pragmas -Wsign-compare -Wnewline-eof -Werror=uninitialized
> -Werror=pointer-arith -Werror=int-conversion
> -Werror=incompatible-pointer-types -Werror=implicit-int
> -Werror=declaration-after-statement
> -Werror-implicit-function-declaration   -c des_keys.c
> des_keys.c:28:10: fatal error: 'openssl/des.h' file not found
> #include <openssl/des.h>
>          ^~~~~~~~~~~~~~~
> 1 error generated.

The attached patch solves it for me, based on the commit you
referenced, if it makes sense.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-K5_OPENSSL-macros-for-DES-and-CAMELLIA.patch
Type: text/x-patch
Size: 1422 bytes
Desc: not available
URL: <http://mailman.mit.edu/pipermail/krbdev/attachments/20211205/955f6691/attachment.bin>


More information about the krbdev mailing list