Closed
Description
Bug Report
Compilation error under cygwin
Environment
- php 8.1.12
- ext-mongodb 1.14.2
- cygwin 3.3.6
- uname -a
CYGWIN_NT-10.0-19042 pc-08 3.3.6-341.x86_64 2022-09-05 11:15 UTC x86_64 Cygwin
Cygwin Packages
wget tar libtool bison gcc-g++ autoconf automake openssl libpcre2-devel libssl-devel libcurl-devel libxml2-devel libxslt-devel libgmp-devel ImageMagick libpng-devel libjpeg-devel libfreetype-devel libwebp-devel libsqlite3-devel zlib-devel libbz2-devel libzip-devel libicu-devel libonig-devel libcares-devel libsodium-devel libyaml-devel libMagick-devel
Test Script
git clone https://github.com/php/php-src.git
cd php-src
git checkout PHP-8.1.12
cd ext
pecl download mongodb-1.14.2
tar xvf mongodb-1.14.2.tgz
mv mongodb-1.14.2 mongodb
cd ..
Configure
./buildconf --force
./configure --prefix=/usr --disable-all \
--disable-fiber-asm \
--disable-opcache \
--without-pcre-jit \
--with-openssl --enable-openssl \
--with-curl \
--with-iconv \
--enable-intl \
--with-bz2 \
--enable-bcmath \
--enable-filter \
--enable-session \
--enable-tokenizer \
--enable-mbstring \
--enable-ctype \
--with-zlib \
--with-zip \
--enable-posix \
--enable-sockets \
--enable-pdo \
--with-sqlite3 \
--enable-phar \
--enable-pcntl \
--enable-mysqlnd \
--with-mysqli \
--enable-fileinfo \
--with-pdo_mysql \
--with-pdo-sqlite \
--enable-soap \
--with-xsl \
--with-gmp \
--enable-exif \
--with-sodium \
--enable-xml --enable-simplexml --enable-xmlreader --enable-xmlwriter --enable-dom --with-libxml \
--enable-gd --with-jpeg --with-freetype \
--enable-mongodb
Build
make -j 8
/cygdrive/d/workspace/php-src/ext/mongodb/src/libmongocrypt/kms-message/src/kms_crypto.h:45:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
45 | kms_crypto_init ();
| ^~~~~~~~~~~~~~~
/cygdrive/d/workspace/php-src/ext/mongodb/src/libmongocrypt/kms-message/src/kms_crypto.h:48:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
48 | kms_crypto_cleanup ();
| ^~~~~~~~~~~~~~~~~~
/cygdrive/d/workspace/php-src/ext/mongodb/src/libmongocrypt/src/os_posix/os_dll.c:130:2: error: #error "Don't know how to do mcr_dll_path() on this platform"
130 | #error "Don't know how to do mcr_dll_path() on this platform"
| ^~~~~
Expected and Actual Behavior
successfully compiled