Compilation problem with GCC 3.3.2 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

Unable to Deploy Toplink-EJB to Standalone OC4J (4605867)
http://www.oracle.com/technology/products/jdev/htdocs/10.1.3.0.3/early_access_addendum.htm#dep1

Similar Messages

  • Darwin and problem with gcc

    Hi,
    I'm trying to compile c-programs with gcc installed with the xtools from the tiger 1.4.8-cd on my system. For the first step I tried a "Hello World" program.
    When I compile it with 'gcc HelloWorld.cpp' on a linux system I get a a.out, and this is the program, that tells me "Hello World!".
    When I try
    "me$ gcc HelloWorld.cpp"
    on my MacBook, then I get the error message
    "/usr/bin/ld: Undefined symbols:
    __gxx_personalityv0
    collect2: ld returned 1 exit status"
    What is wrong on my system?
    Can anyone please help me to solve this problem?
    Best regards,
    Boltzmann
    The source code is ;-):
    #include<stdio.h>
    int main()
    printf("Hello World!");
    return 0;
    MacBook 13"   Mac OS X (10.4.8)   1gb ram; 1.83Mhz; 60gb disk space

    Name the file HelloWorld.c; .cpp is for C++. If you want to compile C++, use g++, which links to the proper libraries for C++.

  • Compilation problem with templates while using option -m64

    Hi,
    I have compilation problem with template while using option -m64.
    No problem while using option -m32.
    @ uname -a
    SunOS snt5010 5.10 Generic_127111-11 sun4v sparc SUNW,SPARC-Enterprise-T5220
    $ CC -V
    CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
    Here is some C++ program
    ############# foo5.cpp #############
    template <typename T, T N, unsigned long S = sizeof(T) * 8>
    struct static_number_of_ones
    static const T m_value = static_number_of_ones<T, N, S - 1>::m_value >> 1;
    static const unsigned long m_count = static_number_of_ones<T, N, S - 1>::m_count + (static_number_of_ones<T, N, S - 1>::m_value & 0x1);
    template <typename T, T N>
    struct static_number_of_ones<T, N, 0>
    static const T m_value = N;
    static const unsigned long m_count = 0;
    template <typename T, T N>
    struct static_is_power_of_2
    static const bool m_result = (static_number_of_ones<T,N>::m_count == 1);
    template <unsigned long N>
    struct static_number_is_power_of_2
    static const bool m_result = (static_number_of_ones<unsigned long, N>::m_count == 1);
    int main(int argc)
    int ret = 0;
    if (argc > 1)
    ret += static_is_power_of_2<unsigned short, 16>::m_result;
    ret += static_is_power_of_2<unsigned int, 16>::m_result;
    ret += static_is_power_of_2<unsigned long, 16>::m_result;
    ret += static_number_is_power_of_2<16>::m_result;
    else
    ret += static_is_power_of_2<unsigned short, 17>::m_result;
    ret += static_is_power_of_2<unsigned int, 17>::m_result;
    ret += static_is_power_of_2<unsigned long, 17>::m_result;
    ret += static_number_is_power_of_2<17>::m_result;
    return ret;
    Compiation:
    @ CC -m32 foo5.cpp
    // No problem
    @ CC -m64 foo5.cpp
    "foo5.cpp", line 20: Error: An integer constant expression is required here.
    "foo5.cpp", line 36: Where: While specializing "static_is_power_of_2<unsigned long, 16>".
    "foo5.cpp", line 36: Where: Specialized in non-template code.
    "foo5.cpp", line 26: Error: An integer constant expression is required here.
    "foo5.cpp", line 37: Where: While specializing "static_number_is_power_of_2<16>".
    "foo5.cpp", line 37: Where: Specialized in non-template code.
    "foo5.cpp", line 20: Error: An integer constant expression is required here.
    "foo5.cpp", line 43: Where: While specializing "static_is_power_of_2<unsigned long, 17>".
    "foo5.cpp", line 43: Where: Specialized in non-template code.
    "foo5.cpp", line 26: Error: An integer constant expression is required here.
    "foo5.cpp", line 44: Where: While specializing "static_number_is_power_of_2<17>".
    "foo5.cpp", line 44: Where: Specialized in non-template code.
    4 Error(s) detected.
    Predefined macro:
    @ CC -m32 -xdumpmacros=defs foo5.cpp | & tee log32
    @ CC -m64 -xdumpmacros=defs foo5.cpp | & tee log64
    @ diff log32 log64
    7c7
    < #define __TIME__ "09:24:58"
    #define __TIME__ "09:25:38"20c20
    < #define __sparcv8plus 1
    #define __sparcv9 1[snipped]
    =========================
    What is wrong?
    Thanks,
    Alex Vinokur

    Bug 6749491 has been filed for this problem. It will be visible at [http://bugs.sun.com] in a day or two.
    If you have a service contract with Sun, you can ask to have this bug's priority raised, and get a pre-release version of a compiler patch that fixes the problem.
    Otherwise, you can check for new patches from time to time at
    [http://developers.sun.com/sunstudio/downloads/patches/]
    and see whether this bug is listed as fixed.

  • OCCI compilation issue with gcc-3.2.3 on Red Hat ES 2.1

    Hello,
    If I use OCCI of Oracle 10g and try to compile it with gcc-3.2.3 on Red Hat ES 2.1, I get linking errors.
    The same works if I try to compile OCCI on Red Hat ES 3.0.
    Any clues about how to compile the OCCI on RedHat ES/AS 2.1?

    Yes, I downloaded the OCCI for gcc-3.2.3.
    As I said it works on Red Hat 3.0.
    I want to compile it on Red Hat ES 2.1.
    I have installed gcc-3.2.3 on Red Hat ES 2.1. But the occi compilation wont succeed onto it.

  • [svn:fx-trunk] 11707: Fix incremental compilation problem with styles.

    Revision: 11707
    Author:   [email protected]
    Date:     2009-11-12 10:52:49 -0800 (Thu, 12 Nov 2009)
    Log Message:
    Fix incremental compilation problem with styles.
    QE notes: None.
    Doc notes: None.
    Bugs: SDK-24173
    Reviewer: Paul
    Tests run: checkintests
    Is noteworthy for integration: No.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24173
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java

    You have used elements like header, footer, footer1 and nav without using the correct DOCTYPE declaration. Replace the first line of your code with
    <!doctype html>
    Also have a look here for other problems http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fhome.surewest.net%2Fstorytales%2F test%2Fforposting.html
    After the above has been fixed, please come back here to fix the remaining problem(s)
    Gramps

  • Problems with GCC version - compiling OpenOffice

    I am trying to compile OpenOffice 4.1.1 to run on 10.6.8. When I run the ./configure it runs for a few seconds then shows the following error:
    "checking the GNU gcc compiler version... configure: error: found version "1.0.2", use version 3+ of the gcc compiler"
    If I run:
    gcc -v
    I get:
    gcc version 4.2.1 (Apple Inc. build 5659)
    Any ideas on how to fix this?
    Thanks

    I suppose the real incentive is to be able to just continue using 10.6. But it seems from other feedback that the problem with OpenOffice 4.1 is dependencies on libraries in 10.7, rather than the GCC version. I know that I could probably eventually code around those dependencies, but it would certainly involve more time and effort than I am currently able to devote to it.
    I have tried LibreOffice in the past, but frankly I found it so horrible and slow (I think because of its dependency on Java) that I ended up using the X11 version of OpenOffice - which in itself was not a terrific user experience, but was a lot better than the alternative.
    I will try the version you have mentioned, but I also note that this is planned to be obsolete by May next year, and is also the last version that will support 10.6 or 10.7 (10.8 will be the lowest requirement). Which will leave a fair number of 64-bit intel machines unsupported, since some of those are only able to run 10.7. Thanks for the feedback.

  • Problem with gcc-like inline assembly in cc

    Hi,
    I am trying to compile the following code for a sparc machine using sun studio 12.
    #define MAGIC(n)  asm("sethi %0, %%g0" : :"g"(n));
    int main(int argc, char **argv)
            int x=1;
            MAGIC(x);
            return 0;
    }I am using the following command:
    cc -xO3 -xtarget=ultra2 -m32 -xarch=sparcvis -xregs=no%appl -w test.c -o test
    and I get the following error:
    cg error (as) : "__gnu_asm_inline_fake_test.c (template for __gnu_asm_inline_temp_func_001)", line 1 : statement syntax
    cc: cg failed for test.c
    Isn't Sun cc supposed to support gcc-like inline assembly? If so, what is the problem with the code above?
    Thanks in advance,
    Nick

    Hi,
    we have the same Problem with the inline assembler. We are using Sunstudio 12 on x86 and tried to get this code compiled (Sunstudio 12 should be gas compatible).
    any ideas ?
    thanks
    Dieter
    #define HEC_HTONF(x) \
    (__extension__ \
    register HVB::float32_t __v, __x = (x); \
    __asm__ ( \
    "bswap %0" \
    : "=r" (__v) \
    : "0" (__x) \
    __v; \
    #define HEC_HTONLF_INPLACE(x) \
    __asm__ ( \
    "leal %0, %%ecx \n\t" \
    "movl (%%ecx), %%eax \n\t" \
    "movl 4(%%ecx), %%edx \n\t" \
    "bswap %%eax \n\t" \
    "bswap %%edx \n\t" \
    "movl %%eax, 4(%%ecx) \n\t" \
    "movl %%edx, (%%ecx) \n\t" \
    : "=m" (x) \
    : "m" (x) \
    : "%eax", "%ecx", "%edx" \
    );

  • Problem with gcc -pg

    Hello,
    I have a problem using profiling on solaris 8 using gcc. When I compile a small test program with gcc -g -pg, it compiles and runs correctly. However, when I build my main application using the same flags at the compilationa and likning steps, the build completes successfully but
    the application gives a segemntation fault. Is it a bug? Does gcc have a problem profiling in presence of threads or shared libs?
    Thanks in advance,
    Rajsekhar Bhattacharjee (Raj)
    The relevant details are as follows:
    OS (using uname -a): SunOS 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Blade-100
    gcc version (using gcc -v): gcc version 2.95.3 20010315 (release)
    debugger output :
    GNU gdb 5.0
    Copyright 2000 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB. Type "show warranty" for details.
    This GDB was configured as "sparc-sun-solaris2.8"...
    Core was generated by `/home/raja/zentime/bin/solaris/gprof/zentime /mnt/elmer/export/home1/TestSyst
    em'.
    Program terminated with signal 11, Segmentation Fault.
    Reading symbols from /usr/lib/libdl.so.1...done.
    Loaded symbols for /usr/lib/libdl.so.1
    Reading symbols from /usr/lib/libpthread.so.1...done.
    Loaded symbols for /usr/lib/libpthread.so.1
    Reading symbols from /usr/lib/libcurses.so.1...done.
    Loaded symbols for /usr/lib/libcurses.so.1
    Reading symbols from /usr/lib/libsocket.so.1...done.
    Loaded symbols for /usr/lib/libsocket.so.1
    Reading symbols from /usr/lib/libnsl.so.1...done.
    Loaded symbols for /usr/lib/libnsl.so.1
    Reading symbols from /usr/openwin/lib/libX11.so.4...done.
    Loaded symbols for /usr/openwin/lib/libX11.so.4
    Reading symbols from /usr/lib/libc.so.1...done.
    Loaded symbols for /usr/lib/libc.so.1
    Reading symbols from /usr/lib/libmp.so.2...done.
    Loaded symbols for /usr/lib/libmp.so.2
    Reading symbols from /usr/openwin/lib/libXext.so.0...done.
    Loaded symbols for /usr/openwin/lib/libXext.so.0
    Reading symbols from /usr/lib/libthread.so.1...done.
    Loaded symbols for /usr/lib/libthread.so.1
    Reading symbols from /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1...done.
    Loaded symbols for /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1
    #0 0xfd7dbe8c in __csigsetjmp () from /usr/lib/libthread.so.1
    (gdb)

    Hi,
    we have the same Problem with the inline assembler. We are using Sunstudio 12 on x86 and tried to get this code compiled (Sunstudio 12 should be gas compatible).
    any ideas ?
    thanks
    Dieter
    #define HEC_HTONF(x) \
    (__extension__ \
    register HVB::float32_t __v, __x = (x); \
    __asm__ ( \
    "bswap %0" \
    : "=r" (__v) \
    : "0" (__x) \
    __v; \
    #define HEC_HTONLF_INPLACE(x) \
    __asm__ ( \
    "leal %0, %%ecx \n\t" \
    "movl (%%ecx), %%eax \n\t" \
    "movl 4(%%ecx), %%edx \n\t" \
    "bswap %%eax \n\t" \
    "bswap %%edx \n\t" \
    "movl %%eax, 4(%%ecx) \n\t" \
    "movl %%edx, (%%ecx) \n\t" \
    : "=m" (x) \
    : "m" (x) \
    : "%eax", "%ecx", "%edx" \
    );

  • [solved] unable to compile mame with gcc 4.7.2

    I tried to compile mame :
    http://mamedev.org/downloader.php?file= … e0147s.zip
    but it doesn't work, it fails with gcc 4.7.2 :
    Compiling src/emu/cpu/tms32051/tms32051.c...
    Generating TMS57002 source file...
    obj/sdl/build/tmsmake src/emu/cpu/tms57002/tmsinstr.lst obj/sdl/emu/cpu/tms57002/tms57002.inc
    Compiling src/emu/cpu/tms57002/tms57002.c...
    {entrée standard}: Messages de l'assembleur:
    {entrée standard}:3066: Avertissement: fin du fichier n'est pas à la fin de la ligne; nouvelle ligne insérée
    {entrée standard}: Erreur: ouverture CFI à la fin du fichier; directive .cfi_endproc manquante
    gcc: erreur interne du compilateur: Processus arrêté (program cc1plus)
    Veuillez soumettre un rapport complet d'anomalies,
    avec le source pré-traité si nécessaire.
    Consultez <https://bugs.archlinux.org/> pour plus de détail.
    make: *** [obj/sdl/emu/cpu/tms57002/tms57002.o] Erreur 4
    I want to know how the official packager ( Sergej Pupykin ) succeeded to compile mame ? ( sdlmame package ) :
    https://www.archlinux.org/packages/comm … 6/sdlmame/
    Do I need an older version of gcc ?
    Last edited by Potomac (2012-12-21 20:07:28)

    I found a solution by installing an older version of gcc ( 4.4.5 ) and I can compile now mame,
    it's a known problem about gcc and mame, the source code is not compatible with gcc 4.7.2 ( and even with some older releases ) :
    http://forums.gentoo.org/viewtopic-t-84 … 0473b82412
    check the first comment here ( padremayi ), same error :
    https://aur.archlinux.org/packages/sdlm … setlang=fr
    the solution is to use gcc 4.4.5 version,
    you need also to patch one file in gcc 4.4.5 :
    --- gcc/config/i386/linux-unwind.h 2009-04-10 01:23:07.000000000 +0200
    +++ gcc/config/i386/linux-unwind.h 2012-12-21 03:10:27.000000000 +0100
    @@ -133,9 +133,9 @@
    struct rt_sigframe {
    int sig;
    - struct siginfo *pinfo;
    + siginfo_t *pinfo;
    void *puc;
    - struct siginfo info;
    + siginfo_t info;
    struct ucontext uc;
    } *rt_ = context->cfa;
    /* The void * cast is necessary to avoid an aliasing warning.
    edit : the solution was to increase ram memory in virtualbox, with gcc 4.7.2 and 1.5 Gb ram I can compile mame without errors, but with 1 Gb ram the error occurs
    maybe it's a bug in gcc 4.7.2 ( because with gcc 4.4.5 I don't need to increase ram )
    Last edited by Potomac (2012-12-25 12:09:52)

  • Compile problem with javax.sql

    I have upgraded to sdk 1.4.2 and tried to compile my code. I am getting an error on import javax.sql.* where I am getting the message "Package does not exist" error. As the result of this any class that is in this package gets an error as well. I am using ant to do the build. It does not seem to have a problem with the other import files and some of my code do compile fine except for this one that contains javax.sql.*. Thanks for your help.

    Are you sure that the javax.sql.* stuff exists in your javac classpath? It seems not to be there. Look for j2ee.jar (from Sun J2EE SDK), or something like that (something like it probably came with your app server).
    Mike

  • How to compile .so with gcc?

    I want to make a .so file (library for linux). How could I compile with gcc to have this output. My input file is in .c.
    Thanx

    gcc -I/$JAVA_HOME/include -I/$JAVA_HOME/include/linux -shared myCfile.c -o libMYLIB.so
    //Anders ;-D

  • Compiler Problem with double. Need Help

    Hello,
    I am having a problem with WorkShop Compilers 5.0 98/12/15 C++ 5.0. There is a problem with declaring double inside a nested class which is nested 3 times. Below is the code what shows the problem. If you have Workshop 5.0 please cut and paste the program below and do a simple cc <filename> compile. Run it and you should see the problem.
    ---------------------------cut----------------------------
    #include <stdio.h>
    class myclass3
    public:
    myclass3() {}
    ~myclass3() {}
    short aaa;
    int bbb;
    double ccc;
    char ddd;
    class myclass2
    public:
    myclass2() {}
    ~myclass2() {}
    short aaa;
    int bbb;
    double ccc;
    char ddd;
    myclass3 m_myclass3[50];
    class myclass
    public:
    myclass() {}
    ~myclass() {}
    int a;
    char b;
    float c;
    short aa;
    double bb;
    myclass2 m_myclass2;
    int main()
    myclass m_myclass;
    m_myclass.m_myclass2.m_myclass3[1].ccc = 11111.1111;
    printf("<%f>\n",m_myclass.m_myclass2.m_myclass3[1].ccc);
    return 0;
    ---------------------------cut----------------------------
    The result I get on my machine is
    <-3100025845628125216032986949222617505819484589120973946744108811398502585541238252995581839380933130321904775653231251529249013141831370896782391931299571941247444654355877793201472387703486841059940760873131775588361546584668766208.000000>
    This is definitly incorrect. Does anyone have this problem? Is this a compiler bug? If you figure it out please email me at [email protected]
    Thanks
    Salman Ahmad

    Salman - I tested your program on an up to date version of the C++
    5.0 compiler and received the following results:
    a.out<11111.111100>
    That is what I would expect...
    Have you installed all of the patches for the 5.0 compiler? It is
    possible that this problem was found and fixed.
    The current basic patchid's for CC 5.0 on sparc are: 107311-12, 107357-11, and the libC patch for your version of the OS.

  • JSP Compilation Problems With JSTL tags

    My JSP worked well when I used JSP expressions, scriptlets, .... I tried to use JSTL instead and encountered some compilation problems. I am unable to see my mistakes and need help:
    Problme #1:
    int offset = 0;
    try
       <c:set var="offset" value="${requestScope.offset}" />
    catch ( Exception e )
        // do nothing
    }The above code has two compilation errors:
    Generated servlet error:
    [javac] Compiling 1 source file
    illegal start of expression
    <c:set var="offset" value="${requestScope.offset}" />
    ^
    Generated servlet error:
    ';' expected
    <c:set var="offset" value="${requestScope.offset}" />
    ^
    Problem #2:
    <c:set var="threadBean" value="${requestScope.ThreadBean}" />
    int threadID_int = ParamUtil.getParameterInt( request, "thread" );
    <c:if test="${threadBean.threadID} != threadID_int">
        throw new AssertionException( "The two threadID are not the same." );
    </c:if>Generated servlet error:
    illegal start of expression
    <c:if test="${threadBean.threadID != threadID_int}">
    ^

    I have deleted the Java code around the JSTL tags. Now, what is wrong with this <c:if test=" ... "> tag? It seems that I have problems to get JSTL tags right.
    It seems that I have problems to get JSTL tags right....
    <c:if test="${attachBean.attachMimeType.startsWith('image/')}">
         <html:img page="getattachment?attach=<c:out value='${attachBean.attachID}' />" alt="<c:out value='${attachBean.attachFilename}' />" title="<c:out value='${attachBean.attachFilename}' />" border="0" />
    </c:if>error message:
    74: tag = 'if' / attribute = 'test': An error occurred while parsing custom action attribute "test" with value "${attachBean.attachMimeType.startsWith('image/')}": Encountered "(", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"]

  • Compiling problem with 1.4

    my code is compiling well in 1.3 and the same is giving error if i compile with 1.4 compiler. pls help me out. here is the sample code which compiles fine with 1.3 and gives error in 1.4.
    String lv_str_AdvPay = (String).valueOf(lv_db_AdvPay);
    -atthuluri

    my code is compiling well in 1.3 and the same is
    giving error if i compile with 1.4 compiler. pls help
    me out. here is the sample code which compiles fine
    with 1.3 and gives error in 1.4.
    String lv_str_AdvPay =
    (String).valueOf(lv_db_AdvPay);What's the error message? And what's the context of the code - what type is lv_db_AdvPay?
    Regards,
    Bhaveet

  • Problem with perl Net::Telnet::Cisco  for Solaris 10 SPARC

    hi all,
    I have problem with installing this modules : Net::Telnet::Cisco,TermReadKey-2.30.tar.gz.
    I'm trying to install this packages Net-Telnet-Cisco-1.10.tar.gz, and the it notifies me that I need to install before the TermReadkey, I get it from www.CPAN.org -TermReadKey-2.30.tar.gz
    and look what I have when I run : "make test" or even "make install"
    cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"2.30\" -DXS_VERSION=\"2.30\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" ReadKey.c
    sh: cc: not found
    *** Error code 1
    make: Fatal error: Command failed for target `ReadKey.o'
    Please can some one help me. it 's very urgent
    thank you in advance

    Vipul_Ramani wrote:
    only thing you are missing CC does not your current PATH
    ADD it again
    using export PATH=$PATH:/usr/ucb and try ... do it No, please don't. There is no compiler in /usr/ucb, and it is probably a very good idea to compile without /usr/ucb in your path. /usr/ucb/cc is only a wrapper to extend a very old SunOS compatibility environment onto an existing compiler.
    If you don't have the current Sun compiler suite on your machine (go ahead and download it, it's free), then you can use gcc by invoking "perlgcc" instead of "perl" on the module's makefile.
    Darren

Maybe you are looking for

  • DBMS_SCHEDULER.run_job problem

    Hi friends.I have one problem. I use Oracle 10g(r2) in oracle enter.server. Also I can execute backupdb.sh script from terminal success.But I created Job sheduler as BEGIN DBMS_SCHEDULER.CREATE_JOB job_name => 'BACKUP_DB_JOB', job_type => 'EXECUTABLE

  • With the recent upgrade to FF 6.0 how do we get password protection for the internet with FF back?

    When our Mac was set up we had a password protected startup for FF, so without the password you could not start it. With the recent upgrade to 6.0 that password request disappeared. How do we get it back?

  • Edit ActionScript to be behind other layers?

    I used some ActionScript to create a snow effect for my flash animation. Right now, the snow falls in front of my other layers, and sending to back isn't working. I'll post the ActionScript below. I have a treeline background, with snow falling on to

  • Change data content of table.

    I have a table that initially starts out with no record. I want to add the record on the first run of the program and then change the data content on the next run. The table only has 1 record. What would be the ABAP code for that?

  • When Trying to download products, I get internal error

    When I try to download any of the products, I receive a message that I need to first install the Adobe Applications Manager. When I download that (which it seems to do instantly), I get this error: We've encountered the following issues: Plese connec