Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-527

PHP 7 build failure on 32-bit systems

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.2
    • Affects Version/s: 1.1.1
    • Component/s: None
    • None

      From PHPC-524:

      /builddir/build/BUILD/php-pecl-mongodb-1.1.1/NTS/src/bson.c: In function 'php_phongo_bson_visit_int64':
       /builddir/build/BUILD/php-pecl-mongodb-1.1.1/NTS/src/bson.c:508:38: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4
         ADD_ASSOC_INT64(retval, key, v_int64);
      

      From https://github.com/mongodb/mongo-php-driver/issues/189:

      /«PKGBUILDDIR»/mongodb-1.1.1/src/bson.c: In function 'php_phongo_bson_visit_int64':
      /«PKGBUILDDIR»/mongodb-1.1.1/src/bson.c:508:38: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4
        ADD_ASSOC_INT64(retval, key, v_int64);
                                            ^
      In file included from /«PKGBUILDDIR»/mongodb-1.1.1/src/bson.c:38:0:
      ./phongo_compat.h:112:3: error: 'add_assoc_stringl' undeclared (first use in this function)
         add_assoc_stringl(zval, key, tmp, tmp_len, 0); \
         ^
      /«PKGBUILDDIR»/mongodb-1.1.1/src/bson.c:508:2: note: in expansion of macro 'ADD_ASSOC_INT64'
        ADD_ASSOC_INT64(retval, key, v_int64);
        ^
      ./phongo_compat.h:112:3: note: each undeclared identifier is reported only once for each function it appears in
         add_assoc_stringl(zval, key, tmp, tmp_len, 0); \
         ^
      /«PKGBUILDDIR»/mongodb-1.1.1/src/bson.c:508:2: note: in expansion of macro 'ADD_ASSOC_INT64'
        ADD_ASSOC_INT64(retval, key, v_int64);
        ^
      make[1]: *** [src/bson.lo] Error 1
      

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            remi Remi Collet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: