Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1198

Ensure bundled libraries set CFLAGS correctly

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.5.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      linux. through shell.

      First, i apologize that my knowledge level is pretty low.

      I am getting the fatal error 'sasl/sasl.h' file not found.

      src/mongoc/mongoc-cluster-cyrus.c:21:
      src/libmongoc/src/libmongoc/src/mongoc/mongoc-cyrus-private.h:28:10: fatal error:
      _'sasl/sasl.h' file not found
      #include <sasl/sasl.h>
      _^~~~~~~~~~~~~
      1 error generated.
      *** Error code 1
      
      Stop.
      make: stopped in /home/conf/mongo-php-driver
      

      These are the commands I am using to install the driver.

      git clone https://github.com/mongodb/mongo-php-driver.git
      cd mongo-php-driver
      git submodule update --init
      /usr/local/php/5.6.36-nfsn1/bin/phpize
      ./configure -with-php-config='/usr/local/php/5.6.36-nfsn1/bin/php-config'
      
      make all
      

      I have attached the results of the config command in file configure output.txt

       

      Any help you can give would be great, as I had it working before but then I accidentally deleted the driver. When attempting to reinstall i started having this error.

        1. configure output.txt
          9 kB
        2. resultsofconfigure.txt
          9 kB

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            ianmiddelkamp Ian Middelkamp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: