Binary compatibility problems using Sun Studio 12

I'm working in a project that uses Orbix [1] third-party libraries. I have installed the Sun Studio 12 on Solaris 10 SPARC but I have got some strange segfault problems (the exactly same code works fine in a Linux box - using g++). I read the 1.4 section of Sun Studio 12 C++ Userguide [2] but I have a doubt:
Is there no way to compile my code using Sun Studio 12 using shared libraries compiled against earlier Sun Studio C++ compiler versions (like Sun Studio 8 or some version before Sun Studio 11)?
I think my problem is related to the fact that Orbix team used Sun Studio 8 as some notes found in their headers indicate:
"IONA Technologies ART IDL Compiler POA C++ Generator asp 6.3.3 SunOS 5.8 CC_5.5 2008/06/13 21:04:37 EDT"
A secondary question: Is CC 5.5 present in Sun Studio 8, right?
Can anyone help me? Every tips are welcome :) Thanks in advance!
[1] http://web.progress.com/en/orbix/orbix_standard.html
[2] http://docs.sun.com/app/docs/doc/820-7599/6nirkt6f7?a=view

AmadeuBarbosa wrote:
I'm working in a project that uses Orbix [1] third-party libraries. I have installed the Sun Studio 12 on Solaris 10 SPARC but I have got some strange segfault problems (the exactly same code works fine in a Linux box - using g++). I read the 1.4 section of Sun Studio 12 C++ Userguide [2] but I have a doubt:I don't think 1.4 Binary Compatibility Verification applies in your case. It's referring to processor capability to execute certain (new) instructions; if your third-party libraries were compiled a while ago, it's highly unlikely they use instructions not implemented by the processor you have.
Is there no way to compile my code using Sun Studio 12 using shared libraries compiled against earlier Sun Studio C++ compiler versions (like Sun Studio 8 or some version before Sun Studio 11)?Generally speaking, any library compiled with older Sun Studio C++ compiler is supposed to be compatible with any library or executable compiled with newer version provided that all parties did everything right. For example, that third-party libraries should not be statically linked with C++ run-time support libraries; your executable should be linked with latest compiler driver (CC) so that it records correct dependencies on support libraries.
Of course, there could be (and actually are) compiler bugs standing in the way of compatibility. Some of them can be fixed, some - like demangler issue described in http://docs.sun.com/source/820-4155/c++.html - can't. There is no easy way to tell if you hit a compiler bug or bulding/linking issue, or bug in the code that was previously unseen.
I think my problem is related to the fact that Orbix team used Sun Studio 8 as some notes found in their headers indicate:
"IONA Technologies ART IDL Compiler POA C++ Generator asp 6.3.3 SunOS 5.8 CC_5.5 2008/06/13 21:04:37 EDT"Yes, looks like it was compiled by 5.5, which is part of Sun Studio 8
>
A secondary question: Is CC 5.5 present in Sun Studio 8, right?That's correct.

Similar Messages

  • Problems using Sun Studio Express 3 CC on OpenSuse 10.2

    Unable to compile a simple program with CC (compiles w/o errors using g++)
    -- test.cpp -------------------------------------------------------------------
    #include <string>
    #include <iostream>
    using namespace std;
    string xx = "Hello World ...";
    int main () {
    cout << xx << endl;
    return 0;
    sunCC -v -o testcc test.cpp
    ### command line files and options (expanded):
    ### -v -o testcc test.cpp
    ### sunCC: Note: NLSPATH
    = /opt/sun/sunstudiomars/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/sun/sunstudiom
    ars/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
    /opt/sun/sunstudiomars/prod/bin/ccfe -y-o -ytest.o -y-fbe -y/opt/sun/sunstudiomars/prod/bin/fbe -y-xarch=generic -
    y-xtab -y-verbose -O0 -ptf /tmp/16306%1.
    %2 -ptx /opt/sun/sunstudiomars/prod/bin/CC -ptk "-v -xs " -D__SUNPRO_CC=0
    x590 -Dunix -Di386 -D__i386 -D__i386__ -D__unix -D__unix__ -D__BUILTIN_VA_ARG_INCR -D__linux -D__linux__ -Dlinux -
    D__gnu__linux__ -D__SUNPRO_CC_COMPAT=5 -xdbggen=no%stabs+dwarf2 -y-s -xdbggen=incl -I-xbuiltin -xldscope=global -i
    nstlib=/opt/sun/sunstudiomars/prod/lib/libCstd.a -I/opt/sun/sunstudiomars/prod/include/CC/Cstd -I/opt/sun/sunstudi
    omars/prod/include/CC -I/opt/sun/sunstudiomars/prod/include/CC/rw7 -I/opt/sun/sunstudiomars/prod/include/cc -y-com
    dat test.cpp -s /tmp/ccfe.16306.0.s >&/tmp/ccfe.16306.1.err
    rm /tmp/ccfe.16306.0.s
    /opt/sun/sunstudiomars/prod/bin/stdlibfilt -stderr </tmp/ccfe.16306.1.err
    "/usr/include/string.h", line 272: Error: End of file encountered in macro
    arguments for "__nonnull".
    "/usr/include/string.h", line 272: Error: ")" expected instead of "(".
    "/usr/include/string.h", line 272: Error: Unexpected ")" -- Check for matching
    parenthesis.
    "/usr/include/string.h", line 272: Error: Operand expected instead of ";".
    "/usr/include/string.h", line 426: Error: "strerror_r(int, char*, unsigned)"
    is expected to return a value.
    "/opt/sun/sunstudiomars/prod/include/CC/new", line 32: Error: operator
    new(unsigned) was declared before with a di
    fferent language.
    "/opt/sun/sunstudiomars/prod/include/CC/new", line 35: Error: operator
    delete(void*) was declared before with a di fferent language.
    "/opt/sun/sunstudiomars/prod/include/CC/new", line 37: Error: operator new[]
    (unsigned) was declared before with a different language.
    "/opt/sun/sunstudiomars/prod/include/CC/new", line 40: Error: operator
    delete[](void*) was declared before with a different language.
    "/opt/sun/sunstudiomars/prod/include/CC/new", line 53: Error: Only one of a
    set of overloaded functions can be ext ern "C".
    "/opt/sun/sunstudiomars/prod/include/CC/new", line 54: Error: Only one of a
    set of overloaded functions can be ext ern "C".
    "/opt/sun/sunstudiomars/prod/include/CC/new", line 55: Error: Only one of a
    set of overloaded functions can be ext ern "C".
    "/opt/sun/sunstudiomars/prod/include/CC/new", line 56: Error: Only one of a
    set of overloaded functions can be ext ern "C".
    "/opt/sun/sunstudiomars/prod/include/CC/Cstd/rw/iterator", line 106: Error:
    Template declarations cannot have exte rn "C" linkage.
    "/opt/sun/sunstudiomars/prod/include/CC/Cstd/rw/iterator", line 169: Error:
    Template declarations cannot have exte rn "C" linkage.
    "/opt/sun/sunstudiomars/prod/include/CC/Cstd/rw/iterator", line 185: Error:
    Template declarations cannot have exte rn "C" linkage.
    "/opt/sun/sunstudiomars/prod/include/CC/Cstd/rw/iterator", line 198: Error:
    Template declarations cannot have exte rn "C" linkage.
    "/opt/sun/sunstudiomars/prod/include/CC/Cstd/rw/iterator", line 202: Error:
    Template declarations cannot have exte rn "C" linkage.
    "/opt/sun/sunstudiomars/prod/include/CC/Cstd/rw/iterator", line 206: Error:
    Template declarations cannot have exte rn "C" linkage.
    "/opt/sun/sunstudiomars/prod/include/CC/Cstd/rw/iterator", line 217: Error:
    Only one of a set of overloaded functi ons can be extern "C".
    "/opt/sun/sunstudiomars/prod/include/CC/Cstd/rw/iterator", line 225: Error:
    Template declarations cannot have exte rn "C" linkage.
    "/opt/sun/sunstudiomars/prod/include/CC/Cstd/rw/iterator", line 239: Error:
    Template declarations cannot have exte rn "C" linkage.
    "/opt/sun/sunstudiomars/prod/include/CC/Cstd/rw/iterator", line 249: Error:
    Template declarations cannot have exte rn "C" linkage.
    "/opt/sun/sunstudiomars/prod/include/CC/Cstd/rw/iterator", line 264: Error:
    Template declarations cannot have exte rn "C" linkage.
    "/opt/sun/sunstudiomars/prod/include/CC/Cstd/rw/iterator", line 275: Error:
    Template declarations cannot have exte rn "C" linkage.
    Compilation aborted, too many Error messages.
    rm /tmp/ccfe.16306.1.err
    rm test.o

    It is a known bug. Check out this topic: http://forum.java.sun.com/thread.jspa?threadID=5109045
    Fix for it should be available in the next installment of Sun Studio Express...
    regards,
    __Fedor.

  • Check memory leak using sun studio 10

    Hi,
    I'm using sun studio 10 to find the memory leak. I pre loaded the librtc.so and attached the process. Then I set the break point at the beginning of scenairo and the end of scenario. Then I trigger the event and program flow hits the break point at the beginning of scenairo, I try to enable the "Memory Check". Then I continue my application. But, I don't see anything show up in the "memory check" tab in the debug window.
    Is anyone there who know what is the problem here? Appreciate your help.
    Li

    Can you help mi. Novice
    mail [email protected]

  • How to fix the problem of Sun Studio 11 carshed at startup

    I used Sun Studio 11 to develop my program for year,
    but Sun Studio 11 carshed when I run it this morning.
    Even I uninstalled it and reinstalled it again, the
    result is the same.
    Have anyone can help me to resolve this problem?
    Following is the error messages in popup window:
    An unexpected exception has occurred.
    If the problem persists, please contact
    Sun Technical Support at:
    "http://developers.sun.com/prodtech/cc/support_index.html"
    detail information is:
    java.security.AccessControlException: access denied (java.long.RuntimePermission getClassLoader)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
    at java.security.AccessController.checkPermission(AccessController.java:427)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    at org.netbeans.TopSecurityManager.checkPermission(TopSecurityManager.java:270)
    at java.lang.Class.getClassLoader(Class.java:588)
    at org.openide.util.NbBundle.getBundle(NbBundle.java:317)
    at org.netbeans.modules.cpp.actions.MakeMostRecentAction.getString(MakeMostRecentAction.java:111)
    at org.netbeans.modules.cpp.actions.MakeMostRecentAction.getName(MakeMostRecentAction.java:43)
    at org.openide.util.actions.SystemAction.getValue(SystemAction.java:135)
    at org.openide.awt.Actions$ButtonBridge.updateState(Actions.java:320)
    at org.openide.awt.Actions.connect(Actions.java:114)
    at org.openide.awt.Actions.connect(Actions.java:104)
    at org.openide.awt.Actions$ToolbarButton.<init>(Actions.java:745)
    at org.openide.util.actions.CallableSystemAction.getToolbarPresenter(CallableSystemAction.java:51)
    at org.netbeans.modules.cpp.actions.MakeMostRecentAction.getToolbarPresenter(MakeMostRecentAction.java:65)
    at org.openide.awt.Actions$Folder.createInstance(Toolbar.java:393)
    at org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:705)
    at org.openide.loaders.FolderInstance.access$000(FolderInstance.java:69)
    at org.openide.loaders.FolderInstance$2.run(FolderInstance.java:592)
    at org.openide.util.Task.run(Task.java:136)
    [catch] at org.openide.awt.AWTTask.run(AWTTask.java:29)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent)EventQueue.java:461)
    at org.GNOME.Accessibility.JavaBridge$AccessQueue.dispatchEvent(JavaBridge.java:1086)
    at java.awt.eventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.eventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.eventDispatchThread.pumpEvents(EventDisplatchThread.java:157)
    at java.awt.eventDispatchThread.pumpEvents(EventDisplatchThread.java:149)
    at java.awt.eventDispatchThread.run(EventDispatchThread.java:110)

    A wild guess: try cleaning (with a back up, of course) Sun Studio caches: ~/.sunstudio/ and .nbattrs in startup (or project?) directory.

  • How to generate gdb compatible .o for CMT using Sun Studio C compiler?

    Hello,
    we've been working on a joint project for telco bearer plane applications on CMT.
    We started the project using gcc for Sparc and we switched to Sun Studio compiler when we hit some bugs in gcc (optimized mode was not completely stable). The switch took a few weeks due to syntax differences and toolchain option changes.
    With Sun Studio we got a double digit percent performance improvement, so Sun Studio proved more stable and faster than gcc.
    To debug programs we require gdb, because the Telco customers are more familiar with it. The problem is that Sun Studio generates object files which are not compatible with gdb.
    Our main requirement is to be able to generate gdb compatible object files using Sun Studio compiler.
    We checked this link:
    http://cooltools.sunsource.net/gcc/ReleaseNotes.html
    but this seems to be a variant of gcc. At this point we cannot switch compiler because of the performance and stability issues mentioned above and because it will take a few weeks to months to switch.
    We have two questions:
    1) Is there a way to generate gdb compatible object files using Sun Studio 11?
    2) If not, is this funcionality going to be available in a future release of Sun Studio and what is the time frame?
    Thanks for your help.
    Marco Zandonadi
    Teja Technologies

    The undefined symbol is in the C++ runtime support library that is part of Solaris. Probably you have an out-fo-date version of the libraries.
    You can get current patches from the Sun Studio patch page:
    http://developers.sun.com/prodtech/cc/downloads/patches/index.html
    From the page for your version of WorkShop or Sun Studio, select the C++ Runtime Library patch for the version of Solaris that your are running. While you are at it, you can get the current compiler patches as well.
    If patching the runtime libraries does not fix the problem, let me know, and also show the exact command lines that you use for compiling and linking the program.

  • Error in compiling boost example program using sun studio 12

    I am trying to compile the below example program from boost using sun studio 12 C++ compiler.
    #include <boost/interprocess/shared_memory_object.hpp>
    #include <boost/interprocess/mapped_region.hpp>
    #include <cstring>
    #include <cstdlib>
    #include <string>
    int main(int argc, char *argv[])
    using namespace boost::interprocess;
    if(argc == 1)
    {  //Parent process
    //Remove shared memory on construction and destruction
    struct shm_remove
    shm_remove() { shared_memory_object::remove("MySharedMemory"); }
    ~shm_remove(){ shared_memory_object::remove("MySharedMemory"); }
    } remover;
    //Create a shared memory object.
    shared_memory_object shm (create_only, "MySharedMemory", read_write);
    //Set size
    shm.truncate(1000);
    //Map the whole shared memory in this process
    mapped_region region(shm, read_write);
    //Write all the memory to 1
    std::memset(region.get_address(), 1, region.get_size());
    //Launch child process
    std::string s(argv[0]); s += " child ";
    if(0 != std::system(s.c_str()))
    return 1;
    else
    //Open already created shared memory object.
    shared_memory_object shm (open_only, "MySharedMemory", read_only);
    //Map the whole shared memory in this process
    mapped_region region(shm, read_only);
    //Check that memory was initialized to 1
    char mem = static_cast<char>(region.get_address());
    for(std::size_t i = 0; i < region.get_size(); ++i)
    if(*mem++ != 1)
    return 1; //Error checking memory
    return 0;
    Using the below command :
    CC -c 1.cpp -I/home/syogacha/satish/boost_1_43_0 -library=stlport4
    "/home/syogacha/satish/boost_1_43_0/boost/interprocess/shared_memory_object.hpp", line 284: Error: The function "shm_open" must have a prototype.
    "/home/syogacha/satish/boost_1_43_0/boost/interprocess/shared_memory_object.hpp", line 307: Error: The function "shm_unlink" must have a prototype.
    "/home/syogacha/satish/boost_1_43_0/boost/interprocess/mapped_region.hpp", line 549: Error: Formal argument 1 of type char* in call to shmdt(char*) is being passed void*.
    3 Error(s) detected.
    I even tried to include sys/mman.h but got the same compilation errors.
    Do we need to take care of few other specific things while using boost headers.
    Thanks in advance ...

    Hope this helps....
    #include <sys/mman.h>
    #include <boost/interprocess/shared_memory_object.hpp>
    #include <boost/interprocess/mapped_region.hpp>
    #include <cstring>
    #include <cstdlib>
    #include <string>
    #include <iostream>
    #include <iterator>
    int main(int argc, char *argv[])
    {      //main
            using namespace boost::interprocess;
            if(argc == 1)
            {  //Parent process
                    //Remove shared memory on construction and destruction
                    struct shm_remove
                            shm_remove() { shared_memory_object::remove("MySharedMemory"); }
                            ~shm_remove(){ shared_memory_object::remove("MySharedMemory"); }
                    } remover;
                    //Create a shared memory object.
                    shared_memory_object shm (create_only, "MySharedMemory", read_write);
                    //Set size
                    shm.truncate(1000);
                    //Map the whole shared memory in this process
                    mapped_region region(shm, read_write);
                    //Write all the memory to 1
                   std::memset(region.get_address(), 1, region.get_size());
                    //Launch child process
                    std::string s(argv[0]); s += " child ";
                    if(0 != std::system(s.c_str()))
                    return 1;
            else
                    //Open already created shared memory object.
                    shared_memory_object shm (open_only, "MySharedMemory", read_only);
                    //Map the whole shared memory in this process
                    mapped_region region(shm, read_only);
                    //Check that memory was initialized to 1
                    char *mem = static_cast<char*>(region.get_address());
                    for(std::size_t i = 0; i < region.get_size(); ++i)
                    if(*mem++ != 1)
                    return 1;   //Error checking memory
            return 0;
    }

  • Compiling C++ using Sun Studio 11

    Hi,
    I have downloaded and installed "IBM Message Service client for C/C++" (in Solaris 5.8) to publish messages to Websphere MQ Topics using C++ programs. The IBM installation comes with a compiled version of the sample programs and I am able to execute them successfully using Sun studio 11's C++ compiler. But when I try to compile these sample programs , it throws the following exception.
    mqm$ CC SampleConsumerCPP.cpp
    "SampleConsumerCPP.cpp", line 36: Error: Could not open include file<xms.hpp>.
    "SampleConsumerCPP.hpp", line 39: Error: Could not open include file<helperfunctions.h>.
    "SampleConsumerCPP.hpp", line 52: Error: xmsVOID is not defined.
    "SampleMsgListener.hpp", line 44: Error: xms is not defined.
    "SampleMsgListener.hpp", line 44: Error: MessageListener is not defined.
    "SampleMsgListener.hpp", line 55: Error: Type name expected instead of "xmsVOID".
    "SampleMsgListener.hpp", line 55: Error: "virtual" is not allowed here.
    "SampleMsgListener.hpp", line 55: Error: Identifier expected instead of "const".
    "SampleMsgListener.hpp", line 55: Error: Use ";" to terminate declarations.
    "SampleMsgListener.hpp", line 56: Error: Use ";" to terminate declarations.
    "SampleMsgListener.hpp", line 56: Error: "," expected instead of "displayMsg".
    "SampleMsgListener.hpp", line 62: Error: Use ";" to terminate declarations.
    "SampleMsgListener.hpp", line 62: Error: Type name expected instead of "xmsVOID".
    "SampleMsgListener.hpp", line 63: Error: Type name expected instead of "xmsINT".
    "SampleMsgListener.hpp", line 63: Error: Identifier expected instead of "const".
    "SampleMsgListener.hpp", line 63: Error: Multiple declaration for const.
    "SampleMsgListener.hpp", line 63: Error: Use ";" to terminate declarations.
    "SampleMsgListener.hpp", line 64: Error: Use ";" to terminate declarations.
    "SampleMsgListener.hpp", line 64: Error: Type name expected instead of "xmsVOID".
    "SampleMsgListener.hpp", line 65: Error: Type name expected instead of "xmsINT".
    "SampleMsgListener.hpp", line 65: Error: Identifier expected instead of "const".
    "SampleMsgListener.hpp", line 65: Error: Multiple declaration for const.
    "SampleMsgListener.hpp", line 65: Error: Use ";" to terminate declarations.
    "SampleMsgListener.hpp", line 67: Error: Use ";" to terminate declarations.
    "SampleMsgListener.hpp", line 73: Error: Type name expected instead of "xmsINT".
    Compilation aborted, too many Error messages.
    The compiler does not recognize the "make" command either.
    Find below my PATH settings.
    "/tools/java/j2sdk1.4.2_08/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:/data/sunstudio10/SUNWspro/bin:/opt/mqm/java/bin:/usr/openwin/bin:/data/mqapi/tools/cpp/include:/data/mqapi/tools/samples/common:/data/mqapi/lib"
    where /data/mqapi contains the XMS installation.
    Any pointers to solve this issue will be highly appreciated.
    Thanks,
    Meeraa

    Hi,
    I have downloaded and installed "IBM Message Service
    client for C/C++" (in Solaris 5.8) ...
    mqm$ CC SampleConsumerCPP.cpp
    "SampleConsumerCPP.cpp", line 36: Error: Could not
    open include file<xms.hpp>.You probably don't want to be running CC on its own.
    The compiler does not recognize the "make" command
    either.
    Find below my PATH settings.
    "/tools/java/j2sdk1.4.2_08/bin:/usr/bin:/bin:/usr/sbin
    :/sbin:/usr/local/bin:/usr/local/sbin:/data/sunstudio1
    0/SUNWspro/bin:/opt/mqm/java/bin:/usr/openwin/bin:/dat
    a/mqapi/tools/cpp/include:/data/mqapi/tools/samples/co
    mmon:/data/mqapi/lib"
    where /data/mqapi contains the XMS installation.You need to set your path in your shell. Make sure that /usr/ccs/bin is in your PATH.
    Have you really installed Studio 11 in "/data/sunstudio10" - that looks a bit confuding to me!
    Paul

  • Problem in compilation using Sun Studio 11

    Hello,
    We are migrating from a Solaris 8 to a Solaris 10 OS. At the same ttime we are also migrating from Ingres 2.6 to Ingres 2006. As a part of the creation of teh development environment, we are recompiling all the codes on teh new OS. WE have installed teh Sun Studio 11 compiler for this purpose. When compiling some C codes, we are getting the following error:
    "am_xxxxxxxx.c", line 2596: warning: statement not reached
    "am_xxxxxxxx.c", line 2778: undefined symbol: i8
    "am_xxxxxxxx.c", line 2778: syntax error before or at: )
    "am_xxxxxxxx.c", line 2858: undefined symbol: i8
    "am_xxxxxxxx.c", line 2858: syntax error before or at: )
    "am_xxxxxxxx.c", line 2889: warning: implicit function declaration: IIresnext
    "am_xxxxxxxx.c", line 2891: warning: statement not reached
    "am_xxxxxxxx.c", line 2920: warning: statement not reached
    "am_xxxxxxxx.c", line 2931: undefined label: IIfdF1
    "am_xxxxxxxx.c", line 2931: undefined label: IIosl9139
    "am_xxxxxxxx.c", line 2931: undefined label: IIfdE1
    "am_xxxxxxxx.c", line 2931: cannot recover from previous errors
    cc: acomp failed for am_xxxxxxxx.c
    The command used for compiling is :
    cc -xarch=generic64 am_xxxxxxxx.c
    We have exported teh following:
    LD_LIBRARY_PATH_64=/usr/sfw/lib/sparcv9:/usr/local/lib/sparcv9:/usr/lib/sparcv9:/usr/openwin/lib/sparcv9:/usr/dt/lib/sparcv9:/opt/SUNWspro/lib/v9:/opt/SUNWspro/lib/v9:/eu/ingad/ingres/lib:/opt/oracle/lib:/usr/lib:/usr/ucblib:/usr/openwin/lib:/opt/SUNWspro/lib/:/opt/lib/cobol/coblib
    LD_LIBRARY_PATH=/opt/SUNWspro/lib/v9:/eu/ingad/ingres/lib:/eu/ingad/ingres/lib:/opt/oracle/lib:/usr/lib:/usr/ucblib:/usr/openwin/lib:/opt/SUNWspro/lib/:/opt/lib/cobol/coblib
    CXXFLAGS=-fast -xarch=v9b
    CFLAGS=-fast -xarch=v9b
    LDFLAGS=-L/usr/sfw/lib/sparcv9 -L/usr/lib/sparcv9 -R/usr/sfw/lib/sparcv9 -R/usr/lib/sparcv9
    We are struggling with this issue for the last one week. Can someone please help me with this issue?
    Could this be because the 64 bit library files are not installed? Please help.
    Aneesha

    The LD_LIBRARY_PATH environment variables determine where the runtime loader looks for shared libraries when you run an application. It is unlikely to be the source of compile-time errors.
    I suspect that doing two major changes at the same time has resulted in undefined names and other problems, probably due to missing or incorrect header inclusion. If possible, make one change at a time, either compile the old code on the new OS, or the new code on the old OS, and get that to work first.
    Check the Ingress documentation to see if you need to make source code changes when upgrading, and follow any recommendations there. You might also need to take up this problem with Ingress tech support.
    Regarding LD_LIBRARY_PATH, the best advice is usually "don't set it at all". For more on this topic, see this article:
    http://blogs.sun.com/rie/entry/tt_ld_library_path_tt
    Just to eliminate this as a possible build problem, try removing LD_LIBRARY_PATH and LD_LIBRARY_PATH_64 from your environment when building the program. Then modify the build process to set the executable runpath (-R option) to include the Ingress or Oracle libraries that need to be searched. You don't normally want to point into /usr/lib or into the compiler installation area.

  • Class path problem in Sun Studio Creator

    dear,
    I have Sun Studio Creator 30 days Trail. i can't compile the EJB Classes. Is there any class path setting in the IDE?. Help me to solve the problem. the EJB class javax.ejb.* package is not found. I am using the deployment server (Sun Application Server 8.0 this could deployed the example files written for EJB. i don't guess what is the major problem.

    http://en.wikipedia.org/wiki/Classpath_(Java)#Setting_the_path_in_a_Manifest_file explains it well.

  • Problems with sun studio 12 in suse linux 11

    Hi.
    I installed Sun Studio 12 suse linux with no problems. However, the debugging modules (DBX) are not working any more. When I started Sun Studio, it gave a message about modules that could not be loaded in tha moment. I did not pay attention. But I noticed that all debugging options were disabled.
    Using the module manager, I saw the DBX module was not checked, and I could not change it. I was marked with a red X. So I thought to reinstall the application. However, the uninstall utility doesn't work either.
    According with the documentation, running ./uninstaller does it, but I get the following error message instead
    Exception in thread "main" java.lang.NoClassDefFoundError: uninstall_Sun_Studio_12/class
    Caused by: java.lang.ClassNotFoundException: uninstall_Sun_Studio_12.class
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    I tried to uninstall manually, and then execute installer, by using first the software manager in linux and deleting the producregistry file manually. It worked because I executed the installer. However, in Sun Studio IDE, debugging options are still not available despite I "reinstalled" the application. I checked the log files and they say the file uninstall_Sun_Studio_12.class could not be written.
    So my questions are:
    1. Is there any other way to repair Sun Studio? What could be the possible for this module to stop working?
    2. Does anyone have an idea of why the installer cannot write the uninstaller class?
    I found that perhaps problems regarding Java / Netbeans versions could be the problem, but the ones I have installed are those packages that were installed along with Sun Studio, and both are valid.
    Thank you very much.

    Perhaps you can simply delete the Sun Studio 12 installation tree, because it will not work on SUSE Linux 11.
    This OS is not supported, so any problems you see with SS12 on SUSE 11 will not be fixed.
    But we have a newer version, that should work better.
    You can try to download and install Sun Studio Express 2008/11 (extract pre-installed image from tar.bz2 file).
    Here is a pointer to the web page:
    http://developers.sun.com/sunstudio/downloads/express
    All you need is to provide a email address, and press "Download Now" button.
    You will see a page, that gives you 2 options to download Sun Studio Express 2008/11.
    Use "Option 2": Download Tarfile Installer
    Thanks,
    Nik

  • Creating EXEs,DLLs using sun studio

    Hi friends...
    can we use the Sun Studio for creating the EXE's Or DLL's i.e Executables,Dynamic linking library of the Java source file.
    which is similar to that of Microsoft Stdio which creates the executables of sourcecodes.
    please tell me.....

    JoachimSauer wrote:
    DrLaszloJamf wrote:
    JoachimSauer wrote:
    There are tools to generate .exe files, but unless you have a very, very specific need for it, you should probably stay away from them.It's usually at this moment that someone posts a link to one of those nickelwhack tools, and then the OP replies "thanks, just what I needed".I'm painfully aware of that, but (despite much evidence to the contrary) I hope that in those few seconds or minutes between my post and that answer, the OP thinks about it and realizes he doesn't really need an .exe file.Why not distract him by getting him to search for a made-up word like "nickelwhack"?

  • Problem installing  Sun studio creator Please help

    can come one please help me with this
    i am trying to install sun studio creator on ubunutu but i get an error message saying unable to complete the install
    the install logs shows the following error
    (27-Dec-2005 17:37:35), Setup.product.install, com.sun.installer.PostInstallCoreAction, msg1, Sun Java Studio Creator Error encountered while installing Sun Java Studio Creator. Please review the log file under this directory: /home/karl/Creator
    (27-Dec-2005 17:37:40), Setup.product.install, com.sun.installer.PostInstallWizardAction, err, Error setting pointbase port
    (27-Dec-2005 17:37:40), Setup.product.install, com.sun.installer.PostInstallWizardAction, err, Skipping PostInstall actions due to Application Server installation failure with exitcode: -500
    any help would be most appreciated
    karl

    http://forum.java.sun.com/thread.jspa?threadID=5308609

  • Remote Interface problem using Sun ONE App & web server

    HI,
    1) I am using an S'less SB. I have local & remote interfaces. I am using the sun one appserver7 & the sun ones's htttp server. By default it doesnt pick up the remote interfaces is it ? How do i make my remote interfaces work ? what are the changes required in config/xml ?
    2) However i changed my client code (i.e my action class which is called by the struts action servlet ) to access the localhome rather than the remote home, but then i get java.lang.classcastexception.
    pls help !
    sanjay

    Hi parsuram,
    Thanks for the tip. After looking at the sample source code, I did finally figure out the solution - so I'll post it in case anyone else happens to be working with websphere studio has the same issue deploying on sun one.
    To access local interface ejb, you must have the following
    1. ejb-local-ref tag in the ejb-jar.xml like so underneath the <session> or <entity> tag of the bean which you plan to access the local ejb with.
    <ejb-local-ref>
    <ejb-ref-name>TestL</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local-home>memory.simple.TestLLocalHome</local-home>
    <local>memory.tool.simple.TestLLocal</local>
    <ejb-link>TestL</ejb-link>
    </ejb-local-ref>
    2. similar ejb-ref tag in sun-ejb-jar.xml
    <ejb-ref>
    <ejb-ref-name>TestL</ejb-ref-name>
    <jndi-name>localejbs/module_memory.betaEJB/TestL68640023372300293</jndi-name>
    </ejb-ref>
    note: sun generates the <jndi-name> and overwrites whatever you put in that tag no matter what you put in there.
    3. here is the code to access
    Context initial = new InitialContext();
    TestLLocalHome tlHome=(TestLLocalHome) Initial.lookup
    ("TestL");
    //the string must match <ejb-ref-name> underneath <ejb-local-ref>
    4. note that the jndi name for the local interface bean becomes irrelevant. only the <ejb-ref-name> in the ejb-jar and sun-ejb-jar matter. furthermore, both <ejb-ref-name> must be the same or you won't be able to deploy.
    5. This is completely my fault for not checking the "proper" way to access local interfaces. in websphere, they let you get away without the ejb-ref tags and just use the string "local:/TestL"!
    -matt

  • Error when trying to build using sun studio compiler

    Hi ,
    When i try to build my appliation-1 and application-2 , I am experiencing below given errors
    OS:
    SUSE Linux Enterprise Server 10 (x86_64)
    VERSION = 10
    PATCHLEVEL = 1
    Compiler Version:
    cc: Sun Ceres C 5.10 Linux_i386 2008/03/24
    usage: cc [ options] files. Use 'cc -flags' for details
    Application1:
    Error:
    CC: Cannot find /comp/sun/sunstudioceres/bin/ccfe
    Application2:
    Error:
    cc: Warning: cannot open inline file /gan/q2/comp/sun/sunstudioceres/lib/amd64/libm.il
    cc: Can't exec /comp/sun/sunstudioceres/bin/acomp
    Please share your thoughts on how to solve this problem
    Regards,

    [http://forum.java.sun.com/thread.jspa?threadID=5307985]

  • Problem using sun deploytool

    I am trying to use the deploytool on a simple bean in the book 'Mastering EJBs'
    I added the EJB and reference and made an appclient. When I go to verify I get the following error:
    Problem in parsing the xml file
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'ejb-local-ref'. One of '{"http://java.sun.com/xml/ns/j2ee":display-name, "http://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":env-entry, "http://java.sun.com/xml/ns/j2ee":ejb-ref, "http://java.sun.com/xml/ns/j2ee":service-ref, "http://java.sun.com/xml/ns/j2ee":resource-ref, "http://java.sun.com/xml/ns/j2ee":resource-env-ref, "http://java.sun.com/xml/ns/j2ee":message-destination-ref, "http://java.sun.com/xml/ns/j2ee":callback-handler, "http://java.sun.com/xml/ns/j2ee":message-destination}' is expected.
    When I run the appclient I get:
    appclient -client hellotestClient.jar
    Mar 10, 2005 9:38:15 PM com.sun.enterprise.appclient.Main <init>
    WARNING: ACC006: No application client descriptor defined for: [null]

    <?xml version='1.0' encoding='UTF-8'?> <ejb-jar ������version="2.1" ������xmlns="http://java.sun.com/xml/ns/j2ee" ������xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ������xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" ������> ���<display-name>Ejb1</display-name> ���<enterprise-beans> ������<session> ���������<display-name>HelloBean</display-name> ���������<ejb-name>HelloBean</ejb-name> ���������<home>examples.HelloHome</home> ���������<remote>examples.Hello</remote> ���������<local-home>examples.HelloLocalHome</local-home> ���������<local>examples.HelloLocal</local> ���������<ejb-class>examples.HelloBean</ejb-class> ���������<session-type>Stateful</session-type> ���������<transaction-type>Bean</transaction-type> ���������<ejb-ref> ������������<ejb-ref-name>ejb/helloBean</ejb-ref-name> ������������<ejb-ref-type>Session</ejb-ref-type> ������������<home>examples.HelloHome</home> ������������<remote>examples.Hello</remote> ���������</ejb-ref> ���������<security-identity> ������������<use-caller-identity> ������������</use-caller-identity> ���������</security-identity> ������</session> ���</enterprise-beans> </ejb-jar

Maybe you are looking for