Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 May 2015 09:40:44 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        Thomas Quinot <thomas@FreeBSD.ORG>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r282726 - head/lib/libmd
Message-ID:  <1431272444.6170.231.camel@freebsd.org>
In-Reply-To: <20150510142627.GA77866@melamine.cuivre.fr.eu.org>
References:  <201505101321.t4ADLa54030049@svn.freebsd.org> <1431266347.6170.221.camel@freebsd.org> <20150510142627.GA77866@melamine.cuivre.fr.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2015-05-10 at 16:26 +0200, Thomas Quinot wrote:
> * Ian Lepore, 2015-05-10 :
>=20
> > This appears to break bootstrapping, at least when cross-building ARM o=
n
> > a 10-stable build host.  The build runs for about 15 seconds before
> > hitting...
> >=20
> > --- _bootstrap-tools-usr.bin/xinstall ---
> > xinstall.o: In function `install':
> > /local/build/staging/freebsd/wand/src/usr.bin/xinstall/xinstall.c:(.tex=
t+0xdff): undefined reference to `_libmd_MD5File'
> > /local/build/staging/freebsd/wand/src/usr.bin/xinstall/xinstall.c:(.tex=
t+0x12ee): undefined reference to `_libmd_MD5Init'
> > /local/build/staging/freebsd/wand/src/usr.bin/xinstall/xinstall.c:(.tex=
t+0x12fa): undefined reference to `_libmd_RIPEMD160_File'
> > [quite a few more symbols listed]
> >=20
> > Complete log is here (command includes -DNO_CLEAN, but objdir started o=
ut empty).
> >=20
> >   http://pastebin.com/v3iSZpSJ
>=20
> Thanks for your report Ian. Could you please try the patch below?
>=20
> Thomas.
>=20
> Index: Makefile.inc1
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- Makefile.inc1	(r=E9vision 282726)
> +++ Makefile.inc1	(copie de travail)
> @@ -1361,6 +1361,9 @@
>  .ORDER: ${_kerberos5_bootstrap_tools:C/^/${_bt}-/g}
>  .endif
> =20
> +# Rebuild up-to-date libmd for xinstall
> +${_bt}-usr.bin/xinstall: ${_bt}-lib/libmd
> +
>  bootstrap-tools: .PHONY
> =20
>  #	Please document (add comment) why something is in 'bootstrap-tools'.

That gets past the bootstrapping problem, now it dies like this:

--- lib/libcrypt__L ---
--- crypt-md5.So ---
cc  -fpic -DPIC  -O -pipe   -I/local/build/staging/freebsd/wand/src/lib/lib=
crypt/../libmd -I/local/build/staging/freebsd/wand/src/lib/libcrypt/../libu=
til -I/local/build/staging/freebsd/wand/src/lib/libcrypt -DHAS_DES -DHAS_BL=
OWFISH -DMD4Init=3D__MD4Init -DMD4Final=3D__MD4Final -DMD4Update=3D__MD4Upd=
ate -DMD4Pad=3D__MD4Pad -DMD5Init=3D__MD5Init -DMD5Final=3D__MD5Final -DMD5=
Update=3D__MD5Update -DMD5Pad=3D__MD5Pad -DSHA256_Init=3D__SHA256_Init -DSH=
A256_Final=3D__SHA256_Final -DSHA256_Update=3D__SHA256_Update -DSHA512_Init=
=3D__SHA512_Init -DSHA512_Final=3D__SHA512_Final -DSHA512_Update=3D__SHA512=
_Update -std=3Dgnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-un=
initialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unu=
sed-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parenth=
eses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-t=
ypedef -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-ar=
guments -c /local/build/staging/freebsd/wand/src/lib/libcrypt/crypt-md5.c -=
o crypt-md5.So

[...]

--- lib/libcrypt__L ---
In file included from /local/build/staging/freebsd/wand/src/lib/libcrypt/cr=
ypt-md5.c:33:
/local/build/staging/freebsd/wand/src/lib/libcrypt/../libmd/md5.h:10:9: war=
ning: 'MD5Init' macro redefined [-Wmacro-redefined]
#define MD5Init         _libmd_MD5Init
        ^
<command line>:8:9: note: previous definition is here
#define MD5Init __MD5Init
        ^

-- Ian





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1431272444.6170.231.camel>