Changes to make SDO/SCA work with 5.3.2

772 views
Skip to first unread message

cdouglas

unread,
Mar 15, 2010, 10:29:15 AM3/15/10
to phpsoa
Hello,
Wanted to share the changes I had to make to the code to get SCA/SDO
to work with 5.3.2 without warnings or errors. If I find more, I will
update.

If using with PHP >= 5.3.0, you need to make the following source code
changes:

remove all "static" except "static char rcs_id[] ..." from sdo.cpp.

Add #include <stdio.h> to commonj/sdo/SDODataConverter.cpp

/usr/local/lib/php/SCA/SCA_CommentReader.php
Line 381: $targetLine = preg_replace("{[ \t]+}", " ", $targetLine);
Line 385: if (strpos($word,$bindingAnnotation) === 0) {
Line 592: $targetLine = preg_replace("{[ \t]+}", " ", $targetLine);

/usr/local/lib/php/SCA/SCA_AnnotationRules.php
Line 222: $line = preg_replace("{[ \t]+}", " ", $line);

bandirsen

unread,
Mar 17, 2010, 9:58:37 PM3/17/10
to phpsoa
Thanks for sharing,
btw, what compiler and OS did you use ?

cdouglas

unread,
Mar 29, 2010, 10:28:34 AM3/29/10
to phpsoa
Done with Rhel 5.3 and Fedora 12.

Luke Moynihan

unread,
Apr 14, 2010, 4:23:27 PM4/14/10
to phpsoa
I am trying to compile on Mac OSX 10.6, following your instructions i
get new errors:


/Users/luke/SCA_SDO/SDO_DAS_DataFactory.cpp:524: error: call of
overloaded 'setDefault(const commonj::sdo::Type&, char*&, long 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)

Do you have any idea what might be the cause of this?
--
You received this message because you are subscribed to the Google Groups "phpsoa" group.
To post to this group, send email to php...@googlegroups.com.
To unsubscribe from this group, send email to phpsoa+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/phpsoa?hl=en.

jwpjr

unread,
Apr 20, 2010, 8:46:49 AM4/20/10
to phpsoa
I was able to follow cdouglas' instructions to build SDO/SCA
successfully on Fedora 12 and PHP 5.3.2.

When I tried the same set of instructions on Mac OSX 10.6, I received
the same errors as Luke Moynihan (see his post).

It would be great if we could get this to build on Mac OSX 10.6. Any
tips would be greatly appreciated.

On Apr 14, 4:23 pm, Luke Moynihan <lukemoyni...@gmail.com> wrote:
> I am trying to compile on Mac OSX 10.6, following your instructions i
> get new errors:
<snip>

Slobodyanuk Valery

unread,
Dec 22, 2016, 10:26:40 AM12/22/16
to phpsoa
I just done fixes to successfully compile SCA_SDO module on Gentoo Linux and PHP 5.6.18: https://github.com/vex75/SCA_SDO-1.2.4_compile_fix

понедельник, 15 марта 2010 г., 16:29:15 UTC+2 пользователь cdouglas написал:
Reply all
Reply to author
Forward
0 new messages