Date: Sat, 26 Oct 2013 08:39:50 -0500 From: Bryan Drewery <bryan@shatow.net> To: Rainer Hurling <rhurlin@gwdg.de> Cc: Matthias Andree <matthias.andree@gmx.de>, freebsd-current@freebsd.org Subject: Re: latest sbin/pkg updates seem to break HEAD Message-ID: <20131026133950.GF98118@admin.xzibition.com> In-Reply-To: <526BB8C9.4@gwdg.de> References: <526B9FC7.2040005@gwdg.de> <526BA1AB.4060806@gmx.de> <526BB8C9.4@gwdg.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--Zs/RYxT/hKAHzkfQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 26, 2013 at 02:42:49PM +0200, Rainer Hurling wrote: > Am 26.10.2013 13:04, schrieb Matthias Andree: > > 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..] > >> =3D=3D=3D> usr.sbin/pkg (all) > > ... > >> cc -O2 -pipe -I/usr/src/usr.sbin/pkg/../../contrib/libyaml/include > >> -std=3Dgnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -We= rror > >> -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-si= gn > >> -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 v= alue > >> cc: error: linker command failed with exit code 1 (use -v to see invoc= ation) > >> *** Error code 1 > >> Stop. > >> make[4]: stopped in /usr/src/usr.sbin/pkg This should be fixed now. Sorry about that. It was compiling fine without -lcrypto for me. > >=20 > > 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). > >=20 > > 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. > >=20 > > HTH >=20 > Yep, adding -lcrypto seems to help. I patched usr.sbin/pkg/Makefile for i= t. >=20 > But I am wondering if nobody else has this problem? I did not change my > systems sources before. >=20 > Many thanks for your fast reply and help, > Rainer >=20 >=20 >=20 > --- Makefile.orig 2013-10-26 08:33:50.000000000 +0200 > +++ Makefile 2013-10-26 14:26:06.000000000 +0200 > @@ -7,7 +7,7 @@ > CFLAGS+=3D-I${.CURDIR}/../../contrib/libyaml/include > .PATH: ${.CURDIR}/../../contrib/libyaml/include > DPADD=3D ${LIBARCHIVE} ${LIBELF} ${LIBFETCH} ${LIBYAML} ${LIBSBUF} > -LDADD=3D -larchive -lelf -lfetch -lyaml -lsbuf -lssl > +LDADD=3D -larchive -lelf -lfetch -lyaml -lsbuf -lssl -lcrypto > USEPRIVATELIB=3D yaml >=20 > .include <bsd.prog.mk> >=20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" --Zs/RYxT/hKAHzkfQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iQJ8BAEBCgBmBQJSa8YkXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzNkZFQkU5OTJGNTI4MERGNDgxMTM2MkE2 RTc4MkFDMDNDOUIwQ0Y5AAoJEG54KsA8mwz5FDgQAJefpXuvK5dLRk3Ko+GDK+ge bRnQupLwtCXL71MLrnuKOM/PNboWlro5gL2MM1nTy00a6vOo1xUqcAjVAxiHxArJ a/VZA+wPza38drUhcbKqhMoRSSKzvbNEH+gM8EOgX/vDtKUfvvAmrcZqXyZZaRxI 2A5UY6K3T7ET6FXmS/ZhXHIeVIJjUn9WUDmM22+avtRi/SRhq73RYoINYrOAGG6y xczvtE9QEPACYUMh5oVRQgfO/SFr99g7fXHi8g6uiuqWVEoT1CruoH0C1ghj5ZBm Geh65334//T6rnplwVqQqL1emW4fCgXvcV+LAENFyDqXToZ0KF5BgIeZYoY/JUFB DBcdqDmEDVjbCMD8383T01/LW1geYif6K1sHW8AqgbEfDPk1Ca/1rptjed0kX6pz IMwFBBsu2Y0G8u7CRU6yo281oy1ZVjtAM/d2nfS+TatwUGEeYLgTxA4TyqQyh2DA zHh3xsVCLUPTa21fYkkMlT6uvZ4ii81O5F2AGpsKmUd5+FLMdlbUeh0a20JesfuC 2Wc00MqZliWOEUpZQNx4dK88IFL/KyK9u609UeNaFL2jlaSTJWvzDg51EsBASbqr efRiN1k9fFDCr4vxdcVYXr6g5sxUiMt1U0jwnRbivzyPf8pDYVkG6hXkojLd7CdO e6hWbmjOpEVsj96zwMt+ =kYjB -----END PGP SIGNATURE----- --Zs/RYxT/hKAHzkfQ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131026133950.GF98118>