PDA

View Full Version : Migration of Sourcepro 3 to 10



13royal
08-12-2008, 03:33 PM
Hi,

We are migrating our application which is using sourcepro, and we are migrating from sourcepro 3 to sourcepro 10 on solaris 10. And in our compilation we are using rwor8ms.o during our build process. But I don't see this file exist in sourcepro 10 version, so could you help me out in resolving this.

And also I am getting "/apps/opt/rogue/RogueWave/SourcePro/Ed10/rw/db/defs.h", line 44: Error: Could not open include file<rw/config/rwconfig_dbt.h>. error

gtruong_rw
08-12-2008, 04:14 PM
Hello,
In Source Edition 7 and later, Oracle products were replaced with oci. So the library and object file you need to be linking in for SourcePro edition 10 with ms build configuration is oci70-ms and rwocims respectively.

For your other error, please take a look at the 'examples/oraoci' directory of your SourcePro buildspace. Each example has a corresponding .log file which contains the compile & link commands and include directories used to build it. The set of flags and include directory used to build the examples are the recommended set to use with SourcePro, so you should try building your application with flags as similar to these as possible.

Rogue Wave Software

13royal
08-13-2008, 10:17 AM
When we are trying to create the buildspace, we see the following errors

Config:

Solaris 10
Sun C++ 5.8 Patch 121017-16
Sourcepro 10
Oracle 10g

Errors

CC -D_RWCONFIG=ms -I/dbora01/app/oracle/product/10.2/rdbms/demo -I./../../.. -I/dbora01/app/oracle/product/10.2/rdbms/public -I/dbora01/app/oracle/product/10.2/plsql/public -I
/apps/opt/rogue/RogueWave/SourcePro/Ed10/source/oraoci -D_RWBUILD_oci -O -mt -DRWDB_ORACLE10X -c /apps/opt/rogue/RogueWave/SourcePro/Ed10/source/oraoci/ociconn.cpp
"./../../../rw/db/ocisrc/rwoci.h", line 53: Error: Could not open include file<oci.h>.
"./../../../rw/db/ocisrc/rwoci.h", line 74: Error: "," expected instead of "*".
"./../../../rw/db/ocisrc/ocisysh.h", line 58: Error: Type name expected instead of "ub4".
"./../../../rw/db/ocisrc/ocisysh.h", line 58: Error: Identifier expected instead of "const".
"./../../../rw/db/ocisrc/ocisysh.h", line 58: Error: Use ";" to terminate declarations.
"./../../../rw/db/ocisrc/ocisysh.h", line 61: Error: Use ";" to terminate declarations.
"./../../../rw/db/ocisrc/ocisysh.h", line 61: Error: Type name expected instead of "ub4".
"./../../../rw/db/ocisrc/ocisysh.h", line 61: Error: Use ";" to terminate declarations.
"./../../../rw/db/ocisrc/ocisysh.h", line 67: Error: Use ";" to terminate declarations.
"./../../../rw/db/ocisrc/ocisysh.h", line 74: Error: Type name expected instead of "OCIError".
"./../../../rw/db/ocisrc/ocisysh.h", line 75: Error: Type name expected instead of "OCIEnv".
"./../../../rw/db/ocisrc/ocisysh.h", line 76: Error: Type name expected instead of "OCISvcCtx".
"./../../../rw/db/ocisrc/ocisysh.h", line 77: Error: Type name expected instead of "OCIServer".
"./../../../rw/db/ocisrc/ocisysh.h", line 84: Error: sword is not defined.
"./../../../rw/db/ocisrc/ocisysh.h", line 101: Error: OCIStmt is not defined.
"./../../../rw/db/ocisrc/ocisysh.h", line 123: Error: OCIParam is not defined.
"./../../../rw/db/ocisrc/ocisysh.h", line 128: Error: Type name expected instead of "sword".
"./../../../rw/db/ocisrc/ocisysh.h", line 128: Error: "virtual" is not allowed here.
"./../../../rw/db/ocisrc/ocisysh.h", line 132: Error: OCIParam is not defined.
"./../../../rw/db/ocisrc/ocisysh.h", line 135: Error: Type name expected instead of "sword".
"./../../../rw/db/ocisrc/ocisysh.h", line 135: Error: Identifier expected instead of "const".
*** Error code 1
"./../../../rw/db/ocisrc/ocisysh.h", line 135: Error: Multiple declaration for const.
"./../../../rw/db/ocisrc/ocisysh.h", line 135: Error: Use ";" to terminate declarations.
"./../../../rw/db/ocisrc/ocisysh.h", line 139: Error: Use ";" to terminate declarations.
"./../../../rw/db/ocisrc/ocisysh.h", line 141: Error: Type name expected instead of "OCIEnv".
Compilation aborted, too many Error messages.
make: Fatal error: Command failed for target `ociconn.o'

Could you help me in clearing up these errors :)

Gajendra

13royal
08-13-2008, 02:43 PM
Have fix the above issue, so dont' need to worry abt.

thanks for the support :)

Gajendra

13royal
08-14-2008, 09:06 AM
Hi,

I am getting error

Error: Overloading ambiguity between "RWTime::RWTime(unsigned long)" and "RWTime::RWTime(unsigned long long)

and the compiler which i am providing is

/opt/SUNWspro/bin/CC -g -DSunOS -D_RWCONFIG_ms -time -c AMHelper.C -I. -I/AppMan/libLog/build/include -I../../inc -I../../inc -I../inc -I/apps/opt/inconcert/ic_home/icapps/dev/include/cxx -I/apps/opt/tuxedo/tuxedo10/include -I/apps/opt/rogue/rw_buildspace -I../../inc -I/wcom/am/amapi/inc

the sys config is

CC : Sun C++ 5.8 Patch 121017-16 2008/06/25
SunOS amjomzsdd01 5.10 Generic_125100-08 sun4u sparc SUNW,Sun-Fire-V445
roguewave 10.

Is there any problem with the compiler option which I am passing ?

13royal
09-02-2008, 08:37 AM
Undefined first referenced
symbol in file
cs_will_convert obj/RespondAgentClient.o
ct_cmd_alloc obj/RespondAgentClient.o
RWDBDateTime::RWDBDateTime() obj/RespondAgentClient.o
RWDateTime&RWDateTime::operator=(const RWDateTime&) obj/RespondAgentClient.o
const RWZone&RWZone::local() obj/RespondAgentClient.o
std::istream &RWCString::readLine(std::istream &,bool) obj/RespondAgentClient.o
const char*RWCConstSubString::startData()const obj/RespondAgentClient.o
ct_con_drop obj/RespondAgentClient.o
unsigned RWDateTime::hour(const RWZone&)const obj/RespondAgentClient.o
ct_con_alloc obj/RespondAgentClient.o
RWDate RWDBDateTime::rwdate()const obj/RespondAgentClient.o
ct_callback obj/RespondAgentClient.o
ct_results obj/RespondAgentClient.o
unsigned RWDateTime::minute(const RWZone&)const obj/RespondAgentClient.o
ct_close obj/RespondAgentClient.o
ct_fetch obj/RespondAgentClient.o
cs_convert obj/RespondAgentClient.o
ct_connect obj/RespondAgentClient.o
ct_param obj/RespondAgentClient.o
ct_command obj/RespondAgentClient.o
ct_bind obj/RespondAgentClient.o
ct_exit obj/RespondAgentClient.o
ct_init obj/RespondAgentClient.o
ct_send obj/RespondAgentClient.o
RWDBDateTime::RWDBDateTime(unsigned,unsigned,unsig ned,unsigned,unsigned,unsigned,unsigned,const RWZone&) obj/RespondAgentClient.o
RWDBDateTime::RWDBDateTime(const RWDBDateTime&) obj/RespondAgentClient.o
cs_ctx_drop obj/RespondAgentClient.o
RWDBDateTime::~RWDBDateTime() obj/RespondAgentClient.o
ct_describe obj/RespondAgentClient.o
ct_res_info obj/RespondAgentClient.o
cs_ctx_alloc obj/RespondAgentClient.o
RWDate::RWDate(unsigned,unsigned,unsigned) obj/RespondAgentClient.o
std::ostream &operator<<(std::ostream &,const RWCString&) obj/RespondAgentClient.o
RWCConstSubString::RWCConstSubString(const RWCString&,unsigned,unsigned) obj/RespondAgentClient.o
ld: fatal: Symbol referencing errors. No output written to rspdclnt


Using
CC: Sun C++ 5.8 Patch 121017-16 2008/06/25
Sybase open server 12.5
Rogue wave - 10
Sun Solaris 10

Please help me out in fixing this issue

13royal
09-11-2008, 01:52 PM
We are migrating the code from sourcepro 3 to sourcepro 10
I am getting the error
Error: Complete class definition for "BOAccessFacilityTNs::hashAccessFacility" is not allowed in a friend declaration.
Not sure whether I am making a mistake in creating the class and below is the class



class BOAccessFacilityTNs:public FWBusObject
{
public:
BOAccessFacilityTNs();
BOAccessFacilityTNs(BOOrder* order);
BOAccessFacilityTNs(BOWorkOrder* wo);
~BOAccessFacilityTNs();
protected:
BOOrder* order;
BOWorkOrder* workOrder;
int numAccessFacilities;
int numTNs;
friend struct hashAccessFacility {
unsigned long operator()(const BOAccessFacility& acsFac) const {
return (acsFac.getAccessFacilityId().hash());
}
};
RWTPtrHashMap<BOAccessFacility,TNVECTOR, hashAccessFacility, equal_to<BOAccessFacility> > dictionary;
//RWTPtrHashDictionary<BOAccessFacility,TNVECTOR> dictionary;
//RWTPtrHashDictionaryIterator<BOAccessFacility,TNVECTOR>* dictIterator;
RWTPtrHashMapIterator<BOAccessFacility,TNVECTOR, hashAccessFacility, equal_to<BOAccessFacility> >* dictIterator;
public:
void setAccessFacilityTNs(BOAccessFacility* acsFacility,TNVECTOR* tnList);
void setOrder(BOOrder* order);
BOOrder* getOrder() const;
TNVECTOR* getTNs(const BOAccessFacility* acsFacility) const;
void iter(BOAccessFacility*& acsfacility);
void iter(BOTN*& tn);
void iter(BOAccessFacility*& acsFacility,TNVECTOR*& tnList);
void iterReset();
int getNumAccessFacilities();
int getNumTNs();
BOAccessFacility* accessFacility();
TNVECTOR* tnList();
BOTN* tn();
protected:
//overides
void initValues();
void deAllocate();
virtual void doDBOperation();
void getData();
private:
TNVECTOR* tnVect;
};


And the class BOAccessFacility is an abstract class. So could you help how to resolve the issue and env is

CC: Sun C++ 5.8 Patch 121017-16 2008/06/25
SunOS amjomzsdd01 5.10 Generic_125100-08 sun4u sparc SUNW,Sun-Fire-V445
Roguewave 10