From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Y5Xgu-0004PV-Og for mharc-grub-devel@gnu.org; Mon, 29 Dec 2014 05:36:48 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5Xgs-0004Ny-7o for grub-devel@gnu.org; Mon, 29 Dec 2014 05:36:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y5Xgp-00034Y-0u for grub-devel@gnu.org; Mon, 29 Dec 2014 05:36:46 -0500 Received: from mail.gw90.de ([2a01:4f8:100:7463::3]:51047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5Xgo-00033p-Nf for grub-devel@gnu.org; Mon, 29 Dec 2014 05:36:42 -0500 Received: from [37.120.60.217] (helo=mattotaupa) by mail.gw90.de with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Y5Xgi-00017h-TY for grub-devel@gnu.org; Mon, 29 Dec 2014 10:36:37 +0000 Message-ID: <1419849384.3406.80.camel@users.sourceforge.net> Subject: Re: Building GRUB fails with `In function `do_setkey' undefined reference to `fips_mode'` From: Paul Menzel To: grub-devel@gnu.org Date: Mon, 29 Dec 2014 11:36:24 +0100 In-Reply-To: <20141226205905.31a6c9d0@opensuse.site> References: <1419589404.4038.1.camel@users.sourceforge.net> <20141226205905.31a6c9d0@opensuse.site> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-VYoh5KRtXp59rC5P9qrU" X-Mailer: Evolution 3.12.9-1 Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:4f8:100:7463::3 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2014 10:36:47 -0000 --=-VYoh5KRtXp59rC5P9qrU Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Am Freitag, den 26.12.2014, 20:59 +0300 schrieb Andrei Borzenkov: > =D0=92 Fri, 26 Dec 2014 11:23:24 +0100 Paul Menzel =D0=BF=D0=B8=D1=88=D0= =B5=D1=82: > > with latest master > >=20 > > $ git describe > > grub-2.02-beta2-137-gbac5d1a > >=20 > > building GRUB as a coreboot payload fails on Debian Sid/unstable. > >=20 > > $ make clean > > $ ./configure --with-platform=3Dcoreboot > > $ make > > [=E2=80=A6] > > mv -f .deps-util/grub_fstest-grub_fstest_init.Tpo .deps-util/gr= ub_fstest-grub_fstest_init.Po > > gcc -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts= -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero = -W > > float-equal -Wformat-extra-args -Wformat-security -Wformat-y2k = -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-= br > > aces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wret= urn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wun= kn > > own-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-= parameter -Wunused-value -Wunused-variable -Wwrite-strings -Wnested-extern= s > > -Wstrict-prototypes -Wcast-align -Wextra -Wattributes -Wendif-= labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-init= ia > > lizers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstric= t-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissi= ng > > -include-dirs -Wmissing-prototypes -Wmissing-declarations -Wfor= mat=3D2 -Werror -Wno-undef -Wno-sign-compare -Wno-unused -Wno-unused-parame= ter > > -Wno-redundant-decls -Wno-unreachable-code -Wno-conversion = -o grub-fstest util/grub_fstest-grub-fstest.o grub-core/kern/emu/grub_fst= es > > t-hostfs.o grub-core/disk/grub_fstest-host.o grub-core/osdep/gr= ub_fstest-init.o grub_fstest-grub_fstest_init.o libgrubmods.a libgrubgcry.a= l > > ibgrubkern.a grub-core/gnulib/libgnu.a > > libgrubgcry.a(libgrubgcry_a-rijndael.o): In function `do_setkey= ': > > rijndael.c:(.text+0x51): undefined reference to `fips_mode' >=20 > Works here. Looks like fips_mode is (re-)defined in some header on > your system. Could you find out where?=20 Sorry, I was not able to find that out. Cloning the repository on the same system again and running $ ./autogen.sh $ ./configure --with-platform=3Dcoreboot $ make it worked fine too. So, maybe I=E2=80=99m missing when I need to run `./autogen.sh` and not only `make clean`. Are there some guidelines? > > libgrubgcry.a(libgrubgcry_a-des.o): In function `des_setkey': > > des.c:(.text+0x542): undefined reference to `fips_mode' > > libgrubgcry.a(libgrubgcry_a-des.o): In function `tripledes_set3= keys': > > des.c:(.text+0x1410): undefined reference to `fips_mode' > > collect2: error: ld returned 1 exit status > > Makefile:4962: recipe for target 'grub-fstest' failed > > make[2]: *** [grub-fstest] Error 1 > > make[2]: Leaving directory '/home/paul/src/grub' > > Makefile:11522: recipe for target 'all-recursive' failed > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory '/home/paul/src/grub' > > Makefile:3936: recipe for target 'all' failed > > make: *** [all] Error 2 Thanks, Paul --=-VYoh5KRtXp59rC5P9qrU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEABECAAYFAlShLq8ACgkQPX1aK2wOHVigzwCdFcpjCFrSswBQsv9lzuWwj3cd rnsAn3Vi32NkCvj88sZRtby7ttWT0cOj =rqGx -----END PGP SIGNATURE----- --=-VYoh5KRtXp59rC5P9qrU--