[CDRIVER-940] Build errors and warnings on mingw-w64 Created: 17/Oct/15 Updated: 13/Jan/17 Resolved: 22/Oct/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | mingw |
| Affects Version/s: | 1.2.0 |
| Fix Version/s: | 1.2.1 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Jeroen Ooms [X] | Assignee: | Hannes Magnusson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
Version 1.2.0 no longer builds on windows because the 'ETIMEDOUT' constant is not defined. I am using mingw-w64 based on gcc-4.6.3.
In addition mingw-w64 has a few warnings:
|
| Comments |
| Comment by Githook User [ 11/Jan/16 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by Githook User [ 11/Jan/16 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by Githook User [ 11/Jan/16 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by Hannes Magnusson [ 22/Oct/15 ] |
|
There is no way for sec_ptr and millis_ptr to be used without initialization. They are only accessed with if (sec_len && ...sec_ptr) and if (millis_len && ...millis_ptr). I fixed the other warnings, and build failures. |
| Comment by Githook User [ 22/Oct/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: Merge branch 'r1.2'
|
| Comment by Githook User [ 22/Oct/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: Although ETIMEDOUT is defined in certain cases, it doesn't necessarily |
| Comment by Githook User [ 22/Oct/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by Githook User [ 22/Oct/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by Githook User [ 22/Oct/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by Githook User [ 22/Oct/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by Githook User [ 22/Oct/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by Githook User [ 22/Oct/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: Although ETIMEDOUT is defined in certain cases, it doesn't necessarily |
| Comment by Githook User [ 21/Oct/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by Jeroen Ooms [X] [ 20/Oct/15 ] |
|
I'm using windows. This is for the R driver, our tool chain is called 'Rtools'. You can download the latest stable version (3.2) from https://cran.r-project.org/bin/windows/Rtools/Rtools32.exe |
| Comment by Hannes Magnusson [ 20/Oct/15 ] |
|
I'm having a hard time reproducing this on mingw64-gcc-4.9.2-1.fc21.x86_64 It should be WSAETIMEDOUT, but ETIMEDOUT is indeed defined just fine (as 138). Guess I'll have to try downgrading.. |