[Bug 3081] New: Build fails on IRIX since memmem() is not declared

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu Oct 10 06:33:39 AEDT 2019


https://bugzilla.mindrot.org/show_bug.cgi?id=3081

            Bug ID: 3081
           Summary: Build fails on IRIX since memmem() is not declared
           Product: Portable OpenSSH
           Version: 8.1p1
          Hardware: MIPS
                OS: IRIX
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Miscellaneous
          Assignee: unassigned-bugs at mindrot.org
          Reporter: mindrot at canavan.de

Created attachment 3334
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3334&action=edit
declare MEMMEM patch

Compilation of sshbuf-misc.c, fails on IRIX:


cc-1196 c99: WARNING File = sshbuf-misc.c, Line = 225
  The indicated function is declared implicitly.

        if ((p = memmem(sshbuf_ptr(b) + start_offset,
                 ^

cc-1515 c99: ERROR File = sshbuf-misc.c, Line = 225
  A value of type "int" cannot be assigned to an entity of type "void
*".

        if ((p = memmem(sshbuf_ptr(b) + start_offset,
               ^

1 error detected in the compilation of "sshbuf-misc.c".

I would suspect that there's a typo in openbsd-compat.h in that #ifdef
has been used instead of #ifndef for HAVE_MEMMEM. With the trivial
patch below, compilation succeeds for me on IRIX 6.5.30.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list