Statically linked plugins (Re: Help Digest, Vol 51, Issue 1)
Grant Hazelton
grant.hazelton at opsview.com
Wed Apr 11 10:13:39 CEST 2018
Hi Holger,
Thanks for your quick reply (quicker than my thanks, sorry).
Your reply confirmed my suspicion. I found a few pages which said much the same: difficult, poor idea, insane, etc.
I'm looking into the use of musl.
Best regards.
--Grant.
==========
On 10/04/2018, 11:00, "Help on behalf of help-request at monitoring-plugins.org" <help-bounces+grant.hazelton=opsview.com at monitoring-plugins.org on behalf of help-request at monitoring-plugins.org> wrote:
Send Help mailing list submissions to
help at monitoring-plugins.org
To subscribe or unsubscribe via the World Wide Web, visit
https://www.monitoring-plugins.org/list/listinfo/help
or, via email, send a message with subject or body 'help' to
help-request at monitoring-plugins.org
You can reach the person managing the list at
help-owner at monitoring-plugins.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Help digest..."
Today's Topics:
1. Statically linked plugins (Grant Hazelton)
2. Re: Statically linked plugins (Holger Wei?)
----------------------------------------------------------------------
Message: 1
Date: Tue, 10 Apr 2018 07:31:16 +0000
From: Grant Hazelton <grant.hazelton at opsview.com>
To: "help at monitoring-plugins.org" <help at monitoring-plugins.org>
Subject: Statically linked plugins
Message-ID: <FE6D5F05-4FEA-4D34-AB5F-24817AC3A277 at contoso.com>
Content-Type: text/plain; charset="utf-8"
Hi all,
I?ve just joined the list.
I have a question about static linking. While I?m working my way through the archive to see if it has already been answered, I?ll ask here in case someone can help.
After configure && make I find that plugins (for example check_apt) are dynamically linked, needing libpthread.so.0 and libc.so.6, etc., according to objdump.
I tried configure LDFLAGS=?-static? && make, and I can see -static added to the libtool command line, but I still get a dynamically linked exe needing the same shared libraries.
What am I doing wrong? (Or misunderstanding?)
Thanks in advance.
--Grant.
==========
Grant Hazelton / Software Engineer
Opsview / t: +44 1183 242 100
Opsview Limited is a company registered in the UK under Company Number 5396532. Our registered office is Enterprise Centre, Whiteknights Road, Reading, RG6 6BU, UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20180410/2e077fd2/attachment-0001.html>
------------------------------
Message: 2
Date: Tue, 10 Apr 2018 11:23:00 +0200
From: Holger Wei? <holger at zedat.fu-berlin.de>
To: Monitoring Plugins Help <help at monitoring-plugins.org>
Subject: Re: Statically linked plugins
Message-ID: <20180410092300.GP757391 at zedat.fu-berlin.de>
Content-Type: text/plain; charset=us-ascii
* Grant Hazelton <grant.hazelton at opsview.com> [2018-04-10 07:31]:
> I tried configure LDFLAGS="-static" && make, and I can see -static added
> to the libtool command line, but I still get a dynamically linked exe
> needing the same shared libraries.
You can't easily compile a fully static binary on today's Linux/glibc
systems:
https://sourceware.org/glibc/wiki/FAQ#Even_statically_linked_programs_need_some_shared_libraries_which_is_not_acceptable_for_me.__What_can_I_do.3F
Holger
------------------------------
Subject: Digest Footer
_______________________________________________
Help mailing list
Help at monitoring-plugins.org
https://www.monitoring-plugins.org/list/listinfo/help
------------------------------
End of Help Digest, Vol 51, Issue 1
***********************************
More information about the Help
mailing list