Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Oct 2013 13:04:11 +0200
From:      Matthias Andree <matthias.andree@gmx.de>
To:        freebsd-current@freebsd.org
Subject:   Re: latest sbin/pkg updates seem to break HEAD
Message-ID:  <526BA1AB.4060806@gmx.de>
In-Reply-To: <526B9FC7.2040005@gwdg.de>
References:  <526B9FC7.2040005@gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 26.10.2013 12:56, schrieb Rainer Hurling:
> After svn update my 11.0-CURRENT box to r257152, the build breaks.
> Obviously there is something wrong with the newest patches for sbin/pkg
> (or libcrypt). Am I the only one observing this?
> 
> Any help is appreciated,
> Rainer Hurling
> 
> 
> [..snip..]
> ===> usr.sbin/pkg (all)
...
> cc  -O2 -pipe  -I/usr/src/usr.sbin/pkg/../../contrib/libyaml/include
> -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror
> -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
> -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
> -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
> -Wold-style-definition -Wmissing-variable-declarations -Wno-pointer-sign
> -Wno-empty-body -Wno-string-plus-int
> -L/usr/obj/usr/src/tmp/usr/lib/private -rpath /usr/lib/private -o pkg
> pkg.o dns_utils.o config.o -larchive -lelf -lfetch -lyaml -lsbuf -lssl
> 
> /usr/obj/usr/src/tmp/usr/bin/ld: D: invalid DSO for symbol
> `EVP_PKEY_free' definition
> /usr/obj/usr/src/tmp/lib/libcrypto.so.7: could not read symbols: Bad value
> cc: error: linker command failed with exit code 1 (use -v to see invocation)
> *** Error code 1
> Stop.
> make[4]: stopped in /usr/src/usr.sbin/pkg

These can happen if a library is missing, for instance, -lcrypto is
apparently not mentioned on the linker's command line, but AFAIR the
clang linker accepts no unresolved symbols from .so when linking
executables, and -lssl likely needs -lcrypto.  This avoids run-time
surprises due to missing dependencies (on libcrypto, in this case).

Try pasting that command line with -lcrypto added after -lssl, and if
that helps, try to debug where the -lcrypto has been or gets lost, or
should get added.

HTH




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