public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* building net-snmp: (was: Updated: net-snmp-5.8-1)
@ 2020-04-28 15:38 Lee
  2020-04-28 15:58 ` Brian Inglis
  2020-04-28 16:24 ` David Rothenberger
  0 siblings, 2 replies; 3+ messages in thread
From: Lee @ 2020-04-28 15:38 UTC (permalink / raw)
  To: cygwin

> If you want to make a point or ask a question the Cygwin mailing list is
> the appropriate place.

You don't need this anymore
  02-path-separator.patch
if you build net-snmp with
  export ENV_SEPARATOR=":"

And maybe now they'll accept a patch so that building on cygwin
doesn't require an evar.  I think  "gcc -mno-cygwin ..."  might still
have been supported when I tried to get it changed and the best they'd
do was an evar when building.


Is 06-winstub.patch necessary?  Necessary if all you're using is the
command line tools?
The changelog has this
commit fda421625d20d8f8201479fa7f33c257fdc72015
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Nov 27 11:25:40 2016 -0800

    Cygwin: getnetent() / getnetbyaddr() build fix

    Recent versions of Cygwin have prototypes but no implementation for
    these functions. Hence avoid that the Cygwin prototypes conflict
    with the implementation.

In other words, if I'm using just the snmp{get,set} command line
tools, should I be applying this patch?

Thanks,
Lee



On 4/27/20, David Rothenberger wrote:
> DESCRIPTION:
> ============
> Simple Network Management Protocol (SNMP) is a widely used protocol
> for monitoring the health and welfare of network equipment
> (eg. routers), computer equipment and even devices like
> UPSs. Net-SNMP is a suite of applications used to implement SNMP v1,
> SNMP v2c and SNMP v3 using both IPv4 and IPv6. The suite includes:
>
>   * Command-line applications to:
>     * retrieve information from an SNMP-capable device, either using
>       single requests (snmpget, snmpgetnext), or multiple requests
>       (snmpwalk, snmptable, snmpdelta).
>     * manipulate configuration information on an SNMP-capable device
>       (snmpset).
>     * retrieve a fixed collection of information from an
>       SNMP-capable device (snmpdf, snmpnetstat, snmpstatus).
>     * convert between numerical and textual forms of MIB OIDs, and
>       display MIB content and structure (snmptranslate).
>   * A graphical MIB browser (tkmib), using Tk/perl.
>   * A daemon application for receiving SNMP notifications
>      (snmptrapd). Selected notifications can be logged (to syslog,
>      the NT Event Log, or a plain text file), forwarded to another
>      SNMP management system, or passed to an external application.
>   * An extensible agent for responding to SNMP queries for
>     management information (snmpd). This includes built-in support
>     for a wide range of MIB information modules, and can be extended
>     using dynamically loaded modules, external scripts and commands,
>     and both the SNMP multiplexing (SMUX) and Agent Extensibility
>     (AgentX) protocols.
>   * A library for developing new SNMP applications, with both C and
>     perl APIs.
>
> CYGWIN NOTES:
> =============
>  * The snmpd daemon does not provide much useful information.
>    Installing it as a service under Cygwin is left as an exercise
>    for the user.
>
> QUESTIONS:
> ==========
> If you want to make a point or ask a question the Cygwin mailing list is
> the appropriate place.
>
>
> --
> David Rothenberger
>
> Remember:  Silly is a state of Mind, Stupid is a way of Life.
>                 -- Dave Butler
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: building net-snmp: (was: Updated: net-snmp-5.8-1)
  2020-04-28 15:38 building net-snmp: (was: Updated: net-snmp-5.8-1) Lee
@ 2020-04-28 15:58 ` Brian Inglis
  2020-04-28 16:24 ` David Rothenberger
  1 sibling, 0 replies; 3+ messages in thread
From: Brian Inglis @ 2020-04-28 15:58 UTC (permalink / raw)
  To: cygwin

On 2020-04-28 09:38, Lee via Cygwin wrote:
>> If you want to make a point or ask a question the Cygwin mailing list is
>> the appropriate place.
> 
> You don't need this anymore
>   02-path-separator.patch
> if you build net-snmp with
>   export ENV_SEPARATOR=":"
> 
> And maybe now they'll accept a patch so that building on cygwin
> doesn't require an evar.  I think  "gcc -mno-cygwin ..."  might still
> have been supported when I tried to get it changed and the best they'd
> do was an evar when building.
> 
> Is 06-winstub.patch necessary?  Necessary if all you're using is the
> command line tools?
> The changelog has this
> commit fda421625d20d8f8201479fa7f33c257fdc72015
> Author: Bart Van Assche <bvanassche@acm.org>
> Date:   Sun Nov 27 11:25:40 2016 -0800
> 
>     Cygwin: getnetent() / getnetbyaddr() build fix
> 
>     Recent versions of Cygwin have prototypes but no implementation for
>     these functions. Hence avoid that the Cygwin prototypes conflict
>     with the implementation.
> 
> In other words, if I'm using just the snmp{get,set} command line
> tools, should I be applying this patch?

The current /usr/include/netdb.h definitions from cygwin-devel match the
prototypes under endnetent(3p) and netdb.h(0p) from man-pages-posix.
If you don't have cygwin-devel installed it shouldn't be an issue, and the
supplied implementation of the missing interfaces should match the POSIX specs:

	https://pubs.opengroup.org/onlinepubs/009695399/basedefs/netdb.h.html

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: building net-snmp: (was: Updated: net-snmp-5.8-1)
  2020-04-28 15:38 building net-snmp: (was: Updated: net-snmp-5.8-1) Lee
  2020-04-28 15:58 ` Brian Inglis
@ 2020-04-28 16:24 ` David Rothenberger
  1 sibling, 0 replies; 3+ messages in thread
From: David Rothenberger @ 2020-04-28 16:24 UTC (permalink / raw)
  To: cygwin

On 4/28/2020 8:38 AM, Lee wrote:
> You don't need this anymore
>    02-path-separator.patch
> if you build net-snmp with
>    export ENV_SEPARATOR=":"

Thanks for the tip, but I think I'll keep the patch for now.

> Is 06-winstub.patch necessary?  Necessary if all you're using is the
> command line tools?

I don't really know if it's required or not. I inherited the patch and 
it still applies correctly and tests work with it, so I'll leave it in.

-- 
David Rothenberger  ----  daveroth@acm.org

T-shirt:
         Life is *not* a Cabaret, and stop calling me chum!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-28 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-28 15:38 building net-snmp: (was: Updated: net-snmp-5.8-1) Lee
2020-04-28 15:58 ` Brian Inglis
2020-04-28 16:24 ` David Rothenberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).