Solaris 2.6's compiler.

I work in a O.S. Solaris 2.6 and when compiled a program with headerfile, the compiler show the following message: " ld: elf error: file 'path'/my_extern.h unknown type, unable to process using elf (3E) libraries.". Can you help me?
Thanks.

Sounds like a .h file is somehow making it down to the linker. Can you post the output of your compilation with the "-#" flag set (assuming cc).
Is it possible that your makefile (or build method) has a .h sent to the link phase?
Alan
Sun Developer Technical Support
http://www.sun.com/developers/support

Similar Messages

  • New Installation of OCI on Solaris 8, can't compile demos

    I have installed Oracle 9i on a SUN Blade 100 running Solaris 8
    and have also installed the Forte C compiler. I wish to begin
    compiling the OCI demos in the rdbms dir. I get too many errors
    to list so I am fairly sure it is some more setup that I have
    failed to complete.
    Oracle is working as I have connected to the database through
    SQL.
    I am using the .mk file in the demo dir
    set up LD_LIBRARY_PATH to look at ORACLE_HOME/lib
    Has anyone been down this path?
    Randy
    CSC

    I had that problem. It was because libclntsh.so.8 didn't exist.
    What is your problem?
    If it's the library. Generate it first from the makefile.
    make -f demo_rdbms.mk generate_sharedlib

  • Compilation error for code in Solaris 8 which was compiled in SUNOS 4.1.3

    Hi,
    I compiled the C source files in Solaris 8 which was earlier compiled in SUNOS 4.1.3(Solaris 1.1).
    On compiling I get following discrepencies: 1. Executable size are considerably different.
    2. I am using some X windoes system library, it gives compilation error like "prototype mismatch 2 arguments passed when 3 required". "improper member use: fd " fd is the member od display structure.
    3. "identifier redeclared: shmat current : function() returning pointer to char
    previous: function(int, pointer to const void, int) returning pointer to void : "/usr/include/sys/shm.h""
    4. Also I am getting "cg error :..: Disk quota exceeded " while compiling one of the modules.
    Please let me know solution of all/any of these.
    Thanks in advance!!
    Edited by: SmithaIVR on Dec 3, 2008 2:20 AM

    Sounds like ancient code that no longer matches current API's.
    Theres not much option except to rewrite those bits.

  • Solaris 12.4 Beta Compiler Issue

    #include <iostream>
    using namespace std;
    void print() {
    for (auto x : {1, 2, 3})
       cout << x << "\n";
    int main() {
    print();
    When I compile the above code with the Solaris 12.4 beta Jul 14 I get
    line 5: Error: Could not find match for std::begin<_Container>(?) needed in print().
    line 5: Error: Could not find match for std::end<_Container>(?) needed in print().
    According to Stroustrup (C++ Programming Language 4th Edition, pg 45) the following code is C++11 compliant.
    I'm compiling with option -std=c++11.

    You have run into bug 18780089 - failure for initializer list in range-based for loop.
    We plan to have this bug fixed by the final product release.

  • BEA Tuxedo and Sun Solaris V2.6 C++ Compiler V5.0 Problem

    Hi Friends,
    We are having problem with Tuxedo servers compiling/build using the Sun Solaris V2.6 Workshop C++ compiler V5.0. The Tuxedo servers do not boot up. The servers hang in tpopen() ATMI call. We used dbx to determine this.
    The same code when build using C compiler works fine. It seems that C++ Compiler V5.0 has some trouble with BEA Tuxedo. We even tried compat=4 option which creates V4.0 compatible object library. It also does not get us thru.
    Is anyone using this compiler for BEA tuxedo development?
    Any help would be highly appreciated.
    Best Regards
    Manoj SASIDHARAN

    Hi again!
    Did some investigation, found this:
    http://www.bea.com/support/askbea/tux/S-05487.shtml
    Best Regards
    Sven Björkegren
    Manoj SASIDHARAN skrev:
    Hi Friends,
    We are having problem with Tuxedo servers compiling/build using the Sun Solaris V2.6 Workshop C++ compiler V5.0. The Tuxedo servers do not boot up. The servers hang in tpopen() ATMI call. We used dbx to determine this.
    The same code when build using C compiler works fine. It seems that C++ Compiler V5.0 has some trouble with BEA Tuxedo. We even tried compat=4 option which creates V4.0 compatible object library. It also does not get us thru.
    Is anyone using this compiler for BEA tuxedo development?
    Any help would be highly appreciated.
    Best Regards
    Manoj SASIDHARAN[sven.bjorkegren.vcf]

  • PCC-S-02014 error while compiling with in Sun Solaris

    We are porting our application from HP-UX to Sun Solaris and as part of that I am trying the compile a Pro*C program in Sun Solaris using SUNWspro C++ compiler. Precompiling is failing with following error.
    PRECOMP set: /u01/app/oracle/product/10.2.0/bin/proc dbms=native code=cpp mode=ansi include=/u01/app/oracle/product/10.2.0/precomp
    ireclen=255 oreclen=255
    define=__sparc define=__SUNPRO_C include=/usr/include include=. include=/u01/app/SUNWspro/prod/include/CC/stlport4 include=/u01/app/oracle/product/10.2.0/rdbms/public/ include=/u01/app/oracle/product/10.2.0/network/public/ include=/u01/app/oracle/product/10.2.0/rdbms/demo/ errors=yes select_error=no
    sqlcheck=limited ltype=NONE
    release_cursor=no hold_cursor=no
    Pro*C/C++: Release 10.2.0.3.0 - Production on Thu Dec 18 03:09:59 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    System default option values taken from: /u01/app/oracle/product/10.2.0/precomp/admin/pcscfg.cfg
    Syntax error at line 44, column 30, file /u01/app/SUNWspro/prod/include/CC/stlport4/algorithm:
    Error at line 44, column 30 in file /u01/app/SUNWspro/prod/include/CC/stlport4/a
    lgorithm
    # include STLPNATIVE_HEADER(algorithm)
    .............................1
    PCC-S-02014, Encountered the symbol "(" when expecting one of the following:
    : [ ] + / . .. an identifier, a numeric constant, newline,
    define, elif, else, endif, error, if, ifdef, ifndef, include,
    line, pragma, undef, exec, sql, begin, end, var, type,
    oracle, an immediate preprocessor command, a C token, create,
    function, package, procedure, trigger, or, replace,
    Normal C++ files are getting compiled with out eny issues. This particular file is having functions written in C fashion. Any idea what is missing in the compiler option.
    regards
    Vinu

    Hi Vinu,
    I'm not sure if this is still an issue for you. When I have encountered issues like this with Pro*C I have ended up specifying parse=none to the proc command and then putting all declarations between "EXEC SQL BEGIN DECLARE SECTION" and "EXEC SQL END DECLARE SECTION" markers. I have also moved any "special" declarations into a specific header file and then placed the "#include <special header file>" inside the declare section as well.
    Perhaps that will help a bit,
    Regards,
    Mark

  • Compiling / Linking error in Solaris Studio 12.3 C++ Compiler

    Hi,
    I downloaded Solaris Studio 12.3 (SolarisStudio12.3-solaris-x86-pkg.tar.bz2) & unpacked and installed on the default directory (in non-interactive mode) of local machine running Solaris 10 10/09 s10x_u8wos_08a X86. Also applied all the required patches by running the "install_patches.sh" after running "solarisstudio.sh".
    My application has make files to take care of the building the whole application. I made necessary changes to the make files to pick up the latest Solaris 12.3 C++ compiler. I could see that it has picked up for compiling.
    While building the whole project, the source files are compiled to object files successfully but when it is creating shared object (.so) files it stops at the below error:
    /opt/solarisstudio12.3/prod/bin/CC -mt -i -library=stlport4 -zdefs -ztext -G -h xmem.so -Lpic/lib/debug/sol32 -L/MyHome/open_source/abc/lib/sol32 -L/MyHome/open_source/mno/lib/sol32 -L/MyHome/open_source/pqr/lib/sol32 -L/MyHome/open_source/xyz/lib/sol32 -g -lc -lCrun -lumem -m32 -o debug/xmem.so
    *usage: CC [ options ] files. Use 'CC -flags' for details*
    Note:
    Some third party open source libraries are being used in the project. Those libraries are not built using Solaris Studio 12.3 compilers.
    Tried changing lot of options and re-ordering the switches/options but no luck. But on changing as mentioned below the shared library DID build successfully
    - Added space after '-L' option, added '*' at the end of path like "-L/MyHome/open_source/pqr/lib/sol32/*".
    Note:*_
    +1) I tried compiling a separate small program into object files using Solaris 12.3 C++ compiler but got the above error/problem when linking the experimental libraries (shared object) with most of the options used in the above command.+
    +2) The same project gets built successfully in Solaris Studio 12.1 (studio12.1-091123) and Solaris Studio 12 (studio12-070724) but the same is failing in Solaris Studio 12.3.+
    Can someone please help me to understand the issue and resolve it? Let me know if any more information is needed.
    Thanks in advance.
    -Vijay
    Edited by: 974820 on Dec 4, 2012 7:05 PM

    Hi Steve,
    Thanks for the valuable input on the -xdebugformat option. Every suggestion of yours is helping me to proceed further to some extent. This time too, after removing the "-xdebugformat=stabs", I am able to go past the previous error.
    BUT this time I am running into -xarch option problem. I am not sure if this is a application design or compilation options issue or compiler issue. Posting it here to get some inputs to understand more on this before raising any service request with Oracle Support.
    The error details and workarounds used with their result._
    NOTE: All these compilation were passed in earlier Studio versions.
    ORIGINAL - with -xarch=sse2
    ===============================ERRORS===============================
    /opt/solarisstudio12.3/prod/bin/CC -errtags=yes -Kpic -mt -errwarn -xdepend=yes -DUSING_STUDIO11 common/xm2/x86/common/inc/templates.il -D__EXTENSIONS__ -g -xarch=sse2 -Icommon/xccolor/inc -Icommon/xm2/x86/include -Icommon/xm2/x86/assembly/inc -Icommon/xm2/x86/common/inc -Iinclude -Icommon/xm2/x86hbc/expander/inc -Icommon/xm2/x86/jpeg/inc -Icommon/xm2embedded/host/x86/hbc/inc -Icommon/xm2/common/inc -Iimg-drv//include -Icommon/xm2/config/inc -Icommon/Utilities/include -Iimg-drv/ipshared/include -Icommon/cpp/inc -I/workspaces/3rd_Party/open_source/poco-1.3.6p2/include -I/workspaces/3rd_Party/open_source/boost_1_49_0/include -I/workspaces/3rd_Party/open_source/ACE-6.0 -I/workspaces/osnl/include -I/workspaces/osnl/SunOS/include -m32 -c common/xm2/x86/hbc/src/hbc_jpeg.c -o artifacts/common/xm2/x86/obj/debug/sol32/hbc_jpeg.o
    Assembler:
    "/tmp/yabeAAAIaaOxX", line 294 : Syntax error
    Near line: " maskmovq %mm0,%ebp"
    "/tmp/yabeAAAIaaOxX", line 1175 : Syntax error
    Near line: " maskmovq %mm0,%ebp"
    Failure in /opt/solarisstudio12.3/prod/bin/fbe, status = 0x7f00
    Fatal Error exec'ing /opt/solarisstudio12.3/prod/bin/fbe
    common/xm2embedded/host/x86/src/hbc_jpeg.c:1062 Warning: mmextract_epi16 intrinsic requires -xarch=sse4_1.*
    cc: acomp failed for common/xm2/x86/hbc/src/hbc_jpeg.c
    gmake[1]: *** [_artifacts_/common/xm2/x86/obj/debug/sol32/hbc_jpeg.o] Error 2
    gmake[1]: *** Waiting for unfinished jobs....
    ===============================ERRORS===============================
    AFTER CHANGING -xarch=sse2 to -xarch=sse4_1
    ===============================ERRORS===============================
    /opt/solarisstudio12.3/prod/bin/CC -errtags=yes -Kpic -mt -errwarn -library=stlport4 -DCPU_LITTLE_ENDIAN -DDSP_LITTLE_ENDIAN -xarch=sse4_1 -DTIXML_USE_STL=1 -erroff=doubunder -g -Icommon/xm2/xm2util/src -Icommon/xm2/xm2util/inc -Icommon/xm2/common/inc -Icommon/xm2/config/inc -Icommon/xm2embedded/host/utils/inc -Icommon/xm2/imageutil/inc -Icommon/xm2/x86hbc/include -Icommon/include -Iinclude -Icommon/xcc/inc -Icommon/cpp/inc -Icommon/Util/include -I/workspaces/open_source/poco-1.3.6p2/include -I/workspaces/3rd_Party/open_source/boost_1_49_0/include -I/workspaces/3rd_Party/open_source/ACE-6.0 -I/workspaces/CP.00_compiler/docusp/osnlayer/include -I/workspaces/osnl/SunOS/include -m32 -c common/xm2/xm2/src/JPEGHelpers.cpp -o artifacts/common/xm2/xm2/src/obj/debug/sol32/JPEGHelpers.o
    "common/xm2/xm2/src/JPEGHelpers.cpp", line 918: Error, nostructsym: Variable table is not a structure.
    "common/xm2/xm2/src/JPEGHelpers.cpp", line 919: Error, nostructsym: Variable table is not a structure.
    "common/xm2/xm2/src/JPEGHelpers.cpp", line 926: Error, nostructsym: Variable clear_high2bits is not a structure.
    "common/xm2/xm2/src/JPEGHelpers.cpp", line 927: Error, nostructsym: Variable clear_high2bits is not a structure.
    "common/xm2/xm2/src/JPEGHelpers.cpp", line 1223: Error, unassigned: The variable clear_high2bits has not yet been assigned a value.
    "common/xm2/xm2/src/JPEGHelpers.cpp", line 1224: Error, unassigned: The variable table has not yet been assigned a value.
    6 Error(s) detected.
    /opt/solarisstudio12.3/prod/bin/CC -errtags=yes -Kpic -mt -errwarn -library=stlport4 -DCPU_LITTLE_ENDIAN -DDSP_LITTLE_ENDIAN -xarch=sse4_1 -DTIXML_USE_STL=1 -erroff=doubunder -g -Icommon/xm2/xm2/src -Icommon/xm2/xm2/inc -Icommon/xm2/common/inc -Icommon/xm2/config/inc -Icommon/xm2/utils/inc -Icommon/xm2/imageutil/inc -Icommon/xm2/x86/include -Icommon/xm2/include -Iinclude -Icommon/xcc/inc -Icommon/cpp/inc -Icommon/Util/include -I/workspaces/3rd_Party/open_source/poco-1.3.6p2/include -I/workspaces/3rd_Party/open_source/boost_1_49_0/include -I/workspaces/3rd_Party/open_source/ACE-6.0 -I/workspaces/osnl/include -I/workspaces/osnl/SunOS/include -m32 -c common/xm2/xm2/src/Color.cpp -o artifacts/common/xm2/xm2/src/obj/debug/sol32/Color.o
    "common/xm2/xm2/inc/JPEGStripsImage.hpp", line 85: Error, badinitlval: Initializing std::vector<unsigned, xm2::XM2Allocator<unsigned>>& requires an lvalue.
    "common/xm2/image/inc/ISelector.hpp", line 36: Error, badinitlval: Initializing std::vector<unsigned, xm2::XM2Allocator<unsigned>>& requires an lvalue.
    "common/xm2/image/inc/RasterSelectorImage.hpp", line 53: Error, badinitlval: Initializing std::vector<unsigned, xm2::XM2Allocator<unsigned>>& requires an lvalue.
    3 Error(s) detected.
    6 Error(s) detected.gmake[1]: *** [_artifacts_/common/xm2/xm2/src/obj/debug/sol32/JPEGHelpers.o] Error 2
    gmake[1]: *** Waiting for unfinished jobs....
    3 Error(s) detected.gmake[1]: *** [_artifacts_/common/xm2/xm2/src/obj/debug/sol32/Color.o] Error 2
    ===============================ERRORS===============================
    Thank you.
    Vijay

  • Compile a .FMB on Solaris

    I hava a .FMB wich was developed with FORMS BUILDER 9i on a WIN NT Machine. I transfer it via FTP on a Solaris Machine where the Oracle 9iAS is running. To get that Form running I have to compile it on solaris, right?
    ok, How Do I compile it on solaris?
    How to compile it?
    Whats f90genm.sh ?? Does anybody know how to use it or how to geht information about it?
    Is it necessary to install Forms Builder on Solaris to compile it?
    Thank you for your help!
    Greetings,
    Marc

    try with this script ( forms and menu )
    for i in `ls *.fmb`
    do
    echo compiling for $1
    frmcmp.sh Userid=<username>/<password>@alias Batch=Yes Module=$i Module_Type=Form Compile_All=Yes Window_State=Minimize
    done
    for i in `ls *.mmb`
    do
    echo compiling for $1
    frmcmp.sh Userid=<username>/<password>@alias Batch=Yes Module=$i Module_Type=MENU Compile_All=Yes Window_State=Minimize
    done

  • How can I get Firefox 3.6 to startup and load at a particular screen position - using cmd-line or other, in a Solaris SPARC/UNIX env? The xterm program uses the -geometry args as a manner of specifying position on the screen.

    I am running Firefox 3.6 - on Solaris 10 SPARC env.
    I am using the X11 - TWM(X-windows Manager). I have tried to alter the .twmrc files for the WM, but I need firefox to declare the position in the client program, else the TWM will force me to place it every time. When I use the xterm with the "-geometry" I can specify the position the xterm is opened and positioned there automatically. I have tried using the Xresource configuration settings(maybe I am doing something wrong here), but the X-server ignores it... so I believe that only firefox app can manage the positioning?
    I am out of ideas, I suppose the next step is to question the source... Any ideas of how I can achieve this auto positioning in TWM. (I have been looking into X-events to manage the placement, but this is messy)

    The version of Apache that comes default with Solaris might not be compiled for that I am not positive though. I downloaded and compiled Apach 2 and compiled mod_ssl and got it working with no problems you might want to try that.

  • Configure PATH in Solaris 8

    Hello!
    I want to ask you how to add a new path in Solaris, because I wanna compile Ethereal
    source and it say that I don't have GLIB and GTK greater than 1.2.0... bulshit! I have version
    1.2.10. Someone told me to add GLIB and GTK libraries path to original path...
    Do you know anything about this... please help me!
    Thaks.

    If it is the library path that you want to set, set it with the variable LD_LIBRARY_PATH.
    If you're having a problem with compiling from source, that's one variable you'll have to set.
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path_to_GTK_libraries:/path_to_some_other_libraries
    hth,
    Dwai.

  • Solaris 10 Netscape, Java , (Javascript) JSObject  Issue.

    Hi all,
    I am migrating the source code from solaris 8 wtih CC compiler 4.2 to solaris 10 cc compiler 5.7 on x86 Machine. Most of Problems i got solution from C++ forum so i almost through. But while building one directory that contains some java Applets i got issues:-
    1. Since its using
    import netscape.javascript.JSObject; so it was not getting this JSObject on the latest Solaris 10 Machine. what i did i copied the /outils/netscape/solaris/java_301on solaris 10 Machine from solaris 7 Machine. then i build it again. every thing got build successfully and generated Input.class file but again it gave me following message
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    then i tried with -Xlint option and it again bounce me some errors.
    So question here is that on Solaris 10 is there any thing else that i can use for Java Script i.e JSObject if there is no netscape i.e whats the default browser mozillla or netscape. and why java_301 is used and what will happend if i try something else other than java_301. as it was using
    -classpath = /outils/netscape/solaris/java_301
    while doing javac compiling. and other thing i see is
    -classpath /usr/java/lib/classes.zip
    but when i see version of java on solaris 10 there is no classes.zip. whats the use of this.??
    and when i used -Xlint it bounce error with classes.zip not found.

    This forum is about using Sun C++. Your question is about Java. You are more likely to get a helpful answer in java forum.
    Try the java forum:
    http://forum.sun.com/forum.jspa?forumID=8

  • Gcc compiler for native pl-sql (SunOS 5.9)

    Hi All !
    Whether it is possible to use native pl-sql compilation on platform Solaris 9 with the compiler gcc? I Have established gcc version 3.3.2
    At compilation of a package I receive a error: (Warning) PLS-00923: native compilation failed: make:spdtexmk:?

    Although the configuration is certified not all new 9i features are supported with previous versions of Oracle.
    In order for result set to work you will require Oracle v9i.

  • Use of strstr() in solaris 2.8

    Hi,
    I have tried to use the strstr() when developing driver driver in solaris 8 environment and compile using Forte C compiler but it can't work. My system will crash whenever I run my program. Anybody have any idea how to solve this problem.
    Thanks.

    Hi There,
    All components for Solaris 8 were built using the WS 5.0 compiler and compiling a driver with a different compiler is not supported and not good software practice...
    A Common Build Environment document which spells
    out what compiler is used to build each component of the Solaris release. This is to make sure that the Release Team can, at any time, reproduce the exact
    code for the entire release...
    You are using Forte 6 compiler to biuld the kernel module.
    I suggest you refer to the Solaris 8 Developer Collection and refer Writing Device Driver's
    Compiling, Loading, Packaging, and Testing Drivers Module.
    .....jagruti
    Developers Technical Support
    Sun Microsystems, http://www.sun.com/developers/support

  • Use of strstr() in solaris 8?

    Hi,
    I can't use the strstr() when writing kernel modules in solaris 8. I compile using Forte C compiler but when I load my module, my system will crash. Is there any other function that can replace the strstr() or where can I get compatable strstr.o ?

    Hi There,
    All components for Solaris 8 were built using the WS 5.0 compiler and compiling a driver with a different compiler is not supported and not good software practice...
    A Common Build Environment document which spells
    out what compiler is used to build each component of the Solaris release. This is to make sure that the Release Team can, at any time, reproduce the exact
    code for the entire release...
    You are using Forte 6 compiler to biuld the kernel module.
    I suggest you refer to the Solaris 8 Developer Collection and refer Writing Device Driver's
    Compiling, Loading, Packaging, and Testing Drivers Module.
    .....jagruti
    Developers Technical Support
    Sun Microsystems, http://www.sun.com/developers/support

  • Need help building boost_1_37_0 on Solaris 10 U6 with Sun Studio 12

    Hi,
    Ok, please bear with me here. I've tried many different sets of instructions, and haven't had success with any of them (including the ones at http://blogs.sun.com/sga/category/Boost).
    Operating System: Solaris 10 x86 U6
    Compiler: Sun Studio 12 (SUNCC version 5.9)
    Boost version: 1.37.0
    The ONLY part of boost that I need is regex. I've never built external libraries before and building boost on Solaris seems a rather daunting task. So, could someone please explain, as clearly as possible, how do I build the boost::regex library using SUNCC?
    I know this is a very broad topic, but since I haven't had any luck with any existing instructions that google turns up, alas I am here.
    Thanks in advance if someone can help me,
    ~Slow
    Note: I don't need any special options, any special, non-standard install paths, nothing. Just a straight, stock, boost install.
    Edited by: SlowToady on Nov 10, 2008 2:18 PM

    First, be sure you have the current patches for Sun Studio 12. You can get them here:
    http://developers.sun.com/sunstudio/downloads/patches/
    Please install the current C++ compiler patch, the C compiler patch, and the common back-end compiler patch.
    You should then be able to build BOOST 1.37.0. The only problem I know of has been filed as CR 6767881, which results in an incorrect complaint about a constructor not being accessible. But I don't think that one affects regex.
    If you running into some other problem after patching the compiler, please post enough detail that we can investigate it.
    Questions about how to build just a portion of BOOST are probably best addressed to a BOOST forum.

Maybe you are looking for

  • How to clear Vendor Debit item Through F110

    Hi All, I have a new requirement, I have a vendor for which transactions are posted in multiple currecies, like USD & EUR. I have 2 invoices for this vendor, one is in EUR, and other one is in USD, along with this i have a dabit balance for this vend

  • Returned from customer

    Hi some of the goods what we sent r returned from the customer.then we received the goods,did PGR with 655 mvt type. then quantity has to update in the qulaity. for this what is the process. any SPRO settings needed explain thanks in advance

  • Why do we need Sales area

    Hi, Can any one tell me what are all the possible reasons for this question... "Why do we need Sales area?" Regards, Nalini Ramesh

  • Windows 8 PDF Printing

    I cannot print any pdf file using acrobat on my windows 8 HP Envy touchsmart

  • Positioning a responsive composition in a containing DIV

    OK, I may be having a fruit loop moment but I've spent 2 days trying to correctly position and size a responsive composition in a basic div. I have some old compositions that I am trying to update from 2013 but when the responsive scaling is selected