From owner-freebsd-ports@FreeBSD.ORG Thu May 8 19:42:33 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4F66BF13; Thu, 8 May 2014 19:42:33 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B5783B8E; Thu, 8 May 2014 19:42:32 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.8/8.14.8) with ESMTP id s48JgR35000622; Thu, 8 May 2014 22:42:27 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua s48JgR35000622 Received: (from kostik@localhost) by tom.home (8.14.8/8.14.8/Submit) id s48JgRcs000621; Thu, 8 May 2014 22:42:27 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 8 May 2014 22:42:27 +0300 From: Konstantin Belousov To: Craig Rodrigues Subject: Re: net/samba41 port compiles nmbd as a shared object, not executable Message-ID: <20140508194227.GB74331@kib.kiev.ua> References: <536BB61A.7000307@ixsystems.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="avNtfD0ffNO6L/9g" Content-Disposition: inline In-Reply-To: <536BB61A.7000307@ixsystems.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home Cc: Developers iXsystems , timur@freebsd.org, freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2014 19:42:33 -0000 --avNtfD0ffNO6L/9g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 08, 2014 at 09:51:38AM -0700, Craig Rodrigues wrote: > Timur, >=20 > John Hixson at iXsystems pointed out the following problem to me, and I= =20 > noticed it as well. What is the problem, exactly ? Does something mis-function ? >=20 > When compiling the net/samba41 port on a FreeBSD-CURRENT host, > I notice that all binaries seem to be compiled as shared objects, and=20 > not as proper executables. >=20 > % file usr/local/sbin/nmbd > usr/local/sbin/nmbd: ELF 64-bit LSB shared object, x86-64, version 1=20 > (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 11.0=20 > (1100013), not stripped This is normal for PIE binaries. >=20 >=20 > If I look at the link line for nmbd for example, I see that linker flags= =20 > such as: > -Wl,--export-dynamic > -Wl,-Bdynamic >=20 > are being passed which force this to be linked together as a shared=20 > object, not as an executable. This has nothing to do with the output object type. >=20 > Do you have any idea as to how to fix this? So, fix what ? --avNtfD0ffNO6L/9g Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBAgAGBQJTa94iAAoJEJDCuSvBvK1ByDIP/Az55FpvY1SOs2Ro3fpuRREu ECo2jpaVcF/NrF67QWI8iN8miHYkHqHKGuF/R+YdlCnAHP57XwJpdt72VkSsmrH8 zdAQKDeyvibEPPem8R19rdCpfWGSk4QgQqOWS34+1NbU4vGMGIQV0PLu8m++O9m4 zFh/XIOCLBsXVmXV0PpJ+u8KQeJZfcXjC6m2xvhkurNuR0a+OBJF+rJVI9r8RH8R fjQuBtxS4hCV6LN4Q7e45k13i1oPaqQFjNWeyuA8ShXG18/BrMvEADhg/GZT914C NIgXGtgfDyGCwhunzpux8GZa7OMslFfMzKq8WyEOeh8W1VeU7lJflrXhXyDPg1KO xlfz1SV48kd5BllJOc3fIVT8m2Ue8OJsfXEdmOzJXpUWR8XNnRpdqY+wHlxTNvII n0XtXV8GFFP54ejIReF6Sc0ayyfW5Uorz7V9I8XXBpO+WBNJldstNuxi1GJjRhqu tHcAT6Jg7u7RZBSsGclhwaNX3fp9tkotVoyYgHkB7eog74J6mbFVURkmZw9mmvft 4owSL76AKFW7U5i1iMsN9UtUfsMpfzIi9uiwUV3QsCtMoYWYmCeUbexC/tK1rRzB U6wkQo8wntfBqdL+7w6LbABc869yrBnIYV7ty9iILLmxCnbqoUpITzXOMBU8LfBD cD9pPts9sIgJeInN8qqR =O1j2 -----END PGP SIGNATURE----- --avNtfD0ffNO6L/9g--