Perl 5.10 64bit compile fails with gccfss 4.2 on Solaris 10 (5/08) SPARC

Hi ,
I am having problems building my own perl 5.10 using the new GCCFSS 4.2 compiler running Soalris 10(5/08) on SUN T5120 server. I get pass configure but fails at make, below are my configure options and the make error msg. Any help would be appreciated and I have been working on this problem for hours.
Thanks,
Kaprino
sh Configure -Dcc="gcc -m64 -B/usr/ccs/bin/" -Dmake=/usr/css/bin/make -Dusethreads -Uuselargefiles -Duse64bitall -Dusesocks \
-Dprefix=/opt/perl-5.10.0 \
-Aldflags="-mcpu=v9 -m64" \
-Alddlflags="-mcpu=v9 -m64 -G" -des
#### Make Error message #####
SOCKSinit perl.o
ld: fatal: Symbol referencing errors. No output written to miniperl
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `miniperl'
Latest Compiler version
gcc -vUsing built-in specs.
Target: sparc-sun-solaris2.10
Configured with: /net/clpt-v490-1/export/data/bldmstr/20080102_phobos_gcc42/src/configure prefix=/usr/sfw enable-shared with-system-zlib enable-checking=release disable-libmudflap enable-languages=c,c++ enable-version-specific-runtime-libs with-cpu=v9 with-ld=/usr/ccs/bin/ld without-gnu-ld disable-gnattools with-mpfr=/ws/gccfss/tools --with-gmp=/ws/gccfss/tools
Thread model: posix
gcc version 4.2.0 (gccfss)

Hi All,
Thanks for ur reply, but still im getting the below error
*** Error code 1
The following command caused the error:
test ! -f gcc/Makefile || exit 0; \
[ -d gcc ] || mkdir gcc; \
r=`${PWDCMD-pwd}`; export r; \
s=`cd .; ${PWDCMD-pwd}`; export s; \
CC="gcc"; export CC; \
CFLAGS="-g -O2"; export CFLAGS; \
CONFIG_SHELL="/bin/sh"; export CONFIG_SHELL; \
CXX="c++"; export CXX; \
CXXFLAGS="-g -O2"; export CXXFLAGS; \
TOPLEVEL_CONFIGURE_ARGUMENTS="configure --prefix=/usr/sfw --enable-shared --with-system-zlib --enable-checking=LIST --disable-libmudflap -enable-language=c,c++--enable-version-specific-runtime-libs --with-cpu=v9-m64-Aldflags=-mcpu=v9-m64-Alddlflags=-mcpu=v9-m64-G --with-ld=/usr/ccs/bin/ld --without-gnu-ld --disable-gnattools --with-mpfr=/ws/gccfss/tools --with-gmp=/ws/gccfss/tools"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
AR="ar"; export AR; \
AS="as"; export AS; \
CC_FOR_BUILD="gcc"; export CC_FOR_BUILD; \
DLLTOOL="dlltool"; export DLLTOOL; \
LD="/usr/ccs/bin/ld"; export LD; \
NM="nm"; export NM; \
RANLIB="ranlib"; export RANLIB; \
WINDRES="windres"; export WINDRES; \
OBJCOPY=""; export OBJCOPY; \
OBJDUMP=""; export OBJDUMP; \
SET_GCC_LIB_PATH_CMD="LD_LIBRARY_PATH=/dumps/gcc/gcc-3.4.6/gcc; export LD_LIBRARY_PATH;"; export SET_GCC_LIB_PATH_CMD; \
LD_LIBRARY_PATH=/dumps/gcc/gcc-3.4.6/gcc; export LD_LIBRARY_PATH; \
echo Configuring in gcc; \
cd gcc || exit 1; \
case . in \
srcdiroption="--srcdir=."; \
libsrcdir=".";; \
/* | [A-Za-z]:[\\/]*) \
srcdiroption="--srcdir=./gcc"; \
libsrcdir="$s/gcc";; \
srcdiroption="--srcdir=.././gcc"; \
libsrcdir="$s/gcc";; \
esac; \
/bin/sh ${libsrcdir}/configure \
cache-file=./config.cache build=sparc-sun-solaris2.10 host=sparc-sun-solaris2.10 target=sparc-sun-solaris2.10 prefix=/usr/sfw enable-shared with-system-zlib enable-checking=LIST disable-libmudflap -enable-language=c,c++enable-version-specific-runtime-libs with-cpu=v9-m64-Aldflags=-mcpu=v9-m64-Alddlflags=-mcpu=v9-m64-G with-ld=/usr/ccs/bin/ld without-gnu-ld disable-gnattools with-mpfr=/ws/gccfss/tools with-gmp=/ws/gccfss/tools with-gcc-version-trigger=/dumps/gcc/gcc-3.4.6/gcc/version.c program-transform-name='s,y,y,' ${srcdiroption} \
|| exit 1
make: Fatal error: Command failed for target `configure-gcc'
pls help me.
Regards,
Suresh.
Edited by: ssubrama on Mar 4, 2009 1:18 AM

Similar Messages

  • OCIEnvCreate fails with -1 return code on Solaris 9 x86 with Oracle 10g

    Hi
    OCIEnvCreate function is failing with -1 return code on solaris 9 x86. The database I use is, Oracle 10g release 1. I tired to connect with sqlplus and am able to connect to dataserver. Why does OCIEnvCreate fails? Can someone help me in this regard.
    Thanks

    Can place the sample code.

  • [Solved] kernel 2.6.28.1 compilation fails with reiser4 patch

    Hi,
    has anyone had problems compiling the latest kernel with the reiser4 patch?
    The patching process itself completes successfully apart from this part:
    patching file include/linux/fs.h
    Hunk #1 succeeded at 1372 (offset 3 lines).
    Hunk #2 succeeded at 1811 (offset 3 lines).
    patching file mm/filemap.c
    While the compilation fails here
    CC fs/reiser4/plugin/file/file_conversion.o
    fs/reiser4/plugin/file/file_conversion.c: In function 'reiser4_write_begin_careful':
    fs/reiser4/plugin/file/file_conversion.c:689: error: implicit declaration of function '__grab_cache_page'
    fs/reiser4/plugin/file/file_conversion.c:689: warning: assignment makes pointer from integer without a cast
    make[2]: *** [fs/reiser4/plugin/file/file_conversion.o] Error 1
    make[1]: *** [fs/reiser4] Error 2
    make: *** [fs] Error 2
    Or is it just me doing something wrong?
    Last edited by moz (2009-01-23 13:08:27)

    moz wrote:
    Hi,
    has anyone had problems compiling the latest kernel with the reiser4 patch?
    The patching process itself completes successfully apart from this part:
    patching file include/linux/fs.h
    Hunk #1 succeeded at 1372 (offset 3 lines).
    Hunk #2 succeeded at 1811 (offset 3 lines).
    patching file mm/filemap.c
    While the compilation fails here
    CC fs/reiser4/plugin/file/file_conversion.o
    fs/reiser4/plugin/file/file_conversion.c: In function 'reiser4_write_begin_careful':
    fs/reiser4/plugin/file/file_conversion.c:689: error: implicit declaration of function '__grab_cache_page'
    fs/reiser4/plugin/file/file_conversion.c:689: warning: assignment makes pointer from integer without a cast
    make[2]: *** [fs/reiser4/plugin/file/file_conversion.o] Error 1
    make[1]: *** [fs/reiser4] Error 2
    make: *** [fs] Error 2
    Or is it just me doing something wrong?
    It is a well known issue

  • SWF Compilation Failed with "Submit All" Option

    Hi,
    I am using Captivate 6.1 and created a quiz with single choice questions. When I turn on the "Submit All" option, I can not preview/publish the file anymore. It says "SWF Compilation Failed." and I am advised to check if any user variables contain AS keywords. I am not using any user variables in this project. Whenever I turn the "Submit All" option off, preview/publish are possible again.
    When publishing to HTML5, the error does not occur.
    Can you please help me with this issue, since I would appreciate using the "Submit All" option.

    Hi
    Check this forum : http://forums.adobe.com/thread/1111120?tstart=0
         SWF compilation can come for following reasons:
    1) If you use action script keywords in Captibvate project variables.
    Resolution: Make sure you don't use action script keywords.
    2) If you have invisible characters present in text fields.
    Resolution: Don't Copy/Paste text from some other application to Captivate text fields like Project information etc. Type with key board. Create a blank project and publish, if you still get SWF compilation issue then your 64 bit JVM might be corrupted.
    3) if your installation is 64 bit Captivate, 64 bit JVM might be corrupted.
    Add  Use32BitJVMForPublish = 1  in AdobeCaptivate.ini  file
    Close and Re-launch Captivate.
    Re-publish the project
    Captivate ini file is present at “C:\Program Files\Adobe\Adobe Captivate 6 x64” location
    Thanks,
    Vj

  • Package compile faile with error ORA-03113: end-of-file on communication..

    Hi There,
    We're trying to compile a package and we're getting this error that we're not sure how to debug and/or tackle. Your assistance is highly appreciated.
    create or replace
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 4252
    Session ID: 1149 Serial number: 5910
    The package use to compile without any issues; also we have it working in other environments. We can't see any differences at this stage.
    Oracle Version:11.2.0.1 x64
    OS: Windows 2008 Server R2
    Thanks in advance for your help.
    Thanks

    I have tried dropping the package and re-compiling it but to no avail. I can compile other packages/procedures/functions without any issues.
    Also, trying to run either EXEC UTL_RECOMP.recomp_parallel(4, 'SCHEMA_NAME'); or @?/rdbms/admin/UTLRP.SQL gives the following erros:
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 7040
    Session ID: 388 Serial number: 9039
    ERROR:
    ORA-03114: not connected to ORACLE
    DOC> The following query reports the number of objects that have compiled
    DOC> with errors (objects that compile with errors have status set to 3 in
    DOC> obj$). If the number is higher than expected, please examine the error
    DOC> messages reported with each object (using SHOW ERRORS) to see if they
    DOC> point to system misconfiguration or resource constraints that must be
    DOC> fixed before attempting to recompile these objects.
    DOC>#
    ERROR:
    ORA-03114: not connected to ORACLE
    DOC> The following query reports the number of errors caught during
    DOC> recompilation. If this number is non-zero, please query the error
    DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
    DOC> are due to misconfiguration or resource constraints that must be
    DOC> fixed before objects can compile successfully.
    DOC>#
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE

  • Kernel compile fail with CFLAGS

    Well something really strange is happening when i try to complile my 2.6 kernel with these flags
    make CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
    In file included from include/linux/kernel_stat.h:5,
    from init/main.c:33:
    include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
    In file included from init/main.c:33:
    include/linux/kernel_stat.h:28: error: `NR_IRQS' undeclared here (not in a function)
    make[1]: *** [init/main.o] Error 1
    make: *** [init] Error 2
    i really dont understand why i am getting this error.I believe that i must include some features to my kernel config since i am trying to   get the best out of it.Any help?

    Simply don't do hardcore optimalization for your kernel, it is already optimized by hand where needed, so it shouldn't make that much difference. Don't do much else than -march=cputype, and best you can do is compiling it with a newer GCC version. It's better to keep it small by choosing only the features you need than to make it unstable or break it with extreme optimalizations that only work counter-productive like -O3. If you want something big and important to attack, then take a look at glibc...

  • Applescript compile fails with "Expected end of line, etc. but found identifier"

    Hi,
    I've written my first applescript to move messages in Micorosoft Outlook to a specific folder.  It is based on existing scripts I found on the internet.  However my version keeps failing to compile with the error "Expected end of line, etc. but found identifier".  I tried the exact same script on another Mac and it works.  I created a very simple version of the script to show the error.  All I am trying to do is get the current selected messages so I can move them:
    on run {}
        tell application "Microsoft Outlook"       
            set selectedMessages to current messages
        end tell
    end run
    and I still get the same errors on the word "messages" above.
    MAC is running OSX 10.9.4
    Microsoft Outlook for Mac 2011 - version 14.4.3 (140616)
    Since the script works on other computers the only thing I can assume is something wrong with the setup.
    Any help is greatly appreciated.
    - Ben

    Frank Caggiano wrote:
    twtwtw
    Any reason that the parens would be needed on some cases and not in others? As you can see the code the OP posted compiled fine on my system with no need of the parens. Also the OP mentioned that the code did work on one machine but not another so I would assume again the parens were not needed in that case.
    JUst curious
    regards
    Parentheses have the same function here as they do in mathematical equations. They are cues to the compiler about the order in which different parts of the statement should be processed. The problem here, I think, is that the word current is part of a lot of applescript nouns: current date, current application, current messages, current user, current track, current location, etc. That's exacerbated by the fact that message is also a noun in its own right in Outlook, creating an ambiguous bit of grammar. Applescript has to interpret the presence of that word in context, and several factors - different versions of the OS or of the relevant applications, the presence of different osaxen, runtime issues that alter how the Applescript system reads in the scriptability information - could affect how that interpretation plays out.
    Context is (apparently) everything, sometimes.

  • Compiling failed with "unrecognized command line option '-Wl'" error

    Helllo,
    I have here a fresh installation of Archlinux and I fall into troubles with compiling a few of applications from AUR.
    The problem is this:
    gcc: error: unrecognized command line option ‘-Wl’
    It happens for example with bubblefishymod package from AUR. I've never seen this error.
    Any suggestion, what is wrong, please?
    I have 64bit Archlinux installation, intel core i5, base-devel package group is installed.

    Seems like a straightforward error message. Read about -Wl in "man gcc" if you want to know more.
    In the meantime, removing "-Wl" from the LDFLAGS in the Makefile (I used a sed line in the PKGBUILD) should allow you to compile it successfully. Whether or not it works as expected though, is another matter entirely. Contact the author and get him to fix his Makefile.

  • Manual Kernel Compilation fails with "Error: not a valid kernel..."

    I wanted to try out the Zen kernel to compile my own custom kernel. The basic steps that I did were:
    1. $ make localmodconfig
    2. $ make -j3
    3. # make modules_install
    4. # cp -v ~/<build directory>/arch/x86_64/boot/bzImage /boot/vmlinuz-linux-zen-3.1.4.img
    5. # mkinitcpio -k vmlinuz-linux-zen-3.1.4 -g /boot/initramfs-linux-zen-3.1.4
    and I get the error:
    ==> ERROR: '/lib/modules/vmlinuz-linux-zen-3.1.4' is not a valid kernel module directory
    Inside of /lib/modules I have a new files called "3.1.4-zen-ARCH-g30db333 (and the original files that were there from the stock kernel).
    Inside of /boot/ I have the stock image and the stock initram as well as "vmlinuz-linux-zen-3.1.4.img"
    Which step am I missing? Also, I was thinking it was possible to NOT use an initram if I just compiled the ext2 and ext4 (root is ext4) into the kernel instead of building them as modules. Is my thinking correct? Also, if anyone needs a reason why I'm using the zen sources instead of the nice Liquorix binary, the answer is simply that I wanted to mess around with it to satisfy my curiosity. Thanks.

    As per the man page:
    -k kernelversion
    Use kernelversion, instead of the current running kernel. This may be a path to a kernel image or a
    specific kernel version. If specified as a path to an image, this will always be prefixed by the basedir.
    You've picked... neither? I guess you want "/boot/vmlinuz-linux-zen-3.1.4.img" or "3.1.4-zen-ARCH-g30db333".
    Compiling the filesystem module into the kernel alone is not sufficient to avoid using an initramfs. You also need, at a minimum, drivers for the disk controller and a block device driver.
    Last edited by falconindy (2011-12-08 04:43:21)

  • FPGA Compilation fails with Xilinx "Block Memory Generator 8.1" configured with a Coefficient File

    Hello All,
    I have a SubVI that uses block memory, which has been created using Xilinx "Block Memory Generator 8.1". I have configured this block memory to be a "Single Port ROM", and I use a coefficient file to initialize the memory contents. In simulation mode, everything works as it should.
    Next, when I try to compile the top-level VI, I get the following error:
    http://www.cs.nyu.edu/~aditya/Compilation_Log_100.txt
    http://www.cs.nyu.edu/~aditya/Dividing (This is the coefficient file)
    Essentially, the compiler is looking at an ill-formed path to find the coefficient file.
    My environment:
    -- LabView 2014 f1 (32 Bit)
    -- FPGA module 2014
    -- RT Module 2014
    -- Xilinx Vivado 2013.4
    -- NI RIO Drivers 14
    -- Development Machine and Conpile Server: Windows 7 Professional, 32GB RAM
    -- Compile Worker running Linux, with Xilinx Compile tools installed
    Is this a bug, or am I doing something wrong? Thanks!
    Best,
    Aditya

    Next, I tried compiling on the windows machine itself. And here is the error that I get. (See attached image).
    Thanks!
    best,
    aditya
    Attachments:
    Capture.PNG ‏18 KB

  • RMI Compiling fails with

    Hi,
    I wrote an very small RMI program. It only demonstrate the function of rmi. But if I want to compile the necessery sources with the rmic-compiler, I get the follow output:
    <cmd>
    D:\Projekte\Eclipse\Arbeit\RmiTest>rmic de.lindcom.rmivoodoo.server.VoodooImpl
    error: Class de.lindcom.rmivoodoo.server.VoodooImpl not found.
    1 error
    </cmd>
    The class VoodooImpl:
    package de.lindcom.rmivoodoo.server;
    import java.rmi.RemoteException;
    import java.rmi.server.UnicastRemoteObject;
    import de.lindcom.rmivoodoo.rmi.Voodoo;
    import de.lindcom.rmivoodoo.rmi.VoodooResponse;
    public class VoodooImpl
        extends UnicastRemoteObject
        implements Voodoo {
        private String spell;
        protected VoodooImpl()
            throws RemoteException { 
        public void setSpell(String spell)
            throws RemoteException {
            this.spell = spell;
        public String getSpell()
            throws RemoteException {
            return spell;       
        public VoodooResponse doVoodoo()
            throws RemoteException {
            VoodooResponseImpl vri = new VoodooResponseImpl();
            vri.setSpell(spell);
            vri.setSuccess(true);
            return vri;      
    }The project itself works on an other pc. Maybe some PATH-variables are wrong:
    JAVA_HOME=C:\Programme\Java\jdk1.5.0_06
    Path=C:\WINNT\system32;C:\WINNT;C:\Programme\Java\jdk1.5.0_06\bin
    But these paths are correct. Where is the problem?!
    Thanks for help
    Michael

    Hi,
    thanks. You're right. I added a dot to the classpath and it worked!
    Gr��e
    Michael

  • JSP compilation failed with java.lang.IllegalStateException: zip file close

    Hi,
    I have a web app successfully deployed on Weblogic7.0 and HP UX 11.0, which uses jdk 1.3.1_02
    In this application, when i invoke a jsp (this exception occurs on any jsp not to any specific jsp), i found the following exception trace on wl-domain.log file and server crashes: -
    java.lang.IllegalStateException: zip file closed
         at java.util.zip.ZipFile.getEntry(Unknown Source)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java, Compiled Code)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.upToDate(ChangeAwareClassLoader.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.checkForReload(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java, Compiled Code)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java, Compiled Code)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java, Compiled Code)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java, Compiled Code)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled Code)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    Can anyone help me in figuring out this problem urgently?
    thanks in advance
    manoj

    Hi Manoj.I am also getting the same problem in the weblogicserver version-6.1 SP2.It is also using the jdk 1.31.
    here is my stack trace.Help i smuch appreciated.!!
    java.lang.IllegalStateException: zip file closed
         at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java:197)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java:106)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:53)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:53)
         at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java:45)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:265)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:156)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:65)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
         at com.slfc.framework.service.ServiceMessageFactory.createServiceResult(ServiceMessageFactory.java:58)
         at sunlife.nexus.admin.SecPro.establishSupportSession(Unknown Source)
         at sunlife.nexus.admin.Page_secPro_extAppLoader.processPageRequest(Unknown Source)
         at sunlife.wis.servlets.WISServlet.redirect(WISServlet.java:63)
         at sunlife.wis.servlets.WISServlet.doExec(WISServlet.java:107)
         at sunlife.wis.servlets.WISServlet.doGet(WISServlet.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

  • Procedure compilation failed with SQL command not properly ended error

    Hi All,
    Kindly help me to fix this.
    I am compiling a procedure and getting an error. Procedure and error details are as follows:
    Procedure:
    CREATE or REPLACE PROCEDURE jiostore_new.auditReportCount (u_name IN VARCHAR2,stdate IN DATE,eddate IN DATE)
    IS
    BEGIN
    DECLARE Total Number;
    BEGIN
    SELECT COUNT(am.id) into Total FROM auditMaster_ AS am  INNER JOIN jioworld.deviceos_ dvos ON dvos.id=am.deviceOs WHERE am.updatedBy=u_name or am.updatedBy=ALL AND DATE(am.updatedDate)>=stdate OR DATE(am.updatedDate)='0000-00-00' AND DATE(am.updatedDate)<=eddate or DATE(am.updatedDate)='0000-00-00';
    dbms_output.put_line('Total Count:' || Total);
    END;
    END;
    Error:
    Error(6,1): PL/SQL: SQL Statement ignored
    Error(6,50): PL/SQL: ORA-00933: SQL command not properly ended
    Regards,
    Vishal G

    2922723 wrote:
    Hi All,
    Kindly help me to fix this.
    I am compiling a procedure and getting an error. Procedure and error details are as follows:
    Procedure:
    CREATE or REPLACE PROCEDURE jiostore_new.auditReportCount (u_name IN VARCHAR2,stdate IN DATE,eddate IN DATE)
    IS
    BEGIN
    DECLARE Total Number;
    BEGIN
    SELECT COUNT(am.id) into Total FROM auditMaster_ AS am  INNER JOIN jioworld.deviceos_ dvos ON dvos.id=am.deviceOs WHERE am.updatedBy=u_name or am.updatedBy=ALL AND DATE(am.updatedDate)>=stdate OR DATE(am.updatedDate)='0000-00-00' AND DATE(am.updatedDate)<=eddate or DATE(am.updatedDate)='0000-00-00';
    dbms_output.put_line('Total Count:' || Total);
    END;
    END;
    Error:
    Error(6,1): PL/SQL: SQL Statement ignored
    Error(6,50): PL/SQL: ORA-00933: SQL command not properly ended
    Regards,
    Vishal G
    The first thing, is that for your own sanity you should learn to format your code for readability.  And for the sanity of those from whom you seek help, you should learn to preserve that formatting when you post to a forum:
    CREATE OR REPLACE PROCEDURE jiostore_new.auditReportCount(
        u_name IN VARCHAR2,
        stdate IN DATE,
        eddate IN DATE)
    IS
    BEGIN
      DECLARE
        Total NUMBER;
      BEGIN
        SELECT COUNT(am.id)
        INTO Total
        FROM auditMaster_ AS am
        INNER JOIN jioworld.deviceos_ dvos
        ON dvos.id              =am.deviceOs
        WHERE am.updatedBy      =u_name
        OR am.updatedBy          =ALL
        AND DATE(am.updatedDate)>=stdate
        OR  DATE(am.updatedDate) ='0000-00-00'
        AND DATE(am.updatedDate)<=eddate
        OR  DATE(am.updatedDate) ='0000-00-00';
        dbms_output.put_line('Total Count:' || Total);
      END;
    END;
    What is the data type of am.updateDate?  It appears to be a varchar being passed to a function named DATE to convert it to a DATEfor comparison to your input parameters,  But you also compare it to strings. 
    Where are the variables 'u_name' and 'ALL'?  (and what kind of a name is that for a variable -- 'ALL'?)

  • Compiler flags for GCCFSS to support POSIX & Solaris threads

    My team is working on compiling a custom Perl with support for both POSIX and Solaris threads, and I'm trying to work out the appropriate compiler and linker flags to set for GCCFSS. At present I've come up with:
    gcc -mt -lpthread -D_POSIX_C_SOURCE=199506L
    which expands to:
    gcc -D_REENTRANT -lthread -lpthread -D_POSIX_C_SOURCE=199506L
    According to the [Solaris 9 Multithreaded Programming Guide|http://docs.sun.com/app/docs/doc/806-6867/6jfpgdcob?a=view], this should allow for both POSIX and Solaris threads support via POSIX semantics.
    Any comments or recommendations on this?
    Thanks,
    RT.

    It sounds about right. The interoperability question may be better posted on the Solaris forum though.
    Thanks
    Prashanth

  • CC 5.2 fails with "cannot open file /tmp/*ir*"

    Hi,
    compilation fails with an error message like
    "Could not open file "/tmp/06710.TEMPLATE_FILE.ir"". The problem seems to be that the compiler once in a while is "leaking" these temp files (they seem to accumulate in /tmp over time) and the compiler cannot overwrite a different user's temp files. I am not sure if it matters, but all this is in a dmake context.
    Why is CC generating these files in /tmp and not locally? Why doesn't it make them more unique e.g. 06710.user.TEMPLATE_FILE.ir? Is there a way to work around this problem?
    Thanks.
    philipp

    extract the bundle and import the zip file enic-2.1.2.62-esx55-offline_bundle-2340678.zip to VUM
    same for the fnic package

Maybe you are looking for

  • Crackling Sounds When Big Jambox Hardwired to iPad using iOS 7.0.2

    Since the rollout of iOS 7.0.2 about a week ago, I am having serious problems with Big Jambox compatibility when it is hardwired to the iPad (3rd Generation).  Streaming of Music, Netflix, Amazon, etc. can result in very loud clicking sounds (in succ

  • Alpha Channel

    Is it possible to save a still frame in FCP as a PSD file with an alpha channel? If so, how do I do this?

  • 10.6.8 "infected"?

    Been using 10.6.8 for years, no problems. Recently I'm seeing the Beachball soon after start-up, nothing shows in Force Quit window, suspicious Anonymous Process (need to note PID) comment after doing a Forced Shutdown then Reboot out of Single-user

  • Error starting 4.0 console on Solaris 10

    When I bring up the console (es-start -c -- -p 1611) the login window appears, and after I enter the username, password, and server name, I get the following text in a popup window: WARNING Communication could not be established with the server. The

  • Why do I get 3 digits for the day in Finder listing of files?

    Yesterdy I upgraded to Mavericks; now when I open my files in Finder, the day shows 3 digits in the date modified column, e.g. 331 October  2013; anyone see this or have a solution to get real dates back?