php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58936 Can't compile on Ubuntu
Submitted: 2009-11-05 08:33 UTC Modified: 2017-01-10 08:12 UTC
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: thor005 at gmx dot de Assigned:
Status: Suspended Package: SCA_SDO (PECL)
PHP Version: 5.2.11 OS: Ubuntu 9.10
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: thor005 at gmx dot de
New email:
PHP Version: OS:

 

 [2009-11-05 08:33 UTC] thor005 at gmx dot de
Description:
------------
Hi,

I tried to compile the SCA_SDO extension with pecl.
It stops compiling  with the following error.

pecl install SCA_SDO
[..]
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp: In static member function 'static SDOString* commonj::sdo::SDODataConverter::convertToSDOString(const commonj::sdo::DataTypeInfo::SDODataTypeUnion&, const commonj::sdo::DataTypeInfo::TrueDataType&)':
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp:619: error: 'sprintf' was not declared in this scope
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp:624: error: 'sprintf' was not declared in this scope
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp:629: error: 'sprintf' was not declared in this scope
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp:634: error: 'sprintf' was not declared in this scope
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp:638: error: 'sprintf' was not declared in this scope
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp: In static member function 'static unsigned int commonj::sdo::SDODataConverter::convertToBytes(const commonj::sdo::DataTypeInfo::SDODataTypeUnion&, const commonj::sdo::DataTypeInfo::TrueDataType&, char*, unsigned int)':
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp:760: error: 'sprintf' was not declared in this scope
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp:778: error: 'sprintf' was not declared in this scope
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp:796: error: 'sprintf' was not declared in this scope
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp:814: error: 'sprintf' was not declared in this scope
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp:832: error: 'sprintf' was not declared in this scope
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp: In static member function 'static unsigned int commonj::sdo::SDODataConverter::convertToString(const commonj::sdo::DataTypeInfo::SDODataTypeUnion&, const commonj::sdo::DataTypeInfo::TrueDataType&, wchar_t*, unsigned int)':
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp:981: error: 'sprintf' was not declared in this scope
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp:999: error: 'sprintf' was not declared in this scope
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp:1017: error: 'sprintf' was not declared in this scope
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp:1035: error: 'sprintf' was not declared in this scope
/tmp/pear/download/SCA_SDO-1.2.4/commonj/sdo/SDODataConverter.cpp:1053: error: 'sprintf' was not declared in this scope
make: *** [commonj/sdo/SDODataConverter.lo] Error 1
ERROR: `make' failed

I can compile other packages like memcache without errors.
Can you please help me fixing this issue.

Regards
Michael

Reproduce code:
---------------
I'm no C expert, but the following solved my compiling problem:
diff commonj/sdo/SDODataConverter.cpp.orig commonj/sdo/SDODataConverter.cpp
20a21
> #include <stdio.h>

But I'm not sure if the module works perfectly.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-26 10:42 UTC] kroesler at roe-net dot de
I got the same issue, also on Ubuntu 9.10. 

Could you explain your fix? Where did you get the cpp.orig?
 [2011-06-20 06:07 UTC] gabriel dot valladolid at gmail dot com
I got same issue and simply added #include <stdio.h> to cpp file with problems, and voila.

Also was needed to remove some static modifiers from function declarations.
 [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: Thu Oct 31 22:01:27 2024 UTC