Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pecl install mongodb fails on Cygwin (64-bit) #848

Closed
ElvenSpellmaker opened this issue Jun 6, 2018 · 1 comment
Closed

pecl install mongodb fails on Cygwin (64-bit) #848

ElvenSpellmaker opened this issue Jun 6, 2018 · 1 comment

Comments

@ElvenSpellmaker
Copy link

Description

Trying to install the mongodb extension through Cygwin (64-bit, not tested 32-bit) using pecl install mongodb and it fails with the following errors:

src/libmongoc/src/mongoc/.libs/mongoc-client.o: In function `_mongoc_get_rr_search':
/tmp/mongodb-1.4.3/src/libmongoc/src/mongoc/mongoc-client.c:413: undefined reference to `__ns_initparse'
/tmp/mongodb-1.4.3/src/libmongoc/src/mongoc/mongoc-client.c:413:(.text+0xeb): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__ns_initparse'
/tmp/mongodb-1.4.3/src/libmongoc/src/mongoc/mongoc-client.c:430: undefined reference to `__ns_parserr'
/tmp/mongodb-1.4.3/src/libmongoc/src/mongoc/mongoc-client.c:430:(.text+0x148): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__ns_parserr'
collect2: error: ld returned 1 exit status
make: *** [Makefile:619: mongodb.la] Error 1

Environment

PHP 7.1.16 from Cygwin's setup 'package manager'.

Expected and Actual Behavior

Expected it to compile, but it doesn't.

I can get make to 'succeed' by including -l/usr/lib/resolv.a (pecl download mongodb etc and then manually edit the Makefile), but it outputs only two files and no dll:

/tmp/mongodb-1.4.3 [1] $ ls modules/
mongodb.a  mongodb.la

The mongodb.a doesn't appear to be a dll format either, so it's not just a name thing.

@derickr
Copy link
Contributor

derickr commented Jun 6, 2018

Hi!

We do not support Cygwin installs of PHP, as it is not part of PHP's standard mode of distribution for Windows.

Binaries for each release are automatically built, and end up on the PECL package page where you can download them.

If you want to build the binaries yourself, please refer to the build instructions on our Contributing page.

cheers,
Derick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants