Sprintf error

Hi
I'm using:
CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-19 2003/12/18
Following code:
#include <stdio.h>
#include <strings.h>
class Dummy
   public:
   bool sayCheese( char * Message )
      printf( "The message is [%s]\n", Message );
      return true;
int main()
   char buf1[200];
   char buf2[200];
   Dummy * dummy;
   strcpy( buf1, "Initial buf1 value" );
   strcpy( buf2, "Initial buf2 value" );
   sprintf( buf1, "Buf2 is [%s]", buf2 ),  /* Comma at the end of the line */
   dummy->sayCheese( buf1 );
}doesn't cause any error/warning messages from the compiler.
The output is
The message is [Buf2 is [Initial buf2 value]]
This is probably bug.
Regards
lazartchouk

I don't see an error in the source code. Well, actually I do. You call a member of class Dummy
through an uninitialized pointer "dummy". Since the
class has no virtual functions and "this" is not used
in "sayCheese", the program works by accident.
What this the error you had in mind? A compiler is
not required to diagose use of uninitialized
variables, although it would be nice if it did.Ok, probably this version is better:
#include <stdio.h>
#include <strings.h>
class Dummy
   public:
   bool sayCheese( char * Message )
      printf( "The message is [%s]\n", Message );
      return true;
int main()
   char buf1[200];
   char buf2[200];
   Dummy * dummy = new Dummy;
   strcpy( buf1, "Initial buf1 value" );
   strcpy( buf2, "Initial buf2 value" );
   sprintf( buf1, "Buf2 is [%s]", buf2 ), dummy->sayCheese( buf1 );
}Does anyone see something strange in the line with the "sprintf"?

Similar Messages

  • MySQL Date_Format

    Hi
    Can anyone tell me how they'd format this MySQL statement to read dates stored in MySQL?  The dates are pre-1970 so I'm having trouble using PHP echo date.
    $query_rsGNresults = sprintf("SELECT * FROM gemnews_tab WHERE language LIKE %s AND entry LIKE %s AND works LIKE %s AND category LIKE %s ORDER BY date ASC;", GetSQLValueString($varLang_rsGNresults, "text"),GetSQLValueString($varEntry_rsGNresults, "text"),GetSQLValueString($varWorks_rsGNresults, "text"),GetSQLValueString($varCategory_rsGNresults, "text"));
    I've tried
    $query_rsGNresults = sprintf("SELECT * DATE_FORMAT(date, '%Y %M %d') FROM gemnews_tab WHERE language LIKE %s AND entry LIKE %s AND works LIKE %s AND category LIKE %s ;", GetSQLValueString($varLang_rsGNresults, "text"),GetSQLValueString($varEntry_rsGNresults, "text"),GetSQLValueString($varWorks_rsGNresults, "text"),GetSQLValueString($varCategory_rsGNresults, "text"));
    but all I get is a sprintf error that there are too few arguments.
    Any help is greatly appreciated.
    Many thanks
    J

    Hello Mad Dog,
    I am sorry that you have not received a response for the
    WebAssist
    community forums.
    The most effective way to get your issue addressed is by
    submitting a
    Technical Support Incident (PSI) because we have a policy to
    provide you
    with a response within 2-4 business hours. We include a
    number of
    Support Incidents for free with each product
    If you would like to submit one go to
    http://www.webassist.com/ and
    click on the Support link on the gray bar above the Product
    Spotlight.
    On the Support page, choose Support > Technical Support
    > Submit
    Incident. Select your product and click on the appropriate
    radio button
    that applies to the nature of your product. Click Next and
    fill out the
    form on the subsequent page. An engineer should reply back to
    you within
    2 to 4 hours.
    Feel free to contact me off list if you have further
    questions.
    Regards,
    Mark
    Mark Fletcher
    WebAssist.com
    Mad Dog wrote:
    > On recommendation of a few people here (yes, Murray, I
    do listen to you
    > sometimes!) I picked up DataAssist from WebAssist to
    create a front-end
    > database admin area for a client. Easily worth the money
    since it saved me
    > hours of gunky work creating one myself and the client
    will be paying for
    > it. One question though -- and yes, I've posted it on
    the WebAssist forum
    > but haven't had a response yet:
    >
    > - It's unwieldy to ask whoever's entering the data to
    input the date as
    > YYYY-MM-DD when no one thinks that way. Is there a way
    to have them input it
    > in US style (MM-DD-YYYY) and have it converted? It would
    be a nice function
    > to have built-in but since it's not, is there an
    **easy** way to implement
    > this?
    >
    > Thanks,
    > Mad Dog
    >
    >

  • Utility C program

    A program used in windows, you can specify X, Y and time for it to click some point peiodicly
    #include <windows.h>
    #include <stdio.h>
    #include <string.h>
    #define true 1
    #define ERROR_LEN 100
    #define LINE_LEN 101
    #define LINE_MAX 100
    typedef struct tagMOUSEINPUT {
        LONG dx;
        LONG dy;
        DWORD mouseData;
        DWORD dwFlags;
        DWORD time;
        ULONG_PTR dwExtraInfo;
    } MOUSEINPUT;
    typedef struct tagINPUT {
      DWORD type;
      MOUSEINPUT mi;
    }INPUT;
    MOUSEINPUT mi;
    INPUT pInput;
    int getValue(char* line){
        int i = 0;
        _Bool found = 0;
        int len = strlen(line);
        char value_x[10];
        // Find '='
        for(i=0;i<len;i++){
            if(line[i] == '='){
                found = 1;
                break;
        if(!found){
            MessageBox(NULL,
                       "Error line for setting x!!!",
                       "Message Box",
                       MB_ICONWARNING);
            return -1;
        }else{
            strcpy(value_x, &line[i+1] );
            return atoi(value_x);
    int main(int argc, char** argv) {
        char* fileName = "AutoClick.config";
        int i=0;
        FILE* config_file;
        config_file = fopen(fileName, "r");
        char error[ERROR_LEN];
        char line[LINE_LEN];
        int X = 0;
        int Y = 0;
        long time = 0;
        if (!config_file) {
            memset(error,'\0', ERROR_LEN);
            sprintf(error, "Can not open %s!!!", fileName);
            MessageBox(NULL,
                       error,
                       "Message Box",
                       MB_ICONWARNING);
            return -1;
        while(fgets(line, LINE_MAX, config_file)){
            if(line[0] == 'x'){
                //Get X for screen
                X = getValue(line);
            }else if(line[0] == 'y'){
                //Get Y for screen
                Y = getValue(line);;
            }else if(line[0] == 't' &&
                     line[1] == 'i' &&
                     line[2] == 'm' &&
                     line[3] == 'e'){
                //Get time
                time = getValue(line);
        fclose(config_file);
        while(true){
            SetCursorPos(X, Y);
            mi.dx = 500;
            mi.dy = 250;
            mi.mouseData = 0;
            mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
            mi.time = 0;
            mi.dwExtraInfo = GetMessageExtraInfo();
            pInput.type = 0;//INPUT_MOUSE;
            pInput.mi = mi;
            mouse_event(MOUSEEVENTF_LEFTDOWN,
                        X,
                        Y,
                        0,
                        GetMessageExtraInfo());
            mouse_event(MOUSEEVENTF_LEFTUP,
                        X,
                        Y,
                        0,
                        GetMessageExtraInfo());
            //SendInput((UINT)1, pInput, sizeof(INPUT));
            //mi.dwFlags = MOUSEEVENTF_LEFTUP;
            //SendInput(1, pInput, sizeof(INPUT));
            sleep(time * 1000);
    }Edited by: wannachan on Oct 6, 2008 3:31 AM

    What does this have to do with JNI?
    What does this have to do with Java?

  • _jvm- DetachCurrentThread() causes Another exception has been detected whil

    I have a hardware driver which calls java based on hardware interupts. The c code attaches to the current thread, calls a static method, then detaches. If I dont detatch, it works perfectly (but probably leaves the thread in limbo), but if I detach it always gives the error below. Im using jbuilder X java on windows XP, and the java callback just prints the passed parameter string. Any ideas?
    Another exception has been detected while we were handling last error.
    Dumping information about last error:
    ERROR REPORT FILE = (N/A)
    PC = 0x00a483ba
    SIGNAL = -1073741819
    FUNCTION NAME = (N/A)
    OFFSET = 0xFFFFFFFF
    LIBRARY NAME = (N/A)
    Please check ERROR REPORT FILE for further information, if there is any.
    Good bye.
    jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) {
      printf("cpp: Loading the VM\n");
      fflush(stdout);
      _jvm = vm;
      return(JNI_VERSION_1_4);
    JNIEnv *env;
                 int result = _jvm->GetEnv((void**) &env, JNI_VERSION_1_4);
                 if (result == JNI_EDETACHED) {
                    printf("Attaching the current thread\n");
                    _jvm->AttachCurrentThread((void **)&env, NULL);
                 printf("Attached\n");
         fflush(stdout);
          char error[30];
         char barcode[40];
         sprintf(error, "%lu", dwError);
         sprintf(barcode, "%s", dwType);
             jobjectArray ret;
         ret=(jobjectArray)env->NewObjectArray(2,
                  env->FindClass("java/lang/String"),
                  env->NewStringUTF(""));
                env->SetObjectArrayElement(ret,0,env->NewStringUTF(error));
                  env->SetObjectArrayElement(ret,1,env->NewStringUTF(barcode));
         printf("cpp: after setting array\n");
                   fflush(stdout);
                // now we need to get a handle on the hander class which implements the callbacks.
               // first get the class
               // then call the static method to get the handler instance.
         // then get the method from the handler instance.
         // now call the method.
         jclass clsCyberView = env->FindClass("com/sst/util/CyberView");
         if (clsCyberView == NULL) {
          printf("cpp: clsCyberView == null");
           return;
           jmethodID mtdBarcodeCallback = env->GetStaticMethodID(clsCyberView, "handleBarcode", "([Ljava/lang/String;)V");
         if (mtdBarcodeCallback == NULL) {
                                       printf("cpp: mtdBarcodeCallback == null\n");
                                       fflush(stdout);
                                       return;
           env->ExceptionClear();
           env->CallStaticVoidMethod(clsCyberView, mtdBarcodeCallback, ret);
           if(env->ExceptionOccurred()) {
               env->ExceptionDescribe();
               env->ExceptionClear();
                  printf("about to detach..\n");
                 fflush(stdout);
                  _jvm->DetachCurrentThread();

    I m having the same problem. Did you get around it ?

  • JNI - How to use the error reporting mechanism?

    I've developed a C++ DLL which is loaded from a commercial Win32 application (not written by me) as a plug-in for external calculations. On its initialization the C++ DLL launches the Java VM via the JNI invocation interface. When the DLL functions are called by the application, they forward the calls to Java objects inside the Java VM, again via JNI invocation interface.
    This works well, but I have encountered a weird error.
    From Java I open a JFrame containing a JTextArea as small console for debug output messages. If I turn output to this debug console off (my printToConsole routine checks whether a boolean flag is set), the string concatenation operator may lead to a crash of the Java VM.
    For example, if in one of the Java functions called from the
    DLL via JNI invocation interface the following is the first statement,
    it leads to a crash of the Java VM and the application that loaded the C++ proxy DLL.
    String test=""+Math.random(); // String test not used later
    Interestingly, if I comment this statement out, the Java code works fine WITHOUT any crash. I've already thought about potential races and synchronization issues in my code, but I don't see where this is the case. And the string concatenation error fails as well, if I insert sleep() statements in front of it and at other places in the code. However, if I turn on log messages printed to my JFrame debug console (containing a JTextArea), the String concatenation works without problems.
    So maybe the JNI interface has a bug and affects the Java VM; I don't see where my JNI code is wrong.
    One problem is that I do not get any stdout output, as the C++ proxy DLL is loaded by the Windows application, even if I start the Windows application from the DOS command line (under Windows).
    Does anyone know how to use the error reporting mechanism?
    http://java.sun.com/j2se/1.4.2/docs/guide/vm/error-handling.html
    Is it possible that the JVM, when it crashes, writes debug information about the crash into a file instead of stdout/stderr?
    My C++ proxy DLL was compiled in debug mode, but the commercial application (which loaded the DLL) is very likely not.
    I do not know hot to find the reason why the String concatenation fails inside the Java function called from the C++ DLL via JNI.

    Yes, I've initially thought about errors in the C++ code too. But the C++ code is actually very simple and short. It doesn't allocate anything on the C++ side. It allocates a couple of ByteBuffers inside the Java VM however via JNI invocation interface calls of env->NewDirectByteBuffer(). The native memory regions accessed via the ByteBuffers are allocated not by my own C++ code, but by the program that calls my DLL (the program is Metastock).
    The interesting thing is that everything works fine if output to my debug console is enabled, which means that in the Java print routine getConsoleLoggingState() returns true and text is appended to the jTextArea.
    static synchronized void print(String str)
    { MetaStockMonitor mMon=getInstance();
    if ( mMon.getFileLoggingState() && mMon.logFileWriter!=null) {
    mMon.logFileWriter.print(str);
    mMon.logFileWriter.flush();
    if ( mMon.getConsoleLoggingState() ) {
    mMon.jTextArea1.append(str);
    Only if output to the JTextArea is turned off (ie. getConsoleLoggingState()==false), the crash happens when the FIRST statement in the Java routine called via JNI invocation interface is a (useless) String concatenation operation, as described above.
    String test=""+Math.random(); // String test not used later
    Moreover, the crash happens BEFORE the allocated ByteBuffer objects are accessed in the Java code. But again, if console output is turned on, it works stable. If console output is turned off, it works when the (useless) String concatenation operation is removed in the Java routine called from C++.
    I've already thought about potential races (regarding multiple threads), but this can be ruled out in my case. It almost appears as if the JVM can have problems when called by the invocation interface (I tested it with Java 1.4.2 b28).
    All the calls between C++ and Java go ALWAYS in the direction from C++ code to Java. Unfortunately, there is no special JRE version with extensive logging capabilities to facilitate debugging. And the problem is not easily reproducible either.
    JNIEnv* JNI_GetEnv()
    JNIEnv *env;
    cached_jvm->AttachCurrentThread((void**)&env,NULL);
    fprintf(logfile,"env=%i\n",env);
    fflush(logfile);
    return env;
    // function called by Metastock's MSX plug-in interface
    BOOL __stdcall createIndEngine (const MSXDataRec *a_psDataRec,
    const MSXDataInfoRecArgsArray *a_psDataInfoArgs,
    const MSXNumericArgsArray *a_psNumericArgs,
    const MSXStringArgsArray *a_psStringArgs,
    const MSXCustomArgsArray *a_psCustomArgs,
    MSXResultRec *a_psResultRec)
    a_psResultRec->psResultArray->iFirstValid=0;
    a_psResultRec->psResultArray->iLastValid=-1;
    jthrowable ex;
    jmethodID mid;
    JNIEnv* env=JNI_GetEnv();
    jobject chart=getChart(env, a_psDataRec);
    if ( chart==NULL) {
    return MSX_ERROR;
    jobject getChart (JNIEnv* env, const MSXDataRec *a_psDataRec)
    jthrowable ex;
    jmethodID mid;
    int closeFirstValid, closeLastValid;
    closeFirstValid=a_psDataRec->sClose.iFirstValid;
    closeLastValid=a_psDataRec->sClose.iLastValid;
    long firstDate, firstTime;
    if (closeFirstValid>=1 && closeFirstValid<=closeLastValid) {
    firstDate = a_psDataRec->psDate[closeFirstValid].lDate;
    firstTime = a_psDataRec->psDate[closeFirstValid].lTime;
    } else {
    firstDate=0;
    firstTime=0;
    jclass chartFactoryClass = env->FindClass("wschwendt/metastock/msx/ChartFactory");
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Cannot find class ChartFactory\n");
    printSBufViaJava(sbuf);
    return NULL;
    mid = env->GetStaticMethodID(chartFactoryClass, "getInstance", "()Lwschwendt/metastock/msx/ChartFactory;");
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Cannot find method ID for ChartFactory.getInstance()\n");
    printSBufViaJava(sbuf);
    return NULL;
    jobject chartFactory=env->CallStaticObjectMethod(chartFactoryClass, mid);
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Exception while calling ChartFactory.getInstance()");
    printSBufViaJava(sbuf);
    return NULL;
    mid = env->GetMethodID(chartFactoryClass, "getChartID", "(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;IIIIIII)F");
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Cannot find method ID for ChartFactory.getChartID()\n");
    printSBufViaJava(sbuf);
    return NULL;
    jobject symbolBuf=env->NewDirectByteBuffer(a_psDataRec->pszSymbol, strlen(a_psDataRec->pszSymbol) );
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Cannot allocate symbolBuf\n");
    printSBufViaJava(sbuf);
    return NULL;
    jobject securityNameBuf=env->NewDirectByteBuffer(a_psDataRec->pszSecurityName, strlen(a_psDataRec->pszSecurityName) );
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Cannot allocate securityNameBuf\n");
    printSBufViaJava(sbuf);
    return NULL;
    jobject securityPathBuf=env->NewDirectByteBuffer(a_psDataRec->pszSecurityPath, strlen(a_psDataRec->pszSecurityPath) );
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Cannot allocate securityPathBuf\n");
    printSBufViaJava(sbuf);
    return NULL;
    jobject securityOnlineSourceBuf=env->NewDirectByteBuffer(a_psDataRec->pszOnlineSource, strlen(a_psDataRec->pszOnlineSource) );
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Cannot allocate onlineSourceBuf\n");
    printSBufViaJava(sbuf);
    return NULL;
    // Java Function call leads to crash, if console output is turned off and
    // the first statement in the Java routine is a (useless) string concatenation.
    // Otherwise it works stable.
    jfloat chartID=env->CallFloatMethod(chartFactory, mid, securityNameBuf, symbolBuf,
    securityPathBuf, securityOnlineSourceBuf, (jint)(a_psDataRec->iPeriod),
    (jint)(a_psDataRec->iInterval), (jint)(a_psDataRec->iStartTime),
    (jint)(a_psDataRec->iEndTime), (jint)(a_psDataRec->iSymbolType),
    (jint)firstDate, (jint)firstTime );
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Exception while calling ChartFactory.getChartID()");
    printSBufViaJava(sbuf);
    return NULL;

  • Getting error while running Perl adcfgclone.pl appsTier

    hi ,
    i m getting error while running Perl adcfgclone.pl appsTier
    error:ksh: Perl: not found
    i check for per and ksh
    which perl
    /usr/bin/perl
    which ksh
    /usr/bin/ksh
    (my os out put for perl ,my os is SunOS testserver 5.10 Generic_137137-09 sun4u sparc SUNW,Ultra-250)
    perl -V
    /appl2/applmgr2/prodora/iAS/Apache/perl/lib/5.00503
    /appl2/applmgr2/prodora/iAS/Apache/perl/lib/site_perl/5.005
    /appl2/applmgr2/prodappl/au/11.5.0/perl
    /usr/perl5/5.8.4/lib/sun4-solaris-64int
    /usr/perl5/5.8.4/lib
    /usr/perl5/site_perl/5.8.4/sun4-solaris-64int
    /usr/perl5/site_perl/5.8.4
    /usr/perl5/site_perl
    /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int
    /usr/perl5/vendor_perl/5.8.4
    /usr/perl5/vendor_perl
    which i need to set in path
    PATH=$PATH:/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin (like this )
    export PATH
    please help me out

    hi ,
    here is the out put
    # pwd
    /appl2/applmgr2/prodora/iAS/Apache/perl
    # perl -V
    Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
    Platform:
    osname=solaris, osvers=2.10, archname=sun4-solaris-64int
    uname='sunos localhost 5.10 sun4u sparc SUNW,Ultra-2'
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    Compiler:
    cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO',
    optimize='-xO3 -xspace -xildoff',
    cppflags=''
    ccversion='Sun WorkShop', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
    Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
    Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE'
    cccdlflags='-KPIC', lddlflags='-G'
    Characteristics of this binary (from libperl):
    Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
    Locally applied patches:
    22667 The optree builder was looping when constructing the ops ...
    22715 Upgrade to FileCache 1.04
    22733 Missing copyright in the README.
    22746 fix a coredump caused by rv2gv not fully converting a PV ...
    22755 Fix 29149 - another UTF8 cache bug hit by substr.
    22774 [perl #28938] split could leave an array without ...
    22775 [perl #29127] scalar delete of empty slice returned garbage
    22776 [perl #28986] perl -e "open m" crashes Perl
    22777 add test for change #22776 ("open m" crashes Perl)
    22778 add test for change #22746 ([perl #29102] Crash on assign ...
    22781 [perl #29340] Bizarre copy of ARRAY make sure a pad op's ...
    22796 [perl #29346] Double warning for int(undef) and abs(undef) ...
    22818 BOM-marked and (BOMless) UTF-16 scripts not working
    22823 [perl #29581] glob() misses a lot of matches
    22827 Smoke [5.9.2] 22818 FAIL(F) MSWin32 WinXP/.Net SP1 (x86/1 cpu)
    22830 [perl #29637] Thread creation time is hypersensitive
    22831 improve hashing algorithm for ptr tables in perl_clone: ...
    22839 [perl #29790] Optimization busted: '@a = "b", sort @a' ...
    22850 [PATCH] 'perl -v' fails if local_patches contains code snippets
    22852 TEST needs to ignore SCM files
    22886 Pod::Find should ignore SCM files and dirs
    22888 Remove redundant %SIG assignments from FileCache
    23006 [perl #30509] use encoding and "eq" cause memory leak
    23074 Segfault using HTML::Entities
    23106 Numeric comparison operators mustn't compare addresses of ...
    23320 [perl #30066] Memory leak in nested shared data structures ...
    23321 [perl #31459] Bug in read()
    27722 perlio.c breaks on Solaris/gcc when > 256 FDs are available
    SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962
    6663288 Upgrade to CGI.pm 3.33
    REGEXP0 - fix for UTF-8 recoding in regexps - CVE-2007-5116
    Built under solaris
    Compiled at Jul 31 2008 12:07:52
    @INC:
    /usr/perl5/5.8.4/lib/sun4-solaris-64int
    /usr/perl5/5.8.4/lib
    /usr/perl5/site_perl/5.8.4/sun4-solaris-64int
    /usr/perl5/site_perl/5.8.4
    /usr/perl5/site_perl
    /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int
    /usr/perl5/vendor_perl/5.8.4
    /usr/perl5/vendor_perl
    Thanks &Regard

  • Error while using threads in proc program

    Hi,
    I am getting the error fetched column value NULL (-1405) in proc program while using the threads.
    The execution of the program is as follows.
    Tot_Threads = 5 (Total threads, totally 5 records with value instance names)
    No_Of_threads = 1 (No Of threads executed at the same time)
    Example :
    INSTANCE_NAME – Link1, link2, link3, link4, link5 (All different Databases)
    NO_OF_THREADS - 5
    Threading Logic:
    Based on the maintanence NO_OF_THREADS, the program will process.
         If (NO_OF_THREADS == 0)
              Process_Sequence
         else
              if NO_OF_THREADS == TOT_THREADS
                   Process_Type1
              else
                   Process_Type2
    In a loop for all different instances,
    New context area will be created and allocated.
         New oracle session will be created.
         New structure will be created and all global parameters are assigned to that structure.
         For each instance, a new thread will be created (thr_create) and all the threads will call
         the same(MainProcess) function which takes the structure as parameter.
         At the end of every session, the corresponding oracle session will logged out.
    Process_Type1 logic :
         /* For Loop for all threads in a loop */
         for(Cnt=0;Cnt < Tot_Threads;Cnt++)
              /* Allocating new contect for every different thread */
              EXEC SQL CONTEXT ALLOCATE :ctx[Cnt];
              /* Connected to new oracle session */
              logon(ctx[Cnt],ConnStr);          
    /* Assigning all the global parameters to the structure and then passing it to InsertBatching function */
              DataSet[Cnt].THINDEX=Cnt;
              DataSet[Cnt].sDebug=DebugMode;
              strcpy(DataSet[Cnt].THNAME,(char *)InsNameArr[Cnt].arr);
              DataSet[Cnt].ctx=ctx[Cnt];
              /* creating new threads for time in a loop */
    RetVal = thr_create(NULL,0,InsertBatching,&DataSet[Cnt],THR_BOUND,&threads[Cnt]);
              sprintf(LocalStr1,"\nCreated thread %d", Cnt);
              DebugMessage(mptr,LocalStr1,DebugMode);
         for(Cnt=0;Cnt <Tot_Threads;Cnt++)
              /* Waiting for threads to complete */
              if (thr_join(threads[Cnt],NULL,NULL))
                   printf("\nError in thread Finish \n");
                   exit(-1);
              /* Logout from the specific oracle session */     
              logoff(ctx[Cnt]);
              /* Free the context area after usage */
              EXEC SQL CONTEXT FREE :ctx[Cnt];     
    used functions:
              thr_create with thr_suspend option
              thr_join to wait for the thread to complete
    Process_Type2 logic :
         Here the idea is , if the load is heavy , then we can change the maintanence of NO_OF_THREADS (Ex - 2), so that only two threads will be executed in the same time , others should wait for      the same to complete ,once the first two threads completed and the next two should be started and then in the same manner it will do for all the threads.
    The parameters passing and the structure passing are same as above.
    Here all threads will be created in suspended mode, and then only No_Of_threads(2) will
    be started, others will be in suspended mode, once the first two is completed then the
    other two thread will be started and in the same manner other threads.
         used functions:
              thr_create with thr_suspend option
              thr_continue to start the suspended thread
              thr_join to wait for the thread to complete
    Process_Sequence logic :
    Here the idea is , to run the program for all the instances , without creating the threads.Hence in the for loop , one by one instance will be taken and call the same function to Process. This will call the same function repeated for each different value. The parameters passing and the structure passing are same as above.
         The InsertBatching function will prepare the cursor and pick all records for batching and then , it will call other individual functions for processing. For all the functions the structure variable will be passed as parameter which holds all the neccessary values.
    Here in all the sub functions , we have used
         EXEC SQL CONTEXT USE :Var;
         Var is corresponding context allocated for that thread, which we assume that the corresponding context is used in all sub functions.
         EXEC SQL INCLUDE SQLCA;
    This statement we have given in InsertBatching Function not in all sub functiosn
    Example for the Sub functions used in the program :-
    /* File pointer fptr and dptr are general file pointers , to write the debub messages, DataStruct will hold all global parameters and also context area .
    int Insert(FILE fptr,FILE dptr,DataStruct d1)
    EXEC SQL BEGIN DECLARE SECTION;
         VARCHAR InsertStmt[5000];
    EXEC SQL END DECLARE SECTION;
    char LocalStr[2000];
    EXEC SQL CONTEXT USE :d1.ctx;
    InsertStmt will hold insert statement      
    EXEC SQL EXECUTE IMMEDIATE :InsertStmt;
    if (ERROR)
         sprintf(LocalStr,"\nError in Inserting Table - %s",d1.THNAME);
         DebugMessage(dptr,LocalStr,d1.sDebug);
         sprintf(LocalStr,"\n %d - %s - %s",sqlca.sqlcode,ERROR_MESG,d1.THNAME);
         DebugMessage(dptr,LocalStr,d1.sDebug);
         return 1;
    return 0;
    I get this error occationally and not always. While preparing the sql statement also i am getting this error.
    The code contains calls to some stored procedures also.
    Thanks in advance

    in every select nvl is handled and this error is occuring while preparing statements also

  • Error while creating JVM -Urgent

    This is my Java program - Prog.java
    public class Prog {
    public static void main(String[] args) {
    System.out.println("Hello World" + args[0]);
    This is my c program --invoke.c
    include <jni.h>
    #ifdef _WIN32
    #define PATH_SEPARATOR ';'
    #else /* UNIX */
    #define PATH_SEPARATOR ':'
    #endif
    #define USER_CLASSPATH "." /* where Prog.class is */
    main() {
    JNIEnv *env;
    JavaVM *jvm;
    JDK1_1InitArgs vm_args;
    jint res;
    jclass cls;
    jmethodID mid;
    jstring jstr;
    jobjectArray args;
    char classpath[1024];
    /* IMPORTANT: specify vm_args version # if you use JDK1.1.2 and beyond */
    vm_args.version = 0x00010001;
    JNI_GetDefaultJavaVMInitArgs(&vm_args);
    /* Append USER_CLASSPATH to the end of default system class path */
    sprintf(classpath, "%s%c%s",
    vm_args.classpath, PATH_SEPARATOR, USER_CLASSPATH);
    vm_args.classpath = classpath;
    /* Create the Java VM */
    res = JNI_CreateJavaVM(&jvm,&env,&vm_args);
    if (res < 0) {
    fprintf(stderr, "Can't create Java VM\n");
    exit(1);
    cls = (*env)->FindClass(env, "Prog");
    if (cls == 0) {
    fprintf(stderr, "Can't find Prog class\n");
    exit(1);
    mid = (*env)->GetStaticMethodID(env, cls, "main", "([Ljava/lang/String;)V");
    if (mid == 0) {
    fprintf(stderr, "Can't find Prog.main\n");
    exit(1);
    jstr = (*env)->NewStringUTF(env, " from C!");
    if (jstr == 0) {
    fprintf(stderr, "Out of memory\n");
    exit(1);
    args = (*env)->NewObjectArray(env, 1,
    (*env)->FindClass(env, "java/lang/String"), jstr);
    if (args == 0) {
    fprintf(stderr, "Out of memory\n");
    exit(1);
    (*env)->CallStaticVoidMethod(env, cls, mid, args);
    (*jvm)->DestroyJavaVM(jvm);
    I am compiling my program using this
    gcc -I/usr/java/jdk1.3.1_06/include -I/usr/java/jdk1.3.1_06/include/linux -L/usr/java/jdk1.3.1_06/jre/lib/i386 -ljava invoke.c
    All the paths and classpath is correct.
    But I am getting an error
    invoke.c: In function `main':
    invoke.c:34: warning: passing arg 2 of `JNI_CreateJavaVM' from incompatible pointer type
    Please tell me what could be the problem.
    Thanks and Regarsd,
    Anand

    Hi Anandabrata,
    I think you had referred to the following link
    http://java.sun.com/docs/books/jni/html/invoke.html
    But you had forgotten to note in which version you are going to invoke the JVM.
    Since your compiling command refers to include paths as
    ======
    gcc -I/usr/java/jdk1.3.1_06/include -I/usr/java/jdk1.3.1_06/include/linux -L/usr/java/jdk1.3.1_06/jre/lib/i386 -ljava invoke.c
    ======
    I think you should be using jdk1.3XXXX some thing.
    So, the JNI version that you should have tried should be Version2.
    As I have commented the release that is specific to the version check and that of version1, better use the uncommented code and try creating the JavaVM.
    You should be getting it right.
    To be more specific
    Do use this
    // #ifdef JNI_VERSION_1_2
    JavaVMInitArgs vm_args;
    JavaVMOption options[1];
    options[0].optionString =
    "-Djava.class.path=" USER_CLASSPATH;
    vm_args.version = 0x00010002;
    vm_args.options = options;
    vm_args.nOptions = 1;
    vm_args.ignoreUnrecognized = JNI_TRUE;
    /* Create the Java VM */
    res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
    // #else
    // JDK1_1InitArgs vm_args;
    // char classpath[1024];
    // vm_args.version = 0x00010001;
    // JNI_GetDefaultJavaVMInitArgs(&vm_args);
    // /* Append USER_CLASSPATH to the default system class path */
    // sprintf(classpath, "%s%c%s",
    // vm_args.classpath, PATH_SEPARATOR, USER_CLASSPATH);
    // vm_args.classpath = classpath;
    // /* Create the Java VM */
    // res = JNI_CreateJavaVM(&jvm, &env, &vm_args);
    // #endif /* JNI_VERSION_1_2 */
    Good Luck
    Dhamo

  • Daqmx error num: -50103 with message: The specified resource is reserved. The operation could not be completed as specified.

    Hi, I am running a program where I have 4 nidaq cards on a single machine, all connected. I am trying to start a counter and keep getting that error (daqmx error num: -50103 with message: The specified resource is reserved. The operation could not be completed as specified.) in two places in my code. I understand what the error means (you can only have one task of a type per card), but I don't see where that is occuring in my code.
    See below for code. I noted the two places where the error is occuring. I am debugging someone else's code, which is part of the problem.
    Thanks!
    counterTask = 0;
    daq_err_check( DAQmxCreateTask( "counter_generation_task",
    &(counter_generation_task) ));
    daq_err_check( DAQmxCreateTask("counter_count_task",
    &(counter_count_task) ));
    char co_chan_name[40];
    char ci_chan_name[40];
    char ci_trig_chan_name[40];
    sprintf( co_chan_name, "%s/ctr0", niDev);
    sprintf( ci_chan_name, "%s/ctr1", niDev);
    sprintf( ci_trig_chan_name, "/%s/PFI9", niDev);
    printf("OK1");fflush(stdout);
    daq_err_check( DAQmxCreateCOPulseChanTicks( counter_generation_task,
    co_chan_name, "", "ai/SampleClock",
    DAQmx_Val_Low, 32,16,16) );
    daq_err_check( DAQmxCfgImplicitTiming( counter_generation_task,
    DAQmx_Val_ContSamps, 1000) );
    daq_err_check( DAQmxCreateCICountEdgesChan( counter_count_task,
    ci_chan_name, "",
    DAQmx_Val_Rising, 0, DAQmx_Val_CountUp) );
    daq_err_check( DAQmxCfgSampClkTiming( counter_count_task,
    "Ctr0InternalOutput", 1000.0, DAQmx_Val_Rising,
    DAQmx_Val_ContSamps, 1000) );
    daq_err_check( DAQmxSetRefClkSrc( counter_generation_task, "OnboardClock") );
    daq_err_check( DAQmxSetRefClkSrc( counter_count_task, "OnboardClock") );
    printf("abt to start counter_count\n"); fflush(stdout);
    daq_err_check ( DAQmxStartTask( counter_count_task ) ); // ERROR OCCURS HERE
    printf("abt to start counter_gen\n"); fflush(stdout);
    daq_err_check ( DAQmxStartTask( counter_generation_task ) ); // ERROR OCCURS HERE
    fflush(stdout);
    Thanks again for your patience!

    I get it when capturing from my mini DV cam (which is not controllable by FCP). To resolve, I have to click Capture Now a split second after I start the DV tape rolling.

  • Error detected by HotSpot Virtual Machine

    Hi
    I am using JNI on linux. I have a java program BladeServerImpl which has a native method nativeBoot() which accepts three arguments two strings and one integer. I used javah -jni to generate the header file. I implemented the native method in a C program bootnative.c
    Now this method nativeBoot() is called from a client (in a JINI enviroment) The client side console discovers the BladeServer service and uses it's object to call the nativeBoot() method. However the VM crashes with the following message.
    +#+
    +# An unexpected error has been detected by HotSpot Virtual Machine:+
    +#+
    +# SIGSEGV (0xb) at pc=0x0066b12b, pid=20016, tid=2978888592+
    +#+
    +# Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing)+
    +# Problematic frame:+
    +# C [libc.so.6+0x7012b] strlen+0xb+
    +#+
    +# An error report file with more information is saved as hs_err_pid20016.log+
    +#+
    +# If you would like to submit a bug report, please visit:+
    +# http://java.sun.com/webapps/bugreport/crash.jsp+
    +#+
    The error log is as under:
    +#+
    +# An unexpected error has been detected by HotSpot Virtual Machine:+
    +#+
    +# SIGSEGV (0xb) at pc=0x0066b12b, pid=12166, tid=2978737040+
    +#+
    +# Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing)+
    +# Problematic frame:+
    +# C [libc.so.6+0x7012b] strlen+0xb+
    +#+
    ---------------  T H R E A D  ---------------
    +Current thread (0x09d1cc18):  JavaThread "RMI TCP Connection(1)-127.0.0.1" daemon [_thread_in_native, id=12258]+
    siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000003
    Registers:
    EAX=0x00000003, EBX=0x0074fff4, ECX=0x00000003, EDX=0x00638007
    ESP=0xb18bcb10, EBP=0xb18bd114, ESI=0x00000003, EDI=0xb18bd088
    EIP=0x0066b12b, CR2=0x00000003, EFLAGS=0x00010206
    Top of Stack: (sp=0xb18bcb10)
    +0xb18bcb10: 0063b1e9 00000003 b77cd8af 00000000+
    +0xb18bcb20: 00000016 0065e474 00000001 b7f86000+
    +0xb18bcb30: 00637bec 007504c0 007504c0 b18bcb68+
    +0xb18bcb40: 0065e135 b18bd088 0065ec1a 00000016+
    +0xb18bcb50: 007504c0 00000016 b7f86000 0074fff4+
    +0xb18bcb60: 0000000e 0000000f b18bcb98 b18bd1c4+
    +0xb18bcb70: 007504c0 0000003a 0065ed0e 007504c0+
    +0xb18bcb80: b77cd876 00000000 b7f8600e 0074fff4+
    Instructions: (pc=0x0066b12b)
    +0x0066b11b: 0c eb 96 90 90 8b 4c 24 04 89 c8 83 e1 03 74 28+
    +0x0066b12b: 38 28 0f 84 97 00 00 00 40 83 f1 03 74 1a 38 28+
    Stack: [0xb183e000,0xb18bf000),  sp=0xb18bcb10,  free space=506k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    +C  [libc.so.6+0x7012b] strlen+0xb+
    +C  [libc.so.6+0x5afec] vsprintf+0x8c+
    +C  [libc.so.6+0x45a2e] sprintf+0x2e+
    +C  [libbootnative.so+0x75e] sbootuml+0xc1+
    +C  [libbootnative.so+0x64b] Java_com_wipro_magnum_slof_resource_compute_impl_BladeServerImpl_nativeBoot+0x6f+
    j  com.wipro.magnum.slof.resource.compute.impl.BladeServerImpl.nativeBoot(Ljava/lang/String;Ljava/lang/String;I)I0+
    j  com.wipro.magnum.slof.resource.compute.impl.BladeServerImpl.boot()I107+
    v  ~StubRoutines::call_stub
    +V  [libjvm.so+0x17ad8c]+
    +V  [libjvm.so+0x28efd8]+
    +V  [libjvm.so+0x17abbf]+
    +V  [libjvm.so+0x2b92ac]+
    +V  [libjvm.so+0x2bbfba]+
    +V  [libjvm.so+0x1eed12]+
    +C  [libjava.so+0x13774] Java_sun_reflect_NativeMethodAccessorImpl_invoke0+0x34+
    +j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0+
    +j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87+
    +j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6+
    +j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111+
    j  sun.rmi.server.UnicastServerRef.dispatch(Ljava/rmi/Remote;Ljava/rmi/server/RemoteCall;)V246+
    j  sun.rmi.transport.Transport$1.run()Ljava/lang/Object;23+
    v  ~StubRoutines::call_stub
    +V  [libjvm.so+0x17ad8c]+
    +V  [libjvm.so+0x28efd8]+
    +V  [libjvm.so+0x17abbf]+
    +V  [libjvm.so+0x1d834d]+
    +C  [libjava.so+0x93bc] Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedExceptionAction_2Ljava_security_AccessControlContext_2+0x3c+
    j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;0+
    j  sun.rmi.transport.Transport.serviceCall(Ljava/rmi/server/RemoteCall;)Z163+
    j  sun.rmi.transport.tcp.TCPTransport.handleMessages(Lsun/rmi/transport/Connection;Z)V185+
    j  sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run()V685+
    j  java.lang.Thread.run()V11+
    v  ~StubRoutines::call_stub
    +V  [libjvm.so+0x17ad8c]+
    +V  [libjvm.so+0x28efd8]+
    +V  [libjvm.so+0x17a5e5]+
    +V  [libjvm.so+0x17a67e]+
    +V  [libjvm.so+0x1f1ed5]+
    +V  [libjvm.so+0x2f8523]+
    +V  [libjvm.so+0x28fbe8]+
    +C  [libpthread.so.0+0x550b]+
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j  com.wipro.magnum.slof.resource.compute.impl.BladeServerImpl.nativeBoot(Ljava/lang/String;Ljava/lang/String;I)I0+
    j  com.wipro.magnum.slof.resource.compute.impl.BladeServerImpl.boot()I107+
    v  ~StubRoutines::call_stub
    +j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0+
    +j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87+
    +j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6+
    +j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111+
    j  sun.rmi.server.UnicastServerRef.dispatch(Ljava/rmi/Remote;Ljava/rmi/server/RemoteCall;)V246+
    j  sun.rmi.transport.Transport$1.run()Ljava/lang/Object;23+
    v  ~StubRoutines::call_stub
    j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;0+
    j  sun.rmi.transport.Transport.serviceCall(Ljava/rmi/server/RemoteCall;)Z163+
    j  sun.rmi.transport.tcp.TCPTransport.handleMessages(Lsun/rmi/transport/Connection;Z)V185+
    j  sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run()V685+
    j  java.lang.Thread.run()V11+
    v  ~StubRoutines::call_stub
    ---------------  P R O C E S S  ---------------
    Java Threads: ( => current thread )
    +0xb150c010 JavaThread "RMI ConnectionExpiration-[127.0.0.1:54612]" daemon [_thread_blocked, id=12271]+
    +0xb150ba80 JavaThread "RMI RenewClean-[127.0.0.1:54612]" daemon [_thread_blocked, id=12269]+
    +0xb150b3e0 JavaThread "RMI ConnectionExpiration-[127.0.0.1:58626]" daemon [_thread_blocked, id=12268]+
    +0x09d120c8 JavaThread "task" daemon [_thread_blocked, id=12265]+
    +0x09d11388 JavaThread "Thread-5" daemon [_thread_blocked, id=12264]+
    +0x09d47920 JavaThread "multicast announcement timer" daemon [_thread_blocked, id=12263]+
    +0x09dbfcf0 JavaThread "multicast discovery announcement listener" daemon [_thread_in_native, id=12262]+
    +0x09d1ac88 JavaThread "RMI LeaseChecker" daemon [_thread_blocked, id=12259]+
    +=>0x09d1cc18 JavaThread "RMI TCP Connection(1)-127.0.0.1" daemon [_thread_in_native, id=12258]+
    +0x09dc1b20 JavaThread "task" daemon [_thread_blocked, id=12193]+
    +0x09d1c5b8 JavaThread "RMI RenewClean-[127.0.0.1:58626]" daemon [_thread_blocked, id=12188]+
    +0x09d18650 JavaThread "RMI RenewClean-[127.0.0.1:1098]" daemon [_thread_blocked, id=12185]+
    +0x09cc2e88 JavaThread "DestroyJavaVM" [_thread_blocked, id=12166]+
    +0x09dbc868 JavaThread "Thread-4" daemon [_thread_blocked, id=12184]+
    +0x09d46850 JavaThread "Thread-3" daemon [_thread_blocked, id=12181]+
    +0x09d461d8 JavaThread "Thread-2" daemon [_thread_blocked, id=12180]+
    +0x09cfcd48 JavaThread "multicast announcement timer" daemon [_thread_blocked, id=12179]+
    +0x09cfd838 JavaThread "multicast discovery announcement listener" daemon [_thread_in_native, id=12178]+
    +0x09fd8c60 JavaThread "GC Daemon" daemon [_thread_blocked, id=12177]+
    +0x09fd7ca0 JavaThread "RMI Reaper" [_thread_blocked, id=12176]+
    +0x09e45ba8 JavaThread "Timer-0" daemon [_thread_blocked, id=12175]+
    +0x09e466e0 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=12174]+
    +0x09d0bd50 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=12172]+
    +0x09d0a840 JavaThread "CompilerThread0" daemon [_thread_blocked, id=12171]+
    +0x09d097c0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=12170]+
    +0x09d03f98 JavaThread "Finalizer" daemon [_thread_blocked, id=12169]+
    +0x09d02110 JavaThread "Reference Handler" daemon [_thread_blocked, id=12168]+
    Other Threads:
    +0x09cff568 VMThread [id=12167]+
    +0x09d0d318 WatcherThread [id=12173]+
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation   total 576K, used 421K [0x88920000, 0x889c0000, 0x88e00000)
    eden space 512K,  69% used [0x88920000, 0x88979490, 0x889a0000)
    from space 64K, 100% used [0x889a0000, 0x889b0000, 0x889b0000)
    to   space 64K,   0% used [0x889b0000, 0x889b0000, 0x889c0000)
    tenured generation   total 1408K, used 571K [0x88e00000, 0x88f60000, 0x8c920000)
    the space 1408K,  40% used [0x88e00000, 0x88e8ee18, 0x88e8f000, 0x88f60000)
    compacting perm gen  total 8192K, used 1779K [0x8c920000, 0x8d120000, 0x90920000)
    the space 8192K,  21% used [0x8c920000, 0x8cadcf90, 0x8cadd000, 0x8d120000)
    ro space 8192K,  68% used [0x90920000, 0x90e9f5e0, 0x90e9f600, 0x91120000)
    rw space 12288K,  48% used [0x91120000, 0x916eaca0, 0x916eae00, 0x91d20000)
    Dynamic libraries:
    +0050a000-00537000 r-xp 00000000 08:05 2729095 /usr/lib/libgssapi_krb5.so.2.2+
    +00537000-00538000 rwxp 0002d000 08:05 2729095 /usr/lib/libgssapi_krb5.so.2.2+
    +0053a000-0055f000 r-xp 00000000 08:05 2729093 /usr/lib/libk5crypto.so.3.1+
    +0055f000-00560000 rwxp 00025000 08:05 2729093 /usr/lib/libk5crypto.so.3.1+
    +00562000-005a3000 r-xp 00000000 08:05 2359897 /lib/libssl.so.0.9.8b+
    +005a3000-005a7000 rwxp 00040000 08:05 2359897 /lib/libssl.so.0.9.8b+
    +005dc000-005f7000 r-xp 00000000 08:05 2359877 /lib/ld-2.7.so+
    +005f7000-005f8000 r-xp 0001a000 08:05 2359877 /lib/ld-2.7.so+
    +005f8000-005f9000 rwxp 0001b000 08:05 2359877 /lib/ld-2.7.so+
    +005fb000-0074e000 r-xp 00000000 08:05 2359878 /lib/libc-2.7.so+
    +0074e000-00750000 r-xp 00153000 08:05 2359878 /lib/libc-2.7.so+
    +00750000-00751000 rwxp 00155000 08:05 2359878 /lib/libc-2.7.so+
    +00751000-00754000 rwxp 00751000 00:00 0+
    +00756000-0077d000 r-xp 00000000 08:05 2359882 /lib/libm-2.7.so+
    +0077d000-0077e000 r-xp 00026000 08:05 2359882 /lib/libm-2.7.so+
    +0077e000-0077f000 rwxp 00027000 08:05 2359882 /lib/libm-2.7.so+
    +00781000-00784000 r-xp 00000000 08:05 2359879 /lib/libdl-2.7.so+
    +00784000-00785000 r-xp 00002000 08:05 2359879 /lib/libdl-2.7.so+
    +00785000-00786000 rwxp 00003000 08:05 2359879 /lib/libdl-2.7.so+
    +00788000-0079d000 r-xp 00000000 08:05 2359880 /lib/libpthread-2.7.so+
    +0079d000-0079e000 r-xp 00014000 08:05 2359880 /lib/libpthread-2.7.so+
    +0079e000-0079f000 rwxp 00015000 08:05 2359880 /lib/libpthread-2.7.so+
    +0079f000-007a1000 rwxp 0079f000 00:00 0+
    +007a3000-007b5000 r-xp 00000000 08:05 2359881 /lib/libz.so.1.2.3+
    +007b5000-007b6000 rwxp 00011000 08:05 2359881 /lib/libz.so.1.2.3+
    +007b8000-008d9000 r-xp 00000000 08:05 2890848 /usr/lib/mysql/libmysqlclient.so.15.0.0+
    +008d9000-0091b000 rwxp 00120000 08:05 2890848 /usr/lib/mysql/libmysqlclient.so.15.0.0+
    +0091b000-0091c000 rwxp 0091b000 00:00 0+
    +00cb7000-00cd0000 r-xp 00000000 08:05 2359894 /lib/libselinux.so.1+
    +00cd0000-00cd2000 rwxp 00018000 08:05 2359894 /lib/libselinux.so.1+
    +00d59000-00d6e000 r-xp 00000000 08:05 2359891 /lib/libnsl-2.7.so+
    +00d6e000-00d6f000 r-xp 00014000 08:05 2359891 /lib/libnsl-2.7.so+
    +00d6f000-00d70000 rwxp 00015000 08:05 2359891 /lib/libnsl-2.7.so+
    +00d70000-00d72000 rwxp 00d70000 00:00 0+
    +00d79000-00d89000 r-xp 00000000 08:05 2359893 /lib/libresolv-2.7.so+
    +00d89000-00d8a000 r-xp 00010000 08:05 2359893 /lib/libresolv-2.7.so+
    +00d8a000-00d8b000 rwxp 00011000 08:05 2359893 /lib/libresolv-2.7.so+
    +00d8b000-00d8d000 rwxp 00d8b000 00:00 0+
    +00dd0000-00dd2000 r-xp 00000000 08:05 2359895 /lib/libcom_err.so.2.1+
    +00dd2000-00dd3000 rwxp 00001000 08:05 2359895 /lib/libcom_err.so.2.1+
    +00dd5000-00dd7000 r-xp 00000000 08:05 2359892 /lib/libkeyutils-1.2.so+
    +00dd7000-00dd8000 rwxp 00001000 08:05 2359892 /lib/libkeyutils-1.2.so+
    +00dda000-00de2000 r-xp 00000000 08:05 2729092 /usr/lib/libkrb5support.so.0.1+
    +00de2000-00de3000 rwxp 00007000 08:05 2729092 /usr/lib/libkrb5support.so.0.1+
    +04f68000-05085000 r-xp 00000000 08:05 2359896 /lib/libcrypto.so.0.9.8b+
    +05085000-05097000 rwxp 0011d000 08:05 2359896 /lib/libcrypto.so.0.9.8b+
    +05097000-0509b000 rwxp 05097000 00:00 0+
    +0509d000-0512d000 r-xp 00000000 08:05 2729094 /usr/lib/libkrb5.so.3.3+
    +0512d000-05130000 rwxp 0008f000 08:05 2729094 /usr/lib/libkrb5.so.3.3+
    +05b66000-05b6f000 r-xp 00000000 08:05 2359901 /lib/libcrypt-2.7.so+
    +05b6f000-05b70000 r-xp 00008000 08:05 2359901 /lib/libcrypt-2.7.so+
    +05b70000-05b71000 rwxp 00009000 08:05 2359901 /lib/libcrypt-2.7.so+
    +05b71000-05b98000 rwxp 05b71000 00:00 0+
    +08048000-08057000 r-xp 00000000 08:05 3348301 /usr/java/jdk1.5.0_11/bin/java+
    +08057000-08059000 rwxp 0000e000 08:05 3348301 /usr/java/jdk1.5.0_11/bin/java+
    +09cbf000-0a076000 rwxp 09cbf000 00:00 0+
    +88920000-889c0000 rwxp 88920000 00:00 0+
    +889c0000-88e00000 rwxp 889c0000 00:00 0+
    +88e00000-88f60000 rwxp 88e00000 00:00 0+
    +88f60000-8c920000 rwxp 88f60000 00:00 0+
    +8c920000-8d120000 rwxp 8c920000 00:00 0+
    +8d120000-90920000 rwxp 8d120000 00:00 0+
    +90920000-90ea0000 r-xs 00001000 08:05 3962739 /usr/java/jdk1.5.0_11/jre/lib/i386/client/classes.jsa+
    +90ea0000-91120000 rwxp 90ea0000 00:00 0+
    +91120000-916eb000 rwxp 00581000 08:05 3962739 /usr/java/jdk1.5.0_11/jre/lib/i386/client/classes.jsa+
    +916eb000-91d20000 rwxp 916eb000 00:00 0+
    +91d20000-91df0000 rwxp 00b4c000 08:05 3962739 /usr/java/jdk1.5.0_11/jre/lib/i386/client/classes.jsa+
    +91df0000-92120000 rwxp 91df0000 00:00 0+
    +92120000-92124000 r-xs 00c1c000 08:05 3962739 /usr/java/jdk1.5.0_11/jre/lib/i386/client/classes.jsa+
    +92124000-92520000 rwxp 92124000 00:00 0+
    +b137d000-b1380000 --xp b137d000 00:00 0+
    b1380000-b13fe000 rwxp b1380000 00:00 0
    +b13fe000-b1401000 --xp b13fe000 00:00 0+
    b1401000-b147f000 rwxp b1401000 00:00 0
    +b147f000-b1482000 --xp b147f000 00:00 0+
    b1482000-b1521000 rwxp b1482000 00:00 0
    +b1521000-b1600000 --xp b1521000 00:00 0+
    +b1621000-b1624000 --xp b1621000 00:00 0+
    b1624000-b16a2000 rwxp b1624000 00:00 0
    +b16a2000-b16a5000 --xp b16a2000 00:00 0+
    b16a5000-b1723000 rwxp b16a5000 00:00 0
    b1723000-b1727000 r-xp 00000000 08:05 2357036    /lib/libnss_dns-2.7.so
    b1727000-b1728000 r-xp 00003000 08:05 2357036    /lib/libnss_dns-2.7.so
    b1728000-b1729000 rwxp 00004000 08:05 2357036    /lib/libnss_dns-2.7.so
    +b173c000-b173f000 --xp b173c000 00:00 0+
    b173f000-b17bd000 rwxp b173f000 00:00 0
    +b17bd000-b17c0000 --xp b17bd000 00:00 0+
    b17c0000-b183e000 rwxp b17c0000 00:00 0
    +b183e000-b1841000 --xp b183e000 00:00 0+
    b1841000-b18bf000 rwxp b1841000 00:00 0
    +b18bf000-b18c2000 --xp b18bf000 00:00 0+
    b18c2000-b1940000 rwxp b18c2000 00:00 0
    +b1940000-b1943000 --xp b1940000 00:00 0+
    b1943000-b19c1000 rwxp b1943000 00:00 0
    +b19c1000-b19c4000 --xp b19c1000 00:00 0+
    b19c4000-b1a42000 rwxp b19c4000 00:00 0
    b1a42000-b1a43000 r-xp 00000000 08:05 3962816    /usr/java/jdk1.5.0_11/jre/lib/i386/librmi.so
    b1a43000-b1a44000 rwxp 00000000 08:05 3962816    /usr/java/jdk1.5.0_11/jre/lib/i386/librmi.so
    +b1a44000-b1a47000 --xp b1a44000 00:00 0+
    b1a47000-b1ac5000 rwxp b1a47000 00:00 0
    +b1ac5000-b1ac8000 --xp b1ac5000 00:00 0+
    b1ac8000-b1b46000 rwxp b1ac8000 00:00 0
    +b1b46000-b1b49000 --xp b1b46000 00:00 0+
    b1b49000-b1bc7000 rwxp b1b49000 00:00 0
    +b1bc7000-b1bca000 --xp b1bc7000 00:00 0+
    b1bca000-b1c48000 rwxp b1bca000 00:00 0
    +b1c48000-b1c4b000 --xp b1c48000 00:00 0+
    b1c4b000-b1cc9000 rwxp b1c4b000 00:00 0
    +b1cc9000-b1ccc000 --xp b1cc9000 00:00 0+
    b1ccc000-b1d4a000 rwxp b1ccc000 00:00 0
    +b1d4a000-b1d4d000 --xp b1d4a000 00:00 0+
    b1d4d000-b1dcb000 rwxp b1d4d000 00:00 0
    +b1dcb000-b1dce000 --xp b1dcb000 00:00 0+
    b1dce000-b1e4c000 rwxp b1dce000 00:00 0
    +b1e4c000-b1e4f000 --xp b1e4c000 00:00 0+
    b1e4f000-b1ecd000 rwxp b1e4f000 00:00 0
    +b1ecd000-b1ed0000 --xp b1ecd000 00:00 0+
    b1ed0000-b1f4e000 rwxp b1ed0000 00:00 0
    b1f4e000-b1f67000 r-xs 00000000 08:05 1408084    /root/integ/slof/release/BootServer/BootServer-service.jar
    b1f67000-b1f78000 r-xp 00000000 08:05 3962814    /usr/java/jdk1.5.0_11/jre/lib/i386/libnet.so
    b1f78000-b1f79000 rwxp 00011000 08:05 3962814    /usr/java/jdk1.5.0_11/jre/lib/i386/libnet.so
    b1f79000-b1f8e000 r-xs 00000000 08:05 1408406    /root/integ/slof/release/common/common-service.jar
    b1f8e000-b1fb3000 r-xs 00000000 08:05 1407728    /root/integ/slof/release/lib/jdom.jar
    b1fb3000-b1fcd000 r-xs 00000000 08:05 1407725    /root/integ/slof/release/lib/edtftpj.jar
    b1fcd000-b1fd3000 r-xs 00000000 08:05 1407904    /root/integ/slof/release/resourceblade/resourceblade-service.jar
    b1fd3000-b1fd8000 r-xs 00000000 08:05 1407737    /root/integ/slof/release/lib/jini/tools.jar
    b1fd8000-b1fe7000 r-xs 00000000 08:05 1407746    /root/integ/slof/release/lib/jini/reggie-dl.jar
    b1fe7000-b202d000 r-xs 00000000 08:05 1407783    /root/integ/slof/release/lib/jini/reggie.jar
    b202d000-b2054000 r-xs 00000000 08:05 1407721    /root/integ/slof/release/lib/jini/jini-ext.jar
    b2054000-b205b000 r-xs 00000000 08:05 1407787    /root/integ/slof/release/lib/jini/jini-core.jar
    b205b000-b2082000 r-xs 00000000 08:05 3962743    /usr/java/jdk1.5.0_11/jre/lib/ext/sunjce_provider.jar
    b2082000-b20ad000 r-xs 00000000 08:05 3962744    /usr/java/jdk1.5.0_11/jre/lib/ext/sunpkcs11.jar
    b20ad000-b20af000 r-xs 00000000 08:05 3962741    /usr/java/jdk1.5.0_11/jre/lib/ext/dnsns.jar
    b20af000-b2174000 r-xs 00000000 08:05 3962730    /usr/java/jdk1.5.0_11/jre/lib/ext/localedata.jar
    +b2174000-b2175000 --xp b2174000 00:00 0+
    b2175000-b21f5000 rwxp b2175000 00:00 0
    +b21f5000-b21f8000 --xp b21f5000 00:00 0+
    b21f8000-b2276000 rwxp b21f8000 00:00 0
    +b2276000-b2279000 --xp b2276000 00:00 0+
    b2279000-b22f7000 rwxp b2279000 00:00 0
    +b22f7000-b22fa000 --xp b22f7000 00:00 0+
    b22fa000-b2378000 rwxp b22fa000 00:00 0
    b2378000-b2578000 r-xp 00000000 08:05 2720867    /usr/lib/locale/locale-archive
    +b2578000-b257b000 --xp b2578000 00:00 0+
    b257b000-b25f9000 rwxp b257b000 00:00 0
    +b25f9000-b25fc000 --xp b25f9000 00:00 0+
    b25fc000-b267a000 rwxp b25fc000 00:00 0
    +b267a000-b267b000 --xp b267a000 00:00 0+
    b267b000-b2707000 rwxp b267b000 00:00 0
    b2707000-b2723000 rwxp b2707000 00:00 0
    b2723000-b2724000 rwxp b2723000 00:00 0
    b2724000-b2741000 rwxp b2724000 00:00 0
    b2741000-b2742000 rwxp b2741000 00:00 0
    b2742000-b2743000 rwxp b2742000 00:00 0
    b2743000-b2745000 rwxp b2743000 00:00 0
    b2745000-b2761000 rwxp b2745000 00:00 0
    b2761000-b2765000 rwxp b2761000 00:00 0
    b2765000-b2781000 rwxp b2765000 00:00 0
    b2781000-b2790000 rwxp b2781000 00:00 0
    b2790000-b280c000 rwxp b2790000 00:00 0
    b280c000-b28e4000 rwxp b280c000 00:00 0
    b28e4000-b480c000 rwxp b28e4000 00:00 0
    b480c000-b507b000 r-xs 00000000 08:05 3962865    /usr/java/jdk1.5.0_11/jre/lib/charsets.jar
    b507b000-b5090000 r-xs 00000000 08:05 3962864    /usr/java/jdk1.5.0_11/jre/lib/jce.jar
    b5090000-b5115000 r-xs 00000000 08:05 3962923    /usr/java/jdk1.5.0_11/jre/lib/jsse.jar
    b5115000-b517e000 rwxp b5115000 00:00 0
    b517e000-b778d000 r-xs 00000000 08:05 3963623    /usr/java/jdk1.5.0_11/jre/lib/rt.jar
    b778d000-b779c000 r-xp 00000000 08:05 3962820    /usr/java/jdk1.5.0_11/jre/lib/i386/libzip.so
    b779c000-b779e000 rwxp 0000e000 08:05 3962820    /usr/java/jdk1.5.0_11/jre/lib/i386/libzip.so
    b779e000-b77bf000 r-xp 00000000 08:05 3962800    /usr/java/jdk1.5.0_11/jre/lib/i386/libjava.so
    b77bf000-b77c1000 rwxp 00020000 08:05 3962800    /usr/java/jdk1.5.0_11/jre/lib/i386/libjava.so
    b77c1000-b77cb000 r-xp 00000000 08:05 2357038    /lib/libnss_files-2.7.so
    b77cb000-b77cc000 r-xp 00009000 08:05 2357038    /lib/libnss_files-2.7.so
    b77cc000-b77cd000 rwxp 0000a000 08:05 2357038    /lib/libnss_files-2.7.so
    b77cd000-b77ce000 r-xp 00000000 08:05 1407888    /root/integ/slof/release/resourceblade/libbootnative.so
    b77ce000-b77cf000 rwxp 00000000 08:05 1407888    /root/integ/slof/release/resourceblade/libbootnative.so
    b77cf000-b77d4000 rwxp b77cf000 00:00 0
    b77d4000-b77df000 r-xp 00000000 08:05 3962819    /usr/java/jdk1.5.0_11/jre/lib/i386/libverify.so
    b77df000-b77e0000 rwxp 0000b000 08:05 3962819    /usr/java/jdk1.5.0_11/jre/lib/i386/libverify.so
    b77e0000-b7b50000 r-xp 00000000 08:05 3962783    /usr/java/jdk1.5.0_11/jre/lib/i386/client/libjvm.so
    b7b50000-b7b6e000 rwxp 00370000 08:05 3962783    /usr/java/jdk1.5.0_11/jre/lib/i386/client/libjvm.so
    b7b6e000-b7f87000 rwxp b7b6e000 00:00 0
    b7f87000-b7f88000 r-xs 00000000 08:05 1407781    /root/integ/slof/release/lib/magnum-common.jar
    b7f88000-b7f90000 rwxs 00000000 08:05 1375050    /tmp/hsperfdata_root/12166
    b7f90000-b7f96000 r-xp 00000000 08:05 3962824    /usr/java/jdk1.5.0_11/jre/lib/i386/native_threads/libhpi.so
    b7f96000-b7f97000 rwxp 00006000 08:05 3962824    /usr/java/jdk1.5.0_11/jre/lib/i386/native_threads/libhpi.so
    b7f97000-b7f98000 rwxp b7f97000 00:00 0
    b7f98000-b7f99000 r-xp b7f98000 00:00 0
    b7f99000-b7f9a000 rwxp b7f99000 00:00 0
    +b7f9a000-b7f9b000 r-xp b7f9a000 00:00 0          [vdso]+
    +bf78c000-bf78f000 --xp bf78c000 00:00 0+
    +bf78f000-bf98c000 rwxp bfe02000 00:00 0          [stack]+
    VM Arguments:
    jvm_args: -Djava.security.policy=./conf/policy.all -Djava.rmi.server.codebase=http://wiprosystem.kiit:8081/resourceblade-dl.jar-dl.jar -Djava.library.path=.
    java_command: com.wipro.magnum.slof.resource.compute.impl.BladeServerImpl kiitblade1
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
    LD_LIBRARY_PATH=/usr/java/jdk1.5.0_11/jre/lib/i386/client:/usr/java/jdk1.5.0_11/jre/lib/i386:/usr/java/jdk1.5.0_11/jre/../lib/i386
    SHELL=/bin/bash
    DISPLAY=:0.0
    Signal Handlers:
    +SIGSEGV: [libjvm.so+0x32a000], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004+
    +SIGBUS: [libjvm.so+0x32a000], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004+
    +SIGFPE: [libjvm.so+0x28e010], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004+
    +SIGPIPE: [libjvm.so+0x28e010], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004+
    +SIGILL: [libjvm.so+0x28e010], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004+
    SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    +SIGUSR2: [libjvm.so+0x290460], sa_mask[0]=0x00000000, sa_flags=0x10000004+
    +SIGHUP: [libjvm.so+0x28fe90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004+
    +SIGINT: [libjvm.so+0x28fe90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004+
    +SIGQUIT: [libjvm.so+0x28fe90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004+
    +SIGTERM: [libjvm.so+0x28fe90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004+
    ---------------  S Y S T E M  ---------------
    OS:Fedora release 8 (Werewolf)
    uname:Linux 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007 i686
    libc:glibc 2.7 NPTL 2.7
    rlimit: STACK 10240k, CORE 0k, NPROC 3950, NOFILE 1024, AS infinity
    load average:2.15 2.37 1.60
    CPU:total 1 (cores per cpu 1, threads per core 1) family 6 model 9 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 246040k(13868k free), swap 529192k(286332k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for linux-x86, built on Dec 15 2006 02:25:41 by java_re with gcc 3.2.1-7a (J2SE release)
    I am new to JNI so wasnt able to understand a bit of it.
    Is there any workaround to solve this problem ?

    # SIGSEGVSomething is wrong in your C code.
    Is there any workaround to solve this problem ? Fix your C code.

  • Problem with using SPrintf function in a cpp file

    SPrintf can be used with .c extension, but when it's used in a .cpp then you get the following:
    Error C2664: 'SPrintf' : cannot convert parameter 1 from 'char [10]' to 'unsigned char *'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    Error executing cl.exe.
    But it does compile with .c extension, however this time the rest of the code doesn't work.
    Any ideas?
    Thanks,
    Sacit

    Kevin,
    Here is a piece from the code:
    CIN MgErr CINRun(LStrHandle ParameterFilePath, LStrHandle DataFilePath, LStrHandle OutputFilePath, int32 replace, int32 ver, int16 calrange, int16 istof, LStrHandle OutputString)
    int i, StartCh, ChannelNum;
    double Density, a, b, sigmachn, sigmawin, sigmascattp, EInit, angle, ns, es,
    concentration, totalweight, conversion, Dsample, Count[2048], NetCnts;
    char temp[15], Z1Name[2], Z2Name[10][2];
    char parafilename;
    //char *datafilename = "";
    //char *outfilename = "";
    //char *cMessageText;
    // Make necessary conversions.
    LStrLen (*OutputString) = LStrLen(*ParameterFilePath);
    //MoveBlock(LStrBuf(*ParameterFilePath), LStrB
    uf(*OutputString), LStrLen(*ParameterFilePath));
    MoveBlock(LStrBuf(*ParameterFilePath), & parafilename, LStrLen(*ParameterFilePath));
    MoveBlock(& parafilename, LStrBuf(*OutputString), LStrLen(*ParameterFilePath));
    ifstream parafile, infile;
    ofstream outfile;
    Ion_Target mIon_Target;
    mIon_Target.Z2 = new int(10);
    mIon_Target.M2 = new double(10);
    mIon_Target.F = new double(10);
    // Open parameter file...
    parafile.open((char *)parafilename, ios::in|ios::nocreate);
    if(parafile == NULL)
    //cMessageText = "Couldn't Open Parameter File. Maybe it doesn't exist";
    // return -1;
    return fIOErr;
    parafile.close();
    The problem is I have to use ifstream method, because the rest of the code depends on it, and I don't want to deal with the conversion. Otherwise, I would have used FMOpen/FMClose utilities.
    So the problem is obvious as you see, all I need is to convert LStrHandle to a char.
    When I run the code from LabVIEW, "The instruction at "0x77f83e91" referenced at "0x555c3a44". The memory could not be "read"." error message appears.
    I'd appreciate your help.
    Sacit
    Attachments:
    sc.cpp ‏15 KB

  • OAS 407 Build Error on RedHat 6.0

    Hi All,
    Furhter to my last post, can someone tell me if there is
    something I am missing here. Below is the build error I get
    when trying to build OAS407. I have RedHat 6.0 and I have made
    sure I have the latest glibc installed, based on the notes for
    the patch for oracle 8.0.5.1.
    Any information would be hugely appreciated.
    thanks
    Wayne
    Error during action 'Relinking executable dbsnmp'.
    Command: make -f ins_oemagent.mk idbsnmp
    i386-glibc20-linux-gcc -L/oracle/product/8.0.5/lib/ -
    L/oracle/product/8.0.5/lib/ -L/oracle/product/8.0.5/rdbms/lib -
    L/oracle/product/8.0.5/network/lib -o
    dbsnmp /oracle/product/8.0.5/network/lib/s0nmi.o /oracle/product/
    8.0.5/network/lib/waat0.o -lnmi -lnms -lnmd \
    lnms0 /oracle/product/8.0.5/rdbms/lib/defopt.o /oracle/product
    /8.0.5/rdbms/lib/ssdbaed.o \
    /oracle/product/8.0.5/lib/nautab.o /oracle/product/8.0.5/lib/naee
    t.o /oracle/product/8.0.5/lib/naect.o /oracle/product/8.0.5/lib/n
    aedhs.o `cat /oracle/product/8.0.5/lib/naldflgs` -lnetv2 -
    lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lclient -
    lvsn -lcommon -lgeneric -lmm -lnlsrtl3 -lcore4 -lnlsrtl3 -
    lcore4 -lnlsrtl3 -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -
    lnttcp -lnetwork -lclient -lvsn -lcommon -lgeneric -lepc -
    lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lclient -lvsn -
    lcommon -lgeneric -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -
    lnlsrtl3 `cat /oracle/product/8.0.5/lib/sysliblist` -ldl -lm -
    ltcl -lm -ldl -lc -lcrypt
    /oracle/product/8.0.5/lib//libcore4.a(lcd.o): In function
    `lcdprm':
    lcd.o(.text+0xacb): the `gets' function is dangerous and should
    not be used.
    /usr/lib/libtcl.so: undefined reference to `getgrnam@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `atexit@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `chown@@GLIBC_2.1'
    /usr/lib/libtcl.so: undefined reference to
    `__strtod_internal@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `rename@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `strchr@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `fdopen@@GLIBC_2.1'
    /usr/lib/libtcl.so: undefined reference to
    `__ctype_tolower@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `localtime@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `strcmp@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `fprintf@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `getenv@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to
    `getservbyname@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `strerror@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `getpwuid@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `getgrgid@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `memchr@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to
    `gethostbyaddr@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `inet_ntoa@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `mkfifo@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `listen@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `tmpnam@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `strftime@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `strpbrk@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `stdout@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `stderr@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `abort@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `__xstat@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to
    `setsockopt@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `time@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `strstr@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `__lxstat@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `strcspn@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `uname@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to
    `__strtol_internal@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to
    `__ctype_toupper@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `execvp@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `strncmp@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `inet_addr@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `__environ@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `bind@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `memcpy@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to
    `getsockname@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `strrchr@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `endpwent@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to
    `gethostbyname@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `getpwnam@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `exit@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `gmtime@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `sscanf@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `utime@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `memset@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `__ctype_b@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `_exit@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `__xmknod@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to
    `__strtoul_internal@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `endgrent@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `sprintf@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `__bzero@@GLIBC_2.0'
    /usr/lib/libtcl.so: undefined reference to `strcpy@@GLIBC_2.0'
    collect2: ld returned 1 exit status
    make: *** [dbsnmp] Error 1
    null

    Sorry, but officialy the OAS 4071 is not supported under RedHad 6
    (because of the glibc 2.1). We ran into the same problems. Oracle
    Support has no possibilities (in Germany) to build a version
    which runs under glibc21. We shall wait to version 4.08.
    I hope this will help you. Downgrade to RedHad 5.2 an it3s
    running.
    Greetings
    Sven
    George (guest) wrote:
    : Wayne Stanton (guest) wrote:
    : : Hi All,
    : : Furhter to my last post, can someone tell me if there is
    : : something I am missing here. Below is the build error I get
    : : when trying to build OAS407. I have RedHat 6.0 and I have
    : made
    : : sure I have the latest glibc installed, based on the notes
    for
    : : the patch for oracle 8.0.5.1.
    : : Any information would be hugely appreciated.
    : : thanks
    : : Wayne
    : : Error during action 'Relinking executable dbsnmp'.
    : : Command: make -f ins_oemagent.mk idbsnmp
    : : i386-glibc20-linux-gcc -L/oracle/product/8.0.5/lib/ -
    : : L/oracle/product/8.0.5/lib/ -
    : L/oracle/product/8.0.5/rdbms/lib -
    : : L/oracle/product/8.0.5/network/lib -o
    : dbsnmp /oracle/product/8.0.5/network/lib/s0nmi.o
    /oracle/product/
    : : 8.0.5/network/lib/waat0.o -lnmi -lnms -lnmd \
    : lnms0 /oracle/product/8.0.5/rdbms/lib/defopt.o
    /oracle/product
    : : /8.0.5/rdbms/lib/ssdbaed.o \
    : : /oracle/product/8.0.5/lib/nautab.o
    /oracle/product/8.0.5/lib/na
    : ee
    : t.o /oracle/product/8.0.5/lib/naect.o
    /oracle/product/8.0.5/lib/n
    : : aedhs.o `cat /oracle/product/8.0.5/lib/naldflgs` -lnetv2 -
    : : lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lclient -
    : : lvsn -lcommon -lgeneric -lmm -lnlsrtl3 -lcore4 -lnlsrtl3 -
    : : lcore4 -lnlsrtl3 -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -
    : : lnttcp -lnetwork -lclient -lvsn -lcommon -lgeneric -lepc -
    : : lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lclient -lvsn
    : : lcommon -lgeneric -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -
    : : lnlsrtl3 `cat /oracle/product/8.0.5/lib/sysliblist` -ldl -
    : lm -
    : : ltcl -lm -ldl -lc -lcrypt
    : : /oracle/product/8.0.5/lib//libcore4.a(lcd.o): In function
    : : `lcdprm':
    : : lcd.o(.text+0xacb): the `gets' function is dangerous and
    : should
    : : not be used.
    : : /usr/lib/libtcl.so: undefined reference to
    : `getgrnam@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `atexit@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to `chown@@GLIBC_2.1'
    : : /usr/lib/libtcl.so: undefined reference to
    : : `__strtod_internal@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `rename@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `strchr@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `fdopen@@GLIBC_2.1'
    : : /usr/lib/libtcl.so: undefined reference to
    : : `__ctype_tolower@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : `localtime@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `strcmp@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `fprintf@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `getenv@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : : `getservbyname@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : `strerror@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : `getpwuid@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : `getgrgid@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `memchr@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : : `gethostbyaddr@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : `inet_ntoa@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `mkfifo@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `listen@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `tmpnam@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : `strftime@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `strpbrk@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `stdout@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `stderr@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to `abort@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `__xstat@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : : `setsockopt@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to `time@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `strstr@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : `__lxstat@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `strcspn@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to `uname@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : : `__strtol_internal@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : : `__ctype_toupper@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `execvp@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `strncmp@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : `inet_addr@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : `__environ@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to `bind@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `memcpy@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : : `getsockname@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `strrchr@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : `endpwent@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : : `gethostbyname@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : `getpwnam@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to `exit@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `gmtime@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `sscanf@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to `utime@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `memset@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : `__ctype_b@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to `_exit@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : `__xmknod@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : : `__strtoul_internal@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    : `endgrent@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `sprintf@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `__bzero@@GLIBC_2.0'
    : : /usr/lib/libtcl.so: undefined reference to
    `strcpy@@GLIBC_2.0'
    : : collect2: ld returned 1 exit status
    : : make: *** [dbsnmp] Error 1
    : Is that bacause of the Glibc 2.1 and Glibc 2.0? I think OAS is
    : link with Glibc 2.0 not 2.1, so it does not work here.
    : I meet the same problem when I install webdb on RH6.0.
    : RGS
    null

  • Oracle 10g (10.2.0.1) installation error

    Hi everyone !!! I know that Oracle doesn't support FreeBSD but I'm my problem is probably stopping a decision of choosing Oracle as a project database. This means licenses guys!!!!! Can you please just guide me for a solution to my problem?
    I need to test Oracle 10g in FreeBSD. I've installed FreeBSD 7 from the ISOs in Freebsd homepage with full base system and full packages. I've then activated the linux_base-fc4 linux emulation port and compile a new kernel version for Oracle with:
    options COMPAT_LINUX
    options SEMMAP=128
    options SEMMNI=128
    options SEMMNS=32000
    options SEMOPM=100
    options SEMMSL=250
    options SHMMAXPGS=262144
    options SHMMNI=4096
    options SHMSEG=4096
    options MAXDSIZ="(1024*1024*1024)"
    options MAXSSIZ="(1024*1024*1024)"
    options DFLDSIZ="(1024*1024*1024)"
    I've then created an Oracle account with the /compat/linux/bin/bash sheel for linux compatability. I unzip the 10201_..... oracle zip for linux and run the installer from within oracle account.
    I've manage to solve a lot of problems but with this one I'm stucked!!! At 62% I receive a message box saying "Error invoking target 'relink' of makefile ins_precomp.mk". I go to the make.log and I see:
    /usr/bin/make -f ins_precomp.mk relink ORACLE_HOME=/home/oracle/10gR2 EXENAME=proc/Linking /home/oracle/10gR2/precomp/lib/proc
    /usr/bin/ld: warning: libc.so.6, needed by /home/oracle/10gR2/lib//libnnz10.so, may conflict with libc.so.7
    /usr/local/lib/compat/libc.so.6: warning: WARNING! setkey(3) not present in the system!
    /usr/local/lib/compat/libc.so.6: warning: warning: this program uses gets(), which is unsafe.
    /usr/local/lib/compat/libc.so.6: warning: warning: mktemp() possibly used unsafely; consider using mkstemp()
    /usr/local/lib/compat/libc.so.6: warning: WARNING! des_setkey(3) not present in the system!
    /usr/local/lib/compat/libc.so.6: warning: WARNING! encrypt(3) not present in the system!
    /usr/local/lib/compat/libc.so.6: warning: warning: tmpnam() possibly used unsafely; consider using mkstemp()
    /usr/local/lib/compat/libc.so.6: warning: warning: this program uses f_prealloc(), which is not recommended.
    /usr/local/lib/compat/libc.so.6: warning: WARNING! des_cipher(3) not present in the system!
    /usr/local/lib/compat/libc.so.6: warning: warning: tempnam() possibly used unsafely; consider using mkstemp()
    /usr/bin/ld: warning: ld-linux.so.2, needed by /home/oracle/10gR2/lib/stubs//libdl.so, not found (try using -rpath or -rpath-link)
    /home/oracle/10gR2/precomp/lib/pdc.o(.text+0x236): In function `pdlitlen':
    : undefined reference to `__ctype_b_loc'
    /home/oracle/10gR2/precomp/lib/libpgp.a(pgstdf.o)(.text+0x39e): In function `pgswget':
    : undefined reference to `_IO_getc'
    /home/oracle/10gR2/precomp/lib/libpgp.a(pgo2ucp.o)(.text+0x10d): In function `o2ucpnametoc':
    : undefined reference to `__ctype_b_loc'
    /home/oracle/10gR2/precomp/lib/libpgp.a(pgo2ucp.o)(.text+0x22f): In function `o2ucpnametoc':
    : undefined reference to `__ctype_tolower_loc'
    /home/oracle/10gR2/precomp/lib/libpgp.a(pgo2ucp.o)(.text+0x24e): In function `o2ucpnametoc':
    : undefined reference to `__ctype_toupper_loc'
    /home/oracle/10gR2/precomp/lib/libpgp.a(pgo2ucp.o)(.text+0x268): In function `o2ucpnametoc':
    : undefined reference to `__ctype_tolower_loc'
    /home/oracle/10gR2/precomp/lib/libpgp.a(pgo2ucp.o)(.text+0x282): In function `o2ucpnametoc':
    : undefined reference to `__ctype_toupper_loc'
    /home/oracle/10gR2/precomp/lib/libpgp.a(pgo2ucp.o)(.text+0x370): In function `o2ucpnametoc':
    : undefined reference to `__ctype_tolower_loc'
    /home/oracle/10gR2/precomp/lib/libpgp.a(pgo2ucp.o)(.text+0x397): In function `o2ucpnametoc':
    : undefined reference to `__ctype_toupper_loc'
    /home/oracle/10gR2/precomp/lib/libpgp.a(pgo2ucp.o)(.text+0x3b9): In function `o2ucpnametoc':
    : undefined reference to `__ctype_tolower_loc'
    /home/oracle/10gR2/precomp/lib/libpgp.a(pgo2ucp.o)(.text+0x3db): In function `o2ucpnametoc':
    : undefined reference to `__ctype_toupper_loc'
    /home/oracle/10gR2/lib//libpls10.a(spssimb.o)(.text+0x4ac): In function `pss_putc':
    : undefined reference to `_IO_putc'
    /home/oracle/10gR2/lib//libpls10.a(spssimb.o)(.text+0x649): In function `pss_getc':
    : undefined reference to `_IO_getc'
    /home/oracle/10gR2/lib//libpls10.a(spdzj.o)(.text+0x10): In function `spdzjF99_System_Error':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libpls10.a(spdzj.o)(.text+0x486): In function `spdzjF01_Execute_Command':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libpls10.a(spdzj.o)(.text+0xa87): In function `spdzjF02_Delete_File':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libpls10.a(spdzj.o)(.text+0xac1): In function `spdzjF03_Rename_And_Delete':
    : undefined reference to `__xstat64'
    /home/oracle/10gR2/lib//libpls10.a(spdzj.o)(.text+0xb36): In function `spdzjF03_Rename_And_Delete':
    : undefined reference to `__xstat64'
    /home/oracle/10gR2/lib//libpls10.a(spdzj.o)(.text+0xb77): In function `spdzjF03_Rename_And_Delete':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libpls10.a(spdzj.o)(.text+0xbed): In function `spdzjF03_Rename_And_Delete':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libpls10.a(spdzj.o)(.gnu.linkonce.t.stat64+0xc): In function `stat64':
    : undefined reference to `__xstat64'
    /home/oracle/10gR2/lib//libpls10.a(ph1pp.o)(.text+0x688): In function `ph1pp_check_ccflags':
    : undefined reference to `__ctype_b_loc'
    /home/oracle/10gR2/lib//libpls10.a(ph1pp.o)(.text+0x1940): In function `ph1pp_build_ccflags_list':
    : undefined reference to `__ctype_b_loc'
    /home/oracle/10gR2/lib//libpls10.a(ph1pp.o)(.text+0x1c5e): In function `ph1pp_resolve_ccflags':
    : undefined reference to `__ctype_b_loc'
    /home/oracle/10gR2/lib//libpls10.a(ph1pp.o)(.text+0x21c9): In function `ph1pp_read_id':
    : undefined reference to `__ctype_b_loc'
    /home/oracle/10gR2/lib//libpls10.a(ph1pp.o)(.text+0x2247): In function `ph1pp_read_integer':
    : undefined reference to `__ctype_b_loc'
    /home/oracle/10gR2/lib//libpls10.a(ph1pp.o)(.text+0x2289): more undefined references to `__ctype_b_loc' follow
    /home/oracle/10gR2/lib//libpls10.a(speplm.o)(.text+0x2e): In function `speplm_dlopen':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libpls10.a(speplm.o)(.text+0x8c): In function `speplm_dlclose':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libpls10.a(speplm.o)(.text+0xf7): In function `speplm_dlsym':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libpls10.a(pdy6.o)(.text+0x17e6): In function `pdy6M64_Native_Name':
    : undefined reference to `__ctype_b_loc'
    /home/oracle/10gR2/lib//libpls10.a(phdd.o)(.text+0x147): In function `phddnoden':
    : undefined reference to `stdout'
    /home/oracle/10gR2/lib//libpls10.a(pdz2.o)(.text+0x1ac9): In function `pdz2M25_Base_Name':
    : undefined reference to `__ctype_b_loc'
    /home/oracle/10gR2/lib//libpls10.a(pfrdis.o)(.text+0x395): In function `pfrdis':
    : undefined reference to `__ctype_b_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxhcnv.o)(.text+0x2f9): In function `lxhcnv':
    : undefined reference to `__ctype_b_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxhcnv.o)(.text+0x332): In function `lxhcnv':
    : undefined reference to `__ctype_tolower_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxhlmod.o)(.text+0xec): In function `lxhlmod':
    : undefined reference to `__ctype_tolower_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxhlmod.o)(.text+0x148): In function `lxhlmod':
    : undefined reference to `__ctype_tolower_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxhlmod.o)(.text+0x1a1): In function `lxhlmod':
    : undefined reference to `__ctype_tolower_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxhlmod.o)(.text+0xc0b): In function `lxhlmod':
    : undefined reference to `__ctype_tolower_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxhlmod.o)(.text+0xc6d): more undefined references to `__ctype_tolower_loc' follow
    /home/oracle/10gR2/lib//libnls10.a(lxpcget.o)(.text+0x8f): In function `lxpcget':
    : undefined reference to `__ctype_toupper_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxplget.o)(.text+0x5e): In function `lxplget':
    : undefined reference to `__ctype_tolower_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxplget.o)(.text+0x75): In function `lxplget':
    : undefined reference to `__ctype_toupper_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxplset.o)(.text+0xf9): In function `lxplset':
    : undefined reference to `__ctype_tolower_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxpname.o)(.text+0xd0): In function `lxpname':
    : undefined reference to `__ctype_b_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxpsget.o)(.text+0x63): In function `lxpsget':
    : undefined reference to `__ctype_tolower_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxpsget.o)(.text+0x7a): In function `lxpsget':
    : undefined reference to `__ctype_toupper_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxptget.o)(.text+0x64): In function `lxptget':
    : undefined reference to `__ctype_tolower_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxptget.o)(.text+0x7b): In function `lxptget':
    : undefined reference to `__ctype_toupper_loc'
    /home/oracle/10gR2/lib//libnls10.a(slms.o)(.text+0x362): In function `slmsop':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libnls10.a(slms.o)(.text+0x462): In function `slmscl':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libnls10.a(slms.o)(.text+0x5d9): In function `slmsrd':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libnls10.a(slms.o)(.text+0x5f1): In function `slmsrd':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libnls10.a(slms.o)(.text+0x6cb): In function `slmspe':
    : undefined reference to `stderr'
    /home/oracle/10gR2/lib//libnls10.a(lxedget.o)(.text+0x42): In function `lxedget':
    : undefined reference to `__ctype_tolower_loc'
    /home/oracle/10gR2/lib//libnls10.a(lxedget.o)(.text+0x59): In function `lxedget':
    : undefined reference to `__ctype_toupper_loc'
    /home/oracle/10gR2/lib//libcore10.a(slffgtc.o)(.text+0x5a): In function `SlfFgtc':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libcore10.a(slffgtc.o)(.text+0x72): In function `SlfFgtc':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libcore10.a(slffgts.o)(.text+0x65): In function `SlfFgts':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libcore10.a(slffgts.o)(.text+0x7d): In function `SlfFgts':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libcore10.a(slffprintf.o)(.text+0x3b): In function `SlfFprintf':
    : undefined reference to `__errno_location'
    /home/oracle/10gR2/lib//libcore10.a(slffprintf.o)(.text+0x53): more undefined references to `__errno_location' follow
    /home/oracle/10gR2/lib//libirc.a(proc_init.o)(.text+0x7): In function `__bad_processor_detected':
    : undefined reference to `stderr'
    /home/oracle/10gR2/lib//libirc.a(proc_init.o)(.text+0x17): In function `__bad_processor_detected':
    : undefined reference to `stderr'
    /home/oracle/10gR2/lib//libirc.a(proc_init.o)(.text+0x27): In function `__bad_processor_detected':
    : undefined reference to `stderr'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `free@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `strchr@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `atoi@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `_setjmp@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `__ctype_b_loc@GLIBC_2.3'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `getpid@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `realloc@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `localtime@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `fgets@GLIBC_2.0'
    /home/oracle/10gR2/lib//libclntsh.so: undefined reference to `ftello64'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `strncpy@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `opendir@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `calloc@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `getutent@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `recvfrom@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `fread@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `closedir@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `fseek@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `sprintf@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `strncmp@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `close@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `gmtime@GLIBC_2.0'
    /home/oracle/10gR2/lib//libclntsh.so: undefined reference to `__sigsetjmp'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `sscanf@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `sleep@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `ctime@GLIBC_2.0'
    /home/oracle/10gR2/lib//libclntsh.so: undefined reference to `truncate64'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `read@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `gethostbyname@GLIBC_2.0'
    /home/oracle/10gR2/lib//libclntsh.so: undefined reference to `stdin'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `strncasecmp@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `gettimeofday@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `gethostname@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `open@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `clock@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `time@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `fputs@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `malloc@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `readdir@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `fclose@GLIBC_2.1'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `stdout@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `mktime@GLIBC_2.0'
    /home/oracle/10gR2/lib//libclntsh.so: undefined reference to `open64'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `longjmp@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `endutent@GLIBC_2.0'
    /home/oracle/10gR2/lib//libclntsh.so: undefined reference to `__assert_fail'
    /home/oracle/10gR2/lib//libclntsh.so: undefined reference to `__h_errno_location'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `getuid@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `__h_errno_location@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `fprintf@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `vsnprintf@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `setutent@GLIBC_2.0'
    /home/oracle/10gR2/lib//libclntsh.so: undefined reference to `mmap64'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `perror@GLIBC_2.0'
    /home/oracle/10gR2/lib//libclntsh.so: undefined reference to `__lxstat64'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `vfprintf@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `send@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `strstr@GLIBC_2.0'
    /home/oracle/10gR2/lib//libclntsh.so: undefined reference to `__fxstat64'
    /home/oracle/10gR2/lib//libclntsh.so: undefined reference to `__xstat'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `getppid@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `socket@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `__errno_location@GLIBC_2.0'
    /home/oracle/10gR2/lib//libclntsh.so: undefined reference to `__fxstat'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `stderr@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `feof@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `__ctype_tolower_loc@GLIBC_2.3'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `fwrite@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `fdopen@GLIBC_2.1'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `getrusage@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `vsprintf@GLIBC_2.0'
    /home/oracle/10gR2/lib//libclntsh.so: undefined reference to `lseek64'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `memmove@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `fopen@GLIBC_2.1'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `rewind@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `connect@GLIBC_2.0'
    /home/oracle/10gR2/lib//libclntsh.so: undefined reference to `fseeko64'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `printf@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `strerror@GLIBC_2.0'
    /home/oracle/10gR2/lib//libnnz10.so: undefined reference to `__xstat@GLIBC_2.0'
    /home/oracle/10gR2/lib//libclntsh.so: undefined reference to `fopen64'
    chmod: /home/oracle/10gR2/precomp/lib/proc: No such file or directory
    make: *** [home/oracle/10gR2/precomp/lib/proc] Error 1
    I can't find out what is missing. Can you give me an idea?

    Hi everyone !!! I know that Oracle doesn't support FreeBSD but I'm my problem is probably stopping a decision of choosing Oracle as a project database. This means licenses guys!!!!! Can you please just guide me for a solution to my problem?
    Since you are calling the 'Licenses guys' I assume you have a valid Oracle License for your project. Don't expect Oracle support services to monitor this forum, everyone here are regular oracle users and we are not in any way related with Oracle Support.
    If you have a valid Oracle CSI you should raise a SR in Metalink. And since you already know FreeBSD is not a supported platform, then there are no surprises, you know where the problem is. It may work after some workarounds, but you are on your own and dessuported. The only free linux supported by Oracle is OEL, and if you are planning to use Oracle it means you should change the OS.
    ~ Madrid
    http://hrivera99.blogspot.com

  • Don't understand error message.

    Update: I'm looking for any ideas on this. I know it's hard without the full script. I'm more than happy to send it to you, but it is over 450 lines. All of the database functions work fine, as does an earlier version of this script from which there are only small changes to this version. I have searched through the the changes for several days.
    I'm getting the following error message on a script that I briefly changed from one that worked fine. All the database manipulations work fine. This exists only on my computer right now. The messages are:
    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\lorianorg01\ssregister\ss07-finalregis.php:4) in C:\xampp\htdocs\lorianorg01\ssregister\ss07-finalregis.php on line 76
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\lorianorg01\ssregister\ss07-finalregis.php:4) in C:\xampp\htdocs\lorianorg01\ssregister\ss07-finalregis.php on line 76
    Here is the code, beginning at line 75:
    //Establish session variables
    session_start();
    $_SESSION['ss_id'] = $regis_ss_id;
    $_SESSION['ss_name'] = $regis_ss_name;
    $_SESSION['ss_nomonths'] = $regis_ss_nomonths;
    $_SESSION['ss_cost'] = $regis_ss_cost;
    $_SESSION['ss_homelink'] = $regis_ss_link;
    $_SESSION['email_address'] = $regis_email_address;
    $_SESSION['first_name'] = $regis_first_name;
    $_SESSION['last_name'] = $regis_last_name;

    Thanks for the reply!
    What follows is first 135 lines of code.  As I mentioned, this code in another script, works fine. I copied that code and pasted it into a new folder. I have made sure the links are still good and the database manipulations are all good using a new table. I believe that the problem is in the combination of copying the code and the changes I made. I have done a compare of the original and the changed scripts and studied it for hours to see if I can find an error. I've also put the code in Aptana to see if it picks anything up. Nothing.
    <?php  require_once('../Connections/classlist.php'); ?>
    <?php require_once('../Connections/ssrecords.php'); ?>
    <?php
    // [07] This script finalizes the registration and produces letters to Lorian and the registrant.
    //The above connections provide links to the LorianSchool database for classlist and ssrecords.
    //This function, generated by Dreamweaver, determines the type of information being retrieved from the database.
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?>
    <?php
    //Pick up the "record ID" (SS ID)
    $colname_DetailRS1 = "-1";
    if (isset($_GET['recordID'])) {
      $colname_DetailRS1 = $_GET['recordID'];
    //Get SS info from ssrecords table
    mysql_select_db($database_classlist, $classlist);
    $query_DetailRS1 = sprintf("SELECT * FROM ssrecords WHERE ssrecords.ss_id = %s", GetSQLValueString($colname_DetailRS1, "text"));
    $DetailRS1 = mysql_query($query_DetailRS1, $classlist) or die(mysql_error());
    $row_DetailRS1 = mysql_fetch_assoc($DetailRS1);
    $totalRows_DetailRS1 = mysql_num_rows($DetailRS1);
    $regis_ss_id = $row_DetailRS1['ss_id'];
    $regis_ss_name = $row_DetailRS1['ss_name'];
    $regis_ss_nomonths = $row_DetailRS1['ss_nomonths'];
    $regis_ss_cost = $row_DetailRS1['ss_cost'];
    $regis_ss_link = $row_DetailRS1['ss_homelink'];
    // Pick up the email address
    $colname_classentry = "-1";
    if (isset($_GET['email_address'])) {
      $colname_classentry = $_GET['email_address'];
    //Get the registrant information from the nameregistration table
    mysql_select_db($database_classlist, $classlist);
    $query_classentry = sprintf("SELECT * FROM nameregistration WHERE nameregistration.email_address = %s", GetSQLValueString($colname_classentry, "text"));
    $classentry = mysql_query($query_classentry, $classlist) or die(mysql_error());
    $row_classentry = mysql_fetch_assoc($classentry);
    $totalRows_classentry = mysql_num_rows($classentry);
    $regis_email_address = $row_classentry['email_address'];
    $regis_first_name = $row_classentry['first_name'];
    $regis_last_name = $row_classentry['last_name'];
    //Establish session variables
    session_start();
    $_SESSION['ss_id'] = $regis_ss_id;
    $_SESSION['ss_name'] = $regis_ss_name;
    $_SESSION['ss_nomonths'] = $regis_ss_nomonths;
    $_SESSION['ss_cost'] = $regis_ss_cost;
    $_SESSION['ss_homelink'] = $regis_ss_link;
    $_SESSION['email_address'] = $regis_email_address;
    $_SESSION['first_name'] = $regis_first_name;
    $_SESSION['last_name'] = $regis_last_name;
    //Prepare to write the class registration record in SSregis table
    mysql_select_db($database_ssrecords, $ssrecords);
    $query_registration = "SELECT * FROM ssregis";
    $registration = mysql_query($query_registration, $ssrecords) or die(mysql_error());
    $row_registration = mysql_fetch_assoc($registration);
    $totalRows_registration = mysql_num_rows($registration);
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    //On clicking Submit, insert a new record in the ssregis table   
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $regis_paid_code = $_POST["submit"];
      $insertSQL = sprintf("INSERT INTO ssregis (email_address, ss_id, ss_cost, reg_date, paid_code) VALUES (%s, %s, %s, %s, %s)",
            GetSQLValueString($regis_email_address, "text"),
                           GetSQLValueString($regis_ss_id, "text"),
                           GetSQLValueString($regis_ss_cost, "double"),
            GetSQLValueString($regis_reg_date, "date"),
            GetSQLValueString($regis_paid_code, "text"));                   
      mysql_select_db($database_ssrecords, $ssrecords);
      $Result1 = mysql_query($insertSQL, $ssrecords) or die(mysql_error());
      $regis_regid = mysql_insert_id();
      //Get ID of registration record just written in ssregis
      mysql_select_db($database_ssrecords, $ssrecords);
      $query_registration = "SELECT * FROM ssregis WHERE reg_id = '$regis_regid'";
      $registration = mysql_query($query_registration, $classlist) or die(mysql_error());
      $new_row = mysql_fetch_assoc($registration);
      //If using PayPal go to Paypalregis.php
      if ($regis_paid_code == "PayPal")  {
      $insertGoTo = "\ssregister\ss08-ppregis.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
    $insertGoTo .= "&reg_id=".$new_row['reg_id'];
      else  {
      //If not using PayPal go to Lorian Home page.
      $insertGoTo = "lorianorg01/index.html";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
    $insertGoTo .= "&reg_id=".$new_row['reg_id'];
    header(sprintf("Location: %s", $insertGoTo));

  • How to get ORA errors in alertlog file using shell script.

    Hi,
    Can anyone tell me how to get all ORA errors between two particular times in an alertlog file using shell script.
    Thanks

    Hi,
    You can define the alert log as an external table, and extract messages with SQL, very cool:
    http://www.dba-oracle.com/t_oracle_alert_log_sql_external_tables.htm
    If you want to write a shell script to scan the alert log, see here:
    http://www.rampant-books.com/book_2007_1_shell_scripting.htm
    #!/bin/ksh
    # log monitoring script
    # report all errors (and specific warnings) in the alert log
    # which have occurred since the date
    # and time in last_alerttime_$ORACLE_SID.txt
    # parameters:
    # 1) ORACLE_SID
    # 2) optional alert exclusion file [default = alert_logmon.excl]
    # exclude file format:
    # error_number error_number
    # error_number ...
    # i.e. a string of numbers with the ORA- and any leading zeroes that appear
    # e.g. (NB the examples are NOT normally excluded)
    # ORA-07552 ORA-08006 ORA-12819
    # ORA-01555 ORA-07553
    BASEDIR=$(dirname $0)
    if [ $# -lt 1 ]; then
    echo "usage: $(basename) ORACLE_SID [exclude file]"
    exit -1
    fi
    export ORACLE_SID=$1
    if [ ! -z "$2" ]; then
    EXCLFILE=$2
    else
    EXCLFILE=$BASEDIR/alert_logmon.excl
    fi
    LASTALERT=$BASEDIR/last_alerttime_$ORACLE_SID.txt
    if [ ! -f $EXCLFILE ]; then
    echo "alert exclusion ($EXCLFILE) file not found!"
    exit -1
    fi
    # establish alert file location
    export ORAENV_ASK=NO
    export PATH=$PATH:/usr/local/bin
    . oraenv
    DPATH=`sqlplus -s "/ as sysdba" <<!EOF
    set pages 0
    set lines 160
    set verify off
    set feedback off
    select replace(value,'?','$ORACLE_HOME')
    from v\\\$parameter
    where name = 'background_dump_dest';
    !EOF
    `
    if [ ! -d "$DPATH" ]; then
    echo "Script Error - bdump path found as $DPATH"
    exit -1
    fi
    ALOG=${DPATH}/alert_${ORACLE_SID}.log
    # now create awk file
    cat > $BASEDIR/awkfile.awk<<!EOF
    BEGIN {
    # first get excluded error list
    excldata="";
    while (getline < "$EXCLFILE" > 0)
    { excldata=excldata " " \$0; }
    print excldata
    # get time of last error
    if (getline < "$LASTALERT" < 1)
    { olddate = "00000000 00:00:00" }
    else
    { olddate=\$0; }
    errct = 0; errfound = 0;
    { if ( \$0 ~ /Sun/ || /Mon/ || /Tue/ || /Wed/ || /Thu/ || /Fri/ || /Sat/ )
    { if (dtconv(\$3, \$2, \$5, \$4) <= olddate)
    { # get next record from file
    next; # get next record from file
    # here we are now processing errors
    OLDLINE=\$0; # store date, possibly of error, or else to be discarded
    while (getline > 0)
    { if (\$0 ~ /Sun/ || /Mon/ || /Tue/ || /Wed/ || /Thu/ || /Fri/ || /Sat/ )
    { if (errfound > 0)
    { printf ("%s<BR>",OLDLINE); }
    OLDLINE = \$0; # no error, clear and start again
    errfound = 0;
    # save the date for next run
    olddate = dtconv(\$3, \$2, \$5, \$4);
    continue;
    OLDLINE = sprintf("%s<BR>%s",OLDLINE,\$0);
    if ( \$0 ~ /ORA-/ || /[Ff]uzzy/ )
    { # extract the error
    errloc=index(\$0,"ORA-")
    if (errloc > 0)
    { oraerr=substr(\$0,errloc);
    if (index(oraerr,":") < 1)
    { oraloc2=index(oraerr," ") }
    else
    { oraloc2=index(oraerr,":") }
    oraloc2=oraloc2-1;
    oraerr=substr(oraerr,1,oraloc2);
    if (index(excldata,oraerr) < 1)
    { errfound = errfound +1; }
    else # treat fuzzy as errors
    { errfound = errfound +1; }
    END {
    if (errfound > 0)
    { printf ("%s<BR>",OLDLINE); }
    print olddate > "$LASTALERT";
    function dtconv (dd, mon, yyyy, tim, sortdate) {
    mth=index("JanFebMarAprMayJunJulAugSepOctNovDec",mon);
    if (mth < 1)
    { return "00000000 00:00:00" };
    # now get month number - make to complete multiple of three and divide
    mth=(mth+2)/3;
    sortdate=sprintf("%04d%02d%02d %s",yyyy,mth,dd,tim);
    return sortdate;
    !EOF
    ERRMESS=$(nawk -f $BASEDIR/awkfile.awk $ALOG)
    ERRCT=$(echo $ERRMESS|awk 'BEGIN {RS="<BR>"} END {print NR}')
    rm $LASTALERT
    if [ $ERRCT -gt 1 ]; then
    echo "$ERRCT Errors Found \n"
    echo "$ERRMESS"|nawk 'BEGIN {FS="<BR>"}{for (i=1;NF>=i;i++) {print $i}}'
    exit 2
    fi

Maybe you are looking for

  • Macbook pro's problem

    I just bought a new macbook pro retina 2015 a few week ago, and i think it has problem with the fan. it starts getting hot whenever i play game, video or even use live wallpaper from Appstore. It is so annoying and i really don't know what to do. Mac

  • Repair root file system

    Is there a way to repair/reinstall Solaris 10 without touching the /export/home fs? fsck keeps complaining that the filesystem is bad, please rerun fsck. smc can not start and there is some strange message that hardware digits:and:numbers is trying t

  • How to Create IViews in WebDynpro java

    Hi Experts, I want to Create the I View of my WD Application. So how can i create it. Can you send me the Step-by-step Procedure for it. Regards, DS

  • Downgrade the installation from Office Professional Plus to Office Standard

    Dear All, We have several computers with Office 2007 Professional Plus installed, however, how we would like to change it back to Office 2007 Standard, is there any remote / command line method other than uninstall and install? Since we have about 10

  • How to switch back to iOS 6

    I would like to know if it's possible to switch back to the iOS 6 once you have downloaded the new 7 update. If so, how?