Using C++ shared libs
I have a developer that has used the Rogue Wave libraries.
Is there an easy way to use these libraries on other machines
without installing SunWorkshop on all machines that need it?
We are using SunWorkshop 5.0.
Thanks!
-Dan
Why don't you rephrase your question???
Similar Messages
-
Using older shared libs for games ?
Hi fellow archers,
I like to play the enhanced Quake engine DarkPlaces (http://icculus.org/twilight/darkplaces/) together with a few mods (namely SDQuake and Kleshik).
Under Ubuntu 9.04 x64 DarkPlaces runs nicely as native x64 Linux app. Under the most recent version of arch64 DarkPlaces bombed out with an error message that the libjpeg version is too new. Something like Version 0.80 found but Version 0.62 is expected. Seems to me that even the newest version of Darkplaces is build against an older version of libjpeg than the one included in arch64. Libpng is also used by DarkPlaces since textures are stored as PNG.
My Ubuntu 9.04 x64 shows the following libs:
/usr/lib/libpng12.a
/usr/lib/libpng12.so.0.27.0
/usr/lib/libjpeg.a
/usr/lib/libjpeg.so.62.0.0
Is it "wise" to use a custom lib folder for DarkPlaces and set it via LD_LIBRARY_PATH ?
e.g.
export LD_LIBRARY_PATH=/home/ds/dplibs
Or can I simply install older versions of libjpeg and libpng without screwing up my arch64 installation ? I can remember that I also did install a few older libs on my Ubuntu 10.04 in order to get UT2k4 running.
BTW: I would prefer not to recompile DarkPlaces against newer versions of libpng/libjpeg.
TIA,
D$Ok, thanks for all your replies !
I will try out the approach using a dedicated lib directory for DarkPlaces under arch64.
Unfortunately my 500GB HDD which I used for arch died
So I have to wait until my new 1TB HDD arrives.
stqn wrote:... but I guess if you want to play (and not rebuild) this game you don't have a choice..
Well, the other not so slick option would be using the Windows version of the DarkPlaces engine inside a 32 chrooted WINE since for Windows all requiered libs (aka dll) are included in the right version.
As usual shared libs also do have their disadvantages compared to statically linked stuff
Last edited by Darksoul71 (2010-07-28 22:16:20) -
[Resolved] Distributing a Python module that uses C shared libs?
I did some research on distutils, and I managed to find fairly detailed instructions for how one could distribute a Python module with C extensions. However, I have a Python module which uses ctypes to run code from C shared libraries (more specifically: SDL, and related libraries).
Basically, this is what I have:
pslab.py # requires ctypes wrapper modules below
sdl.py # ctypes wrapper modules require respective shared libs below
sdlmixer.py
sdlimage.py
sdlttf.py
# This is for Linux -- .dll for Windows, .dylib for OSX.
libSDL.so
libSDL_mixer.so
libSDL_image.so
libSDL_ttf.so
Is there a "standard" way to distribute modules of this type (maybe some undocumented distutils method, or something I failed to find)?
The Python files are not the problem (distutils can handle them), but I need a way to install the appropriate shared libs for the platform in question (if necessary), so that ctypes wrapper modules can find and load them.
Last edited by Goran (2012-08-14 08:51:19)You could distribute those files ... but I wouldn't recommend it.
I believe the closest thing to a "standard" is simply to list sdl as a dependency. A package distributor should not try to manage dependencies for users (only inform them of the dependencies). That is either up to the user, or (more often) the distro's package management system.
If I download a program that uses gtk, I don't expect it to include all of the gtk too. Rather, the documentation would simply specify that gtk is a dependency. Are you going to also distribute copies of the python interpreter? Perhaps I'm missing something, but why would sdl be any different than python itself? It's assumed (or speficied) that the user needs to have these installed for your package to work.
Last edited by Trilby (2012-08-13 23:44:44) -
NPE when using POJO Data Control deployed as webcenter shared Lib
Hello everyone,
I am using Jdevelopper 11.1.1.7...
I have a methodAction Binding defined for a JSFF. I am executing this methodAction in a managed bean. When doing so I have the following exception:
Caused By: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:118)
at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1128)
at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1638)
at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:1507)
at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:1467)
at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:1261)
at oracle.adf.model.BindingContext.get(BindingContext.java:1211)
at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:304)
at oracle.adf.model.binding.DCBindingContainer.evaluateParameterWithElCheck(DCBindingContainer.java:1466)
at oracle.adf.model.binding.DCBindingContainer.evaluateParameter(DCBindingContainer.java:1511)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.getResult(JUCtrlActionBinding.java:1968)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:267)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
at com.euroscript.platon.reporting.view.ReportingBean.getListLanguages(ReportingBean.java:661)
at com.euroscript.platon.reporting.view.ReportingBean.getParamLabelsNeedingCustomLov(ReportingBean.java:87)
at com.euroscript.platon.reporting.view.ReportingBean.initParams(ReportingBean.java:151)
at com.euroscript.platon.reporting.view.ReportingBean.onSelectReport(ReportingBean.java:110)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.el.parser.AstValue.invoke(AstValue.java:187)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1415)
at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:216)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:181)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:103)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1086)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:478)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
This methodAction calls a Data Contol based on a POJO which is using a JAX-WS Proxy. This Data Control POJO is packaged in a separate JAR file named ServicesProxy.jar.
Both ServicesProxy.jar and the ADF application using it are deployed as two distinct shared libraries used by webcenter portal application.
An important information is that the error does not happen when debugging the ADF application on my IntegratedServer. The error happens only when deployed as a shared Lib used by webcenter portal application.
This jar file ServicesProxy is used by other applications within our portal, so I think that the data control is properly created.
Do you have any idea what could be the cause of such error?vinaykumar2 wrote:
not really.May be you can check log in EM to find out some warning or error.try that..
I have checked in the EM, I don't really find more helpful info...
Here is the full stacktrace found in the EM (WC_Spaces1-diagnostic.log)
dfd51:69a509b6:142a48c6891:-8000-0000000000000ffd,0] [APP: webcenter#11.1.1.4.0] [DSID: 0000KA^^HbLDc_l6wvicMG1IaBTa000009] ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase PROCESS_VALIDATIONS 3[[
javax.faces.el.EvaluationException: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1415)
at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:216)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:181)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:103)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1086)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:478)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:74)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.generalsettings.model.provider.GeneralSettingsProviderFilter.doFilter(GeneralSettingsProviderFilter.java:85)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellPageRedirectionFilter.doFilter(WebCenterShellPageRedirectionFilter.java:342)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellFilter.doFilter(WebCenterShellFilter.java:953)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.view.page.editor.webapp.WebCenterComposerFilter.doFilter(WebCenterComposerFilter.java:117)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:128)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterLocaleWrapperFilter.processFilters(WebCenterLocaleWrapperFilter.java:369)
at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterLocaleWrapperFilter.doFilter(WebCenterLocaleWrapperFilter.java:265)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.caching.filter.AdfFacesCachingFilter.doFilter(AdfFacesCachingFilter.java:126)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:118)
at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1128)
at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1638)
at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:1507)
at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:1467)
at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:1261)
at oracle.adf.model.BindingContext.get(BindingContext.java:1211)
at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:304)
at oracle.adf.model.binding.DCBindingContainer.evaluateParameterWithElCheck(DCBindingContainer.java:1466)
at oracle.adf.model.binding.DCBindingContainer.evaluateParameter(DCBindingContainer.java:1511)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.getResult(JUCtrlActionBinding.java:1968)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:267)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
at com.euroscript.platon.reporting.view.ReportingBean.getListLanguages(ReportingBean.java:463)
at com.euroscript.platon.reporting.view.ReportingBean.getParamLabelsNeedingCustomLov(ReportingBean.java:87)
at com.euroscript.platon.reporting.view.ReportingBean.initParams(ReportingBean.java:151)
at com.euroscript.platon.reporting.view.ReportingBean.onSelectReport(ReportingBean.java:110)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.el.parser.AstValue.invoke(AstValue.java:187)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
... 84 more
Caused by: java.lang.NullPointerException
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:113)
... 107 more
any suggestion??? -
Dynamicaly add a shared lib using deployment plan
Hi,
I would like to dynamically add a shared lib reference to my EAR application.
It seems to be possible using deployement plan but to take effect weblogic want I redeploy the application.
When I update my application and if I choose Update this application in place with new deployment plan changes. (A deployment plan must be specified for this option), thre is no error but when I try to instanciate my class, I get a "ClassNotFoundException"
If I choose Redeploy this application using the following deployment files: it works fine but it is not compliant with my requirements (I don't want to redeploy for that).
is it the normal behavior or I miss something ?
Best Regards,
C.WebLogic does the following if an application references a shared library:
Classes of the library are added to the classpath of the application and the deployment descriptors are merged in memory.
When an application (ear) is deployed weblogic creates application classloaders. Now if we add a shared library we need
to create the classloaders again (to load the classes of the shared library) - this can be accomplished by redeploying the
application. -
How to control the shared libs when creating an new OC4J in AS 10.1.3.4
Hi there
I experience some wired behavior in AS 10.1.3.4!
I Have 2 different installation of AS 10.,1.3.4 (Win 2003 server).
When I create an OC4J instance (using the manager) at virtual server 1 I got 28 global libraries
When I create an OC4J instance (using the manager) at virtual server 2 I got 30 global libraries, (+ apache.webservices & oracle.ifs.client )
Why this difference ?
And how to control it?
Note the default instance "Home" has 28 libraries on both servers!!
Why is it sometime possible possible to use <instance>applib for the jar, and sometime I need to create an <instance>\shared-lib\global.libraries\1.0 library ?
Regards HAnsHi there
I experience some wired behavior in AS 10.1.3.4!
I Have 2 different installation of AS 10.,1.3.4 (Win 2003 server).
When I create an OC4J instance (using the manager) at virtual server 1 I got 28 global libraries
When I create an OC4J instance (using the manager) at virtual server 2 I got 30 global libraries, (+ apache.webservices & oracle.ifs.client )
Why this difference ?
And how to control it?
Note the default instance "Home" has 28 libraries on both servers!!
Why is it sometime possible possible to use <instance>applib for the jar, and sometime I need to create an <instance>\shared-lib\global.libraries\1.0 library ?
Regards HAns -
ODCI : oracle data catridge interface service : what shared libs are needed
Hi,
I am writing aggregate functions. For using ODCI along with OCI in C/C++.. what are the shared libraries which are required : i have oci.h & odci.h files but do not know what shared libraries are needed to use the ODCI interface.
I am getting the error :
ORA-06521: PL/SQL: Error mapping function
ORA-06522: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/custagg.so:
undefined symbol: ODCIAggregateInitialize
ORA-28579: network error during callback from external procedure agent
./libagtsh.so: undefined reference to `homtscb_ShutdownCallback'
I don't see any one responding to my queries.
Can any one give me some other paid forums where I can pay some fee and get clarifications for my errors and doubts.
I am a student trying to study the extendibility of databases with user defined aggregates without the need to change the underlying database engine. This is a part of research which i am doing.But some how i am having problem with ODCI : it is
not identifying the ODCIAggregateInitialize function
It is throwing error : ORA-06521: PL/SQL: Error
mapping function
ORA-06522:
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/li
b/custagg.so:
undefined symbol: ODCIAggregateInitializeThat's a pretty useful error message IMHO
And generally in Unix environment we don't include
'extern "C" ' before each member function in the C
program but we do that in Windows environment . So
may be I thought of just try including that in my
program(unix environment) and it was giving me even
a worse error :
RA-28579: network error during callback from external
procedure agent.So I just removed that extern "C"
keyword.Actually, the extern "C" is required because even though you are writing C-like code, it's C++ since there are declarations in the middle of the code, which C doesn't support (maybe C99 does, I don't know). This tells me you compile using a C++ compiler, which mangles the method name (to support method overloading, which C doesn't support). Adding the extern "C" makes the C++ not mangle the method, and thus the ODCI system can find the entry point in your shared lib.
ORA-28579 is not a worse error, it is the error you should fix. But I can't help you there, I've never done it. OTOH, if you can make this work, I'd be very interested if you could post a complete example demonstrating what you are doing. --DD -
Can't load shared lib lib... with SuSE 6.2
Hi,
i have a Problem with sqlplus and the shared librarys, if I start
sqlplus everytime it complains about the shared libs.
Is it wron to set the LD_LIBRARY_PATH to $ORACLE_HOME/lib ???
Do I need an updated JRE ??? GLIBC ???
Thank you for the help !!
Michael
nullHi,
which libs are wrong? There are several libs with 0 byte size!!!
That is a known bug, and when ld reads them it of course
complains ;-)
For one of the 0 byte libs there is a patch (look at earlier
postings around 2 weeks ago)
Marcus
PS: it seems anyhow this release is not ready for prime time. If
you want to play around with Oracle, take 8.0.5.1, that works
really good.
Christian Schroeder (guest) wrote:
: Marcus (guest) wrote:
: Hi,
: : try adding $ORACLE_HOME/lib path to /etc/ld.so.conf
: : then, run ldconfig -v as root, this may solve your problem
: I did this, but the ldconf complained that he couldn't read
: the headers of the libraries, especially the
jni-shared-library.
: I was wondering if I use the wrong ldd version? It says it is
: 2.1.2! Is this enough?
: Thanks you for you help,
: cu Christian
null -
I'm working on an extension to a ruby based application. I'm using the ruby/dl extension capability for calling out to a dynamic library.
I'm accessing a wrapped version of the Newton Physics SDK which ships with a universal static library (newton32.a).
I've worked out a process for using LIPO to thin the .a down to the intel only version of the lib and then dump all the .o files. I then use g++ to relink into a dynamic library and I can access it successfully using ruby/dl.
however, I'd like to create a universal shared lib. Anybody got the recipe for doing this???Probably not legally. You might want to check with your library to see what you can do with them, for example, can you burn them to an audio CD? The whole purpose of the DRM is to prevent you from converting or copying the files in ways the rights holder hasn't authorized. Discussions about how to circumvent DRM are not allowed according to the terms of use of these forums. Sorry.
-
JSF jars living in Tomcat shared/lib (not)
When I move the set of jars for JSF from the webapp/WEB-INF/lib up into tomcat's shared/lib, I get this error:
java.lang.NullPointerException
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:143)
when visiting the webapp which has the FacesServlet.
I can see that this just doesn't work with the current 1.0beta, but does anyone know why not?
Is there any fundemental problem with having these in common/lib or shared/lib?
And, just checking, the source is not available for this version, right (else I'd take a peek at this line).When these libraries are in shared/lib, the
ContextListener added via a .tld in jsf-impl.jar is
not located by Tomcat, and therefore JSF can't start
itself up correctly.
It depends on which version of Tomcat you are using. Recent versions (such as 5.0.16) do know how to recognize context listeners in JAR files stored in common/lib or shared/lib.
I don't know Tomcat well enough to know if there's a
way to get it to look for auto-registered .TLDs and
ContextListeners in places other than WEB-INF/lib.
There is nothing in the Servlet or JSP specs that
would require that Tomcat support anything other than
WEB-INF/lib.
For containers that don't support looking up the class loader hierarchy, there is a workaround for this described in the Release Notes, that involves declaring a <listener> element in your web.xml file to explicitly declare the listener class.
-- Adam WinerCraig McClanahan -
Hi,
We have several projects referencing same lib which compiled into a runtime shared swf .
The swfs(projects) can be loaded in several(independent) iframes in the web page.
Is it possible for the projects to use the first runtime shared lib swf
that has been loaded on the client side(It’s supposed to be a singleton)
and communicate (pass compmonents).
Or set the loaded swfs to the same sandbox the “main” swf project got into?
Thanks,I'm pretty sure separate iframes are separate player instances so no
sharing. -
Creating shared lib out of statical libs..
Hello!
Over here we are trying to create a shared lib (.so) by doing
CC -G -o foo.so -h libfoo.so object.o -lbar -lgaz
Basically we want all functionality in the libbar.a and libgaz.a, but the resulting file, libfoo.so seems a little bit small..
Can we assume that the linker does smart linking and removes code from the libs that isn't used from itself? (to be honest sounds like a good idea :-))
Meanwhile, is there a good way to do this?? Should we do something like
CC -G -o foo.so -h libfoo.so object.o libbar.a libgaz.a
instead??
Can't find much about this in the documentation.. Don't know if I just haven't searched the wrong places??
/AndyHi There,
The first thing I will suggest you is the
document to read. C++ User's Guide for
Forte developer 6 update 2 - chapter 16 on
building libraries in C++ environment.
Are these libbar.a and libgaz.a archived libraries using C or C++? If these libraries are C
then you can convert them in .so using the following command.
cc -G -o libmylib.so.1 -zallextract libmylib.a
The main difference between linking with a archive and building a shared object is that the shared object is a indivisable unit. When you link against a archive you only get those components of the archive which the linking application directly references.
So - if you build a shared library with '-zallextract' you will get everything in the archive included in the shared library. This might be exactly what you intend and not cause a problem - but it depends upon what is in the archive and is up to you how you are using it.
I hope this helps.
...jagruti
Developers Technical Support
Sun Microsystems, http://www.sun.com/developers/support -
Reading the stabs.index section of Shared Libs
Hi there.
In order to produce developer-friendly stack-traces, I'd like to read the stabs info from our own projects to map the stack offsets to actual code lines.
So far, I've sucessfully written the reader to handle the lazy stabs inside our object files, and I get the relevant mapping (using N_SLINE, N_FUN and N_SO). But I don't have much luck trying to find these actual .o files from the shared libs (using the N_OBJ stabs contained in the ".stab.index" section of the shared library).
It looks like Sun Studio 11 (maybe earlier versions too) writes the stabs in an odd format in our shared-lib, so that only the beginning of the section is correct (only the one covered by the first N_UNDF) . After a while, the offset to the strings get wrong, even using the "correct" algorithm of adding the offset contained in the previous N_UNDF stab.
So, I can read all the information correctly, except for the actual strings for each stab. I had a look at some other stab-readers (gdb and valgrind), and they suffer from the same issue as my code. Actually, even an objdump -G mySharedlib.so produces the same incorrect output. But obviously, there is a way of find the correct string pointers, as the dumpstabs tool works perfectly.
Does anyone have any pointer to the actual trick needed to read the stabs ? I've already read "The stabs debug format", and the document provided by Sun (and linked from Chris Quenelle's blog): http://developers.sun.com/tools/cc/documentation/ss10_docs/stabs.pdf
CheersFirst of all, I should start by saying that in Sun Studio 12 all the
Sun compilers will generate dwarf as the default debugging format,
and you should be able to use the GNU binutils "addr2line" utility
to query the line number information. The dwarf information produced
by Sun Studio 11 (C compiler, for example) has a glitch that makes
it incompatible with addr2line, but the glitch is fixed in our development
release, and Sun Studio 12 (when it comes out) will work with addr2line.
On Solaris, the addr2line utility is available as "gaddr2line".
But I realize that stabs processing is also useful for the time being.
Here are my ideas for what might be going wrong.
If there are stabs that resulted from COMDAT functions then there are
special formatting issues. The C++ compiler uses COMDAT to implement
templates. The stabs.pdf document describes how COMDAT affects
stabs. Search for the word COMDAT in the document. Because comdat
ELF sections are merged at link-time, it might also help to run
elfdump and dumpstabs on some of the .o files that are being put into
your library as a way of understanding what's going on.
Specifically, the string table offsets need special processing around
any index stabs that result from comdat sections, so I suspect
that's what's causing problems. -
Hello, I want to compile my webloigc project classes using Ant script. My project depends on struts shared lib i.e wlp-struts-1.3-web-lib (Struts 1.3 facet on the new Project wizard). I want to refer the jar files from these libs and some other following shred libs inside the javac classpath of Ant script.But I am unable to find the location of the jars for these libs inside WL_instalation? Any help. Thanks.
wlp-struts-1.3-web-lib
jersey-web-lib
content-management-app-lib
wlp-services-web-lib
content-management-web-lib
wlp-services-app-lib
vcr-app-lib
p13n-rest-web-lib
sample weblogic.xml...
<wls:library-ref>
<wls:library-name>wlp-struts-1.3-web-lib</wls:library-name>
<wls:specification-version>10.3.2</wls:specification-version>
<wls:exact-match>true</wls:exact-match>
</wls:library-ref>
:Hi,
Regarding your query:
"Is it possible in this scenario update a shared library and tell the application to take the new version without stopping the application or interrupting the application’s availability to clients?"
You can always deploy a new version of shared library without undeploying the older one. The manifest file of the shared library will have the elements like extension name, specification version and implementation version , which is read by the weblogic server during runtime when your application tries making the reference/call.
The calls will be routed to the shared library which has the highest specification/implementation version or to the recent library.
Important Note: Ensure to maintain unique Spec/Implementation version number for multiple shared libraries.
Hope this answers your questions !
Thanks,
Vijaya -
How can a family with multiple existing accounts use Home Sharing?
I'd like to use the new Home Sharing feature, but it appears to be restricted to families in which all of the family members share a single user account.
We already have separate accounts for each family member. Is there some way for us to use Home Sharing without abandoning most of our existing accounts, along with all of the purchases made by those accounts? I don't think anyone in this situation would be willing to do that.Eh. I am not too sure since I have not messed with it much but I do have a great deal of experience with multiple accounts. Each computer can be authorized for multiple accounts. As can iPods. iPods can sync songs/videos/apps from multiple accounts as long as the computer is authorized with them. What I have set up here, is I buy my stuff I want, my parents buy what they want and so do my brothers. When my bro gets something I want I just move it to my computer. That way all our accounts are separate, but if there is something I want I can get it. Also, since the music no longer has DRM, it won't matter. It will play on any computer. What you should see is if you can just do the shared library with multiple accounts. Then if you don't have videos or such, you can get apps or music. Hope this helps!
Maybe you are looking for
-
My new installation of iTunes won't open, please help me!
I have tried installing the newest iTunes and uninstalling as it will not open at all. I keep getting the generic Windows message that iTunes has encountered a problem and needs to close. I tried uninstalling Quicktime and using the Apple quick fixes
-
Itunes 11 won't open error 2, Itunes 11 won't open error 2
I am trying to open the newest version of Itunes but either I get error 2 or apple application support not found. Any sugguestions besides uninstalling it again I have done that at least 10 times thanks
-
Multiprovider not showing data from planning cube
Dear experts, I am using a multiprovider to show actual vs projected balances for financials. Two identical cubes one 0FIGL_C10 and custom cube for FIGL_PROJ. I have done the identification of all objects and am using 0BALANCE and PRJECTION key figur
-
DSN for 32bit-InformaticaClient on 64bit Vista running 64bit-InformaticSrvr
System Landscape 64bit vista oracle 11g r2 64bit oracle 11g r2 client 64 bit also installed infaserver 8.6.1 64bit infaclient 8.6.1 32bit tried creating the DSN via c:\Windows\SysWOW64\odbcad32.exe - no luck tried creating the DSN via c:\Windows\Syst
-
I placed a call on my office landline, My IPhone 5c was on my desk in front of me. The person I called did not have my cell number. But I was calling his cell number from the landline. All of a sudden my landline went dead and my IPhone lit up with m