Bug 836923 - Missing sys/time.h include in libcli.h
Summary: Missing sys/time.h include in libcli.h
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libcli
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-02 07:53 UTC by Jaroslav Škarvada
Modified: 2012-07-10 20:58 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-10 20:52:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jaroslav Škarvada 2012-07-02 07:53:38 UTC
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 07:55:33 UTC
Affected f16 - rawhide. I am OK with rawhide fix only.

Comment 2 Gwyn Ciesla 2012-07-02 13:39:25 UTC
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 13:49:35 UTC
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 13:49:44 UTC
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 22:28:53 UTC
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 20:52:34 UTC
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 20:58:08 UTC
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.