Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4465

Cannot build libmongoc with SRV support on FreeBSD

      Summary

      User 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 CDRIVER-2257. roberto.sanchez@mongodb.com pointed out that FreeBSD ports has a package for libmongoc 1.8.1, which would predate that. Additionally, kevin.albertson@mongodb.com noted that libmongoc does not explicitly support FreeBSD, nor is it tested on Evergreen.

      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.

      Environment

      User 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.

            Assignee:
            kyle.kloberdanz@mongodb.com Kyle Kloberdanz (Inactive)
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: