ANSI C Compiler

Hi,
I am trying to install content server and apache in my aix5.3 server. In our system, there is a gcc compiler installed by the ex-staff. However, due to the pre-requiste for content server with apache, ANSI C compiler is needed to compile the apache source code. My question is, how do we change the default compiler to ANSI C which we had just install. During compilation, it still use the gcc compiler. Is there are file or env setting that we need to change so that the ANSI C compiler take effect ?
Regards

Hi
Suggest setup an alias
For instance, in my system, if I have to switch to a different compiler, I do the following -
source /usr/spac/sparcompiler/default
setup.csh
This "source" c ommand will allow you to set the compiler to cc and also sets the  "man" pages..
You should locate where the ansi c compiler path is located in your system and give this path after the source command
You can also add the above 2 lines in your .profile file, so that this compiler is available permanent whenever you login next time
Hope this helps
Cheers
Senthil

Similar Messages

  • Sun Studio and ANSI C compilation

    Hello, I have a program developed by a third party and it says i need to have a ANSI C99 compatible complier. Does Sun Studio have ANSI C compilation capabilities? If yes, what is the minimum version on Sun Studio that I should have, inorder to have this compiled. I am new to this OS and C programming. Please help.

    Assuming you are using Sun Studio 12, full C99 compliance is the default when running on Solaris 10.
    The basic flags you care about most often are about the same as any Unix or Linux compiler:
    -c compile only
    -g compile for debug
    -O moderate optimization
    -I<dir> add <dir> to the list of directories searched for header files
    -L<dir> add <dir> to the list of directories searched for shared (dynamic) libraries
    The C++ Users Guide appendix on compiler options describes all options in detail. You can find it via the "docs" directory in the compiler installation, or you can go here directly:
    http://docs.sun.com/app/docs/doc/819-5265/bjapp?a=view

  • Examples program Analong In (Ansi C) compiled in VC++6.0

    Hi brothers and sisters;
    I am trying to get 6 signals(6 chanels) of an F/T sensor that conected to NI USB-6251.
    As I am a new user, I have tried with ANSI C Example programs. Here the one I used:
    C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage\Cont Acq-Int Clk
    ContAcq-IntClk.c
    #include <stdio.h>
    #include <NIDAQmx.h>
    #define DAQmxErrChk(functionCall) if( DAQmxFailed(error=(functionCall)) ) goto Error; else
    int32 CVICALLBACK EveryNCallback(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples, void *callbackData);
    int32 CVICALLBACK DoneCallback(TaskHandle taskHandle, int32 status, void *callbackData);
    int main(void)
     int32       error=0;
     TaskHandle  taskHandle=0;
     char        errBuff[2048]={'\0'};
     // DAQmx Configure Code
     DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
     DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai0",""​,DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,​NULL));
     DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",10000.0,DAQmx​_Val_Rising,DAQmx_Val_ContSamps,1000));
     DAQmxErrChk (DAQmxRegisterEveryNSamplesEvent(taskHandle,DAQmx_​Val_Acquired_Into_Buffer,1000,0,EveryNCallback,NUL​L));
     DAQmxErrChk (DAQmxRegisterDoneEvent(taskHandle,0,DoneCallback,​NULL));
     // DAQmx Start Code
     DAQmxErrChk (DAQmxStartTask(taskHandle));
     printf("Acquiring samples continuously. Press Enter to interrupt\n");
     getchar();
    Error:
     if( DAQmxFailed(error) )
      DAQmxGetExtendedErrorInfo(errBuff,2048);
     if( taskHandle!=0 ) {
      // DAQmx Stop Code
      DAQmxStopTask(taskHandle);
      DAQmxClearTask(taskHandle);
     if( DAQmxFailed(error) )
      printf("DAQmx Error: %s\n",errBuff);
     printf("End of program, press Enter key to quit\n");
     getchar();
     return 0;
    int32 CVICALLBACK EveryNCallback(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples, void *callbackData)
     int32       error=0;
     char        errBuff[2048]={'\0'};
     static int  totalRead=0;
     int32       read=0;
     float64     data[1000];
     // DAQmx Read Code
     DAQmxErrChk (DAQmxReadAnalogF64(taskHandle,1000,10.0,DAQmx_Val​_GroupByScanNumber,data,1000,&read,NULL));
     if( read>0 ) {
      printf("Acquired %d samples. Total %d\r",read,totalRead+=read);
      fflush(stdout);
    Error:
     if( DAQmxFailed(error) ) {
      DAQmxGetExtendedErrorInfo(errBuff,2048);
      // DAQmx Stop Code
      DAQmxStopTask(taskHandle);
      DAQmxClearTask(taskHandle);
      printf("DAQmx Error: %s\n",errBuff);
     return 0;
    int32 CVICALLBACK DoneCallback(TaskHandle taskHandle, int32 status, void *callbackData)
     int32   error=0;
     char    errBuff[2048]={'\0'};
     // Check to see if an error stopped the task.
     DAQmxErrChk (status);
    Error:
     if( DAQmxFailed(error) ) {
      DAQmxGetExtendedErrorInfo(errBuff,2048);
      DAQmxClearTask(taskHandle);
      printf("DAQmx Error: %s\n",errBuff);
     return 0;
    I used VC++6.0 to compile it, but it does not work at all. Can you explain me which codes should I change in this program?

    Hi Osamu Fujioka
    I tried to read the help documents, it worked. But there was another error message.
    Here are what I changed
    DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai0:5",​"",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volt​s,NULL));
     DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",100000.0,DAQm​x_Val_Rising,DAQmx_Val_ContSamps,10));
     DAQmxErrChk (DAQmxRegisterEveryNSamplesEvent(taskHandle,DAQmx_​Val_Acquired_Into_Buffer,10,0,EveryNCallback,NULL)​);
    DAQmxErrChk (DAQmxReadAnalogF64(taskHandle,10,10.0,DAQmx_Val_G​roupByScanNumber,data,600,&read,NULL));
     if( read>0 ) {
      //printf("Acquired %d samples. %f   %f   Total %d\r",read,data[0],data[1],totalRead+=read);
      printf("%.4f\t%.4f\t%.4f\t%.4f\t%.4f\t%.4f\n",da​ta[0],data[1],data[2],data[3],data[4],data[5]);
      fflush(stdout);
    Error message is :
    DAQmx Error: Measurements: Onboard device memory overflow. Because of system and
    /or bus-bandwidth limitations, the driver could not read data from the device fa
    st enough to keep up with the device throughput.
    Reduce the sample rate, or reduce the number of programs your computer is execut
    ing concurrently.
    Task Name: _unnamedTask<0>
    Status Code: -200361
    Regards
    camboljp

  • Compiling problem when using ansi c compiler on solaris 11

    Hello
    I'm using solaris 11 on sparc T4 server.
    I was trying to generate tpch benchmark data set on the server. I downloaded the tpch files from http://www.tpc.org/tpch/default.asp website. There's a makefile that is used to compile the data generation program. In the makefile, there's a line that specifies which compiler to use. After searching the web, I think it might be "cc" on solaris. so I installed oracle solaris studio 12.3, gcc-3, gcc-45 and set the environment variable:
    export PATH=$ORACLE_HOME/bin:$ORACLE_BASE/oracle_solaris_studio/SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/bin:$PATH
    export MANPATH=$ORACLE_BASE/oracle_solaris_studio/SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/man:$MANPATH
    -bash-4.1$ which cc
    /export/home/oracle/oracle_solaris_studio/SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/bin/cc
    when I run $make, I got the following error. Do you know what the problem might be? Am I using the correct compiler?
    Thank you very much. I appreciate any help.
    -bash-4.1$ make
    cc -g -DDBNAME=\"dss\" -DSUN -DORACLE -DTPCH -DRNG_TEST -D_FILE_OFFSET_BITS=64 -c build.c
    "build.c", line 35: cannot find include file: <stdio.h>
    "build.c", line 36: cannot find include file: <string.h>
    "build.c", line 38: cannot find include file: <sys/types.h>
    "build.c", line 41: cannot find include file: <unistd.h>
    "/usr/include/iso/math_iso.h", line 13: cannot find include file: <sys/feature_tests.h>
    "/usr/include/iso/math_c99.h", line 12: cannot find include file: <sys/feature_tests.h>
    "/usr/include/floatingpoint.h", line 39: cannot find include file: <stdio_tag.h>
    "/usr/include/floatingpoint.h", line 45: syntax error before or at: FILE
    "/usr/include/floatingpoint.h", line 164: syntax error before or at: FILE
    "dss.h", line 84: cannot find include file: <stdio.h>
    "dss.h", line 85: cannot find include file: <stdlib.h>
    "dss.h", line 210: warning: old-style declaration or incorrect type for: FILE
    "dss.h", line 210: syntax error before or at: *
    "dss.h", line 210: warning: old-style declaration or incorrect type for: tbl_open
    "dss.h", line 471: syntax error before or at: FILE
    "dss.h", line 471: warning: undefined or missing type for: FILE
    "dss.h", line 471: warning: undefined or missing type for: void
    "dss.h", line 471: warning: undefined or missing type for: int
    "dss.h", line 471: warning: undefined or missing type for: int
    "build.c", line 89: warning: implicit function declaration: sprintf
    "build.c", line 115: warning: implicit function declaration: strlen
    "build.c", line 160: undefined symbol: NULL
    "build.c", line 160: warning: improper pointer/integer combination: op "="
    "build.c", line 160: non-constant initializer: op "NAME"
    "build.c", line 172: warning: improper pointer/integer combination: op "=="
    "build.c", line 189: warning: implicit function declaration: strcpy
    "build.c", line 348: warning: implicit function declaration: memcpy
    "build.c", line 368: undefined symbol: NULL
    "build.c", line 368: warning: improper pointer/integer combination: op "="
    "build.c", line 368: non-constant initializer: op "NAME"
    cc: acomp failed for build.c
    *** Error code 2
    make: Fatal error: Command failed for target `build.o'

    Thank you very much for your reply.
    system/header is not installed on the server, but when I tried to install it , I got an error that said there was a conflict. How should I solve this?
    -bash-4.1$ sudo pkg install system/header
    Creating Plan /
    pkg install: No matching version of system/header can be installed:
    Reject: pkg://solaris/system/[email protected],5.11-0.175.0.0.0.2.1:20111019T073158Z
    Reason: This version is excluded by installed incorporation pkg://solaris/consolidation/osnet/[email protected],5.11-0.175.0.4.0.5.1:20120206T225911Z
    -bash-4.1$ sudo pkg install pkg:/system/header
    Creating Plan /
    pkg install: No matching version of system/header can be installed:
    Reject: pkg://solaris/system/[email protected],5.11-0.175.0.0.0.2.1:20111019T073158Z
    Reason: This version is excluded by installed incorporation pkg://solaris/consolidation/osnet/[email protected],5.11-0.175.0.4.0.5.1:20120206T225911Z

  • Compiling Apache 1.3.9 & PHP 3.0.12 to use Oracle 8.1.5 on SuSe 6.2

    Hi!
    I am trying to compile the above packets but am running into massive problems.
    PHP3 compiles well, if i try to use the "normal" static module for Apache, but the Apache configure script says that it needs an ANSI C compiler and stops.
    I am using GCC 2.7.2.3 with the bugfixes from SuSe.
    Since that did not work I tried the configuration as a Dynamic Module. The Apache "Readme.config" explains two ways to do so, but the first has the same problem with GCC and the second (via APXS) compiles Apache without problems, but PHP3 wont compile since it does not find a library. The exact error is: "/usr/i486-linux/bin/ld: cannot open -lclntsh: No such file or directory"
    I found a libclntsh.so.8.0 in the oracle/lib directory, but since i fumbled around with this library (i tried ln -s libclntsh.so.8.0 libclntsh.so) sqlplus says libclntsh.so.8.0: cannot find file data: no such file or directory (even now that the link is deleted again).
    And PHP still wont compile. Any ideas would be welcome.
    P.S.: Is it normal that Oracle has to be told NOT to create a database during install, TO create a database???
    We worked for 3 days on the Oracle installation and that was the only way to install Oracle without errors.
    thx
    Uwe Schurig

    Lee Bennett (guest) wrote:
    :Hi
    :I have successfully installed Oracle 8.1.5 Enterprise edition
    on
    :Suse 6.2 and applied the 8.1.5.0.1 patch set,
    NO!
    SuSe 6.2 have a patch file for Oracle made from their developers.
    Never use Oracle 8.1.5.0.1 patch file that doesn't work because
    us bugged.
    Use SuSe 6.2 Oracle patch set.
    (don't remember the web page where you can download it but a
    search with word "oracle" from SuSe homepage will lead you to
    it)
    -Stefano
    null

  • Help!Apache compiling with gcc in Solaris 10

    Greetings
    I am having problems with Apache 1.3.
    When I am running the script ./src/Configure my output is:
    #./Configure
    Using config file: Configuration
    Creating Makefile
    + configured for Solaris 2100 platform
    + setting C pre-processor to gcc -E
    + using "tr [a-z] [A-Z]" to uppercase
    + checking for system header files
    + adding selected modules
    ./helpers/TestCompile: make: not found
    + using builtin Expat
    ./Configure: make: not found
    + checking sizeof various data types
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    + doing sanity check on compiler and options
    ./helpers/TestCompile: make: not found
    ** A test compilation with your Makefile configuration
    ** failed. The below error output from the compilation
    ** test will give you an idea what is failing. Note that
    ** Apache requires an ANSI C Compiler, such as gcc.
    ======== Error Output for sanity check ========
    ./helpers/TestCompile: make: not found
    ============= End of Error Report =============
    Aborting!
    I am root, my PATH is
    /usr/bin:/usr/ucb:/etc:/usr/local/bin:/opt/netscape:/usr/css/bin/:/bin:/usr/openwin/bin:/usr/sbin:/
    I am missing something stupid, I know but I can't find it!!!!Help please I am a newbie.
    I am curious. Has anyone been able to compile succesfully apache server with gcc in Solaris 10?
    Thanks,

    Thanks,
    It was only that.!!!
    But now I have the following problem, I can't create executables when I type make. The output is:
    when I am in the src/folder
    #make
    ===> regex
    <=== regex
    ===> os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> $i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== $i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    but when I am typing one step up is.
    ===> src
    ===> src/regex
    <=== src/regex
    ===> src/os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> src/$i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='src/' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='src/' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== src/$i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    Current working directory /web-download/apache_1.3.33/src
    *** Error code 1
    The following command caused the error:
    case "xi86pc-sun-solaris2.2100" in \
    x*390*) C89STEPS="0xffffffff"; export C89STEPS;; \
    esac; \
    cd ./src; make SDP=src/ all
    make: Fatal error: Command failed for target `build-std'
    Current working directory /web-download/apache_1.3.33
    *** Error code 1
    The following command caused the error:
    make -f ./Makefile root= build-std
    make: Fatal error: Command failed for target `build'
    I am newbie with Solaris and gcc so I have no so much idea what is missing there.
    Thanks,
    Juan

  • Pro*C doesn't generate ansi C code

    Hi,
    Oracle 8.1.7
    Here is my pre compile command with ANSI_C flag:
    proc CODE=ANSI_C SQLCHECK=SEMANTICS USERID=user/pass iname=toto oname=toto.c
    And here is my compile command
    gcc -ansi -DOS_SYSV=4 -DOS_SOLARIS -DOS_SOLARIS_2 -fPIC -g -O1 -W -Wall -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Winline -Wmissing-prototypes -Wstrict-prototypes -Wimplicit -c toto.c
    I got all these warning:
    toto.c:43: warning: missing initializer
    toto.c:43: warning: (near initialization for `sqladt.adttvn')
    toto.c:57: warning: missing initializer
    toto.c:57: warning: (near initialization for `sqltds.tdsval')
    toto.c:106: warning: missing initializer
    toto.c:106: warning: (near initialization for `sqlstm.iters')
    toto.c: In function `funct1':
    toto.c:250: warning: declaration of `sqlstm' shadows a global declaration
    toto.c:106: warning: shadowed declaration is here
    toto.c: At top level:
    toto.c:106: warning: `sqlstm' defined but not used
    These warning are generated by the pre compiler due to non ansi c code.
    ex of non ansi generated code:
    static struct sqladts sqladt = {
    1,1,0,
    I can't remove any of my compile flag.
    Is there a solution for remove these warnings?
    Note that all suggestions are welcome, even pre compiler version changing ...
    Thx,
    JR

    Hi,
    it thinks you can ignore this,
    as your reported there are 'only' warning due
    to the stronger ANSI C Compiler settings.
    But C-Code compiled should be have the same exection-code
    independent which compiler frontend compiled it.
    Carl

  • "Symbol Undefined" error when trying to compile GPIB examples

    I'm trying to compile the examples written in C that are given in the folder \VXIPNP\WinNT\NIvisa\Examples\C\Gpib. Using a standard ANSI C compiler, I get the following error messages:
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viClose@4
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viTerminate@12
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viReadAsync@16
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viWrite@16
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viEnableEvent@16
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viInstallHandler@16
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viOpen@20
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viOpenDefaultRM@
    4
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viGetAttribute@12
    --- errorlevel 9
    Any help is appreciated.

    Hi esi_stents,
    The compiler is complaining here because it can't find the correct library file to link to. Therefore, each of the above errors are function calls that the compiler does not have a prototype for.
    The library file you want to make sure to link to is visa32.lib. The path for this library file differs slightly based on what compiler you are using:
    Borland: C:\VXIPNP\WinNT\lib\bc
    Microsoft: C:\VXIPNP\WinNT\lib\msc
    Then follow the instructions for your compiler on how to set up links to a library.
    Now the compiler should stop complaining at you and you're good to go! Have fun!
    Kileen Cheng
    Applications Engineer
    National Instruments

  • Forte C compiler, SIZEOF from X11/xdm.h and macro concatenation

    Hi,
    I'm trying to trace the version of compiler I need to build some legacy software. The software can't be changed. I'm currently using:-
    % cc -V
    cc: Sun WorkShop 6 update 2 C 5.3 2001/05/15
    with a demo licence.
    I'm currently having problems compiling some code which makes use of the SIZEOF macro from /usr/openwin/include/X11/xdm.h. This macro uses concatenation to prefix the argument with 'sz_'. The problem I'm seeing is that 'sz_' is undefined at compile time; looking at the output of the preprocessor I see that a space has been added between the prefix and the argument (e.g. SIZEOF(x) produces 'sz_ x').
    Questions:
    1. Does this indicate an error in the way I'm using the compiler? I presume that the macro is defined as sz_/**/x, the null comment being replaced by a space. This definition is used because of #ifdef's in the xdm.h file guarding against using sz_##x. Is a -D flag required somewhere to force the correct definition?
    2. I also don't want to change the make files in use if possible, so using a -D option is not ideal. Is there a later compiler version where any problem has been corrected?
    Cheers,
    Chris.

    OK, the -Xs option forces it to work, but this is a change to the makefile.
    I'm confused because this is 3rd-party software, using a standard macro from openwin.
    The relevant code in the include file /usr/openwin/include/X11/Xmd.h is:
    #if ((__STDC__ || defined(__cplusplus) || defined(c_plusplus)) && !defined(UNIXCPP)) || defined(ANSICPP)
    #define SIZEOF(x) sz##x
    #define SIZEOF(x) _SIZEOF(x)
    #else
    #define SIZEOF(x) sz_/**/x
    #endif /* if ANSI C compiler else not */
    Surely all the condition macros should be defined by the compiler/preprocessor - if there's an error in picking up the correct SIZEOF definition, it's because the wrong macros are defined? I believe that __STDC__ is defined as 0, which is why the evaluation falls through to the second clause.
    Is the preprocessor at fault, and if so when was it fixed?

  • Using non-ANSI C

    We have the requirement of calling some native C program which are available as compiled object files but which have been written in non-ANSI C. We are writing a simple C wrapper class to instantiate these native programs. This wrapper program would implement the functions which are mentioned in the generated JNI header file.
    The JNI header file that is generated is ANSI C.
    Is it possible to compile the implementation of the wrapper written in ANSI C with the object files which are based on non-ANSI code?
    Or is it possible to generate the JNI header file in a non-ANSI C form?

    Well let me give the specific instances of the troublespots we have:
    We have some applications running on a HP-UX box and we have some programs available on the box (in compiled object form and as source code) that enable us to interact with the application. Since the HP-UX system by default comes with a non-ANSI C compiler, these interfacing programs have been written in that form. It is also not possible to make the programs ANSI-compliant.
    Now we need to write a C wrapper program that will call those interfacing programs to connect to the application. This C wrapper program will be made to implement the JNI headers which are generated from javah. Since the generated code is ANSI C, we are going to use a newly installed gcc compiler on the HP-UX to compile it.
    So we have one part of the setup having ANSI C code and the other existing part is non-ANSI. Can the wrapper program make use of the existing programs?
    Thanks for your responses!

  • How to install the C Compiler (cc)

    I just finished installing the Solaris 8 on Sparc system. But the C Compiler did not get installed when I give the command cc I get:
    # cc
    /usr/ucb/cc: language optional software package not installed
    Can someone URGENTLY help me out? I have all the Solaris 8 cds sent by Sun. How I do I install this "language optional software package" ?
    Thanks in advance.
    Chandra

    Ok, all the language tools you need are on the Companion CD. If you haven't already loaded it, then just stick it in and it should autoload.
    If it doesn't, then see if it mounted under /cdrom/cdrom0 and run the installer by hand.
    Worst case, you have to load all the packages by hand (somewhere on the CD) using 'pkgadd -d /cdrom/cdrom0/<path_to_packages>'
    This will load everything under '/opt/sfw'. So just look and see if you already have '/opt/sfw/bin/gcc'.
    Do: '/opt/sfw/bin/gcc --version' and you should get 2.95.2
    The Sun 'cc' compiler (in /usr/ccs/bin) is not a free compiler. That is why you get the Optional Language error, because you don't have the "SUNWpro" package loaded that installs the fullblown Sun ANSI C compiler.
    Gcc should be all that you need. But bear in mind that (at least on SPARCs) the Sun compiler will create far faster code!
    -- S

  • Problem installing iAS 6.0 SP1 on HP-UX 11.0

    I am trying to install iAS 6.0 SP1 on HP-UX 11.0. I could install iWS and directory successfully but iAS installation is failing by throwing the following error.
    aCC runtime: ERROR: _main() not called
    11. Register_NASA[25]: nawk: not found
    in this aCC means ANSI C Compiler. does it mean that it requires ANSI C Compiler. kas, admintool,deploytool are working fine. no problem with directory also. i couldn't start KJS. i tried starting KJS by executing ./kjs in ias/bin, then it throwed the following error
    [16/May/2002 11:26:55:8] error: DATA-100: priority not set in the registry for driver 16
    [16/May/2002 11:26:55:8] error: DATA-100: priority not set in the registry for driver 32
    [16/May/2002 11:26:55:8] error: DATA-100: priority not set in the registry for driver 128
    [16/May/2002 11:26:55:8] error: DATA-100: priority not set in the registry for driver 256
    I don't know where i went wrong. can any body trace the reason this problem. thanks in advance
    regards
    Ananda Rao

    Hi.
    when you say you have installed weblogic on the same machine several times and it worked, do you mean you have installed wls
    6.1 sp1? Or do you mean you have installed other versions? If you have installed this version before then you might try
    reinstalling with a fresh download of the install binary.
    If you are still having problems then you might want to open a case with support.
    Regards,
    Michael
    Nalika wrote:
    Hi all,
    I am getting following exception when installing WebLogic 6.1 sp1 in HP-UX 11.0.
    Installing WebLogic ISV License on hpdln001.
    Please wait and do not interrupt ....
    Done!
    bad document for elName=license-group doc=null ...returning null...
    java.lang.NullPointerException
    at com.bea.installer.registry.LicenseMerger.merge(LicenseMerger.java:96)
    at com.bea.installer.registry.LicenseMerger.main(LicenseMerger.java:372)
    After that WebLogic server does not starts by giving following error
    Starting WebLogic Domains.
    SHLIB_PATH=/space/hpdln001-1/v7/bea/wlserver6.1sp1/lib/hpux11:/space/hpdln001-1/v7/bea/wlserver6.1sp1/lib/hpux11/oci816_8
    $$$$$$$$$$$$$$$$ License Exception $$$$$$$$$$$$$$$$
    Unable to start WebLogic Server !!
    Missing license file for: WebLogic Server 6.1
    I presume that I do have a correct license file since I already installed WebLogic
    in same machine several times & it worked fine. I have installed almost all the pathes
    to HP machine.
    Thanks
    Nalika--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • BDB vxworks 6.6 kernel port error

    Hello,
    I have Berkeley DB 4.7.25 compiled in kernel. When I try the example in txn_guide.c, I have got the following error:
    Error opening environment: S_dosFsLib_FILE_NOT_FOUND
    I'm all done.
    value = 10 = 0xa
    I traced the source code it fails in __rep_reset_init() when it tries to open file __db.rep.init. How can I fix this? Thanks.
    Allan
    #ifdef HAVE_REPLICATION
              if ((ret = __rep_reset_init(env)) != 0 ||
              (ret = __env_remove_env(env)) != 0 ||
    #else
    Have I missed anything? Thanks.
    /* File: txn_guide.c */
    /* We assume an ANSI-compatible compiler */
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <db.h>
    #ifdef _WIN32
    #include <windows.h>
    #define     PATHD '\\'
    extern int getopt(int, char * const *, const char *);
    extern char *optarg;
    typedef HANDLE thread_t;
    #define     thread_create(thrp, attr, func, arg) \
    (((*(thrp) = CreateThread(NULL, 0, \
         (LPTHREAD_START_ROUTINE)(func), (arg), 0, NULL)) == NULL) ? -1 : 0)
    #define     thread_join(thr, statusp) \
    ((WaitForSingleObject((thr), INFINITE) == WAIT_OBJECT_0) && \
    GetExitCodeThread((thr), (LPDWORD)(statusp)) ? 0 : -1)
    typedef HANDLE mutex_t;
    #define     mutex_init(m, attr) \
    (((*(m) = CreateMutex(NULL, FALSE, NULL)) != NULL) ? 0 : -1)
    #define     mutex_lock(m) \
    ((WaitForSingleObject(*(m), INFINITE) == WAIT_OBJECT_0) ? 0 : -1)
    #define     mutex_unlock(m) (ReleaseMutex(*(m)) ? 0 : -1)
    #else
    #include <pthread.h>
    #include <unistd.h>
    #define     PATHD '/'
    typedef pthread_t thread_t;
    #define     thread_create(thrp, attr, func, arg) \
    pthread_create((thrp), (attr), (func), (arg))
    #define     thread_join(thr, statusp) pthread_join((thr), (statusp))
    typedef pthread_mutex_t mutex_t;
    #define     mutex_init(m, attr) pthread_mutex_init((m), (attr))
    #define     mutex_lock(m) pthread_mutex_lock(m)
    #define     mutex_unlock(m) pthread_mutex_unlock(m)
    #endif
    /* Run 5 writers threads at a time. */
    #define     NUMWRITERS 5
    * Printing of a thread_t is implementation-specific, so we
    * create our own thread IDs for reporting purposes.
    int global_thread_num;
    mutex_t thread_num_lock;
    /* Forward declarations */
    int count_records(DB *, DB_TXN *);
    int open_db(DB **, const char *, const char *, DB_ENV *, u_int32_t);
    int usage(void);
    void writer_thread(void );
    /* Usage function */
    int
    usage()
    fprintf(stderr, " [-h <database_home_directory>]\n");
    return (EXIT_FAILURE);
    #if 0
    int
    main(int argc, char *argv[])
    /* Initialize our handles */
    DB *dbp = NULL;
    DB_ENV *envp = NULL;
    thread_t writer_threads[NUMWRITERS];
    int ch, i, ret, ret_t;
    u_int32_t env_flags;
    char *db_home_dir;
    /* Application name */
    const char *prog_name = "txn_guide";
    /* Database file name */
    const char *file_name = "mydb.db";
    /* Parse the command line arguments */
    #ifdef _WIN32
    db_home_dir = ".\\";
    #else
    db_home_dir = "./";
    #endif
    while ((ch = getopt(argc, argv, "h:")) != EOF)
         switch (ch) {
         case 'h':
         db_home_dir = optarg;
         break;
         case '?':
         default:
         return (usage());
    #endif
    void myDbTest(char *home)
         /* Initialize our handles */
         DB *dbp = NULL;
         DB_ENV *envp = NULL;
         thread_t writer_threads[NUMWRITERS];
         int ch, i, ret, ret_t;
         u_int32_t env_flags;
         char *db_home_dir;
         /* Application name */
         const char *prog_name = "txn_guide";
         /* Database file name */
         const char *file_name = "mydb.db";
         /* Parse the command line arguments */
         #ifdef _WIN32
         db_home_dir = ".\\";
         #else
         db_home_dir = "./";
         #endif     
    db_home_dir = home;
    /* Create the environment */
    ret = db_env_create(&envp, 0);
    if (ret != 0) {
         fprintf(stderr, "Error creating environment handle: %s\n",
         db_strerror(ret));
         goto err;
    * Indicate that we want db to perform lock detection internally.
    * Also indicate that the transaction with the fewest number of
    * write locks will receive the deadlock notification in
    * the event of a deadlock.
    ret = envp->set_lk_detect(envp, DB_LOCK_MINWRITE);
    if (ret != 0) {
         fprintf(stderr, "Error setting lock detect: %s\n",
         db_strerror(ret));
         goto err;
    envp->set_shm_key(envp, 10);
    env_flags =
    DB_CREATE | /* Create the environment if it does not exist */
    DB_RECOVER | /* Run normal recovery. */
    DB_INIT_LOCK | /* Initialize the locking subsystem */
    DB_INIT_LOG | /* Initialize the logging subsystem */
    DB_INIT_TXN | /* Initialize the transactional subsystem. This
                   * also turns on logging. */
    DB_INIT_MPOOL | /* Initialize the memory pool (in-memory cache) */
    DB_THREAD; /* Cause the environment to be free-threaded */
    /* Now actually open the environment */
    ret = envp->open(envp, db_home_dir, env_flags, 0);
    if (ret != 0) {
         fprintf(stderr, "Error opening environment: %s\n",
         db_strerror(ret));
         goto err;
    * If we had utility threads (for running checkpoints or
    * deadlock detection, for example) we would spawn those
    * here. However, for a simple example such as this,
    * that is not required.
    /* Open the database */
    ret = open_db(&dbp, prog_name, file_name,
    envp, DB_DUPSORT);
    if (ret != 0)
         goto err;
    /* Initialize a mutex. Used to help provide thread ids. */
    (void)mutex_init(&thread_num_lock, NULL);
    /* Start the writer threads. */
    for (i = 0; i < NUMWRITERS; i++)
         (void)thread_create(
         &writer_threads, NULL, writer_thread, (void *)dbp);
    /* Join the writers */
    for (i = 0; i < NUMWRITERS; i++)
         (void)thread_join(writer_threads[i], NULL);
    err:
    /* Close our database handle, if it was opened. */
    if (dbp != NULL) {
         ret_t = dbp->close(dbp, 0);
         if (ret_t != 0) {
         fprintf(stderr, "%s database close failed: %s\n",
              file_name, db_strerror(ret_t));
         ret = ret_t;
    /* Close our environment, if it was opened. */
    if (envp != NULL) {
         ret_t = envp->close(envp, 0);
         if (ret_t != 0) {
         fprintf(stderr, "environment close failed: %s\n",
              db_strerror(ret_t));
              ret = ret_t;
    /* Final status message and return. */
    printf("I'm all done.\n");
    return (ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
    * A function that performs a series of writes to a
    * Berkeley DB database. The information written
    * to the database is largely nonsensical, but the
    * mechanism of transactional commit/abort and
    * deadlock detection is illustrated here.
    void *
    writer_thread(void *args)
    static char *key_strings[] = {
         "key 1", "key 2", "key 3", "key 4", "key 5",
         "key 6", "key 7", "key 8", "key 9", "key 10"
    DB *dbp;
    DB_ENV *envp;
    DBT key, value;
    DB_TXN *txn;
    int i, j, payload, ret, thread_num;
    int retry_count, max_retries = 20; /* Max retry on a deadlock */
    dbp = (DB *)args;
    envp = dbp->get_env(dbp);
    /* Get the thread number */
    (void)mutex_lock(&thread_num_lock);
    global_thread_num++;
    thread_num = global_thread_num;
    (void)mutex_unlock(&thread_num_lock);
    /* Initialize the random number generator */
    srand(thread_num);
    /* Write 50 times and then quit */
    for (i = 0; i < 50; i++) {
         retry_count = 0; /* Used for deadlock retries */
         * Some think it is bad form to loop with a goto statement, but
         * we do it anyway because it is the simplest and clearest way
         * to achieve our abort/retry operation.
    retry:
         /* Begin our transaction. We group multiple writes in
         * this thread under a single transaction so as to
         * (1) show that you can atomically perform multiple writes
         * at a time, and (2) to increase the chances of a
         * deadlock occurring so that we can observe our
         * deadlock detection at work.
         * Normally we would want to avoid the potential for deadlocks,
         * so for this workload the correct thing would be to perform our
         * puts with autocommit. But that would excessively simplify our
         * example, so we do the "wrong" thing here instead.
         ret = envp->txn_begin(envp, NULL, &txn, 0);
         if (ret != 0) {
         envp->err(envp, ret, "txn_begin failed");
         return ((void *)EXIT_FAILURE);
         for (j = 0; j < 10; j++) {
         /* Set up our key and values DBTs */
         memset(&key, 0, sizeof(DBT));
         key.data = key_strings[j];
         key.size = (u_int32_t)strlen(key_strings[j]) + 1;
         memset(&value, 0, sizeof(DBT));
         payload = rand() + i;
         value.data = &payload;
         value.size = sizeof(int);
         /* Perform the database put. */
         switch (ret = dbp->put(dbp, txn, &key, &value, 0)) {
              case 0:
              break;
              * Our database is configured for sorted duplicates,
              * so there is a potential for a KEYEXIST error return.
              * If we get one, simply ignore it and continue on.
              * Note that you will see KEYEXIST errors only after you
              * have run this program at least once.
              case DB_KEYEXIST:
              printf("Got keyexists.\n");
              break;
              * Here's where we perform deadlock detection. If
              * DB_LOCK_DEADLOCK is returned by the put operation,
              * then this thread has been chosen to break a deadlock.
              * It must abort its operation, and optionally retry the
              * put.
              case DB_LOCK_DEADLOCK:
              * First thing that we MUST do is abort the
              * transaction.
              (void)txn->abort(txn);
              * Now we decide if we want to retry the operation.
              * If we have retried less than max_retries,
              * increment the retry count and goto retry.
              if (retry_count < max_retries) {
                   printf("Writer %i: Got DB_LOCK_DEADLOCK.\n",
                   thread_num);
                   printf("Writer %i: Retrying write operation.\n",
                   thread_num);
                   retry_count++;
                   goto retry;
              * Otherwise, just give up.
              printf("Writer %i: ", thread_num);
              printf("Got DB_LOCK_DEADLOCK and out of retries.\n");
              printf("Writer %i: Giving up.\n", thread_num);
              return ((void *)EXIT_FAILURE);
              * If a generic error occurs, we simply abort the
              * transaction and exit the thread completely.
              default:
              envp->err(envp, ret, "db put failed");
              ret = txn->abort(txn);
              if (ret != 0)
                   envp->err(envp, ret,
                   "txn abort failed");
              return ((void *)EXIT_FAILURE);
         } /** End case statement **/
         } /** End for loop **/
         * print the number of records found in the database.
         * See count_records() for usage information.
         printf("Thread %i. Record count: %i\n", thread_num,
         count_records(dbp, NULL));
         * If all goes well, we can commit the transaction and
         * exit the thread.
         ret = txn->commit(txn, 0);
         if (ret != 0) {
         envp->err(envp, ret, "txn commit failed");
         return ((void *)EXIT_FAILURE);
    return ((void *)EXIT_SUCCESS);
    * This simply counts the number of records contained in the
    * database and returns the result. You can use this function
    * in three ways:
    * First call it with an active txn handle.
    * Secondly, configure the cursor for uncommitted reads (this
    * is what the example currently does).
    * Third, call count_records AFTER the writer has committed
    * its transaction.
    * If you do none of these things, the writer thread will
    * self-deadlock.
    * Note that this function exists only for illustrative purposes.
    * A more straight-forward way to count the number of records in
    * a database is to use DB->stat() or DB->stat_print().
    int
    count_records(DB dbp, DB_TXN txn)
    DBT key, value;
    DBC *cursorp;
    int count, ret;
    cursorp = NULL;
    count = 0;
    /* Get the cursor */
    ret = dbp->cursor(dbp, txn, &cursorp,
         DB_READ_UNCOMMITTED);
    if (ret != 0) {
         dbp->err(dbp, ret,
         "count_records: cursor open failed.");
         goto cursor_err;
    /* Get the key DBT used for the database read */
    memset(&key, 0, sizeof(DBT));
    memset(&value, 0, sizeof(DBT));
    do {
         ret = cursorp->get(cursorp, &key, &value, DB_NEXT);
         switch (ret) {
         case 0:
              count++;
              break;
         case DB_NOTFOUND:
              break;
         default:
              dbp->err(dbp, ret,
              "Count records unspecified error");
              goto cursor_err;
    } while (ret == 0);
    cursor_err:
    if (cursorp != NULL) {
         ret = cursorp->close(cursorp);
         if (ret != 0) {
         dbp->err(dbp, ret,
              "count_records: cursor close failed.");
    return (count);
    /* Open a Berkeley DB database */
    int
    open_db(DB **dbpp, const char progname, const char file_name,
    DB_ENV *envp, u_int32_t extra_flags)
    int ret;
    u_int32_t open_flags;
    DB *dbp;
    /* Initialize the DB handle */
    ret = db_create(&dbp, envp, 0);
    if (ret != 0) {
         fprintf(stderr, "%s: %s\n", progname,
              db_strerror(ret));
         return (EXIT_FAILURE);
    /* Point to the memory malloc'd by db_create() */
    *dbpp = dbp;
    if (extra_flags != 0) {
         ret = dbp->set_flags(dbp, extra_flags);
         if (ret != 0) {
         dbp->err(dbp, ret,
              "open_db: Attempt to set extra flags failed.");
         return (EXIT_FAILURE);
    /* Now open the database */
    open_flags = DB_CREATE | /* Allow database creation */
              DB_READ_UNCOMMITTED | /* Allow dirty reads */
              DB_AUTO_COMMIT; /* Allow autocommit */
    ret = dbp->open(dbp, /* Pointer to the database */
              NULL, /* Txn pointer */
              file_name, /* File name */
              NULL, /* Logical db name */
              DB_BTREE, /* Database type (using btree) */
              open_flags, /* Open flags */
              0); /* File mode. Using defaults */
    if (ret != 0) {
         dbp->err(dbp, ret, "Database '%s' open failed",
         file_name);
         return (EXIT_FAILURE);
    return (EXIT_SUCCESS);

    More information: After I create the DB, DB put works fine. The db_stat is OK.
    After reboot the processor, db_stat gives error. After running db_recover, it gives errors.
    Before reboot:
    -> ls
    CfgDbEr.log
    __db.001
    log.0000000001
    OpvCfg.db
    value = 0 = 0x0
    -> db_stat "-h /bk1/db -d OpvCfg.db"
    THU AUG 14 18:12:23 2008 Local time
    53162 Btree magic number
    9 Btree version number
    Big-endian Byte order
    Flags
    2 Minimum keys per-page
    4096 Underlying database page size
    1007 Overflow key/data size
    1 Number of levels in the tree
    1 Number of unique keys in the tree
    1 Number of data items in the tree
    0 Number of tree internal pages
    0 Number of bytes free in tree internal pages (0% ff)
    1 Number of tree leaf pages
    4058 Number of bytes free in tree leaf pages (0% ff)
    0 Number of tree duplicate pages
    0 Number of bytes free in tree duplicate pages (0% ff)
    0 Number of tree overflow pages
    0 Number of bytes free in tree overflow pages (0% ff)
    0 Number of empty pages
    0 Number of pages on the free list
    value = 0 = 0x0
    After reboot, it points out error:segment /bk1/db/__db.001 does not exist
    -> db_stat "-h /bk1/db -d OpvCfg.db"
    db_stat: segment /bk1/db/__db.001 does not exist
    THU JAN 01 00:01:32 1970 Local time
    53162 Btree magic number
    9 Btree version number
    Big-endian Byte order
    Flags
    2 Minimum keys per-page
    4096 Underlying database page size
    1007 Overflow key/data size
    1 Number of levels in the tree
    1 Number of unique keys in the tree
    1 Number of data items in the tree
    0 Number of tree internal pages
    0 Number of bytes free in tree internal pages (0% ff)
    1 Number of tree leaf pages
    4058 Number of bytes free in tree leaf pages (0% ff)
    0 Number of tree duplicate pages
    0 Number of bytes free in tree duplicate pages (0% ff)
    0 Number of tree overflow pages
    0 Number of bytes free in tree overflow pages (0% ff)
    0 Number of empty pages
    0 Number of pages on the free list
    value = 0 = 0x0
    The result of running db_recover:
    db_recover "-c -h /bk1/db"db_recover: segment /bk1/db/__db.001 does not exist
    db_recover: /bk1/db/log.0000000002: log file unreadable: S_dosFsLib_FILE_NOT_FOU
    ND
    db_recover: PANIC: S_dosFsLib_FILE_NOT_FOUND
    db_recover: PANIC: fatal region error detected; run recovery
    db_recover: dbenv->close: DB_RUNRECOVERY: Fatal error, run database recovery
    value = 1 = 0x1

  • Registering Apache 1.3.4 with OAS 407 on RedHat Linux 5.2

    Hi,
    Has anybody tried or succeeded in registering Apache 1.3.4 with
    Oracle Application Server 4.0.7 running on RedHat Linux 5.2?
    We're having trouble registering Apache as an External Web
    Listener for OAS. Applying the correction for step #2 under
    registering Apache servers also hasn't given us any success in
    rebuilding Apache.
    Has anybody encountered the error message below when compiling
    the Apache 1.3.4 to work with OAS after updating the EXTRA_LIBS
    in Apache CONFIGURATION File with the value given on the
    documentation.
    The Error Message
    Using config file: Configuration
    Creating Makefile
    + configured for Linux platform
    + setting C compiler to gcc
    + setting C pre-processor to gcc -E
    + checking for system header files
    + adding selected modules
    + doing sanity check on compiler and options
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_log_error_old'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_palloc'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_internal_redirect'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `gMimeTypesFile'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_log_printf'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_setup_client_block'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_destroy_sub_req'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_get_basic_auth_pw'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_listeners'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_sub_req_lookup_file'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_pstrdup'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `gImplName'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_table_add'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_get_remote_host'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_signal'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_send_http_header'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ows_module'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_should_client_block'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_rwrite'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_table_set'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `ap_get_client_block'
    /home/oracle/ows/4.0/lib/libapadp.so: undefined reference to
    `alias_module'
    make: *** [dummy] Error 1
    ** A test compilation with your Makefile configuration
    ** failed. This is most likely because your C compiler
    ** is not ANSI. Apache requires an ANSI C Compiler, such
    ** as gcc. The above error message from your compiler
    ** will also provide a clue.
    Aborting!
    Your comments or suggestions are most welcome.
    Thanks,
    --Edsel
    null

    Hi ,
         First of all please check availability of your OS + DB requiremnts whether it is supported by SAP or not.You can check this at Product Availability Matrix at ::
    http://service.sap.com/pam
         If this support for your environment i.e.RedHat Linux 5.2 with Oracle 10G then be informed that after starting sapinst in step create database it will prompt you for installing your oracle DB. So open a new window & install your databse ,do the patching of your DB & then continue with sapinst after successfull installation of oracle.Rest of details sapinst will prompot you during instal;lation.
        Hope this will guide you for your query.
    Thanks..
    Mohit

  • JES5 on HPUX C API Message Queue problem

    OK. I know there's not too many of you out there, but I've been trying to compile a simple "C" helloworld pub/sub application using GCC. The examples shows using 'aCC' instead of 'gcc' to compile on HPUX. I'm able to compile using gcc, but the application core dumps.
    Is the Message Queue, C-API & library compatable with applications compiled with gcc on the HPUX platform? Or will i have to use HP's Ascii C Compiler to get it to work.
    gcc build options:
    g++ -x c -fPIC -DHPUX11 -D_REENTRANT -I/opt/sun/mq/include -o Producer -L/opt/sun/mq/lib -L/opt/sun/private/lib -lnss3 -lmqcrt -Wl,+b,/opt/sun/private/lib Producer.c
    Error during execution:
    /usr/lib/dld.sl: Unresolved symbol: __shlinit (code) from /opt/sun/mq/lib/libmqcrt.sl
    Abort(coredump)
    Thanks
    Message was edited by:
    weinhard

    After switching to HP's ANSI C compiler i get the exact same error message.
    Any ideas as to what the permissions should be on the symbolic link to the real shared library. The installed permisstion/owners are:
    lrwxr-xr-x   1 bin        bin             29 Sep 12 00:45 libmqcrt.sl -> /opt/sun/mq/lib/libmqcrt.sl.1

Maybe you are looking for

  • Report header is missng while printing or spooling

    Hi All, I have a problem in print a report.its After getting selection screen of the report ,If i click a print button (it's for execute and print) the header details are missing in spool ( does not print selection fields of the report are missing in

  • Problem using Weblogic 6 and Weblogic 8.1 thin clients from same applicatio

    We are developing a application where we require to communicate with 2 different ?Webogic Servers? running different versions. First server is ?Weblogic 6.1 SP7? and the other is ?Weblogic 8.1?. We use Weblogic thin client jars to connect to these se

  • Save as PDF "Printing"

    It seems that the native "Save as PDF" function under printing defaults to saving my documents in the application folder. I would like to set a specific folder in my documents as the target folder for all of these PDFs to be saved. I cannot seem to f

  • What is the max frame rate in depthFrame

    In v1.8, I remembered the frame rate can be up to 30fps in depthFrme. what is the max frame rate in depthFrame in the v2.0? And how can i set it? thx!

  • CL_WD_TABSTRIP instance assignment problem?

    hi,    i have taken tabstrip control (TABSTRIP1) on view name called (DATEVIEW1) , now on click on perticular button i m having one method , where i want selected tab from tabstrip....    in that method i have written code , DATA CLWDTBSTRP TYPE REF