On 9/21/18 5:43 AM, Mark Christiansen wrote:
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?

Commit c6e392d515e39a150fb2f699725c6f7beb19c0b1, which is on the v5-8-patches branch. Can you try patch -p1 < ${patch_file} instead of git apply? The patch command is more flexible if it encounters a context mismatch than git apply.

Thanks,

Bart.



_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to