zlib missing when installing from PECL

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 1.16.1
    • Affects Version/s: 1.16.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I have the following line in my PHP fpm Alpine Dockerfile

      Unable to find source-code formatter for language: dockerfile. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      pecl install mongodb 

      It always worked like a charmed until 1.16.0. Now the install won't complete and is crashing with the log below. The current workaround is to just use 1.15.3

      Build configuration:
      CC : cc
      CFLAGS : -g -O2
      Extra CFLAGS :
      Developers flags (slow) :
      Code Coverage flags (extra slow) :
      libmongoc : Bundled (1.24.1)
      libbson : Bundled (1.24.1)
      libmongocrypt : Bundled (1.8.1)
      LDFLAGS :
      EXTRA_LDFLAGS :
      MONGODB_SHARED_LIBADD : -lresolv -lssl -lcrypto
      Please submit bugreports at:
      https://jira.mongodb.org/browse/PHPCconfig.status: creating /tmp/pear/temp/mongodb/src/libmongoc/src/common/common-config.h
      config.status: creating /tmp/pear/temp/mongodb/src/libmongoc/src/libbson/src/bson/bson-config.h
      config.status: creating /tmp/pear/temp/mongodb/src/libmongoc/src/libbson/src/bson/bson-version.h
      config.status: creating /tmp/pear/temp/mongodb/src/libmongoc/src/libmongoc/src/mongoc/mongoc-config.h
      config.status: creating /tmp/pear/temp/mongodb/src/libmongoc/src/libmongoc/src/mongoc/mongoc-version.h
      config.status: error: cannot find input file: `/tmp/pear/temp/mongodb/src/libmongoc/src/zlib-1.2.13/zconf.h.in'
      ERROR: `/tmp/pear/temp/mongodb/configure --with-php-config=/usr/local/bin/php-config' failed
      ERROR: Service 'xxxxx-api-php-fpm' failed to build : The command '/bin/sh -c pecl install mongodb && docker-php-ext-enable mongodb' returned a non-zero code: 1
      

       

            Assignee:
            Andreas Braun
            Reporter:
            Anatolij Vasilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: