All of lore.kernel.org
 help / color / mirror / Atom feed
From: Giulio Benetti <giulio.benetti@micronovasrl.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] netsnmp: fix static build failure due to missing -lssl and -lz
Date: Thu, 11 Oct 2018 22:52:54 +0200	[thread overview]
Message-ID: <f1617e29-4fdf-967f-84a6-123c045b8400@micronovasrl.com> (raw)
In-Reply-To: <871s8w1aaz.fsf@dell.be.48ers.dk>

Hi Peter,

Il 11/10/2018 22:46, Peter Korsgaard ha scritto:
>>>>>> "Giulio" == Giulio Benetti <giulio.benetti@micronovasrl.com> writes:
> 
>   > During configure some checking needing -lssl and -lz don't have them
>   > appended to linker tail. Since we are building static this leads to
>   > configure failure because of mandatory functions lack produces:
>   > "configure: error: The DTLS based transports require the libssl library
>   > from OpenSSL to be available and support DTLS"
> 
>   > - Add 1 patch to fix -lssl lack in configure and .ac modules:
>   > upstreamed: https://sourceforge.net/p/net-snmp/code/ci/bd59be8e4e339870a1400f6866a7b73ca11f6460/
>   > - Add 2 patches to fix -lz lack in configure and .ac modules:
>   > 1 upstreamed: https://sourceforge.net/p/net-snmp/code/ci/13da2bcde8e22dd0127a668374fdf79bed04d353/
>   > 1 in Merge Request: https://sourceforge.net/p/net-snmp/code/merge-requests/19/
>   > - Add NETSNMP_AUTORECONF = YES
> 
>   > Fixes:
>   > http://autobuild.buildroot.net/results/ece/ece7af756c910f65f618c1d04a5de70cc574b5f4/
>   > http://autobuild.buildroot.net/results/2a7/2a7020de6a4095cf9991d09fbe8f6e364783f63b/
>   > http://autobuild.buildroot.net/results/e27/e2787d15f72949cbb347e8a1d344f5f80b4d7697/
>   > http://autobuild.buildroot.net/results/439/4393ce8ddee294f91bdc3e6fb53e08d56fe52184/
>   > http://autobuild.buildroot.net/results/da6/da6bbbbb3a8d8193ec1389b9d976164181e88ae2/
>   > http://autobuild.buildroot.net/results/cf5/cf57686e7620cc0ec361631a9ff906aa0123fdb4/
>   > http://autobuild.buildroot.net/results/104/1043a958314529240627005d1bf21a76f4e6fcf5/
>   > http://autobuild.buildroot.net/results/885/8855545bd09388e0da451a3cb53b312e13b29c2c/
>   > http://autobuild.buildroot.net/results/a3d/a3dab9618a7ed88f94597418a5892c87adc23c66/
>   > http://autobuild.buildroot.net/results/18e/18e70b88c9bcb3b8ede7308e54bba9417d1fd3fb/
>   > http://autobuild.buildroot.net/results/ee3/ee34f65f26da20c0f2fdb9e86bcbddd389f59a29/
>   > http://autobuild.buildroot.net/results/a1e/a1eb848079080ddf7cf2fc9e554cdd63ade0e9aa/
>   > http://autobuild.buildroot.net/results/4dc/4dc8b53ff9f504c0a3dfc2d72c2609ad4d34559b/
>   > http://autobuild.buildroot.net/results/9cc/9cc19e481de20ea0b4b5163e45c5aee525b81229/
>   > http://autobuild.buildroot.net/results/f15/f15c22e0257d7498456049d8aae195ed6a265d2e/
>   > http://autobuild.buildroot.net/results/1b3/1b30f9813a4605056963bfe4532374f725830fda/
>   > http://autobuild.buildroot.net/results/d02/d02afc174ac4c9888f0a2cf725820cc1f05fc4bf/
>   > http://autobuild.buildroot.net/results/57b/57b3f4663058d728987ef848e4b346656cae21d4/
>   > http://autobuild.buildroot.net/results/ed4/ed4c27bdffccc4374ab7f951c30baba8171d30e1/
> 
>   > Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
>   > ---
>   >  ...figure-static-linking-Fix-SSL-checks.patch | 142 ++++++++++++++++++
> 
> Having the configure part AND doing a autoreconf is a bit stupid, but I
> guess you just wanted to include the upstream commit as is.

As I've tested, need to autoreconf to pick up new autotools rules 
applied with patches.
So if call only ./configure after appliyng patches it wouldn't work as 
configure file is not re-created by autotools.

Maybe I have to suggest to netsnmp upstream as Issue to update 
"configure" file?

> Committed, thanks!

Thank you!
Best regards
-- 
Giulio Benetti
CTO

MICRONOVA SRL
Sede: Via A. Niedda 3 - 35010 Vigonza (PD)
Tel. 049/8931563 - Fax 049/8931346
Cod.Fiscale - P.IVA 02663420285
Capitale Sociale ? 26.000 i.v.
Iscritta al Reg. Imprese di Padova N. 02663420285
Numero R.E.A. 258642

  reply	other threads:[~2018-10-11 20:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-09  8:51 [Buildroot] [PATCH 1/1] netsnmp: fix static build with openssl Fabrice Fontaine
2018-09-09 12:16 ` Thomas Petazzoni
2018-09-09 12:43   ` Fabrice Fontaine
2018-09-09 13:09     ` Thomas Petazzoni
2018-09-17 20:37       ` Giulio Benetti
2018-09-17 20:39         ` [Buildroot] [PATCH] netsnmp: fix static build failure due to missing -lssl and -lz Giulio Benetti
2018-10-11 20:46           ` Peter Korsgaard
2018-10-11 20:52             ` Giulio Benetti [this message]
2018-09-17 20:43         ` [Buildroot] [PATCH 1/1] netsnmp: fix static build with openssl Fabrice Fontaine
2018-09-17 21:22         ` Thomas Petazzoni
2018-09-17 21:44           ` Giulio Benetti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f1617e29-4fdf-967f-84a6-123c045b8400@micronovasrl.com \
    --to=giulio.benetti@micronovasrl.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.