Menu

Oratcl3.2 make failed on SunOS 5.6

Help
Shu Xiao
2001-08-09
2001-08-10
  • Shu Xiao

    Shu Xiao - 2001-08-09

    I failed to make Oratcl on SunOS 5.6 with gcc3.0.
    I used the following configuration:

    ../configure --enable-gcc --with-oracle-directory=/auto/engweb/oracle/product/8.1.6 --enable-shared

    And the make returns:

    xxxxxxxxxxx-> make

    gcc -DNO_BCOPY=1 -DVERSION=\"3.2\" -DUSE_TCL_STUBS=1 -DLIBRARY1=\"oralob.tcl\" -DLIBRARY2=\"oralong.tcl\" -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DUSEGETWD=1 -DNO_STRERROR=1 -DNO_GETWD=1 -DNO_WAIT3=1 -DNO_UNAME=1 -DNO_REALPATH=1 -DNO_STDLIB_H=1 -DNO_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DTM_IN_SYS_TIME=1 -DHAVE_SYS_TIME_H=1 -DHAVE_TIMEZONE_VAR=1 -DNO_FSTATFS=1 -DNO_MEMMOVE=1 -DNO_STRING_H=1 -Dmode_t=int -Dpid_t=int -Dsize_t=unsigned -Duid_t=int -Dgid_t=int -DUSE_DIRENT2_H=1 -DNO_UNION_WAIT=1 -DNO_GETTOD=1 -DGETTOD_NOT_DECLARED=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_NET_ERRNO_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1        -DORA_MAJOR_VERSION=8 -DORA_MINOR_VERSION=1 -I"/usr/local/include" -I"../generic" -I/auto/engweb/oracle/product/8.1.6/rdbms/demo -I/auto/engweb/oracle/product/8.1.6/rdbms/public -I/auto/engweb/oracle/product/8.1.6/plsql/public -I/auto/engweb/oracle/product/8.1.6/network/public -I/auto/engweb/oracle/product/8.1.6/oci/include    -O  -fPIC -c `echo ../generic/oratcl.c` -o oratcl.o
    In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/limits.h:11,
                     from /auto/engweb/oracle/product/8.1.6/rdbms/demo/oratypes.h:36,
                     from /auto/engweb/oracle/product/8.1.6/rdbms/demo/oci.h:254,
                     from ../generic/oratclInt.h:15,
                     from ../generic/oratcl.c:18:
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/syslimits.h:29:28: iso/limits_iso.h: No such file or directory
    In file included from /usr/local/include/tcl.h:184,
                     from ../generic/oratclInt.h:16,
                     from ../generic/oratcl.c:18:
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:36:27: iso/stdio_iso.h: No such file or directory
    In file included from /usr/local/include/tcl.h:184,
                     from ../generic/oratclInt.h:16,
                     from ../generic/oratcl.c:18:
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:123: parse error before "fpos64_t"
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:194: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:229: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:230: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:250: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:252: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:276: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:285: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:286: parse error before "FILE"
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:287: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:295: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:296: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:305: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:306: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:306: parse error before "FILE"
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:307: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:308: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:309: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:310: parse error before '*' token
    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h:311: parse error before '*' token
    ../generic/oratcl.c: In function `Oratcl_Parse':
    ../generic/oratcl.c:982: `stderr' undeclared (first use in this function)
    ../generic/oratcl.c:982: (Each undeclared identifier is reported only once
    ../generic/oratcl.c:982: for each function it appears in.)
    make: *** [oratcl.o] Error 1

    xxxxxxxxxxxx-> uname -a
    SunOS xxxxxxx 5.6 Generic_105181-21 sun4u sparc   SUNW,Ultra-2

    What is the problem?

    Thanks in advance.

     
    • Shu Xiao

      Shu Xiao - 2001-08-09

      Some add-on information - the following is the
      configure output:

      ../configure --enable-gcc --with-oracle-directory=/auto/engweb/oracle/product/8.1.6 --enable-shared
      creating cache ./config.cache
      checking for bcopy... no
      checking for gcc... gcc
      checking whether the C compiler (gcc  ) works... yes
      checking whether the C compiler (gcc  ) is a cross-compiler... no
      checking whether we are using GNU C... yes
      checking whether gcc accepts -g... yes
      checking for a BSD compatible install... ../config/install-sh -c
      checking whether make sets ${MAKE}... yes
      checking for ranlib... ranlib
      checking for Cygwin environment... no
      checking for object suffix... o
      checking for mingw32 environment... no
      checking for executable suffix... no
      checking for Tcl public headers... /usr/local/include
      Looking for TclConfig.sh
      checking for Tcl configuration... found /tree/src/tcl8.3.3/unix/tclConfig.sh
      checking for existence of /tree/src/tcl8.3.3/unix/tclConfig.sh... loading
      checking for building with threads... no (default)
      checking how to build libraries... shared
      checking for build with symbols... no
      checking for Oracle 8.1+-style toplevel (libclient8.a)
      looking for lib/libclient8.a in /auto/engweb/oracle/product/8.1.6
      setting ORA to /auto/engweb/oracle/product/8.1.6/lib
      checking for Oracle 8.0-style toplevel (libclient.a)
      looking for lib/libclient.a in /auto/engweb/oracle/product/8.1.6
      looking for lib/libclient.a in .
      looking for lib/libclient.a in .
      looking for lib/libclient.a in .
      looking for lib/libclient.a in /opt/oracle
      looking for lib/libclient.a in /u/oracle
      looking for lib/libclient.a in /usr/oracle
      looking for lib/libclient.a in /usr/local/oracle
      checking for Oracle version
      found oracle version = 8
      will build shared library
      Performing shared build
      checking for tclsh... /usr/local/bin/tclsh8.3
      updating cache ./config.cache
      creating ./config.status
      creating Makefile
      creating pkgIndex.tcl

       
    • Benjamin Lewis

      Benjamin Lewis - 2001-08-10

      This looks to me like it's a problem with your
      compiler installation.  The compiler has the
      wrong headers for your system.

      You are trying to compile on solaris 5.6, but
      your gcc package was built for solaris 5.8.  You
      can tell by the path it is using for its
      include files:

      /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/stdio.h

      I assume you just installed the compiler package
      from sunfreeware.com.  If so, you might have
      better luck with this version:

      ftp://carroll.cac.psu.edu/pub/solaris/freeware/sparc/2.6/gcc-3.0-sol26-sparc-local.gz

      Please note that neither Todd nor I have tried
      building Oratcl with gcc-3.0.  I don't have any
      reason to believe that it won't work, but if
      you continue having problems after installing
      the Solaris 2.6 gcc-3.0, you might try going
      back to 2.95.3.

      -Ben

       
      • Benjamin Lewis

        Benjamin Lewis - 2001-08-10

        Argh.  Sun's screwy version numbers have made
        my previous reply all but incomprehensible.

        To (hopefully) clarify, the gcc-3.0 package you
        have installed was built for Solaris 8 (SunOS 5.8).
        You have Solaris 2.6 (SunOS 5.6), so the compiler
        doesn't have the correct include files.  You'll
        need to get gcc-3.0 for your system at the link
        I included above.

        I hope that's better,

        -Ben

         

Log in to post a comment.