php-couchdb
php-couchdb copied to clipboard
not make on freebsd
/arch/dist/php-couchdb/couchdb.c:35:23: error: curl/curl.h: No such file or directory /arch/dist/php-couchdb/couchdb.c:343: error: expected '=', ',', ';', 'asm' or 'attribute' before 'couchdb_make_request' /arch/dist/php-couchdb/couchdb.c: In function 'couchdb_prepare_request': /arch/dist/php-couchdb/couchdb.c:507: warning: implicit declaration of function 'couchdb_make_request' /arch/dist/php-couchdb/couchdb.c: In function 'zim_CouchdbClient_storeDoc': /arch/dist/php-couchdb/couchdb.c:1138: warning: dereferencing type-punned pointer will break strict-aliasing rules /arch/dist/php-couchdb/couchdb.c:1143: warning: dereferencing type-punned pointer will break strict-aliasing rules /arch/dist/php-couchdb/couchdb.c:1161: warning: dereferencing type-punned pointer will break strict-aliasing rules /arch/dist/php-couchdb/couchdb.c: In function 'zm_startup_couchdb': /arch/dist/php-couchdb/couchdb.c:2423: warning: implicit declaration of function 'curl_global_init' /arch/dist/php-couchdb/couchdb.c:2423: error: 'CURL_GLOBAL_DEFAULT' undeclared (first use in this function) /arch/dist/php-couchdb/couchdb.c:2423: error: (Each undeclared identifier is reported only once /arch/dist/php-couchdb/couchdb.c:2423: error: for each function it appears in.) /arch/dist/php-couchdb/couchdb.c:2423: error: 'CURLE_OK' undeclared (first use in this function) /arch/dist/php-couchdb/couchdb.c: In function 'zm_shutdown_couchdb': /arch/dist/php-couchdb/couchdb.c:2449: warning: implicit declaration of function 'curl_global_cleanup' *** Error code 1
you are getting the error because of missing curl headers install the curl devel package and try again.
Baruwa - http://www.baruwa.org
On 09 Apr 2012, at 1:55 AM, sunra [email protected] wrote:
/arch/dist/php-couchdb/couchdb.c:35:23: error: curl/curl.h: No such file or directory /arch/dist/php-couchdb/couchdb.c:343: error: expected '=', ',', ';', 'asm' or 'attribute' before 'couchdb_make_request' /arch/dist/php-couchdb/couchdb.c: In function 'couchdb_prepare_request': /arch/dist/php-couchdb/couchdb.c:507: warning: implicit declaration of function 'couchdb_make_request' /arch/dist/php-couchdb/couchdb.c: In function 'zim_CouchdbClient_storeDoc': /arch/dist/php-couchdb/couchdb.c:1138: warning: dereferencing type-punned pointer will break strict-aliasing rules /arch/dist/php-couchdb/couchdb.c:1143: warning: dereferencing type-punned pointer will break strict-aliasing rules /arch/dist/php-couchdb/couchdb.c:1161: warning: dereferencing type-punned pointer will break strict-aliasing rules /arch/dist/php-couchdb/couchdb.c: In function 'zm_startup_couchdb': /arch/dist/php-couchdb/couchdb.c:2423: warning: implicit declaration of function 'curl_global_init' /arch/dist/php-couchdb/couchdb.c:2423: error: 'CURL_GLOBAL_DEFAULT' undeclared (first use in this function) /arch/dist/php-couchdb/couchdb.c:2423: error: (Each undeclared identifier is reported only once /arch/dist/php-couchdb/couchdb.c:2423: error: for each function it appears in.) /arch/dist/php-couchdb/couchdb.c:2423: error: 'CURLE_OK' undeclared (first use in this function) /arch/dist/php-couchdb/couchdb.c: In function 'zm_shutdown_couchdb': /arch/dist/php-couchdb/couchdb.c:2449: warning: implicit declaration of function 'curl_global_cleanup' *** Error code 1
Reply to this email directly or view it on GitHub: https://github.com/akissa/php-couchdb/issues/6
strange, last port of curl (7.24) has only curlx.h - for export functions to other progs, but no curl.h
What does the php curl module link to on your system ?