Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 2014 22:42:27 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Craig Rodrigues <rodrigc@ixsystems.com>
Cc:        Developers iXsystems <dev@ixsystems.com>, timur@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: net/samba41 port compiles nmbd as a shared object, not executable
Message-ID:  <20140508194227.GB74331@kib.kiev.ua>
In-Reply-To: <536BB61A.7000307@ixsystems.com>
References:  <536BB61A.7000307@ixsystems.com>

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

--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--



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