Operating System - HP-UX
1835882 Members
3987 Online
110086 Solutions
New Discussion

Building oratcl on HP/UX 11.00 - build error (exit 1)

 
James Martens
Occasional Contributor

Building oratcl on HP/UX 11.00 - build error (exit 1)

I am having a problem building Oratcl 3.2 with Tcl 8.2 on an HP/UX 11.00
system.

Built Tcl 8.2 shared, and installed it in /opt.

When building Oratcl, however, I get this error (showing config steps, too):


../configure --prefix=/opt/tcl-8.2 --exec-prefix=/opt/tcl-8.2 --enable-stubs
--with-oracle-directory=/oracle/app/oracle/product/8.1.7 --without-tclx

This goes ok.

However, on the Make, I get this:

cc -DVERSION=\"3.2\" -DUSE_TCL_STUBS=1
-DLIBRARY1=\"oralob.tcl\"
-DLIBRARY2=\"oralong.tcl\" -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1
-DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1
-DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1
-DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1
-DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1
-DRETSIGTYPE=void -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1
-DORA_MAJOR_VERSION=8 -DORA_MINOR_VERSION=1 -I"/opt/tcl-8.2/include"
-I"../generic" -I/oracle/app/oracle/product/8.1.7/rdbms/demo
-I/oracle/app/oracle/product/8.1.7/rdbms/public
-I/oracle/app/oracle/product/8.1.7/plsql/public
-I/oracle/app/oracle/product/8.1.7/network/public
-I/oracle/app/oracle/product/8.1.7/oci/include -O +Onolimit -Ae +z -c
`echo ../generic/oratcl.c` -o oratcl.o
rm -f liboratcl.sl
ld -b -o liboratcl.sl oratcl. +s +b
/opt/tcl-8.2/lib:/oracle/app/oracle/product/8.1.7/lib:. -L/opt/tcl-8.2/lib
-ltclstub -L/oracle/app/oracle/product/8.1.7/lib -lclntsh
ld: Can't open oratcl.
ld: No such file or directory
*** Error exit code 1

Help!

(Hopefully this all looks okay..the posting window is just a little small...heh!)
3 REPLIES 3
FRED Dennison
Advisor

Re: Building oratcl on HP/UX 11.00 - build error (exit 1)

Quick Look: Check the MakeFile for "oratcl.", as I think it is missing a suffix (probably .o).

Do you have an older MakeFile from a previous version that worked? This may point you in the direction of the entry in MakeFile that is missing.
Peace thru superior firepower.
Alexander M. Ermes
Honored Contributor

Re: Building oratcl on HP/UX 11.00 - build error (exit 1)

Hi there.
This is usually an error in the Oracle environment. Some path has not been setup correctly. Check your Install and Upgrade Guide. If you do not have it, try to find it in Oracle Metalink.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
James Martens
Occasional Contributor

Re: Building oratcl on HP/UX 11.00 - build error (exit 1)

Okay, one error was that a variable was not getting assigned correctly - it would attempt to build a shared library using an object file called 'oratcl.' - it should have been oratcl.o. This had to be done manually.

Here's what I did to get it working.

Needed to build TCL with the following configure:

./configure --disable-threads --enable-shared

Then edit the Makefile for the libraries so it also looks at -lcl and -lpthread as well as -ldld.

make, make test, make install - all successful.

OraTcl 3.2

Configure with the following:

../configure --prefix=/opt/tcl-8.2 --exec-prefix=/opt/tcl-8.2 --enable-stubs --with-oracle-directory=/oracle/app/oracle/product/8.1.7 --enable-shared --disable-threads

(Note: Other configurations may not have the same oracle-directory/prefix settings. As well, Oratcl 3.2 is for Oracle8, not 7. If you need one for 7, then get an older version).

Again, edit the Makefile once the configure is completed so that the libraries used also include -lcl and -lpthread.

make, make test, make install - successful