From owner-freebsd-questions@freebsd.org Wed Oct 16 12:42:48 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6C10916435A for ; Wed, 16 Oct 2019 12:42:48 +0000 (UTC) (envelope-from jbe-mlist@magnetkern.de) Received: from sapphire.magnetkern.de (sapphire.magnetkern.de [185.228.139.199]) by mx1.freebsd.org (Postfix) with ESMTP id 46tX5343CTz3Bqw for ; Wed, 16 Oct 2019 12:42:47 +0000 (UTC) (envelope-from jbe-mlist@magnetkern.de) Received: from titanium (p57A35420.dip0.t-ipconnect.de [87.163.84.32]) by sapphire.magnetkern.de (Postfix) with ESMTPSA id 6CF099C5A; Wed, 16 Oct 2019 12:42:36 +0000 (UTC) Date: Wed, 16 Oct 2019 14:36:27 +0200 From: Jan Behrens To: MJ Message-Id: <20191016143627.464cdd05d38fe3db8f3769b9@magnetkern.de> In-Reply-To: <71e9fd21-506f-bbae-df27-74ea0b32a660@gmail.com> References: <20191015204400.e33c8f62af711e829288ddae@magnetkern.de> <47c27361-4e74-05d1-3343-e39526730d85@malikania.fr> <20191016131552.6fda34292987e22ae78072cc@magnetkern.de> <71e9fd21-506f-bbae-df27-74ea0b32a660@gmail.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Date: Wed, 16 Oct 2019 14:42:35 +0200 Resent-From: Jan Behrens Resent-To: freebsd-questions@freebsd.org Resent-Cc: MJ Subject: Re: Problems with ld, libc, and "struct stat" Resent-Message-Id: <20191016144235.edc6996c7599b32d50a52622@magnetkern.de> X-Rspamd-Queue-Id: 46tX5343CTz3Bqw X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of jbe-mlist@magnetkern.de designates 185.228.139.199 as permitted sender) smtp.mailfrom=jbe-mlist@magnetkern.de X-Spamd-Result: default: False [-1.78 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.96)[-0.961,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[magnetkern.de]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-0.13)[asn: 197540(-0.62), country: DE(-0.01)]; TO_DN_ALL(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; RECEIVED_SPAMHAUS_PBL(0.00)[32.84.163.87.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:197540, ipnet:185.228.136.0/22, country:DE]; FORGED_RECIPIENTS(0.00)[mafsys1234@gmail.com,freebsd-questions@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Oct 2019 12:42:48 -0000 On Wed, 16 Oct 2019 22:45:10 +1100 MJ wrote: > This explains it succinctly: > > https://www.cprogramming.com/tutorial/shared-libraries-linux-gcc.html > (apart from the linux-isms) > > Also this, in more detail: > http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html > > Cheers > Mark Thank you for the links (didn't see your message before I was posting the previous one). I'll look into that. They are referring to gcc and not clang, so I hope it works the same with clang. I still would like to find some authoritative documentation on the "-shared" option of clang (and not gcc), but maybe that documentation simply doesn't exist. Thanks again for the links, Regards Jan