buildworld: undefined reference to `SHA256_Update'

Ruslan Ermilov ru at freebsd.org
Sat Oct 7 09:48:59 UTC 2006


On Sat, Oct 07, 2006 at 11:07:25AM +0200, Tobias Roth wrote:
> Hi
> 
> I get this buildworld error with a reshly updated RELENG_6:
> 
> 
> cc -O2 -pipe -fno-strict-aliasing -march=pentium-m -I/usr/src/secure/libexec/sftp-server/../../../crypto/openssh -include ssh_namespace.h -DNO_IDEA   -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_Update'
> /usr/obj/usr/src/tmp/usr/lib/libssh.so: undefined reference to `SHA256_Final'
> /usr/obj/usr/src/tmp/usr/lib/libssh.so: undefined reference to `SHA256_Init'
> *** Error code 1
> 
> Stop in /usr/src/secure/libexec/sftp-server.
> 
> 
> 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.
> 
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=/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 => /usr/obj/usr/src/tmp/lib/libz.so.3 (0x80097d000)
:         libgssapi.so.8 => /usr/obj/usr/src/tmp/usr/lib/libgssapi.so.8 (0x800a91000)
:         libkrb5.so.8 => /usr/obj/usr/src/tmp/usr/lib/libkrb5.so.8 (0x800ba0000)
:         libasn1.so.8 => /usr/obj/usr/src/tmp/usr/lib/libasn1.so.8 (0x800ce4000)
:         libcom_err.so.3 => /usr/obj/usr/src/tmp/usr/lib/libcom_err.so.3 (0x800e0d000)
:         libmd.so.3 => /usr/obj/usr/src/tmp/lib/libmd.so.3 (0x800f0f000)
:         libroken.so.8 => /usr/obj/usr/src/tmp/usr/lib/libroken.so.8 (0x80101b000)
:         libcrypto.so.4 => /usr/obj/usr/src/tmp/lib/libcrypto.so.4 (0x801129000)
:         libcrypt.so.3 => /usr/obj/usr/src/tmp/lib/libcrypt.so.3 (0x801370000)
: # nm /usr/obj/usr/src/tmp/usr/lib/libmd.so | grep SHA256_Update
: 0000000000003820 T SHA256_Update
: # 


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20061007/2db63f5c/attachment.pgp


More information about the freebsd-stable mailing list