Can’t compile the .dll on Windows.
In configure --help there’s only --with-couchbase
So running configure --disable-all --enable-cli --enable-couchbase gives errorUnknown option. And running with--with-couchbase doesn’t compile the .dll
I downloaded the Visual Studio 12 x86 version.
There is deps/ dir only in x86/ dir , so I put it there and configure doesn’t find it. It gives me Unknown option --with-couchbase.
Recreating build dirs
Recreating build dirs
Recreating build dirs
Recreating build dirs
couchbase.c
apidecl.c
arithmetic.c
..\pecl\couchbase\arithmetic.c(74) : warning C4244: '=' : conversion from 'uint64_t' to 'long', possible loss of data
ccache.c
compress.c
convert.c
..\pecl\couchbase\convert.c(91) : warning C4018: '<' : signed/unsigned mismatch
create.c
designdoc.c
error.c
exceptions.c
flush.c
..\pecl\couchbase\flush.c(40) : warning C4013: 'assert' undefined; assuming extern returning int
..\pecl\couchbase\flush.c(150) : warning C4101: 'ctx' : unreferenced local variable
get.c
..\pecl\couchbase\get.c(490) : warning C4244: '=' : conversion from 'long' to 'unsigned char', possible loss of data
ht.c
..\pecl\couchbase\ht.c(53) : warning C4013: 'assert' undefined; assuming extern returning int
misc.c
observe.c
..\pecl\couchbase\observe.c(314) : warning C4244: '=' : conversion from 'long' to 'short', possible loss of data
..\pecl\couchbase\observe.c(317) : warning C4244: '=' : conversion from 'long' to 'short', possible loss of data
options.c
..\pecl\couchbase\options.c(44) : warning C4244: '=' : conversion from 'long' to 'char', possible loss of data
..\pecl\couchbase\options.c(78) : warning C4244: '=' : conversion from 'long' to 'char', possible loss of data
..\pecl\couchbase\options.c(95) : warning C4244: '=' : conversion from 'long' to 'char', possible loss of data
..\pecl\couchbase\options.c(100) : warning C4244: '=' : conversion from 'long' to 'unsigned char', possible loss of data
remove.c
..\pecl\couchbase\remove.c(92) : warning C4244: 'function' : conversion from 'long' to 'uint16_t', possible loss of data
..\pecl\couchbase\remove.c(58) : warning C4101: 'ctx' : unreferenced local variable
resmgr.c
stat.c
simple_observe.c
store.c
timeout.c
touch.c
unlock.c
..\pecl\couchbase\unlock.c(90) : warning C4244: 'function' : conversion from 'long' to 'uint16_t', possible loss of data
version.c
views.c
viewopts.c
..\pecl\couchbase\viewopts.c(85) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
..\pecl\couchbase\viewopts.c(159) : warning C4018: '<' : signed/unsigned mismatch
fastlz.c
buckets.c
..\pecl\couchbase\management\buckets.c(122) : warning C4018: '<' : signed/unsigned mismatch
instance.c
..\pecl\couchbase\management\instance.c(30) : warning C4013: 'assert' undefined; assuming extern returning int
management.c
1 file(s) copied.
Creating library Release_TS\php5ts.lib and object Release_TS\php5ts.exp
rc /n /fo Release_TS\php_couchbase.dll.res /d FILE_DESCRIPTION="\"The following people contributed (code/help) to the module (in\"" /d FILE_NAME="\"php_couchbase.dll\"" /d URL="\"http://pecl.php.net/couchbase\"" /d INTERNAL_NAME="\"COUCHBASE extension\"" /d THANKS_GUYS="\"Thanks to alphabetical order):\"" win32\build\template.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.2.9200.16384
Copyright (C) Microsoft Corporation. All rights reserved.
1 file(s) copied.
Creating library Release_TS\php_couchbase.lib and object Release_TS\php_couchbase.exp
convert.obj : error LNK2019: unresolved external symbol __imp__php_json_encode referenced in function _php_couchbase_zval_to_payload
convert.obj : error LNK2019: unresolved external symbol __imp__php_json_decode_ex referenced in function _php_json_decode
flush.obj : error LNK2019: unresolved external symbol _assert referenced in function _rest_flush_callback
ht.obj : error LNK2001: unresolved external symbol _assert
instance.obj : error LNK2001: unresolved external symbol _assert
Release_TS\php_couchbase.dll : fatal error LNK1120: 3 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe"' : return code '0x2'
Stop.
Recreating build dirs
Recreating build dirs
Recreating build dirs
bucket.c
cas.c
cluster.c
exception.c
metadoc.c
transcoding.c
1 file(s) copied.
Creating library Release_TS\php5ts.lib and object Release_TS\php5ts.exp
bucket.obj : error LNK2019: unresolved external symbol _couchbase_globals_id referenced in function _couchbase_shutdown_bucket
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_get_resource referenced in function _php_couchbase_get_result_message_impl
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_res_ok referenced in function _php_couchbase_get_result_message_impl
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_arithmetic_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_get_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_store_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_remove_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_view_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_observe_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_stat_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_version_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_unlock_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _couchbase_report_error referenced in function _pcbc_check_expiry
couchbase.obj : error LNK2019: unresolved external symbol _cb_illegal_arguments_exception referenced in function _pcbc_check_expiry
Release_TS\php_couchbase.dll : fatal error LNK1120: 14 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe"' : return code '0x2'
Stop.
Yes, Latest Tarball. I’m also browsing and found that couchbase dependency is igbinary. But I also fail compiling that one because it says the igbinary dependency is only PHP 5.2.0 or newer and I get message it’s missing dependencies.
C:\php-sdk\bin\phpdev\vc11\x86\php-5.6.20>nmake
Microsoft (R) Program Maintenance Utility Version 11.00.50727.1
Copyright (C) Microsoft Corporation. All rights reserved.
Recreating build dirs
Recreating build dirs
Recreating build dirs
opcookie.c
1 file(s) copied.
Creating library Release_TS\php5ts.lib and object Release_TS\php5ts.exp
bucket.obj : error LNK2019: unresolved external symbol _couchbase_globals_id referenced in function _couchbase_shutdown_bucket
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_get_resource referenced in function _php_couchbase_get_result_message_impl
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_res_ok referenced in function _php_couchbase_get_result_message_impl
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_arithmetic_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_get_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_store_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_remove_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_view_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_observe_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_stat_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_version_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _php_couchbase_callbacks_unlock_init referenced in function _php_couchbase_setup_callbacks
couchbase.obj : error LNK2019: unresolved external symbol _couchbase_report_error referenced in function _pcbc_check_expiry
couchbase.obj : error LNK2019: unresolved external symbol _cb_illegal_arguments_exception referenced in function _pcbc_check_expiry
Release_TS\php_couchbase.dll : fatal error LNK1120: 14 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe"' : return code '0x2'
Stop.