Profiling the shared libraries w/ native compilation

Sorry for cross posting, I was told this forum is more appropriate:
Status quo
Using Oracle 10 native compilation works very well. However I would like to gain additional speed using profile-based optimization:
In general it is a three-step process:
1. Instrumentation: Compile the program to prepare it for profile
collection.
cc Oprofile=collect O2 -c sample.c
cc -o sample.exe Oprofile=collect O2 sample.o
2. Data collection: Run the program with representative input(s) to
collect statistics.
sample.exe < input.file1
sample.exe < input.file2
3. Optimization: Recompile to optimize based on profile data.
cc Oprofile=use O2 -c sample.c
cc -o sample.exe Oprofile=use O2 sample.o
As I have only shared libraries but no executables I have to define SHLIB_FLOW_DATA:
To profile shared libraries, you must set the environment variable SHLIB_FLOW_DATA to the file that receives profile data. Unlike FLOW_DATA, SHLIB_FLOW_DATA has no default output file. If SHLIB_FLOW_DATA is not set, profile data is not collected. This allows you to activate or suspend the profiling of instrumented shared libraries.
Note that you could set SHLIB_FLOW_DATA to flow.data which is the same file as the default setting for FLOW_DATA. But, again, profile data will not be collected from shared libraries unless you explicitly set SHLIB_FLOW_DATA to some output file.
Question How and where can I set this variable for native compilation?
The problem is: whatever I tried in step 3. +Oprofile=use it always complains it can not find the profile statistics and does not compile.
Any help is appreciated very much!
Best regards!

This forum is for installation issues, I guess you get better help here:
Oracle Call Interface (OCI)
Werner

Similar Messages

  • How do I import music using homeshare with iTunes 11...I can see the shared libraries but I can't drag and drop and there is no import button.  Thanks!

    How do I import music using homeshare with iTunes 11...I can see the shared libraries but I can't drag and drop and there is no import button.  Thanks!

    Yes, that appears how Mavericks works right now. However, you can open the Address Panel, select all your contacts, then click the To (or CC, or Bcc) buttons to move the selection to the address field.
    If it is not already in the Toolbar, right-click on the Toolbar and select Customize Toolbar…
    Then, drag the address panel up to wherever you want it.
    You may also want to add it to the New Message window in the same way.

  • Can't find the shared libraries

    In Itunes preferences I am looking for shared libraries but in the iTunes bar "Shared" does not appear.

    FIXXED it for my pc nework iphone and ipad seeing and shairing musice.
    first: msconfig, start in safe mode (with network)
    restart when asked
    in safe mode join home share like nomal
    it will try to go to itunes store let it try (will not conect at all right )
    close itunes (if you what)
    then back to msconfig in safe mode
    in msconfig tune off safe mode
    restart
    that should do it
    let me no if it worked for you

  • HT2688 I just want to know where to find the shared libraries on the new iTunes. These articles are a million years old, and are of no help.

    I just want to know where to find my shared libraries on the stupid new iTunes. The layout was fine before, but when they changed it, I can't seem to find them. The articles on Apple are a million years old, before the latest iTunes update, so they are no help. Thanks.

    carlygo wrote:
    The articles on Apple are a million years old, before the latest iTunes update, so they are no help. Thanks.
    It's only 7 months old and it is still correct.
    ctrl B = Show sidebar.
    ctrl S = Show menu.

  • Can't find "Look for shared libraries" in the Sharing pane of iTunes preferences. How can I find it?

    I am trying to set up Home Sharing between my computer and my wife's. Sharing keeps disappearing from the side bar although Home Sharing is turned on for both computers. Using the Help tab it says to check the "Look for shared libraries" in the preferences/shared box. The problem is that "Look for shared libraries is not there to select. Any ideas how I can sort this out?

    I'm having a similar issue even after the "Shared Libraries" box is checked in General preferences on iTunes...
    On early verisons of iTunes i had no problem with sharing or remote access via iPad.  I really need to figure out how to get this working.

  • Since downloading iTune10.4.1 I can't import from shared libraries. The import button is gone.

    The show menu and import buttons are no longer at the bottom of the iTunes window when i am accessing a shared library since the last iTunes upgrade. Has any one else had this problem and, more importabtly, how do you fix it?

    I have the same exact problem! I can go into between the shared libraries and see them, however there is no "Show" dropdown menu on the bottom or Import button on the bottom!! Why is this???
    Thanks
    Any help would be greatly appreciated!!!

  • Pacman uses the wrong shared libraries

    Hi!
    I had had MCR's path in the PATH. Since then pacman uses (or at least it tries to) the shared libraries found in MCR's path. It causes errors like this:
    pacman: /home/labuwx/Applications/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64/libcurl.so.4: no version information available (required by /usr/lib/libalpm.so.8
    The output of 'ldd $(which pacman)':
    /usr/bin/pacman: /home/labuwx/Applications/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64/libcurl.so.4: no version information available (required by /usr/lib/libalpm.so.8)
    linux-vdso.so.1 (0x00007fff709fc000)
    libalpm.so.8 => /usr/lib/libalpm.so.8 (0x00007f56f80ad000)
    libarchive.so.13 => /usr/lib/libarchive.so.13 (0x00007f56f7e0a000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007f56f7a67000)
    libgpgme.so.11 => /usr/lib/libgpgme.so.11 (0x00007f56f782e000)
    libcurl.so.4 => /home/labuwx/Applications/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64/libcurl.so.4 (0x00007f56f75e7000)
    libcrypto.so.1.0.0 => /home/labuwx/Applications/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64/libcrypto.so.1.0.0 (0x00007f56f7205000)
    libacl.so.1 => /usr/lib/libacl.so.1 (0x00007f56f6ffc000)
    libattr.so.1 => /usr/lib/libattr.so.1 (0x00007f56f6df7000)
    libexpat.so.1 => /home/labuwx/Applications/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64/libexpat.so.1 (0x00007f56f6bcf000)
    liblzo2.so.2 => /usr/lib/liblzo2.so.2 (0x00007f56f69ad000)
    liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f56f678a000)
    libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007f56f657a000)
    libz.so.1 => /usr/lib/libz.so.1 (0x00007f56f6364000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f56f82dd000)
    libassuan.so.0 => /usr/lib/libassuan.so.0 (0x00007f56f6153000)
    libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f56f5f41000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f56f5d25000)
    libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f56f5b21000)
    How can I get pacman to use the proper libraries?
    Last edited by labuwx (2014-10-06 15:59:47)

    labuwx wrote:
    I had had MCR's path in the PATH. Since then pacman uses (or at least it tries to) the shared libraries found in MCR's path. It causes errors like this:
    How can I get pacman to use the proper libraries?
    presumably, there's your problem remove it from the PATH and your problems will likely vanish.
    you should install it following the wiki page

  • Pmap and shared libraries

    I'm trying to subtract the "shared" mappings from the output that pmap
    produces and show memory usage per process and a separate shared
    memory usage for the system.
    Pmap shows shared library mappings like this ...
    Address Kbytes Resident Shared Private Permissions Mapped File
    FF080000 656 616 600 16 read/exec libc.so.1
    FF132000 32 32 - 32 read/write/exec libc.so.1
    It looks like all processes that have access to libc.so have
    the same mapping. It was my understanding that the Shared and Private allocations (at least in the read/exec mapping) were a fixed
    characteristic of the particular shared library.
    Where is the 40 Kbytes that are not currently used? Virtual, swapped
    out?, but would it be Shared or Private?

    No, not all processes mapping a shared library have the same
    shared/private .text section allocations.
    The shared libraries are tuned for maximum sharing, that is they
    are compiled as position independant code so most of the .text
    section (program code) can be mapped without changes into each
    process, at whatever virtual address is appropriate for each
    process. All the code that needs to be adapted for a certain
    virtual address is concentrated at one place in the .text section
    (procedure linkage table, global offset table, ...). This part
    of the shared library cannot be shared between processes and is
    typically what you see as the "private" part of the .text section
    in the pmap -x output. The non sharable .text section part is
    just the procedure linkage table, global offset table, ... and
    thus is ~ the same size for each process.
    By using mprotect on the .text section or by setting breakpoints
    into the .text section (to name two exceptions) you are able to
    make changes to more parts of the shared .text sections, so that
    you get more 'private' pages in a processes' address space. Here's
    an example with breakpoints:
    <pre>
    4% adb /bin/cat
    main:b
    :r
    breakpoint at:
    main: save %sp, -0x190, %sp
    printf:b
    memmove:b
    atoi:b
    malloc:b
    getenv:b
    :c
    breakpoint at:
    getenv: save %sp, -0x60, %sp
    </pre>
    Now in another window you can verify with pmap -x that cat's copy of
    libc.so with several breakpoints (=changes, private copies) in the
    .text section has more private memory allocated:
    <pre>
    FF280000 656 616 568 48 read/exec libc.so.1
    </pre>
    While some other processes' copy of libc.so at the same time has:
    <pre>
    FF180000 656 616 592 24 read/exec libc.so.1
    </pre>
    The 40Kbytes difference you've observed between the .text sections'
    size and the resident size are VM pages not loaded in main memory.
    If these VM pages have not been changed, then they can be paged in
    from the shared lib's file, else there have been changes to these
    pages and they resides on the swap space.

  • Help with Shared Libraries?

    I don't have a "Look for Shared Libraries" under Preferences >  Sharing (which the other two computers in my home do have), all I have is the  "Shared Libraries" under Preferences > General > Sources (which  this is checked).  I have uninstalled iTunes and then installed it again, this did not work.  The other two computers in my home are running off of Windows XP, but the trouble computer is running off of Windows Vista.  Not sure if this could be the problem. Please help.

    krysto wrote:Yes, I have used pacman before to install software, but what if I want to contribute to the development of a project?
    Usually when you are developing software you don't install the package every time you compile it. You just make sure that you can run it from the location where you compiled it. That way you can keep the latest stable version that you can use for leisure time and the development version for testing. Also for contributing to a project you should directly interact with the project's repository (svn, git, ...). So I refer back to my first post here where the PKGBUILD can give you an idea how to go about compiling the source code yourself.
    Just don't run "make install" because that will leave your system in a messy state, a simple "make" (with the proper configuration) should result in a locally build binary that you can run from where it was compiled.

  • Composition of default shared libraries in Oc4j

    Hi,
    I'm trying to undestand the shared libraries in OC4J 10.1.3.
    Looking at the global application.xml (located in j2ee\home\config), I noticed the following element:
    <!-- The default set of application shared libraries. -->
    <imported-shared-libraries>
    <import-shared-library name="oracle.dms"/>
    <import-shared-library name="oracle.jdbc"/>
    <import-shared-library name="oracle.xml"/>
    <import-shared-library name="soap"/>
    <import-shared-library name="global.libraries"/>
    <import-shared-library name="global.tag.libraries" />
    </imported-shared-libraries>
    For example, I suppose that the library named "oracle.xml" is made up of some JARS, but I can't understand where the jar list is defined.
    I looked in server.xml, but "oracle.xml" is not defined there. It seems that "oracle.xml" is not defined in a configutation file, but it's hard-coded somewhere.
    Please, notice that I perfectly know that it's possible to import a different XML parser (it's explained in a lot of documents).
    Please, help me.

    gday Claudio --
    Well the good news is that we've good a pretty good facility in OC4J 10g (10.1.3) that may help in this situation.
    We can query the classloading mechanism and have it report on quite a few different areas related to classloading.
    This is documented in the 10.1.3 Config and Admin Guide (http://download-west.oracle.com/otn/java/oc4j/1013/doc/web.1013/b14432.pdf) towards the end of Chapter 7.
    For example, if you want to see the full list of shared-libraries that are loaded by OC4J and what is visible to an application you can perform a query like this:
    java -Doc4j.start.query=LoaderTree+Exit -jar oc4j.jarOr you can restrain it to the loader for a specific application as follows:
    java -Doc4j.start.query=LoaderTree[b][AcmeOrderProcessor.root]+Exit -jar oc4j.jar
    These queries will display the classloader tree and will describe all of the loaded resources, the code-sources, the packages imported, etc. for each of the libraries that are loaded.
    Here's an example I picked out of a query report for the oracle.jdbc shared library
    | +- Name: oracle.jdbc:10.1.0_2
    | | Parent: jre.extension:0.0.0
    | | Scope: Global: API & Shared
    | | Creator:
    | | oracle.oc4j.loader.PolicyClassLoader.init(PolicyClassLoader.java:572)
    | | oracle.oc4j.loader.PolicyClassLoader.<init>(PolicyClassLoader.java:432)
    | | oracle.oc4j.loader.boot.XMLBootConfiguration.setCurrentLoader(XMLBootConfiguration.java:911)
    | | oracle.oc4j.loader.boot.XMLBootConfiguration.startElement(XMLBootConfiguration.java:498)
    | | org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1674)
    | | org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
    | | org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
    | | org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
    | | org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
    | | org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
    | | oracle.oc4j.loader.boot.XMLBootConfiguration.configureLoaders(XMLBootConfiguration.java:258)
    | | oracle.oc4j.loader.boot.BootStrap.populateLoaders(BootStrap.java:477)
    | | oracle.oc4j.loader.boot.BootStrap.initLoaders(BootStrap.java:320)
    | | oracle.oc4j.loader.boot.BootStrap.createBootEnvironment(BootStrap.java:284)
    | | oracle.oc4j.loader.boot.BootStrap.main(BootStrap.java:216)
    | | Search-Policy: Standard[findLoadedClass -> askParent -> checkSharedLibraries -> findLocal]
    | | Supported-Configurations:
    | | <code-source> (e.g. "boot.xml")
    | | <code-source> (ignore manifest Class-Path) (e.g. "boot.xml")
    | | <import-shared-library> (e.g. "boot.xml")
    | | Buffer-Size: 25845
    | | Code-Sources: (# of subscribers) '.' = created, '-' = closed, '+' = open, '*' = suspended, '!' = orphaned
    | | 0. (1)+ /D:/java/oc4j-main-latest/jdbc/lib/ojdbc14dms.jar (from <code-source> (ignore manifest Class-Path) in boot.xml in D:\java\oc4j-main-latest\j2ee\home\oc4j.jar)
    | | 1. (1)+ /D:/java/oc4j-main-latest/jdbc/lib/orai18n.jar (from <code-source> (ignore manifest Class-Path) in boot.xml in D:\java\oc4j-main-latest\j2ee\home\oc4j.jar)
    | | 2. (1)+ /D:/java/oc4j-main-latest/opmn/lib/ons.jar (from <code-source> (ignore manifest Class-Path) in boot.xml in D:\java\oc4j-main-latest\j2ee\home\oc4j.jar)
    | | 3. (1)+ /D:/java/oc4j-main-latest/jdbc/lib/ocrs12.jar (from <code-source> (ignore manifest Class-Path) in boot.xml in D:\java\oc4j-main-latest\j2ee\home\oc4j.jar)
    | | Native-Code-Sources: (# of subscribers) '.' = created, '-' = closed, '+' = open, '*' = suspended, '!' = orphaned
    | | Imported-Shared-Libraries:
    | | oracle.dms:3.0
    | | Loaded-Packages:
    | | 1. oracle.jdbc
    | | 2. oracle.jdbc.driver
    | | 3. oracle.sql.converter
    | | 4. oracle.sql
    | | 5. oracle.i18n.text.converter
    | | 6. oracle.jdbc.pool
    | | Loaded-Classes:
    | | 1. class oracle.jdbc.pool.OracleDataSource
    | | 2. class oracle.jdbc.driver.OracleDriver
    | | 3. class oracle.sql.converter.CharacterConverterFactory
    | | 4. class oracle.sql.converter.CharacterConverterFactoryOGS
    | | 5. class oracle.sql.converter.CharacterConverters
    | | 6. class oracle.i18n.text.converter.CharacterConverterOGS
    | | 7. class oracle.i18n.text.converter.CharacterConverter12Byte
    | | 8. class oracle.i18n.text.converter.CharacterConverterSJIS
    | | 9. class oracle.sql.CharacterSet
    | | 10. class oracle.sql.CharacterSetWithConverter
    | | 11. class oracle.sql.CharacterSetFactory
    | | 12. class oracle.sql.CharacterSetFactoryThin
    | | 13. class oracle.sql.CharacterSetFactoryDefault
    | | 14. class oracle.sql.CharacterSet1Byte
    | | 15. class oracle.sql.CharacterSetSJIS
    | | 16. class oracle.sql.CharacterSetShift
    | | 17. class oracle.sql.CharacterSet2ByteFixed
    | | 18. class oracle.sql.CharacterSetGB18030
    | | 19. class oracle.sql.CharacterSet12Byte
    | | 20. class oracle.sql.CharacterSetJAEUC
    | | 21. class oracle.sql.CharacterSetZHTEUC
    | | 22. class oracle.sql.CharacterSetLCFixed
    | | 23. class oracle.sql.converter.CharacterConverterFactoryJDBC
    | | 24. interface oracle.sql.CharacterRepConstants
    | | 25. class oracle.sql.CharacterSetAL16UTF16
    | | 26. class oracle.sql.CharacterSetUTF
    | | 27. class oracle.sql.CharacterSetAL32UTF8
    | | 28. class oracle.sql.CharacterSetUTFE
    | | 29. class oracle.sql.CharacterSetAL16UTF16LE
    | | 30. class oracle.sql.CharacterSetUnknown
    | | 31. class oracle.jdbc.driver.OracleDriverExtension
    | | 32. class oracle.jdbc.pool.OracleConnectionCacheManager
    | | 33. class oracle.jdbc.pool.OracleFailoverWorkerThread
    | | 34. class oracle.jdbc.pool.OracleFailoverEventHandlerThread
    | | 35. class oracle.jdbc.pool.OracleImplicitConnectionCache
    | | 36. interface oracle.jdbc.OracleConnection
    | | 37. class oracle.jdbc.pool.OracleConnectionPoolDataSource
    | | 38. class oracle.jdbc.pool.OracleImplicitConnectionCacheThread
    | | 39. class oracle.jdbc.driver.DMSFactory
    | | 40. class oracle.sql.TypeDescriptor
    | | 41. class oracle.sql.ArrayDescriptor
    You can also run a query to determine the classpath which is made available to a specific application
    java -Doc4j.start.query=ClassPath[AcmeOrderProcessor.root]+Exit -jar oc4j.jarWhich results in output like this:
    D:\java\jdk142\jre\lib\rt.jar;
    D:\java\jdk142\jre\lib\sunrsasign.jar;
    D:\java\jdk142\jre\lib\jsse.jar;
    D:\java\jdk142\jre\lib\jce.jar;
    D:\java\jdk142\jre\lib\charsets.jar;
    D:\java\jdk142\jre\lib\ext\dnsns.jar;
    D:\java\jdk142\jre\lib\ext\ldapsec.jar;
    D:\java\jdk142\jre\lib\ext\localedata.jar;
    D:\java\jdk142\jre\lib\ext\sunjce_provider.jar;
    D:\java\oc4j-main-latest\j2ee\home\oc4j-api.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\oc4j-unsupported-api.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\activation.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\mail.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\ejb.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\javax77.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\javax88.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\servlet.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\jms.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\jta.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\jacc-api.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\connector.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\cos.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\jaas.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\jaxp.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\jmx_remote_api.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\jax-qname-namespace.jar;
    D:\java\oc4j-main-latest\webservices\lib\wsdl-api.jar;
    D:\java\oc4j-main-latest\webservices\lib\orawsdl.jar;
    D:\java\oc4j-main-latest\webservices\lib\jaxr-api.jar;
    D:\java\oc4j-main-latest\webservices\lib\jaxrpc-api.jar;
    D:\java\oc4j-main-latest\webservices\lib\jaxb-api.jar;
    D:\java\oc4j-main-latest\webservices\lib\saaj-api.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\oc4j-internal.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\ojsp.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\commons-el.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\bcel.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\oc4j_orb.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\iiop_support.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\orbbase.jar;
    D:\java\oc4j-main-latest\j2ee\home\iiop_gen_bin.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\jmxri.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\jmxcluster.jar;
    D:\java\oc4j-main-latest\j2ee\home\jaccprovider.jar;
    D:\java\oc4j-main-latest\javavm\lib\jasper.zip;
    D:\java\oc4j-main-latest\j2ee\home\lib\adminclient.jar;
    D:\java\oc4j-main-latest\j2ee\home\jazn.jar;
    D:\java\oc4j-main-latest\j2ee\home\jazncore.jar;
    D:\java\oc4j-main-latest\jlib\jaxen.jar;
    D:\java\oc4j-main-latest\jlib\ojpse.jar;
    D:\java\oc4j-main-latest\jlib\ojpxml.jar;
    D:\java\oc4j-main-latest\jlib\ojpwss.jar;
    D:\java\oc4j-main-latest\jlib\ojpsaml.jar;
    D:\java\oc4j-main-latest\webservices\lib\wsserver.jar;
    D:\java\oc4j-main-latest\webservices\lib\wssecurity.jar;
    D:\java\oc4j-main-latest\webservices\lib\wsdl.jar;
    D:\java\oc4j-main-latest\webservices\lib\orajaxr.jar;
    D:\java\oc4j-main-latest\webservices\lib\jaxb-impl.jar;
    D:\java\oc4j-main-latest\webservices\lib\jaxb-libs.jar;
    D:\java\oc4j-main-latest\webservices\lib\orasaaj.jar;
    D:\java\oc4j-main-latest\webservices\lib\xsdlib.jar;
    D:\java\oc4j-main-latest\webservices\lib\relaxngDatatype.jar;
    D:\java\oc4j-main-latest\webservices\lib\commons-logging.jar;
    D:\java\oc4j-main-latest\webservices\lib\orawsrm.jar;
    D:\java\oc4j-main-latest\webservices\lib\wsclient.jar;
    D:\java\oc4j-main-latest\webservices\lib\wsif.jar;
    D:\java\oc4j-main-latest\rdbms\jlib\aqapi.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\jem.jar;
    D:\java\oc4j-main-latest\jlib\jssl-1_1.jar;
    D:\java\oc4j-main-latest\toplink\jlib\toplink.jar;
    D:\java\oc4j-main-latest\toplink\jlib\antlr.jar;
    D:\java\oc4j-main-latest\diagnostics\lib\ojdl.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\jgroups-core.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\asm.jar;
    D:\java\oc4j-main-latest\lib\dmsapp.jar;
    D:\java\oc4j-main-latest\j2ee\home\applications\admin_ejb.jar;
    D:\java\oc4j-main-latest\j2ee\home\connectors\datasources\datasources\datasources.jar;
    D:\java\oc4j-main-latest\j2ee\home\connectors\OracleASjms\OracleASjms\gjra.jar;
    D:\java\oc4j-main-latest\j2ee\home\application-deployments\default\admin_ejb.jar\deployment-cache.jar;
    D:\java\oc4j-main-latest\lib\dms.jar;
    D:\java\oc4j-main-latest\jdbc\lib\ojdbc14dms.jar;
    D:\java\oc4j-main-latest\jdbc\lib\orai18n.jar;
    D:\java\oc4j-main-latest\opmn\lib\ons.jar;
    D:\java\oc4j-main-latest\jdbc\lib\ocrs12.jar;
    D:\java\oc4j-main-latest\lib\xmlparserv2.jar;
    D:\java\oc4j-main-latest\xdk\lib\xml.jar;
    D:\java\oc4j-main-latest\xdk\lib\xmlmesg.jar;
    D:\java\oc4j-main-latest\webservices\lib\soap.jar;
    D:\java\oc4j-main-latest\j2ee\home\lib\http_client.jar;
    D:\java\oc4j-main-latest\j2ee\home\applib;
    D:\java\oc4j-main-latest\j2ee\home\jsp\lib\taglib;
    D:\java\oc4j-main-latest\j2ee\home\jsp\lib\taglib\jaxen.jar;
    D:\java\oc4j-main-latest\j2ee\home\jsp\lib\taglib\ojsputil.jar;
    D:\java\oc4j-main-latest\j2ee\home\jsp\lib\taglib\standard.jar;
    D:\java\oc4j-main-latest\xdk\lib\xsu12.jar;
    D:\java\oc4j-main-latest\javacache\lib\cache.jar;
    D:\java\oc4j-main-latest\sqlj\lib\runtime12.jar;
    D:\java\oc4j-main-latest\sqlj\lib\translator.jar;
    D:\java\oc4j-main-latest\j2ee\home\applications\AcmeOrderProcessor\ApprovalMBean.jar
    cheers
    -steve-

  • Linux JVM: How to load shared libraries with mutual/circular dependencies

    Hi,
    I am using the API
    System.loadLibrary(String name)
    to dynamically link shared libaries to Linux JVM.
    The shared libraries has complex circular symbol dependencies among them.
    I am not able to load shared libraries due to java.lang.UnsatisfiedLinkError.
    Any ideas on how a number of shared libraries with interdependent realtionships
    could be successfully linked in to the Linux JVM?
    Thanks,
    Soumen.
    Background
    ===========
    Successful execution of native code within Java virtual machine in a
    host platform, has two necessary prerequisites:
    Prerequisite 1: The native code is written to the JNI specification
    Prerequisite 2: The native code is dynamically linked with Java virtual
    machine.
    The second step is achieved via simple Java interface, System.loadLibrary:
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#loadLibrary(java.lang.String)
    However, implementation of this interface is highly platform dependent
    in regards to exact nature of dynamic linking process.
    Tests
    =====
    I made three shared libraries libfeatureA.so, libfeatureB.so and libfeatureC.so.
    Feature A and Feature B are mutually dependent on each other (i.e cicular
    dependencies between libfeatureA.so, libfeatureB.so) whereas libfeatureC.so
    has no external dependencies.
    Case 1
    I could link libfeatureC.so with java.
    Case 2
    Java failed to resolve circular dependency between libfeatureA.so, libfeatureB.so
    resulting in linking failure. There may be repackaging workarounds which I have
    not yet explored.
    Java source code
    ================
    class TestLoadLibrary
    static
    System.loadLibrary("featureB");
    System.loadLibrary("featureA");
    System.loadLibrary("featureB");
    public static void main(String[] args)
    System.out.println("In TestLoadLibrary.main()");
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /homes/soumen/work/event/featureB/libfeatureB.so.1.0: /homes/soumen/work/ev B.so.1.0: undefined symbol: featureA_func2
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1737)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1662)
    at java.lang.Runtime.loadLibrary0(Runtime.java:817)
    at java.lang.System.loadLibrary(System.java:986)
    at TestLoadLibrary.<clinit>(TestLoadLibrary.java:5)

    The use of "dlopen() application programming" to achieve dynamic link closure works if there are
    no circular dependencies. For example, I have the following dependency:
    libfeatureD.so ==> libfeatureC.so
    Even if I call Java APIs in correct dependency order, i.e.,
    System.loadLibrary("featureC");
    System.loadLibrary("featureD");
    there would be java.lang.UnsatisfiedLinkError for call System.loadLibrary("featureD").
    Now, I have a JNI method implementation, which makes native API call in same dependency order:
    dlopen("libfeatureC.so", RTLD_LAZY|RTLD_GLOBAL);
    dlopen("libfeatureD.so", RTLD_LAZY|RTLD_GLOBAL);
    and now System.loadLibrary calls succeed. Note that I had to set environment
    variable LD_LIBRARY_PATH so that dlopen call would find libraries to load.
    In other words, from a JNI programming point of view, "linking chasm" has been crossed.
    I am looking at circular dependency issue, i.e.,
    libfeatureA.so <==> libfeatureB.so
    There may be library repackaging workaround.
    If anybody knows any workaround, please post.
    -Soumen Sarkar
    JNI code
    ========
    #include <jni.h>
    #include "TestLoadLibrary.h"
    #include <stdio.h>
    #include <string.h>
    #include <dlfcn.h>
    JNIEXPORT void JNICALL Java_TestLoadLibrary_libLoadNative
    (JNIEnv * jenv, jclass class, jobjectArray libNames)
    printf("native: In TestLoadLibrary.libLoadNative()\n");
    char linuxLibName[1024];
    jsize idx = 0;
    jsize nLibs = (*jenv)->GetArrayLength(jenv, libNames);
    for(idx = 0; idx < nLibs; ++idx)
    /* obtain the current object from the object array */
    jobject myObject = (*jenv)->GetObjectArrayElement(jenv, libNames, idx);
    /* Convert the object just obtained into a String */
    const char libName = (jenv)->GetStringUTFChars(jenv,myObject,0);
    strcpy(linuxLibName, "lib");
    strcat(linuxLibName, libName);
    strcat(linuxLibName, ".so");
    printf("\nnative: Trying to open lib with name %s\n", linuxLibName);
    void* handle = dlopen(linuxLibName, RTLD_LAZY|RTLD_GLOBAL);
    if(handle == 0)
    fputs ("\nnative: Could not load lib\n", stderr);
    fputs (dlerror(), stderr);
    else
    printf("\nnative: Loaded lib %s\n", linuxLibName);
    /* Free up memory to prevent memory leaks */
    (*jenv)->ReleaseStringUTFChars(jenv, myObject, libName);
    return;

  • How to merge portlet.xml file from shared libraries into an EAR application

    Hi all
    I need some help
    I have some applications as shared-libs referenced by weblogic.xml into a EAR application.
    To see all portlets from that shared-libs, I'm creating a portlet.xml into the EAR application with all portlets from all shared libs. But is terrible for me. I would like to have it merged automatically without having to create it in the EAR application. Is that possible?
    Regards
    Bruno

    In the documentation, I saw this text:
    Overriding Shared J2EE Library Settings in the web.xml File
    At runtime, the web.xml files in all the shared J2EE libraries are merged, along with the web.xml
    file in your portal web project. The content of your WEB-INF/web.xml file overrides anything in
    the shared J2EE libraries, so if you want to change particular settings, you can do it there.
    There are many other files for which file contents are merged; these can be overridden in the same
    way. These files include not only WEB-INF/web.xml but also WEB-INF/weblogic.xml and any
    files mentioned in weblogic-extension.xml from either the users' application or the shared
    libraries.
    It seems to be possible to customize the weblogic-extension.xml. But I haven't seen how to do that
    What do you think about it?
    Regards
    Bruno

  • HT1904 parental controls and shared libraries

    We're slowly migrating towards having all our music and movies in iTunes.
    One item that's crutial to this migration is proper parental controls, especially with shared libraries. They seem to work well on the kids iTouch devices and hide the content that's higher than their allowed rating level.
    However, on my daughter's computer (Vista SP2 with iTunes 11.0.2), the shared libraries with content higher than her allowed rating are visible and can be started, even when the parental controls are enabled.
    What am I doing wrong?
    Thanks,
    Eric

    It seems that the parental controls only apply to iTunes store, not the iTunes library?
    Correct; parental controls do indeed only apply to iTunes Store purchases.
    The only reasonable workaround I can think of that the kids can't easily get around to have separate iTunes libraries, one for the adults in the house and one from the kids.

  • Shared Libraries Dummy Questions

    Hello *,
    I am painfully improving my understanding about shared libs. I read the technical docs how to reference them etc but I guess I am missing the concepts.
    I built a web service with workshop 10.3 which of course runs fine from workshop, default settings, so the web service references 3 shared libs automagically.
    Now I manually deployed this webservice app to a managed server instead of admin and it failed. I figured out I have to target the shared libs to the managed server which is of course understandable. But still, wouldn't it be helpfull to have shared libs targeted to all servers as default? (actually I am not sure if there is such a thing, target to all servers, all I know is target to a whole cluster).
    Now I tried to deploy the same web service to another domain with admin console. This fails. Workshop deploys the shared libs but admin doesn't.
    Now my main question is about the concept behind.
    1. Is there a recommended way to get rid of the shared libs for a workshop project once it was configured to use shared libs?
    Is the only way manually adding the shared lib under WEB-INF/lib?
    2. Is there a deploy dependent shared libs? I mean if workshop can do it, couldn't wls admin do it the same way?
    3. If I generate a build script, will it take care of deploying shared libs?
    4. let's assume I want to replace the wls-commonslogging-bridge.war which contains the commons-logging.jar,
    where is this jar located?
    I understand share libs make sense for bigger projects, but I don't understand I have to deploy 3 of them first to
    make a hello world web service run.
    curious,
    Barossa
    Edited by: Barossa on Feb 18, 2009 9:17 PM

    First, for Workshop questions you may want to try that specific forum:
    Workshop
    Your question definitely has WebLogic components too. Let me give some of these a try.
    >
    1. Is there a recommended way to get rid of the shared libs for a workshop project once it was configured to use shared libs?
    Is the only way manually adding the shared lib under WEB-INF/lib?That would be one way, another way would be APP-INF/lib of the EAR. The shared libraries are defined in weblogic.xml or weblogic-application xml. Typically a domain will be configured with the libraries to be deployed when it is created if you're just using the standard WebLogic shared libraries like the Workshop framework, etc. You can also make sure that your deployment mechanism, like WLST, checks to make sure the libraries are deployed.
    >
    2. Is there a deploy dependent shared libs? I mean if workshop can do it, couldn't wls admin do it the same way?It's my understand that this is a convenience mechanism that Workshop built specifically. You're shared libraries are defined in Workshop in the preferences so it knows where to get them from if they are missing, that's not necessarily true for deploying from the Admin Server.
    3. If I generate a build script, will it take care of deploying shared libs?Definitely WLST can be used to do this.
    4. let's assume I want to replace the wls-commonslogging-bridge.war which contains the commons-logging.jar,
    where is this jar located?Can't remember offhand (not on my normal machine right now), but you should be able to check easily by searching your installation of WLS for the shared library name (the war in this case). Also, Workshop should have a reference to it somewhere in the preferences.
    I understand share libs make sense for bigger projects, but I don't understand I have to deploy 3 of them first to
    make a hello world web service run.As I mentioned earlier, if you made the domain a Workshop domain when you created it, those shared libraries should already have been deployed and it would be ready to go.
    curious,
    Barossa
    Edited by: Barossa on Feb 18, 2009 9:17 PM

  • [SOLVED] Gdb shared libraries issue

    Hi,
    I'm working on ARM system with gdb 7.1 (i've tried 7.5 too). I'm using this tool to debug an application composed by several shared libraries.
    If I debug this application on the ARM side, with gdb 7.1 i can see the shared loaded libraries (digiting "share"). Perfect!
    I'm trying to do the same thing remotelly with gdb for arm on windows host and gdbserver on ARM.
    So I have:
    1) gdb on windows for arm v.7.4.1 (i've tried 7.3.1 too)
    2) gdbserver on arm v.7.1 (i've tried 7.5 too)
    On Windows I can debug everything flawless except for the shared libraries: infact, when i tried to digit "share" it says there isn't any shared loaded libraries. I'm absolutely sure that at least one library has loaded (on arm side the same situation works fine).
    In gcc on arm, when i ask for shared loaded libraries ("share") it calls function solib.c:info_sharedlibrary_command with full support for solib. (and it works fine)
    Instead, when i ask for the same command on gdb on windows and gdbserver on arm, it passes the command "qXfer:libraries:read:" that doesn't manage any solib, only dlls! And the dlls list is obviously empty.
    Did i miss something?
    Last edited by Cagnulein (2012-10-10 05:42:19)

    Problem solved
    http://sourceware.org/bugzilla/show_bug.cgi?id=14670

Maybe you are looking for

  • Is there a way to contact apple support through instant message?

    I have an issue with iphoto, that when I choose a photo to email either to myself or someone else, it asks me to put my password (my password which I created for my apple account) and a message pops up which says my password is not recognizeable. Can

  • How do I update timecapsule wi-fi settings?

    My iMac connects wirelessly to my timecapsule to perform regular backups. However, I now have a new broadband provider and therefore home network and i can no longer connect to the Timecapsule. Airport was previously showing that a Timecapsule was pr

  • ExtendScript CS6 doesn't handle GPS data properly

    I prefer to work in Photoshop and Bridge, rather than Lightroom.  I am currently using version CS6 on Windows 7 x64.  I occasionally need to update the title, description and/or GPS information of a photograph. (I have many photographs that predate G

  • Script to Install Handbrake in Archlinux

    I created a script to install handbrake in archlinux and actually works perfectly. Follow the instructions below to install Handbrake v0.7.1: 1) Save the following at the end of the post, excluding the --- lines in a file called install_handbrake.sh

  • WSDL generated by CAF is not compatible in XI! Please help

    Hi Experts. I have exposed a application service as a web service. It also generated the WSDL. Now I want to use this in XI(PI). But when I import the WSDL in XI I am getting the following error: Unable to convert imported document to WSDL Reason: El