php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58931 sdo.cpp causes errors at compile time
Submitted: 2009-11-01 08:03 UTC Modified: 2017-01-10 08:12 UTC
Votes:7
Avg. Score:3.7 ± 1.0
Reproduced:3 of 5 (60.0%)
Same Version:2 (66.7%)
Same OS:0 (0.0%)
From: niclas at verbugt dot de Assigned:
Status: Suspended Package: SCA_SDO (PECL)
PHP Version: 5.3.0 OS: Debian 4.0 (Etch) GNU/Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-11-01 08:03 UTC] niclas at verbugt dot de
Description:
------------
Hi,

I'm trying to compile the sdo extension statically into php5.3.0 (cgi), but compilation stops with errors.

(I also tried to compile it as a module (with phpize) but same errors occur)

Reproduce code:
---------------
cp /path/to/SCA_SDO-1.2.4/ src/php-5.3.0/ext/sdo/
./configure --prefix=/usr/lib/php5.3 --mandir=/usr/lib/php5.3/man --infodir=/usr/lib/php5.3/info --with-config-file-path=/etc/php5.3 --with-mysql --with-pdo-mysql --with-tidy --with-xsl --with-gd --enable-sdo
make

Expected result:
----------------
Compilation should finish with no errors and sdo should be statically compiled into php executable.

Actual result:
--------------
/bin/sh /home/niclas/src/php/php-5.3.0/libtool --silent --preserve-dup-deps --mode=compile g++ -I/home/niclas/src/php/php-5.3.0/ext/sdo -Iext/sdo/ -I/home/niclas/src/php/php-5.3.0/ext/sdo/ -DPHP_ATOM_INC -I/home/niclas/src/php/php-5.3.0/include -I/home/niclas/src/php/php-5.3.0/main -I/home/niclas/src/php/php-5.3.0 -I/home/niclas/src/php/php-5.3.0/ext/date/lib -I/home/niclas/src/php/php-5.3.0/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/mysql -I/home/niclas/src/php/php-5.3.0/ext/sqlite3/libsqlite -I/usr/include/tidy -I/home/niclas/src/php/php-5.3.0/TSRM -I/home/niclas/src/php/php-5.3.0/Zend    -g -O2  -c /home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp -o ext/sdo/sdo.lo 
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:80: error: conflicting specifiers in declaration of 'arginfo_sdo_dataobject'
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:86: error: conflicting specifiers in declaration of 'arginfo___get'
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:90: error: conflicting specifiers in declaration of 'arginfo___set'
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:96: error: 'arginfo___get' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:96: error: 'arginfo___get' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:97: error: 'arginfo___set' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:97: error: 'arginfo___set' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:103: error: conflicting specifiers in declaration of 'arginfo_sdo_dataobject_createdataobject'
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:111: error: 'arginfo_sdo_dataobject_createdataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:111: error: 'arginfo_sdo_dataobject_createdataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:119: error: conflicting specifiers in declaration of 'arginfo_sdo_sequence_getproperty'
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:123: error: conflicting specifiers in declaration of 'arginfo_sdo_sequence_move'
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:128: error: conflicting specifiers in declaration of 'arginfo_sdo_sequence_insert'
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:135: error: 'arginfo_sdo_sequence_getproperty' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:135: error: 'arginfo_sdo_sequence_getproperty' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:136: error: 'arginfo_sdo_sequence_move' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:136: error: 'arginfo_sdo_sequence_move' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:137: error: 'arginfo_sdo_sequence_insert' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:137: error: 'arginfo_sdo_sequence_insert' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:144: error: conflicting specifiers in declaration of 'arginfo_sdo_list_insert'
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:151: error: 'arginfo_sdo_list_insert' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:151: error: 'arginfo_sdo_list_insert' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:158: error: conflicting specifiers in declaration of 'arginfo_sdo_datafactory_create'
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:164: error: 'arginfo_sdo_datafactory_create' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:164: error: 'arginfo_sdo_datafactory_create' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:177: error: conflicting specifiers in declaration of 'arginfo_sdo_das_datafactory_addType'
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:183: error: conflicting specifiers in declaration of 'arginfo_sdo_das_datafactory_addPropertyToType'
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:194: error: 'arginfo_sdo_das_datafactory_addType' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:194: error: 'arginfo_sdo_das_datafactory_addType' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:195: error: 'arginfo_sdo_das_datafactory_addPropertyToType' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:195: error: 'arginfo_sdo_das_datafactory_addPropertyToType' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:206: error: 'arginfo_sdo_dataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:206: error: 'arginfo_sdo_dataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:207: error: 'arginfo_sdo_dataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:207: error: 'arginfo_sdo_dataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:208: error: 'arginfo_sdo_dataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:208: error: 'arginfo_sdo_dataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:226: error: 'arginfo_sdo_datafactory_create' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:226: error: 'arginfo_sdo_datafactory_create' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:227: error: 'arginfo_sdo_das_datafactory_addType' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:227: error: 'arginfo_sdo_das_datafactory_addType' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:228: error: 'arginfo_sdo_das_datafactory_addPropertyToType' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:228: error: 'arginfo_sdo_das_datafactory_addPropertyToType' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:236: error: 'arginfo___get' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:236: error: 'arginfo___get' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:237: error: 'arginfo___set' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:237: error: 'arginfo___set' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:243: error: 'arginfo_sdo_dataobject_createdataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:243: error: 'arginfo_sdo_dataobject_createdataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:254: error: 'arginfo_sdo_sequence_getproperty' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:254: error: 'arginfo_sdo_sequence_getproperty' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:255: error: 'arginfo_sdo_sequence_move' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:255: error: 'arginfo_sdo_sequence_move' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:256: error: 'arginfo_sdo_sequence_insert' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:256: error: 'arginfo_sdo_sequence_insert' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:263: error: conflicting specifiers in declaration of 'arginfo_sdo_model_type_identifier'
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:270: error: 'arginfo_sdo_dataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:270: error: 'arginfo_sdo_dataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:272: error: 'arginfo_sdo_model_type_identifier' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:272: error: 'arginfo_sdo_model_type_identifier' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:285: error: 'arginfo_sdo_dataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:285: error: 'arginfo_sdo_dataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:287: error: 'arginfo_sdo_model_type_identifier' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:287: error: 'arginfo_sdo_model_type_identifier' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:325: error: conflicting specifiers in declaration of 'arginfo_sdo_model_reflectiondataobject_export'
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:331: error: 'arginfo_sdo_dataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:331: error: 'arginfo_sdo_dataobject' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:340: error: 'arginfo_sdo_model_reflectiondataobject_export' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:340: error: 'arginfo_sdo_model_reflectiondataobject_export' was not declared in this scope
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:411: warning: deprecated conversion from string constant to 'char*'
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp: In function 'int zm_startup_sdo(int, int)':
/home/niclas/src/php/php-5.3.0/ext/sdo/sdo.cpp:447: warning: deprecated conversion from string constant to 'char*'
make: *** [ext/sdo/sdo.lo] Error 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-18 20:06 UTC] ts_chen at worldfair-group dot com dot cn
Dear ALL:
when i use the make the SCA_SDO,get the following error:
[root@web1 SCA_SDO-1.2.4]# make
/bin/sh /tmp/pear/download/SCA_SDO-1.2.4/libtool --mode=compile g++ -I/tmp/pear/                                                                       download/SCA_SDO-1.2.4 -I. -I/tmp/pear/download/SCA_SDO-1.2.4 -DPHP_ATOM_INC -I/                                                                       tmp/pear/download/SCA_SDO-1.2.4/include -I/tmp/pear/download/SCA_SDO-1.2.4/main                                                                        -I/tmp/pear/download/SCA_SDO-1.2.4 -I/usr/local/php/include/php -I/usr/local/php                                                                       /include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php                                                                       /Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib                                                                        -I/usr/include/libxml2  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/download/SCA_SDO                                                                       -1.2.4/sdo.cpp -o sdo.lo
 g++ -I/tmp/pear/download/SCA_SDO-1.2.4 -I. -I/tmp/pear/download/SCA_SDO-1.2.4 -                                                                       DPHP_ATOM_INC -I/tmp/pear/download/SCA_SDO-1.2.4/include -I/tmp/pear/download/SC                                                                       A_SDO-1.2.4/main -I/tmp/pear/download/SCA_SDO-1.2.4 -I/usr/local/php/include/php                                                                        -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/loca                                                                       l/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include                                                                       /php/ext/date/lib -I/usr/include/libxml2 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/dow                                                                       nload/SCA_SDO-1.2.4/sdo.cpp  -fPIC -DPIC -o .libs/sdo.o
/tmp/pear/download/SCA_SDO-1.2.4/sdo.cpp:80: error: multiple storage classes in                                                                        declaration of 'arginfo_sdo_dataobject'
/tmp/pear/download/SCA_SDO-1.2.4/sdo.cpp:86: error: multiple storage classes in                                                                        declaration of 'arginfo___get'
/tmp/pear/download/SCA_SDO-1.2.4/sdo.cpp:90: error: multiple storage classes in                                                                        declaration of 'arginfo___set'
/tmp/pear/download/SCA_SDO-1.2.4/sdo.cpp:103: error: multiple storage classes in                                                                        declaration of 'arginfo_sdo_dataobject_createdataobject'
/tmp/pear/download/SCA_SDO-1.2.4/sdo.cpp:119: error: multiple storage classes in                                                                        declaration of 'arginfo_sdo_sequence_getproperty'
/tmp/pear/download/SCA_SDO-1.2.4/sdo.cpp:123: error: multiple storage classes in                                                                        declaration of 'arginfo_sdo_sequence_move'
/tmp/pear/download/SCA_SDO-1.2.4/sdo.cpp:128: error: multiple storage classes in                                                                        declaration of 'arginfo_sdo_sequence_insert'
/tmp/pear/download/SCA_SDO-1.2.4/sdo.cpp:144: error: multiple storage classes in                                                                        declaration of 'arginfo_sdo_list_insert'
/tmp/pear/download/SCA_SDO-1.2.4/sdo.cpp:158: error: multiple storage classes in                                                                        declaration of 'arginfo_sdo_datafactory_create'
/tmp/pear/download/SCA_SDO-1.2.4/sdo.cpp:177: error: multiple storage classes in                                                                        declaration of 'arginfo_sdo_das_datafactory_addType'
/tmp/pear/download/SCA_SDO-1.2.4/sdo.cpp:183: error: multiple storage classes in                                                                        declaration of 'arginfo_sdo_das_datafactory_addPropertyToType'
/tmp/pear/download/SCA_SDO-1.2.4/sdo.cpp:263: error: multiple storage classes in                                                                        declaration of 'arginfo_sdo_model_type_identifier'
/tmp/pear/download/SCA_SDO-1.2.4/sdo.cpp:325: error: multiple storage classes in                                                                        declaration of 'arginfo_sdo_model_reflectiondataobject_export'
make: *** [sdo.lo] Error 1
 [2009-11-19 07:18 UTC] niclas at verbugt dot de
I hope that the dev-team of the sca_sdo extension is still active and working on support for php5.3/php6, because with SDOs for data abstraction and the new features of php5.3 (especially lambda functions) you'll be able to build your own neat framework with just a few lines of code. SDOs used together with a simple dependency injection container like "Pimple" from Fabien Pontencier and a simple but powerful framework is nearly complete.
I tried to look into the code, but at the moment I don't have enough time to understand the whole implementation and especially why it does not work with php5.3 nor with php6.
 [2010-01-21 02:27 UTC] jpywtora at gmail dot com
It is a simple fix, remove the keyword static on each line 
that is an error.  This makes it so there is only the macro 
that expands to typedef ... which will make only one storage 
class.

However, it will run and uses deprecated apis.  So, the effort 
, or project has been abandoned it appears.  Also another sign 
is the Tuscany native in incubator includes PHP support.
 [2010-04-14 16:06 UTC] lukemoynihan at gmail dot com
I also had this problem on OSX 10.6, i removed the static keyword from each line in error, however i now get a different error.

error: call of overloaded 'setDefault(const commonj::sdo::Type&, char*&, int)' is ambiguous

/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:431: note: candidates are: virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const char*, bool)
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:436: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const SDOString&, bool)
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:441: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const char*, char)
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:446: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const SDOString&, char)
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:451: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const char*, wchar_t)
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:456: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const SDOString&, wchar_t)
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:461: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const char*, char*) <near match>
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:471: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const char*, short int)
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:476: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const SDOString&, short int)
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:494: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const char*, int64_t)
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:499: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const SDOString&, int64_t)
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:504: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const char*, float)
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:509: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const SDOString&, float)
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:514: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const char*, long double)
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:519: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const SDOString&, long double)
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:549: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const char*, commonj::sdo::SDODate)
/Users/luke/SCA_SDO/commonj/sdo/DataFactory.h:554: note:                 virtual void commonj::sdo::DataFactory::setDefault(const commonj::sdo::Type&, const SDOString&, commonj::sdo::SDODate)


any ideas how i might correct this?
 [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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 02:01:29 2024 UTC