Bug 836923 - Missing sys/time.h include in libcli.h
Missing sys/time.h include in libcli.h
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: libcli (Show other bugs)
16
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Gwyn Ciesla
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-02 03:53 EDT by Jaroslav Škarvada
Modified: 2012-07-10 16:58 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-07-10 16:52:34 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jaroslav Škarvada 2012-07-02 03:53:38 EDT
Description of problem:
There are some compilation errors when compiling with libcli.h, because there is missing sys/time.h include.

Version-Release number of selected component (if applicable):
libcli-devel-1.9.5-3.fc16

How reproducible:
Always

Steps to Reproduce:
1. Include libcli.h (see additional info).
2. Compile.
  
Actual results:
Errors.

Expected results:
No errors.

Additional info:

$ cat test.c
#include <libcli.h>

int main(int argc, char *argv[])
{
  return 0;
}

$ gcc test.c

In file included from test.c:2:0:
/usr/include/libcli.h:59:20: error: field ‘timeout_tm’ has incomplete type
/usr/include/libcli.h:62:5: error: unknown type name ‘time_t’

Addition of '#include <sys/time.h>' to libcli.h should fix this.
Comment 1 Jaroslav Škarvada 2012-07-02 03:55:33 EDT
Affected f16 - rawhide. I am OK with rawhide fix only.
Comment 2 Gwyn Ciesla 2012-07-02 09:39:25 EDT
Updated to 1.9.6 in rawhide which fixes this.  It's not a soname bump, so I'll push back to f16 as well.
Comment 3 Fedora Update System 2012-07-02 09:49:35 EDT
libcli-1.9.6-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/libcli-1.9.6-1.fc17
Comment 4 Fedora Update System 2012-07-02 09:49:44 EDT
libcli-1.9.6-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/libcli-1.9.6-1.fc16
Comment 5 Fedora Update System 2012-07-02 18:28:53 EDT
Package libcli-1.9.6-1.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libcli-1.9.6-1.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-10163/libcli-1.9.6-1.fc16
then log in and leave karma (feedback).
Comment 6 Fedora Update System 2012-07-10 16:52:34 EDT
libcli-1.9.6-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 7 Fedora Update System 2012-07-10 16:58:08 EDT
libcli-1.9.6-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.