Changes to make SDO/SCA work with 5.3.2

Showing 1-5 of 5 messages
Changes to make SDO/SCA work with 5.3.2 cdouglas 3/15/10 7:29 AM
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);

Re: Changes to make SDO/SCA work with 5.3.2 bandirsen 3/17/10 6:58 PM
Thanks for sharing,
btw, what compiler and OS did you use ?
Re: Changes to make SDO/SCA work with 5.3.2 cdouglas 3/29/10 7:28 AM
Done with Rhel 5.3 and Fedora 12.
[phpsoa] Re: Changes to make SDO/SCA work with 5.3.2 Luke Moynihan 4/14/10 1:23 PM
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.

[phpsoa] Re: Changes to make SDO/SCA work with 5.3.2 jwpjr 4/20/10 5:46 AM
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>