[CDRIVER-4465] Cannot build libmongoc with SRV support on FreeBSD Created: 30/Aug/22 Updated: 28/Apr/23 Resolved: 28/Apr/23 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | Initial DNS Seedlist Discovery |
| Affects Version/s: | 1.22.1 |
| Fix Version/s: | 1.24.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jeremy Mikola | Assignee: | Kyle Kloberdanz |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Epic Link: | CDRIVER-4551 | ||||||||||||||||||||
| Description |
SummaryUser in mongodb/mongo-php-driver#1343 reported that they cannot compile libmongoc (either PHPC's bundled copy using Autotools or as a separate system library using CMake) with support for SRV resolution. Support for mongodb+srv URIs was introduced in 1.9 with I've cross-referenced this issue with another FreeBSD compat issue the same user reported in libmongocrypt, although that's not related to SRV resolution. EnvironmentUser compiled libmongoc 1.22.0 through PHPC and libmongoc 1.22.1 as a separate system library. Both failed to properly detect necessary resolution functions (i.e. MONGOC_HAVE_RES_SEARCH and MONGOC_HAVE_RES_NSEARCH were both 0). FreeBSD version in use is 12.3. Additionally configure output (from PHPC's build process) is available in the linked GitHub issue above. The relevant Autotools checks for that output comes from CheckResolv.m4. |
| Comments |
| Comment by Githook User [ 28/Apr/23 ] |
|
Author: {'name': 'Kyle Kloberdanz', 'email': 'kyle.kloberdanz@mongodb.com', 'username': 'kkloberdanz'}Message: Fix build for FreeBSD (#625)
|
| Comment by Githook User [ 27/Apr/23 ] |
|
Author: {'name': 'Kyle Kloberdanz', 'email': 'kyle.kloberdanz@mongodb.com', 'username': 'kkloberdanz'}Message: Fix build for FreeBSD (#1243)
Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com> |
| Comment by Kevin Albertson [ 14/Sep/22 ] |
|
The suggested change to add #include <netinet/in.h> seems OK to me. |