php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68581 SCA_SDO PECL package no longer supported
Submitted: 2014-12-09 22:06 UTC Modified: 2017-01-10 08:12 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:2 (66.7%)
From: greg at thinkof dot net Assigned:
Status: Suspended Package: SCA_SDO (PECL)
PHP Version: 5.6.3 OS: OSX/Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-12-09 22:06 UTC] greg at thinkof dot net
Description:
------------
After attempting to install this package on various systems (OSX, Ubuntu) for PHP versions 5.6.3, 5.6.2, 5.5.18, and 5.3.29, this package fails to compile properly.

On the ubuntu builds, no modules were used installed other than the defaults, and the systems were built as throw-away Vagrant boxes.  Each build executed PHP code appropriately.

Each version compiled against generates a series of warnings, some starting as early as the ./configure command being issued.

The code appears to have been abandon, and no longer maintained.  While this code may still work with PHP versions 5.1-5.2 it appears to be no longer compatible with any currently maintained PHP version.

I would like to at least propose an update to the documentation reflecting its currently unsupported status.  The dependancies section for the package list: 
"PHP Version: PHP 5.1.0 or newer"

See: http://pecl.php.net/package/sca_sdo



Test script:
---------------
phpize
./configure
make
make install

Expected result:
----------------
A compiled version of the sdo.so.  

Actual result:
--------------
No sdo.so file is compile for any listed version above.  This is an excerpt of the make   executed on php5.3.29 (All versions output something similar):

Users/gsm/Downloads/sdo/commonj/sdo/SDORuntimeException.h:258:60: warning: adding 'unsigned long' to a string does not append to the string [-Wstring-plus-int]
                     "Unable to obtain storage of length " + size)
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/Users/gsm/Downloads/sdo/commonj/sdo/SDORuntimeException.h:258:60: note: use array indexing to silence this warning
                     "Unable to obtain storage of length " + size)
                                                           ^
                     &                                     [     ]
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:93:106: error: use of undeclared identifier 'temp'; did you mean 'tmp'?
          zend_hash_copy(object->properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref,(void *) &temp, sizeof(zval *));
                                                                                                                ^~~~
                                                                                                                tmp
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:82:8: note: 'tmp' declared here
        zval *tmp; /* this must be passed to hash_copy, but doesn't seem to be used */
              ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:109:10: error: no matching function for call to 'zend_read_property'
        value = zend_read_property(sdo_cppexception_class_entry, me,
                ^~~~~~~~~~~~~~~~~~
/usr/local/Cellar/php53/5.3.29/include/php/Zend/zend_API.h:326:16: note: candidate function not viable: 3rd argument ('const char *') would lose const qualifier
ZEND_API zval *zend_read_property(zend_class_entry *scope, zval *object, char *name, int name_length, zend_bool silent TSRMLS_DC);
               ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:178:3: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                "class", sizeof("class") - 1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
                ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:178:33: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                "class", sizeof("class") - 1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
                                              ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:180:3: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                "file", sizeof("file") - 1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
                ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:180:31: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                "file", sizeof("file") - 1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
                                            ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:182:3: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                "line", sizeof("line") - 1, 0, ZEND_ACC_PUBLIC TSRMLS_CC);
                ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:184:3: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                "function", sizeof("function") - 1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
                ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:184:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                "function", sizeof("function") - 1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
                                                    ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:186:3: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                "message", sizeof("message") - 1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
                ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:186:37: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                "message", sizeof("message") - 1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
                                                  ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:188:3: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                "severity", sizeof("severity") - 1, E_ERROR, ZEND_ACC_PUBLIC TSRMLS_CC);
                ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:191:3: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                "string", sizeof("string") - 1, "", ZEND_ACC_PRIVATE TSRMLS_CC);
                ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:191:35: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                "string", sizeof("string") - 1, "", ZEND_ACC_PRIVATE TSRMLS_CC);
                                                ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:227:36: error: no matching function for call to 'get_active_class_name'
                const char *space, *class_name = get_active_class_name(&space TSRMLS_CC);
                                                 ^~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/php53/5.3.29/include/php/Zend/zend_execute.h:359:16: note: candidate function not viable: no known conversion from 'const char **' to 'char **' for 1st argument
ZEND_API char *get_active_class_name(char **space TSRMLS_DC);
               ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:236:4: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                        "class", sizeof("class")-1, (char *)eclass TSRMLS_CC);
                        ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:241:4: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                        "file", sizeof("file")-1, (char *)file TSRMLS_CC);
                        ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:245:3: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                "line", sizeof("line")-1, line TSRMLS_CC);
                ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:249:4: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                        "function", sizeof("function")-1, (char *)function TSRMLS_CC);
                        ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:254:4: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                        "message", sizeof("message")-1, (char *)message TSRMLS_CC);
                        ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:258:3: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                "severity", sizeof("severity")-1, severity TSRMLS_CC);
                ^
/Users/gsm/Downloads/sdo/SDO_CPPException.cpp:263:3: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
                "string", sizeof("string") - 1,
                ^
20 warnings and 3 errors generated.
make: *** [SDO_CPPException.lo] Error 1

Patches

SCA_SDO-1.2.4-compile_fix (last revision 2016-12-22 15:28 UTC) by vex75 at mail dot ru)
SCA_SDO-1.2.4-fix_php_5.6.9_gcc_4.9.2-3.unified.patch (last revision 2015-10-31 13:47 UTC) by psagi at freemail dot hu)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-10-31 14:00 UTC] psagi at freemail dot hu
Just uploaded a patch that - I believe - makes the released 1.2.4 code build successfully w/ PHP v5.6.9, GCC v4.9.2. (Tested on Debian sid, i386)
If someone could test it and give a short feedback, I would appreciate.
Debian packages are also available (for Squeeze, Jessie and sid) here:

https://pety.dynu.net/cloudbank_repo/

If there is someone around, who can merge this patch into the SVN repo, please drop me an e-mail so I can help if needed.
 [2016-12-28 14:44 UTC] cmb@php.net
> If there is someone around, who can merge this patch into the
> SVN repo, please drop me an e-mail so I can help if needed.

If you're interested in maintaining the SCA_SDO package, I suggest
you apply for a PECL account via
<https://pecl.php.net/account-request.php>.
 [2017-01-10 08:12 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-01-10 08:12 UTC] kalle@php.net
Suspending this report as the extension have not had a release for almost 9 years.  Please revive this if the extension once again shows life
 [2017-01-10 08:12 UTC] kalle@php.net
Suspending this report as the extension have not had a release for almost 9 years.  Please revive this if the extension once again shows life
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC