Compiling c++ in Solaris 2.6

I am attempting to compile C++ programs with SUN compiler
4.2, under Solaris 2.6 in an Ultra 5 machine.
When I issue the CC command, at the end of the commmand
I append -I/path of STL library/ and I get errors on the STL
functions. It acts as if it doesn't see the STL library.
Does anyone know the proper syntax?

Here is ur program. Should compile with
CC -o vec vec.C
I feel all ur problems are only coz u'r new to STL. Please go through some documentation on "How to use STL?"
MSDN has a good tutorial.
#include <iostream.h>
#include <vector> //it's not vector.h
//"using namespace std" is VERY bad coding practice.
//instead use this.
using std::vector;
//preferably should be doing this.
typedef vector<int> VECOFINT;
int main()
VECOFINT v;
int i;
cout << "size = " << v.size() << endl;
for ( i = 0; i < 10; i++)
//u can't do v = i. use push_back();
v.push_back(i);
cout << "\nCurrent vector contents:\n";
//u have to use iterators for getting values
VECOFINT::iterator it = v.begin();
for ( ; it != v.end(); it++ )
cout << (*it) << "\n" << endl;
return 0;
}

Similar Messages

  • Compiling .fmb on solaris

    I just developed a Form with Forms9i on Windows NT.
    Now I want to deploy this form to our Application Server (9iAS Release 2) on a Solaris Machine.
    I know I cannot transfer the (NT-) compiled FMX to Solaris - I know I have to compile the FMB directly on Solaris to get
    a correct runnable FMX-File.
    My question: How to compile FMB on Solaris? I found a script "f90genm.sh". Whats that script, how to use it? Where can i find information about compiling FMBs on Solaris without Forms-Builder? Or is it a MUST to install Forms Builder on Solaris?
    Many thx for your help!
    Greetings from Germany,
    Marc Teufel

    I hope it helps
    Usage: f90genm Module=<formname> Userid=<userid/password> [Parameters].
    Optional parameters are (default values given):
    Module_Type=FORM Module type (FORM, MENU, LIBRARY).
    Statistics=NO Show statistics.
    Logon=YES Logon to database.
    Batch=NO Don't display messages on the screen.
    Output_File=<file> Write output to file.
    Script=NO Write script file.
    Parse=NO Parse script file.
    Upgrade=NO Upgrade module to current version.
    Upgrade_Roles=NO Upgrade SQL*Menu 5.0 role information.
    Version=45 Version to upgrade (23, 30, 40, 45, or menu 50).
    Crt_File=<crt file> CRT file for version 2.x form upgrade.
    Build=Yes Build a runform/runmenu file when upgrading.
    Add_Triggers=NO Add KEY-UP/DOWN triggers during upgrade.
    Nofail=NO Add NOFAIL keyword to trigger steps.
    Debug=NO Build/Run with debug information.
    Compile_All=NO Compile all PL/SQL code.
    Strip_Source=NO Strip pl/sql source code from library.
    Window_State=Normal Root window state: (Normal, Maximize, Minimize.)
    Help=NO Show this help information.
    Options_Screen=NO Display Options window (on bitmap only).
    Widen_Fields=NO Add one character to display width.
    Print_Version=NO Print version used to save module.
    Forms_Doc=NO Print Forms Doc report.

  • Compilation problem in solaris 10

    Hi,
    Iam using solaris 10 SUNW,UltraAX-i2. Iam trying to compile tripwire binaries tw_ASR_1.3.1_SRC. Iam using gcc 3.3.2, later I installed the libiconv package.
    on reading the documentation from sunfreeware i modified the file mkheaders.conf putting the line SHELL=/bin/sh in the directory
    usr/local/lib/gcc-lib/sparc-sun-solaris10/3.3.2/install-tools
    The PATH and LD_LIBRAY_PATH are like this
    # echo $PATH
    /usr/local/bin:/etc:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/ucb:/bin:/sbin/:/usr/sb
    in:/usr/man:/usr/include/
    # echo $LD_LIBRARY_PATH
    /usr/local/lib:/usr/X/lib:/usr/lib:/usr/ucblib:/lib:/usr/ccs/lib:/etc/lib:/usr/d
    t/lib
    Once I changed the configuration changes in the tripwire source. Iam trying to compile make & make install. The output of the make is like this
    # make
    (cd util; make CC=gcc CFLAGS="-O" \
    LDFLAGS="-ldl" CPP="gcc -E" SHELL=/bin/sh all)
    ### Ignore warnings about shift count negative/too large on line 36
    gcc -O -ldl byteorder.c -o byteorder
    byteorder.c: In function `main':
    byteorder.c:36: warning: left shift count >= width of type
    byteorder.c:25: warning: return type of `main' is not `int'
    (./byteorder; cat ./ntohl.h) > ../include/byteorder.h
    gcc -O -ldl types.c -o types
    types.c: In function `main':
    types.c:29: warning: return type of `main' is not `int'
    /bin/sh ./types.sh "gcc -E" > ../include/inode.h
    (cd src; make CC=gcc CFLAGS="-O" LIBS="" \
    LDFLAGS="-ldl" CPP="gcc -E" SHELL=/bin/sh \
    YACC="yacc" LEX="lex" all)
    /bin/sh help.sh help.txt > help.c
    gcc -O -c config.parse.c
    gcc -O -c main.c
    main.c:704:2: warning: no newline at end of file
    gcc -O -c list.c
    gcc -O -c ignorevec.c
    gcc -O -c dbase.build.c
    gcc -O -c utils.c
    gcc -O -c preen.c
    gcc -O -c preen.interp.c
    gcc -O -c preen.report.c
    gcc -O -c nullsig.c
    gcc -O -c config.prim.c
    gcc -O -c dbase.update.c
    lex config.pre.l
    mv lex.yy.c config.lex.c
    yacc config.pre.y
    sed 's/lex\.yy\.c/config.lex.c/' < y.tab.c > config.pre.c
    rm y.tab.c
    gcc -O -c config.pre.c
    gcc -O -c help.c
    (cd ../sigs/md5; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c md5.c
    gcc -O -I. -I.. -c md5wrapper.c
    (cd ../sigs/snefru; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c snefru.c
    (cd ../sigs/crc32; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c crc32.c
    (cd ../sigs/crc; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c crc.c
    (cd ../sigs/md4; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c md4.c
    gcc -O -I. -I.. -c md4wrapper.c
    (cd ../sigs/md2; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c md2wrapper.c
    gcc -O -I. -I.. -c md2.c
    (cd ../sigs/sha; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c sha.c
    gcc -O -I. -I.. -c shawrapper.c
    (cd ../sigs/haval; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c haval.c
    gcc -O -I. -I.. -c havalwrapper.c
    gcc -O -ldl -o tripwire config.parse.o main.o list.o ignorevec.o dbase.build.o
    utils.o preen.o preen.interp.o preen.report.o nullsig.o config.prim.o dbase.upd
    ate.o config.pre.o help.o ../sigs/md5/md5wrapper.o ../sigs/md5/md5.o ../sigs/s
    nefru/snefru.o ../sigs/crc32/crc32.o ../sigs/crc/crc.o ../sigs/md4/md4.o ../sigs
    /md4/md4wrapper.o ../sigs/md2/md2.o ../sigs/md2/md2wrapper.o ../sigs/sha/sha.o .
    ./sigs/sha/shawrapper.o ../sigs/haval/haval.o ../sigs/haval/havalwrapper.o
    gcc -O -ldl -o siggen siggen.c ../sigs/md5/md5wrapper.o ../sigs/md5/md5.o ../sig
    s/snefru/snefru.o ../sigs/crc32/crc32.o ../sigs/crc/crc.o ../sigs/md4/md4.o ../s
    igs/md4/md4wrapper.o ../sigs/md2/md2.o ../sigs/md2/md2wrapper.o ../sigs/sha/sha.
    o ../sigs/sha/shawrapper.o ../sigs/haval/haval.o ../sigs/haval/havalwrapper.o
    nullsig.o utils.o
    I think it is not showing any problem. But when I try to make install it is throwing some
    error like this. It was unable to find theinsta;; directory under /usr/local/bin. Manually I created the directory to test, it is throwing an error saying that bad file number.
    Can any one help me what could be the reason for this.
    # make install
    (cd util; make CC=gcc CFLAGS="-O" \
    LDFLAGS="-ldl" CPP="gcc -E" SHELL=/bin/sh all)
    (cd src; make CC=gcc CFLAGS="-O" LIBS="" \
    LDFLAGS="-ldl" CPP="gcc -E" SHELL=/bin/sh \
    YACC="yacc" LEX="lex" all)
    /usr/local/bin/install -d /usr/local/bin
    sh: /usr/local/bin/install: not found
    *** Error code 1
    make: Fatal error: Command failed for target `install'
    Sanjeev

    This forum is about using Sun Studio. Your question is about tripwire, which is not a Sun product, and gcc, which is not Sun Studio. I suggest you take your question to a tripwire forum. Check the location where you got tripwire for a support forum.

  • Announcing availability of  x86 hosted cross compiler for SPARC/Solaris

    We are pleased to announce the release for GCC For Sun Systems 4.2.0 cross compilers!
    This is a Solaris/x86 hosted compiler with target code generation for
    SPARC/Solaris systems. If you develop on your OpenSolaris, or Solaris
    x86 laptop or desktop, you can now start compiling your sources for
    SPARC systems. Almost all features available in the
    native SPARC GCC For Sun Systems 4.2.0 compiler are available
    for use in the cross compiler. Please refer to the mini cross compiler howto
    page for additional details on install and usage, and gotchas in cross
    development environment.
    Please continue to provide us your feedback and issues, which helps
    us make the product better.
    Thanks
    GCCFSS team

    Can GCCFSS also cross compile from in reverse - from SPARC to x86/x64?
    Thank you

  • Mod-JK compilation on Sun Solaris 10 (SPARC)

    HI,
    Can any one help me for sucessful compilation of tomcat-connector-1.2.26-src i.e mod-jk on sun solaris platform 10 sparc
    server.
    I followed below steps
    ./configure --with-apxs=/usr/apache2/bin/apxs
    make
    in make this gives following error:
    Making all in common
    Making all in apache-2.0
    /bin/bash /var/apache2/build/libtool silent mode=link /opt/SUNWspro/bin/cc -I/usr/apache2/include -g -O2 -DUSE_APACHE_MD5 -I ../common -I /include -I /include/unix -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xarch=v8 -xspace -W0,-Lt -W2,-Rcond_elim -Xa -xildoff -xO4 -DSSL_EXPERIMENTAL -DSSL_ENGINE -DHAVE_APR -I/usr/share/src/apache2/srclib/apr/include -I/usr/share/src/apache2/srclib/apr-util/include -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 `/usr/apache2/bin/apxs -q LDFLAGS` -o mod_jk.la -module -rpath /usr/apache2/libexec -avoid-version mod_jk.lo ../common/jk_ajp12_worker.lo ../common/jk_connect.lo ../common/jk_msg_buff.lo ../common/jk_util.lo ../common/jk_ajp13.lo ../common/jk_pool.lo ../common/jk_worker.lo ../common/jk_ajp13_worker.lo ../common/jk_lb_worker.lo ../common/jk_sockbuf.lo ../common/jk_map.lo ../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo ../common/jk_ajp14_worker.lo ../common/jk_md5.lo ../common/jk_shm.lo ../common/jk_ajp_common.lo ../common/jk_context.lo ../common/jk_url.lo ../common/jk_status.lo
    ld: fatal: file .libs/mod_jk.o: open failed: No such file or directory
    *** Error code 1
    make: Fatal error: Command failed for target `mod_jk.la'
    Current working directory /opt/tomcat-connectors-1.2.26-src/native/apache-2.0
    *** Error code 1
    The following command caused the error:
    failcom='exit 1'; \
    for f in x $MAKEFLAGS; do \
    case $f in \
    *=* | --[!k]*);; \
    k) failcom='fail=yes';; \
    esac; \
    done; \
    dot_seen=no; \
    target=`echo all-recursive | sed s/-recursive//`; \
    list='common apache-2.0'; for subdir in $list; do \
    echo "Making $target in $subdir"; \
    if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
    else \
    local_target="$target"; \
    fi; \
    (cd $subdir && make $local_target) \
    || eval $failcom; \
    done; \
    if test "$dot_seen" = "no"; then \
    make "$target-am" || exit 1; \
    fi; test -z "$fail"
    make: Fatal error: Command failed for target `all-recursive'

    The only thing I can really suggest is to scan your log files to see if the building of this object failed earlier on.
    Thanks
    Prashanth

  • Solaris 8 compiled binaries on solaris 10 box

    Hi all,
    I have a plain C code which compiles and runs fine on my solaris 8 box. I have to deploy the compiled binaries (on soalris 8) on a different machine which has solaris 10 installed.
    My application uses libqt-ms.so.3, libqutil.so.1.0.0, libjpeg.so.6, libstdc++.so.2.10.0, posix threads and tcp/ip sockets.
    Will this cause any problems. or will i have to make a separate binary for solaris 10. If that is the case will i need new library files or the current one will work fine
    Best Regards,
    Faran

    well I have tried it actually. and the behavior is weird. On my solaris 8 box. Every thing works perfectly fine. But due to some reason on solaris 10 machine the values i transmit over the tcp socket totally change. i send a msgCode = 1 , 2, or 3 ... but on the other end, which is a windows machine i get strange values 210, 10, 35 49 etc etc ... is this due to version problem.

  • 64-bit compilation problem on Solaris/Intel: 7th argument not initialized

    I have a problem when compiling a program on a 64-bit Solaris Intel server. The problem is that when calling a function, if the 7th or next arguments are long arguments and I pass uncasted small integers values to it, the first 32-bit of my values are uninitialized.
    I have isolated the problem in the following source code.
    #include <stdio.h>
    #include <strings.h>
    void fnc1(a,b,c,d,e,f,g,h)
    long a,b,c,d,e,f,g,h;
    printf("%ld,%ld,%ld,%ld,%ld,%ld,%ld,%ld\n", a,b,c,d,e,f,g,h);
    void main()
    fnc1(0x10101010deadbeef,0x20202020deadbeef,
         0x30303030deadbeef,0x40404040deadbeef,
         0x50505050deadbeef,0x60606060deadbeef,
         0x70707070deadbeef,0x80808080deadbeef);
    fnc1(1,2,3,4,5,6,7,8);
    }I compile it using the following command:
    cc src1.c -g $* -m64 -o prog1.exeWhen I run the resulting .exe, I get the following result:
    1157442768875667183,2314885534015405807,3472328299155144431,4629771064294883055,5787213829434621679,6944656594574360303,8102099359714098927,-9187201948855714065
    1,2,3,4,5,6,8102099355978170375,-9187201952591642616The problem is that the first 32 bits of my 7th and 8th arguments are not initialized when the function is called.
    I know that in the following cases, I do not have the problem:
    - if I cast the arguments;
    - on other platforms (AIX, SunOs/Sparc, HPUX) or if I compile in 32-bit;
    - if I use optimization (-xO1 to -xO5) ;
    - if I prototype my function at the beginning of my source (void fnc1(long a,long b,long c,long d,long e,long f,long g,long h););
    I have over 1,000,000 lines of existing code to support. I am afraid using optimization would have other impacts and for now, I cast the arguments as problems are reported. Would there be a better way to handle this? By using a compiler switch?
    Thanks in advance.

    Tom.Truscott wrote:
    clamage45 wrote:
    But if you are passing to an ellipsis, you either cast actual arguments to the type the function expects, or the function extracts the default promoted type. Such code always works ...Yes, and developers should attempt to accomplish just that. Alas this is very difficult to ensure, particularly given the lack of a run-time type checking mechanism.In theory, proper use of the ellipsis function would be documented, and programmers would read and follow the documentation. In practice, some programmers don't read the instructions, or forget them, or someone ill-advisedly changes the way the function works so that existing calls stop working. Variable-argument functions are a fragile mechanism. (I program almost exclusively in C++, which has combinations of features such that variable-argument functions are rarely, if ever, needed.)
    Can one even assume that the value of the NULL macro is correct? Never, because the C standard allows a variety of definitions for NULL, and implementations vary. Passing NULL to an ellipsis is a recipe for failure. Don't do it.
    >
    Suppose you have function FI with an ellipsis that expects to get int arguments, and another FL that expects to get long arguments. When you port the code to a 64-bit environment, function FL fails. If you use the -signext option, function FI will fail.Ah, but for us FL never fails, since the compilers always widen the arguments. I fail to see the circumstance in which widening would cause FI to fail, could you please give a more specific example?
    void FI(int count, ...)
        va_list va;
        va_start(va, count);
        int t;
        while( --count >= 0) {
           t = va_arg(va, int);
           do_something(t);
    }Function FI expects to extract 32-bit int arguments. If compiled with -signext, the calling function will pass 64-bit arguments. Perhaps the -signext option also causes the 32-bit extraction to be changed to a 64-bit extraction. I have no personal experience with the option, and I'm not in a position where I can experiment right now.

  • Help: Compiling mod_jk2 in solaris 10

    Hi everyone,
    I am trying to setup apache (bundled with Xampp) to work with tomcat through the jk connector. My server is Solaris SPARC 10. I couldn't find the binary distribution of mod_jk2 for Solaris 10 on the net (any one have it ????),
    Iam trying to compile it from source but Iam getting this problem when trying to execute the following:
    - unzip the source
    - go to jk/native2 dir
    - run ./buildconf.sh
    - run ./configure --with-apxs2=APACHE_HOME/bin/apxs
    I got the following (these are only the last 3 lines)
    need to check for Perl first, apxs depends on it...
    checking for perl... /usr/bin/perl
    could not find /space/home/akhidir/xampp/bin/apxs
    configure: error: You must specify a valid --with-apxs2 path
    I have tried the last command with multiple ways, for example when I gave it wrong path such as the following, I got a different error
    - run ./configure --with-apxs2=APACHE_HOME/bin/apxs3
    no apxs given
    need to check for Perl first, apxs depends on it...
    checking for perl... /usr/bin/perl
    configure: error: Invalid location for apxs: '/space/home/akhidir/xampp/bin/apx3'
    I have searched the net but no clue in such problem, any ideas why I am getting this error cause I have tried everything... If anyone happened to have a binary distribution for Solaris 10 please pass it to me.
    my xampp ([2006-01-15] XAMPP for Solaris 0.8.1 BETA) version includes:
    Apache 2.2.0
    Perl 5.8.3
    Thanks & Regards
    Bakry

    Hi everyone,
    I am trying to setup apache (bundled with Xampp) to work with tomcat through the jk connector. My server is Solaris SPARC 10. I couldn't find the binary distribution of mod_jk2 for Solaris 10 on the net (any one have it ????),
    Iam trying to compile it from source but Iam getting this problem when trying to execute the following:
    - unzip the source
    - go to jk/native2 dir
    - run ./buildconf.sh
    - run ./configure --with-apxs2=APACHE_HOME/bin/apxs
    I got the following (these are only the last 3 lines)
    need to check for Perl first, apxs depends on it...
    checking for perl... /usr/bin/perl
    could not find /space/home/akhidir/xampp/bin/apxs
    configure: error: You must specify a valid --with-apxs2 path
    I have tried the last command with multiple ways, for example when I gave it wrong path such as the following, I got a different error
    - run ./configure --with-apxs2=APACHE_HOME/bin/apxs3
    no apxs given
    need to check for Perl first, apxs depends on it...
    checking for perl... /usr/bin/perl
    configure: error: Invalid location for apxs: '/space/home/akhidir/xampp/bin/apx3'
    I have searched the net but no clue in such problem, any ideas why I am getting this error cause I have tried everything... If anyone happened to have a binary distribution for Solaris 10 please pass it to me.
    my xampp ([2006-01-15] XAMPP for Solaris 0.8.1 BETA) version includes:
    Apache 2.2.0
    Perl 5.8.3
    Thanks & Regards
    Bakry

  • Compiling perl on Solaris x86 in 64bit mode with libperl.so

    Hello,
    I am trying to compile perl 5.10.0 on solaris 10/x86 in 64bit mode, some basic infos are:
    System: SunOS oven 5.10 Generic_120012-14 i86pc i386 i86pc
    Compiler: gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) which comes with SUNWgcc
    To compile in 64bit I add the -m64 to linker and compiler flag.
    I also point the Configure to appropriate 64bit library directories.
    Static compilation without libperl.so build works like a charm, with libperl.so it compiles as well but execution of perl or miniperl results in:
    ld.so.1: miniperl: fatal: relocation error: R_AMD64_PC32: file /export/home/keeper/build/perl-5.10.0/libperl.so: symbol main: value 0x2800117364c does not fit
    Same happens with perl 5.8.8 btw.
    I have tried to add / remove -fPIC flag, result is the same.
    I am also 100% sure that the correct libperl.so is taken.
    Anyone had success in this?

    Hi,
    I have tried that option and I did get some information. After dlopen when I am trying to close using dlclose, the application is crashing. The log is given below.
    21694: file=/tmp/test/lib/app/comp/sparcv9/DNSRR.so; dlclose()
    21694:
    21694: handle=/tmp/test/lib/app/comp/sparcv9/DNSRR.so; collected for possible removal [ GPH_INITIAL ]
    21694:
    21694: handle=/tmp/test/lib/app/comp/sparcv9/DNSRR.so; deleting:
    21694: file=/tmp/test/lib/app/comp/sparcv9/DNSRR.so; object deleting
    21694: file=/usr/lib/sparcv9/libCrun.so.1; object removed from handle [ NODELETE ]
    21694: file=/usr/lib/64/libc.so.1; object removed from handle [ GLOBAL  NODELETE ]
    Bus error
    21694: file=/usr/lib/64/libdl.so.1; object removed from handle [ GLOBAL  NODELETE ]
    21694: file=/usr/lib/sparcv9/libCstd.so.1; object deleting
    21694:
    21694:
    21694: notify debugger: event: RD_DLACTIVITY state: RT_DELETE
    21694:
    21694:
    21694: file=/tmp/test/lib/app/comp/sparcv9/DNSRR.so; deleting
    21694:
    21694: file=/usr/lib/sparcv9/libCstd.so.1; deleting
    21694:
    21694: notify debugger: event: RD_DLACTIVITY state: RT_CONSISTENT
    21694:
    21694:
    21694: file=/tmp/test/lib/app/bin/sparcv9/STD; add binding to:
    21694: file=/usr/lib/64/libsocket.so.1 [ NEEDED  REFERENCED ]
    Fault signal: SIGBUS (10), invalid address alignment.
    At instruction address 0xffffffff7dd4f4a8, faulting access address is 0x4e5352532eb264cc
    Symbolic location: "realloc + 0x474 [usr/lib/sparcv9/libc.so.1]"
    21694:
    21694: ld.so.1: app: fatal: address 0x4e5352532eb264cc does not fall within any mapped object
    21694:
    ------ Concluding frames leaf call (n=1) ------
    # 0 0x7dd4f4a8 realloc + 0x474 [usr/lib/sparcv9/libc.so.1]
    [0x1,0x1f3620,0x1,0x1f3620,0x1,....]
    # 1 0x7dd4f444 realloc + 0x410 [usr/lib/sparcv9/libc.so.1]
    Does this mean that there is a problem with the library /usr/lib/sparcv9/libc.so.1 or /usr/lib/sparcv9/libCstd.so.1 or any other library ??
    Thanks in advance

  • Cross compiling apps on solaris 8 for solaris 10 x86 and x64

    Hi All,
    We have a few applications built on Solaris 8. and we want to build the same apps on Solaris 10 x86 and x64 but the problem is clearcase does not support Solaris 10 yet.
    Can we cross compile the apps on Solaris 8 for Solaris 10 x86 and x64 ? and how ?
    waiting for any info on this.
    TIA,
    warm regards,
    Girish

    FYI, I noticed the reply on Sun Studio General Forum:
    If you build an app on one version of Solaris, the app will run on later Solaris versions. So in particular, you can build an x86 application on Solaris 8 and run it on Solaris 9 and 10.
    Unfortunately, an x64 application must be built on a Solaris x64 system, which first became available with Solaris 10.

  • When trying to compile forms in solaris machine, frmcmp.sh not found error

    Hi
    I want to compile my forms using frmcmp.sh in a solaris machine
    When I try to execute
    /u15/10gAs/bin/frmcmp.sh /u15/10gAs/forms/form1.fmb user/pass@database
    it throws me error that frmcmp.sh is not found
    it is searching in the whatever path set in ORACLE_HOME
    could you please tell me what should I do now?
    regards

    The following is just a SAMPLE and you may not need all of them and you will have to modify the paths to match your system.
    ########## Oracle Variables ##########
    echo " Welcome to oracle";
    ORACLE_BASE=/u01/app/oracle
    ORACLE_OWNER=oracle; export ORACLE_OWNER
    ORACLE_TERM=xterm; export ORACLE_TERM
    ORACLE_HOME=/u01/app/oracle/product/9.2.0.1.0
    ORACLE_SID=ORTD
    LD_PRELOAD=$HOME/libcwait.so
    export DISPLAY=172.28.66.39:0.0
    PATH=$PATH:$ORACLE_HOME/bin
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$ORACLE_HOME/network/lib
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
    export CLASSPATH
    LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL
    THREADS_FLAG=native; export THREADS_FLAG
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    export PATH ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH LD_PRELOAD
    ########## End of Oracle variables ##########I recommend you dig through the installation manual for the version of Oracle you have installed and setup your profile settings based on your installation. If you still need help after that, you might want to post your question in the Database Installation forum. Once you have your environment setup, you should be able to compile your form(s).
    Hope this helps,
    Craig
    If a response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Apr 27, 2010 8:11 AM
    Edited by: CraigB on Apr 27, 2010 8:14 AM

  • Unable to compile nagios in Solaris 10

    Hi group,
    I am trying to compile nagios package on my solaris 10 box, but I am having some issues.
    I have Solaris 10 with Solaris Studio 12.3 and nagios 3.3.1
    This is the error message that I am getting when I execute "make all" command:
    $ make all
    cd ./base && make
    gcc -Wall -g -O2 -I/usr/local/include/ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -m64 -mcpu=v8 -D_TS_ERRNO -I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -DHAVE_CONFIG_H -DNSCORE -c checks.c
    checks.c: In function `run_async_service_check':
    checks.c:552: warning: dereferencing type-punned pointer will break strict-aliasing rules
    checks.c:697: warning: dereferencing type-punned pointer will break strict-aliasing rules
    checks.c:711: error: `n_a' undeclared (first use in this function)
    checks.c:711: error: (Each undeclared identifier is reported only once
    checks.c:711: error: for each function it appears in.)
    checks.c:711: warning: left-hand operand of comma expression has no effect
    checks.c:352: warning: unused variable `Perl___notused'
    *** Error code 1
    make: Fatal error: Command failed for target `checks.o'
    Current working directory /na01/nag01/nagios/base
    *** Error code 1
    make: Fatal error: Command failed for target `all'
    I execute configure command with next flags:
    ./configure with-nagios-user=nag01 with-nagios-group=nag with-command-group=nag enable-embedded-perl with-perlcache with-httpd-conf=/usr/local/apache2/conf with-gd-lib=/usr/local/lib with-gd-inc=/usr/local/include/
    Any idea, help or advice will be really appreciated.
    Thanks in advance.
    Kind regards,
    Francisco

    hello, you don't have to use hme0, that may not be your NIC type. your NIC appears to be realtek adapter. download the drivers first [try here: http://homepage2.nifty.com/mrym3/taiyodo/rf-1.0.9.tar.gz] install them, then your NIC will have a name like rt0. you can then proceed to set its interface.i hope ifconfig -a, blah,blah is ok with u. If the adapter is ok then you can now do the zones - they are just automatic no strugling!
    you can also find the drivers from realtek website at -- ftp://152.104.238.194/cn/nic/rtl8139abcd8130810xseries/rtls211.zip
    here are sample instructions on how to install the driver
    How to install Solaris/x86 version
    1. This is the version 2.1.1 RTL8139 serials driver for Solaris/x86
    version.
    2. It support Speed/Duplex-Force mode, you can set it through rtls.conf file.
    3. It supports 3 PCI-VID_DID cards, VID_10EC_DID_8139 for Realtek's
    native, VID_1113_DID_1211 for Accton and VID_1186_DID_1301 for
    D-Link in the install script.
    4. Install method:
    a. Power-off your PC and insert your RTL8139 adapter.
    b. Boot-up you Solaris/x86 and login as "root".
    c. Copy the "rtls211.zip" into the temporary location in your
    hard-driver.
    d. UNZIP the "rtls211.zip" and you will get 3 files, "rtls", "rtls.conf" and
    "Install".
    e. If the PCI ID for your RTL8139 adapter is not VID_10EC_DID_8139
    or VID_1113_DID_1211 or VID_1186_DID_1301, you can modify the
    "Install" file to match your PCI ID, VID_ABCD_DID_WXYZ for example,
    modify the "pci1186,1301" to "pciABCD,WXYZ".
    f. Run the "Install" from File Manager to install the driver, and
    it will modify 2 files, "/etc/name_to_major" and "/etc/driver_aliases"
    g. You need to create the "/etc/hostname.rtls0" file and modify some
    other related files to make your networking environments working well.
    h. You can execute "touch /reconfigure" then "shutdown -i5 -g0", so that
    Solaris will reboot and scan changed hardware environment.
    i. You can execute "ifconfig -a" to make sure the RTL8139 driver is up.
    success. bye

  • Issue in compiling code on solaris 10 - please help

    I wanted to migrate old PRO *C source code to solaris 10 and oracle 10 enviroment, so copied all files , done settings and tried compiling it. It is giving below error. Any guess why it is happening?
    Syntax error at line 69, column 2, file /usr/include/sys/uio.h:
    Error at line 69, column 2 in file /usr/include/sys/uio.h
    lloff_t uiooffset; /* file offset */
    .1
    PCC-S-02201, Encountered the symbol "lloff_t" when expecting one of the followin
    g:
    } char, const, double, enum, float, int, long, ulong_varchar,
    OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
    OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
    OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
    struct, union, unsigned, utext, uvarchar, varchar, void,
    volatile, a typedef name,
    The symbol "enum," was substituted for "lloff_t" to continue.

    I wanted to migrate old PRO *C source code to solaris 10 and oracle 10 enviroment, so copied all files , done settings and tried compiling it. It is giving below error. Any guess why it is happening?
    Syntax error at line 69, column 2, file /usr/include/sys/uio.h:
    Error at line 69, column 2 in file /usr/include/sys/uio.h
    lloff_t uiooffset; /* file offset */
    .1
    PCC-S-02201, Encountered the symbol "lloff_t" when expecting one of the followin
    g:
    } char, const, double, enum, float, int, long, ulong_varchar,
    OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
    OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
    OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
    struct, union, unsigned, utext, uvarchar, varchar, void,
    volatile, a typedef name,
    The symbol "enum," was substituted for "lloff_t" to continue.

  • Compiling mono under Solaris 10: workaround for __builtin_frame_address ?

    Hi,
    I'm trying to compile the current svn release of mono (free implementation of .NET framework) under Solaris 10/x86.
    After fixing some GCC specific code, I'm currently stuck with the GCC internal function __builtin_frame_address (and __builtin_return_address).
    These functions return information about the current stack trace, e.g. the function that invokes the current function. They are used in the integrated debugger for single stepping and other functionality.
    So far I haven't been able to find a workaround for these function within the Studio Compiler.
    What's is the best way to implement these function? Does the Studio Compiler (or the libc or some other library) already provide the necessary functionality?
    With best regards,
    Burkhard Linke

    I'm afraid you have to write assembly code for that sort of functions

  • 64-bit compiling: problem in Solaris 2.8 workshop 6 update 2

    Hi,
    I have a probleme compiling 64bit application. Each time I try to link the object-files I get an error:
    ld: fatal: ......./file sgm_register.o: wrong ELF class: ELFCLASS64
    I need to compile it in 64bit-mode because of ability to read files with sizes greater 2GB.
    The system is able to run 64bit applications:
    $ isainfo -v
    64-bit sparcv9 applications
    32-bit sparc applications
    Used compiler-options are
    cc -Kpic -xarch=v9
    OP: Solaris 8
    cc: Sun WorkShop 6 update 2 C 5.3 Patch 111679-06 2002/03/11
    It would be nice if someone can help me solving the problem!
    Many thanks,
    Matthias

    You may be mixing 32-bit and 64-bit object files. Did you
    compile all the files with -xarch=v9 and are you linking
    with -xarch=v9?

Maybe you are looking for

  • Can't file share with iMac from Windows XP-Pro laptop

    New to the game, but can't get Windows laptop to recognize iMac DVD. Need to download program to laptop which doesn't have DVD reader, just CD. AppleCare has the iMac end up and running. Any ideas? THanks.

  • Broke my old computer, how can i get my old account on to new computer?

    My old computer was destroyed before I could retrieve any information off of it.  I was given a computer that already had itunes installed, but now I can't use this new computer as my primary account and cannot sync my ipod with this new computer wit

  • Is there any better way to refresh?

    Hello I would like to know if anyone here has a better solution for refreshing components like JPanels. I'm developing an application which uses slow algorithms to draw the points on them. It would be absurd to call these methods again to simply refr

  • NullPointerException in LDAP Connector

    Hi guys, I'm trying to use the LDAP connector in my applications. I'm following the tutorial on https://identityconnectors.dev.java.net/api_info.html but I'm experiencing a NullPointerException when I call a SEARCH operation. I'm using: Java SDK 1.6

  • Urgent--"JoptionPane"-to add keylistener

    I have a problem regarding the key listeners added to joptionpane. whether we can add key listeners to joptionpane.and if so how??? second poblem: when joptionpane with confirmdoaolig box with 3 options is shown then it has yes and no option with the