[16552] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

[krbdev.mit.edu #8910] Building with --enable-static fails when Yasm

daemon@ATHENA.MIT.EDU (Nikhil Benesch via RT)
Sat May 23 22:41:27 2020

From: "Nikhil Benesch via RT" <rt-comment@krbdev.mit.edu>
In-Reply-To: <CAPWqQZTOcwkkk4Aea+wS0Sk7DkcN1V7B8KttW_EEC3CWA7DibQ@mail.gmail.com>
Message-ID: <rt-4.4.4-59769-1590288080-1534.8910-4-0@mit.edu>
To: "AdminCc of krbdev.mit.edu Ticket #8910":;
Date: Sat, 23 May 2020 22:41:20 -0400
MIME-Version: 1.0
Reply-To: rt-comment@krbdev.mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krb5-bugs-bounces@mit.edu


Sat May 23 22:41:20 2020: Request 8910 was acted upon.
 Transaction: Ticket created by nikhil.benesch@gmail.com
       Queue: krb5
     Subject: Building with --enable-static fails when Yasm is available
       Owner: Nobody
  Requestors: nikhil.benesch@gmail.com
      Status: new
 Ticket <URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=8910 >


Building krb5 statically is broken if autoconf is able to find Yasm on the
build system.

    $ ../configure --enable-static --disable-shared
    ...
    checking for yasm... yasm
    ....
    $ make
    make[4]: Entering directory
'/home/benesch/Sites/krb5/src/build/lib/crypto/builtin/aes'
    as   -o iaesx64.o ../../../../../lib/crypto/builtin/aes/iaesx64.s
    ../../../../../lib/crypto/builtin/aes/iaesx64.s: Assembler messages:
    ../../../../../lib/crypto/builtin/aes/iaesx64.s:1: Error: junk at
end of line, first unrecognized character is `['
    ../../../../../lib/crypto/builtin/aes/iaesx64.s:2: Error: junk at
end of line, first unrecognized character is `['

Similar errors continue for many lines.

The error appears to be a missing rule for building iaesx64.o statically using
Yasm. Make falls back to its default rule that uses the system assembler, which
of course is not capable of processing this file.

The following patch fixes the issue for me.

--- a/src/lib/crypto/builtin/aes/Makefile.in
+++ b/src/lib/crypto/builtin/aes/Makefile.in
@@ -34,10 +34,10 @@ GEN_OBJS=\

 all-unix: all-libobjs # aes-gen

-iaesx64@SHOBJEXT@: $(srcdir)/iaesx64.s
+iaesx64@STOBJEXT@ iaesx64@SHOBJEXT@: $(srcdir)/iaesx64.s
        $(YASM) $(AESNI_FLAGS) -o $@ $(srcdir)/iaesx64.s

-iaesx86@SHOBJEXT@: $(srcdir)/iaesx86.s
+iaesx86@STOBJEXT@ iaesx86@SHOBJEXT@: $(srcdir)/iaesx86.s
        $(YASM) $(AESNI_FLAGS) -o $@ $(srcdir)/iaesx86.s

 includes: depend

_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
https://mailman.mit.edu/mailman/listinfo/krb5-bugs

home help back first fref pref prev next nref lref last post