On Thu, Sep 20, 2018 at 9:47 PM Bart Van Assche <bvanass...@acm.org> wrote:

> On 9/20/18 6:50 PM, Mark Christiansen wrote:
> > On Thu, Sep 20, 2018 at 7:45 AM Bart Van Assche <bvanass...@acm.org
> > <mailto:bvanass...@acm.org>> wrote:
> >
> >     On 9/20/18 6:08 AM, Mark Christiansen wrote:
> >      > In file included from snmp_client.c:94:0:
> >      > ../include/net-snmp/types.h:68:15: error: conflicting types for
> >     'socklen_t'
> >      >   typedef u_int socklen_t;
> >      >                 ^~~~~~~~~
> >
> >     This is weird. There is a check for socklen_t in
> >     configure.d/config_project_types that should have detected that MinGW
> >     supports socklen_t. Can you share the config.log file that was
> >     generated
> >     by the configure script?
> >
> > Okay. I attached the file because there Gmail apparently doesn't want me
> > to paste 70,000 lines of text.
>
> Can you check whether socklen_t is corrected detected correctly after
> having applied the patch below?
>
> Thanks,
>
> Bart.


Thanks. I tried to apply the patch and get the following:

 $ git apply detect_socklen_t.patch                 ce
warning: configure has type 100644, expected 100755
error: patch failed: configure:26555
error: configure: patch does not apply
error: patch failed: configure.d/config_project_types:37
error: configure.d/config_project_types: patch does not apply

I'm a little new to applying patches, but I notice that the patch doesn't
match up:

@@ -26555,6 +26555,12 @@ _ACEOF
  #   Check for 'socklen_t'                           (HP-UX)
  #
  ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "

vs:

$ grep -n socklen_t configure
25164:#   Check for 'socklen_t', 'in_addr_t' and 'ssize_t'.
25166:ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "

What commit are you on for that patch?
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to