Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-852

pecl build might pick up the wrong include directory

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Incomplete
    • Major
    • None
    • None
    • None
    • None
    • 1

    Description

      If there is a different version of libcouchbase installed, the wrong include files could be picked up in the pecl build.

      in my case I had both libcouchbase 3 and libcouchbase 2 installed, and this build picks up the includes from libcouchbase 3 EVEN THOUGH I HAVE

      CPPFLAGS=-I/usr/local/opt/libcouchbase@2/include
      

      pecl install libcouchbase-2.6.2

      running: make
      /bin/sh /private/tmp/pear/temp/pear-build-michaelreichecVXhCC/couchbase-2.6.2/libtool --mode=compile cc -I. -I/private/tmp/pear/temp/couchbase -I/private/tmp/pear/temp/pear-build-michaelreichecVXhCC/couchbase-2.6.2/include -I/private/tmp/pear/temp/pear-build-michaelreichecVXhCC/couchbase-2.6.2/main -I/private/tmp/pear/temp/couchbase -I/usr/local/Cellar/php/8.1.4/include/php -I/usr/local/Cellar/php/8.1.4/include/php/main -I/usr/local/Cellar/php/8.1.4/include/php/TSRM -I/usr/local/Cellar/php/8.1.4/include/php/Zend -I/usr/local/Cellar/php/8.1.4/include/php/ext -I/usr/local/Cellar/php/8.1.4/include/php/ext/date/lib -I/usr/local/include -I/usr/local/opt/libcouchbase@2/include -DHAVE_CONFIG_H -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /private/tmp/pear/temp/couchbase/couchbase.c -o couchbase.lo -MMD -MF couchbase.dep -MT couchbase.lo
      mkdir .libs
      cc -I. -I/private/tmp/pear/temp/couchbase -I/private/tmp/pear/temp/pear-build-michaelreichecVXhCC/couchbase-2.6.2/include -I/private/tmp/pear/temp/pear-build-michaelreichecVXhCC/couchbase-2.6.2/main -I/private/tmp/pear/temp/couchbase -I/usr/local/Cellar/php/8.1.4/include/php -I/usr/local/Cellar/php/8.1.4/include/php/main -I/usr/local/Cellar/php/8.1.4/include/php/TSRM -I/usr/local/Cellar/php/8.1.4/include/php/Zend -I/usr/local/Cellar/php/8.1.4/include/php/ext -I/usr/local/Cellar/php/8.1.4/include/php/ext/date/lib -I/usr/local/include -I/usr/local/opt/libcouchbase@2/include -DHAVE_CONFIG_H -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /private/tmp/pear/temp/couchbase/couchbase.c -MMD -MF couchbase.dep -MT couchbase.lo -fno-common -DPIC -o .libs/couchbase.o
      In file included from /private/tmp/pear/temp/couchbase/couchbase.c:17:
      In file included from /private/tmp/pear/temp/couchbase/couchbase.h:30:
      /usr/local/opt/libcouchbase@2/include/libcouchbase/views.h:59:39: error: unknown type name 'lcb_t'
      typedef void (*lcb_VIEWQUERYCALLBACK)(lcb_t instance,
      ^
      /usr/local/opt/libcouchbase@2/include/libcouchbase/views.h:152:5: error: unknown type name 'LCB_RESP_BASE'; did you mean 'lcb_RESPBASE'?
      LCB_RESP_BASE
      ^~~~~~~~~~~~~
      lcb_RESPBASE

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            michael.reiche Michael Reiche
            michael.reiche Michael Reiche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty