[CDRIVER-77] Compiling issue involving timeval struct in mongo_conn_set_timeout Created: 30/Jun/11 Updated: 03/May/17 Resolved: 30/Jun/11 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 0.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Eric Hansen | Assignee: | Kyle Banker |
| Resolution: | Done | Votes: | 0 |
| Labels: | compile, error, time.h, timeout | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Arch Linux kernel 2.6.39, gcc 4.6 |
||
| Attachments: |
|
| Description |
|
When compiling the mongoDB C driver, I get this message: scons --c99 The reason for this is that "struct timeval tv" is not defined by default. <sys/time.h> is not included in mongo.c, and thus causes the compiling process to terminate with the above error. Attached is a modified version of mongo.c that has two lines, a comment line and #include <sys/time.h> |
| Comments |
| Comment by Kyle Banker [ 30/Jun/11 ] |
|
Thanks for the report. We do recommend building from a given tag. Master should be considered unstable. |
| Comment by auto [ 30/Jun/11 ] |
|
Author: {u'login': u'banker', u'name': u'Kyle Banker', u'email': u'kylebanker@gmail.com'}Message: |