Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Oct 2006 13:48:55 +0400
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Tobias Roth <roth@iam.unibe.ch>
Cc:        stable@freebsd.org
Subject:   Re: buildworld: undefined reference to `SHA256_Update'
Message-ID:  <20061007094855.GA156@rambler-co.ru>
In-Reply-To: <20061007090725.GA3229@droopy.unibe.ch>
References:  <20061007090725.GA3229@droopy.unibe.ch>

next in thread | previous in thread | raw e-mail | index | archive | help

--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Oct 07, 2006 at 11:07:25AM +0200, Tobias Roth wrote:
> Hi
>=20
> I get this buildworld error with a reshly updated RELENG_6:
>=20
>=20
> cc -O2 -pipe -fno-strict-aliasing -march=3Dpentium-m -I/usr/src/secure/li=
bexec/sftp-server/../../../crypto/openssh -include ssh_namespace.h -DNO_IDE=
A   -o sftp-server sftp-server.o sftp-common.o -lssh -lcrypt -lcrypto -lz
> /usr/obj/usr/src/tmp/usr/lib/libssh.so: undefined reference to `SHA256_Up=
date'
> /usr/obj/usr/src/tmp/usr/lib/libssh.so: undefined reference to `SHA256_Fi=
nal'
> /usr/obj/usr/src/tmp/usr/lib/libssh.so: undefined reference to `SHA256_In=
it'
> *** Error code 1
>=20
> Stop in /usr/src/secure/libexec/sftp-server.
>=20
>=20
> I was away for the last two weeks, so maybe this is already known?
> All I did so far was check the latest security advisories and google,
> but that turned out nothing usable.
>=20
Verify that libssh.so in objdir lists libmd as its dependency.
Verify that libmd.so in objdir has these functions.  You should
get output similar to this:

: # env LD_LIBRARY_PATH=3D/usr/obj/usr/src/tmp/lib:/usr/obj/usr/src/tmp/usr=
/lib ldd /usr/obj/usr/src/tmp/usr/lib/libssh.so
: /usr/obj/usr/src/tmp/usr/lib/libssh.so:
:         libz.so.3 =3D> /usr/obj/usr/src/tmp/lib/libz.so.3 (0x80097d000)
:         libgssapi.so.8 =3D> /usr/obj/usr/src/tmp/usr/lib/libgssapi.so.8 (=
0x800a91000)
:         libkrb5.so.8 =3D> /usr/obj/usr/src/tmp/usr/lib/libkrb5.so.8 (0x80=
0ba0000)
:         libasn1.so.8 =3D> /usr/obj/usr/src/tmp/usr/lib/libasn1.so.8 (0x80=
0ce4000)
:         libcom_err.so.3 =3D> /usr/obj/usr/src/tmp/usr/lib/libcom_err.so.3=
 (0x800e0d000)
:         libmd.so.3 =3D> /usr/obj/usr/src/tmp/lib/libmd.so.3 (0x800f0f000)
:         libroken.so.8 =3D> /usr/obj/usr/src/tmp/usr/lib/libroken.so.8 (0x=
80101b000)
:         libcrypto.so.4 =3D> /usr/obj/usr/src/tmp/lib/libcrypto.so.4 (0x80=
1129000)
:         libcrypt.so.3 =3D> /usr/obj/usr/src/tmp/lib/libcrypt.so.3 (0x8013=
70000)
: # nm /usr/obj/usr/src/tmp/usr/lib/libmd.so | grep SHA256_Update
: 0000000000003820 T SHA256_Update
: #=20


Cheers,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

--n8g4imXOkfNTN/H1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD4DBQFFJ3gHqRfpzJluFF4RAiDXAJjSQJcQbsGO0XMawzQsdq+vXpSnAJ4r86BO
eokR9zsw3bDDYF6QtVZS7Q==
=7BLB
-----END PGP SIGNATURE-----

--n8g4imXOkfNTN/H1--



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