[CDRIVER-2916] make fails on macOS Mojave Created: 03/Jan/19 Updated: 28/Jan/19 Resolved: 28/Jan/19 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 1.13.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Demircan Celebi | Assignee: | Kevin Albertson |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
macOS Mojave 10.14.2 |
||
| Attachments: |
|
| Description |
|
Hello, I am trying to build the driver but I get these errors when I run `make`. In file included from /Users/demir/Downloads/mongo-c-driver-1.13.0/src/libmongoc/src/mongoc/mongoc-client.c:30:
I've added the screenshot of all error logs. It'd be great if someone can help me with this. Best, |
| Comments |
| Comment by Kevin Albertson [ 28/Jan/19 ] | |
|
Hi Demirican, I could not reproduce this with the same version of macOS (10.14.2), XCode 10.1 (10B61), and latest cmake. Inspecting both: And They have the same ifdef guard. Even if both were included for me, I would not get a redefinition error. I'm unsure what differs with your setup, but seeing that you have a workaround for this, I'm closing as "Cannot Reproduce". But feel free to re-open if this is still an issue for you. Thank you, | |
| Comment by Kevin Albertson [ 03/Jan/19 ] | |
|
Hi Demirican, Thanks for including the cmake output. I haven't been able to reproduce on my machine with macOS Mojave, but I'll continue to investigate. By chance, were you able to build the C driver before, and this error only occurred after upgrading to Mojave? And in case you haven't, can you try deleting the cmake-build directory (/Users/demir/Downloads/mongo-c-driver-1.13.0/cmake-build) and rebuilding, in case something is outdated in the cmake cache? Thank you, | |
| Comment by Demircan Celebi [ 03/Jan/19 ] | |
|
Yes, I'm using the latest version of XCode (10.1). I was able to run make after running cmake with -DENABLE_SRV=OFF, thank you for your quick response! The cmake.png contains the output for `cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..` Here is also the latest output for cmake: ~/D/m/cmake-build ❯❯❯ cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF -DENABLE_SRV=OFF .. The cmake-policies(7) manual explains that the OLD behaviors of all – Looking for pthread.h
| |
| Comment by Kevin Albertson [ 03/Jan/19 ] | |
|
Hi Demircan, Thank you for the detailed bug report. Can you include the cmake command you used and the full output? A copy-paste of the text is fine. And can you confirm that you are using the latest version of XCode (10.1)? As a temporary workaround, try configuring the driver without SRV URI support:
This disables support for DNS seedlist URIs, explained here. Thank you, |