bugzilla-daemon at mindrot.org
2007-Mar-11  19:21 UTC
[Bug 1294] includes.h should pull in string.h based on HAVE_STRING_H
http://bugzilla.mindrot.org/show_bug.cgi?id=1294
           Summary: includes.h should pull in string.h based on
                    HAVE_STRING_H
           Product: Portable OpenSSH
           Version: 4.6p1
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build system
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: vapier at gentoo.org
there's some logic in includes.h to handle HAVE_STRINGS_H, but none for
HAVE_STRING_H
the reason for this is that many source files use str* and mem*
functions but are inconsistent as to whether they include string.h ...
for example, these files do not include string.h, yet they use funcs:
entropy.c
scard-opensc.c
ssh-rand-helper.c
in the case of scard-opensc.c, it results in ugly warnings like:
scard-opensc.c: In function 'sc_prkey_op_init':
scard-opensc.c:176: warning: implicit declaration of function 'strcmp'
scard-opensc.c:188: warning: implicit declaration of function 'strlen'
scard-opensc.c:188: warning: incompatible implicit declaration of
built-in function 'strlen'
scard-opensc.c:198: warning: implicit declaration of function 'memset'
scard-opensc.c:198: warning: incompatible implicit declaration of
built-in function 'memset'
scard-opensc.c:204: warning: incompatible implicit declaration of
built-in function 'memset'
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2007-Mar-11  19:22 UTC
[Bug 1294] includes.h should pull in string.h based on HAVE_STRING_H
http://bugzilla.mindrot.org/show_bug.cgi?id=1294 ------- Comment #1 from vapier at gentoo.org 2007-03-12 06:22 ------- Created an attachment (id=1247) --> (http://bugzilla.mindrot.org/attachment.cgi?id=1247&action=view) openssh-4.6_p1-include-string-header.patch this applies against both 4.6_p1 and current portable cvs ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2007-Mar-11  23:25 UTC
[Bug 1294] includes.h should pull in string.h based on HAVE_STRING_H
http://bugzilla.mindrot.org/show_bug.cgi?id=1294
dtucker at zip.com.au changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #1247 is|0                           |1
           obsolete|                            |
------- Comment #2 from dtucker at zip.com.au  2007-03-12 10:25 -------
Created an attachment (id=1248)
 --> (http://bugzilla.mindrot.org/attachment.cgi?id=1248&action=view)
Include string.h from *.c files
The intent is that the standard headers get included directly from the
.c files where possible.
The attached patch does that for the files you mentioned, are there any
others?  Thanks.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2007-Mar-12  06:48 UTC
[Bug 1294] includes.h should pull in string.h based on HAVE_STRING_H
http://bugzilla.mindrot.org/show_bug.cgi?id=1294 ------- Comment #3 from vapier at gentoo.org 2007-03-12 17:48 ------- *shrug* i was just grepping for common mem/str funcs and found those three files ... ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2007-Apr-10  00:01 UTC
[Bug 1294] includes.h should pull in string.h based on HAVE_STRING_H
http://bugzilla.mindrot.org/show_bug.cgi?id=1294
dtucker at zip.com.au changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
OtherBugsDependingO|                            |1305
              nThis|                            |
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Maybe Matching Threads
- opensc smartcard support does not work
- [Bug 584] scard-opensc.c doesn't work without PIN
- [Bug 577] bug (wrong flag) in sc_private_decrypt (scard-opensc.c)
- [Bug 621] scard-opensc.c: more than one private key object for a certificate
- ssh-agent add PKCS#11 support