Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Error: Using static_cast to convert from int to extern "C"

807736Nov 20 2008 — edited Nov 21 2008
hello all,
following my precedent post http://forums.sun.com/thread.jspa?threadID=5349240, i have this error:
line 267: Error: Using static_cast to convert from int to extern "C"
void(*)() not allowed.

and the line 267 contains:
266 #ifdef VTK_USE_GLX_GET_PROC_ADDRESS_ARB
267 return
static_cast<vtkOpenGLExtensionManagerFunctionPointer>(glXGetProcAddressARB(reinterpret_cast<const
GLubyte *>(fname)));
268 #endif //VTK_USE_GLX_GET_PROC_ADDRESS_ARB


This is related to Paraview that needs OpenGl libs (or Mesa), and in glx.h, there is:
#ifdef __cplusplus
extern "C" {
#endif
...
typedef void (*__GLXextFuncPtr)(void);
extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *);

Compiling with g++ from pkg:/SUNWgcc@3.4.3-0.101, the problem never appears, it's only related to use of sunstudio, as i said in my previous post.
I already asked on paraview mailing lists, but got no answer so far.

Thanks,

gerard

Comments

Kiran Pawar
Answer

Hi RichDBA,

RichDBA wrote:


I have an existing OHS install that's running a number of DAD's to connect to different databases all running Apex 4.2.  I'm looking to migrate to using ORDS on Tomcat.

I've tested deploying ORDS to Tomcat and connecting to a new default 11g XE install and all works fine, I'm comfortable with the process of running the ORDS install itself, but wondered if there's a document on MOS or somewhere similar on how to migrate an existing install, what pitfalls to look out for, what might need changing when using a different listener etc.

     You are changing the Web Tier of Oracle APEX and this will require nothing but proper configuration of Web Server with existing Oracle APEX installation.

I did read a thread on here that mentioned things like authentication might need changing when using the ORDS listener over OHS etc.

     Then mention that threads, and how do they resemble your authentication scheme issues.

As a side note, I'm aware that I can convert each of those DAD's to individual war files deployed to Tomcat by changing the war file name and using a different context root, or I can use mapping and set up each database on a single ORDS war install, there isn't much documentation about this, is there an Oracle recommended stance on this?

     With ORDS 2.0 (latest ORDS 3.0) you don't require to generate different ords.war for each DAD configuration. In this ORDS you can configure multiple databases and through URL mapping feature you can have multiple APEX instances listening to one Web Server.

     Refer :

     Hope this helps!

Regards,

Kiran

Marked as Answer by RichDBA · Sep 27 2020
RichDBA

Thanks Kiran, that's extremely helpful and answered my queries.

One small clarification then, I'm assuming as I'm only altering the web tier, that I can set up the ORDS listener to point to the DB and start using it in parallel with the OHS install that I have, and once I'm happy that it's working, just shutdown the OHS instance?

Kiran Pawar

Hi RichDBA,

RichDBA wrote:


One small clarification then, I'm assuming as I'm only altering the web tier, that I can set up the ORDS listener to point to the DB and start using it in parallel with the OHS install that I have, and once I'm happy that it's working, just shutdown the OHS instance?

     Yes, you can set up ORDS in parallel with OHS(If you are setting up OHS and ORDS on same server then just take care of the ports. They have to be different). While configuring ORDS you have to point to the correct DB where APEX is installed.

     Once, your APEX instance is stable and you are satisfied with ORDS configuration you can shutdown the OHS instance.

Regards,

Kiran

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 19 2008
Added on Nov 20 2008
6 comments
505 views