RE: Compiling oratcl needs library libtclstub8.4.12.a





Oh my gosh.. I think it works...

- configure command
./configure --prefix=/quovadx/qdx5.5/integrator/tcl
--exec-prefix=/quovadx/qdx5.5/integrator/tcl
--with-tcl=/quovadx/qdx5.5/integrator/tcl/lib
--with-tclinclude=/quovadx/qdx5.5/integrator/tcl/include
--with-oracle-directory=/usr/lib/oracle/10.2.0.3/client

- editing the Makefile:
SHLIB_LD_LIBS = ${LIBS} -L/quovadx/qdx5.5/integrator/tcl/lib -ltclstub8.4

- environment settings I added to the user:
export ORACLE_HOME=/usr/lib/oracle/10.2.0.3/client/
export
ORACLE_LIBRARY=/usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so.10.1
export
LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.3/client/lib:$LD_LIBRARY_PATH

- as root:
# ln -s /usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so.10.1
/usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so

- as the user that runs the scripts:
$ hcitcl
hcitcl>package ifneede Oratcl 4.4
load /quovadx/qdx5.5/integrator/tcl/lib/Oratcl4.4/libOratcl4.4.so
hcitcl>package require Oratcl
4.4
hcitcl>package present Oratcl
4.4

The script I want to run still doesn't work, but I think that is another
issue that I have to sort out with the scriptdevelopper.



On Tue, 11 Sep 2007 19:13:27 +0200, redhat <redhat@xxxxxx> wrote:
I first added a question in the oratcl sourceforge group, I was told to
go
to the mailgroups of RH to ask about the whereabouts of
libtclstub8.4.12.a
in the RHEL4.5 version. (I'm not a person who compiles often)

This is what I found in the makefile (I didn't add it, it was allready
there):
SHLIB_LD_LIBS = ${LIBS}
-L/quovadx/qdx5.5/integrator/tcl/integrator/tcl/lib -ltclstub8.4.12

Is this what you mean?

On Tue, 11 Sep 2007 12:43:17 -0400, "Virden, Larry W." <lvirden@xxxxxxx>
wrote:
Sounds like the configure isn't generating the Makefile correctly. Edit
the makefile and add a -L/path/to/the/library to the step that is
creating the oratcl library and see if that fixes things.

Also, submit a bug report at oratcl.sf.net .

Oh, have you tried the very latest version of oratcl to see if that
displays the same problem?


--
<URL: http://wiki.tcl.tk/ >
Even if explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.
<URL: mailto:lvirden@xxxxxxxxx > <URL: http://www.purl.org/NET/lvirden/



-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of redhat
Sent: Tuesday, September 11, 2007 12:00 PM
To: General Red Hat Linux discussion list
Subject: RE: Compiling oratcl needs library libtclstub8.4.12.a


Thanks for the reply!

I tried the following command using the suggestions. After a 'make'
command I still got the same result:

$ ./configure --prefix=/quovadx/qdx5.5/integrator/tcl
--exec-prefix=/quovadx/qdx5.5/integrator/tcl
--with-tcl=/quovadx/qdx5.5/integrator/tcl/lib
--with-tclinclude=/quovadx/qdx5.5/integrator/tcl/include/
...
checking for dlfcn.h... (cached) yes
configure: creating ./config.status
config.status: creating Makefile

$ make
...
/usr/bin/ld: cannot find -ltclstub8.4.12
collect2: ld returned 1 exit status
make: *** [libOratcl4.4.so] Error 1





On Tue, 11 Sep 2007 08:35:19 -0400, "Virden, Larry W."
<lvirden@xxxxxxx>
wrote:
You say "The application uses it's own tcl version installed in the
application directory" - if that is the case, then the problem is that

you are going to need to use the --with-tcl= configure argument. Look
in the directory where the application installs its tcl and find the
directory containing the file tclConfig.sh. That's the value you type
after the = sign.

Note that you may also need to use the --with-tclinclude= argument,
giving the directory where the application has installed the tcl.h
header as well.


--
<URL: http://wiki.tcl.tk/ >
Even if explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.
<URL: mailto:lvirden@xxxxxxxxx > <URL:
http://www.purl.org/NET/lvirden/



-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Roderick
Sent: Monday, September 10, 2007 5:05 PM
To: General Red Hat Linux discussion list
Subject: Compiling oratcl needs library libtclstub8.4.12.a

Hello,
I'm trying to compile and install the open source oratcl 4.4 extension

(for tcl) on my RHEL 4.5 server. I really need this package installed
to connect the application to Oracle. The application uses it's own
tcl version installed in the application directory. I got problems to
compile the library. I get this message:

$ ./configure --enable-gcc --prefix=/quovadx/qdx5.5/integrator/tcl
--exec-prefix=/quovadx/qdx5.5/integrator/tcl
...seems to be working allright....

$ make
gcc -pipe -DPACKAGE_NAME=\"Oratcl\"
....
-L/quovadx/qdx5.5/integrator/tcl/integrator/tcl/lib -ltclstub8.4.12
/usr/bin/ld: cannot find -ltclstub8.4.12
collect2: ld returned 1 exit status
make: *** [libOratcl4.4.so] Error 1

I got a libtclstub8.4.a somewhere in the applications tcl directory.
Is someone able to help me?? (I'n not an expert on Linux, but I know a

little).

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • RE: Compiling oratcl needs library libtclstub8.4.12.a
    ... This is what I found in the makefile ... creating the oratcl library and see if that fixes things. ... Compiling oratcl needs library libtclstub8.4.12.a ... in the directory where the application installs its tcl and find the ...
    (RedHat)
  • [Announce]:: Oratcl 4.3 has been released
    ... Oratcl 4.3 introduces a new approach to compiling and execution. ... It is no longer necessary to have Oracle libraries installed on ... Oratcl 4.3 will dynamically load the relevant Oracle libraries at run ... It be possible to use a single installed version of Oratcl 4.3 with any number of 8i, 9i or 10g Oracle installs on the same machine, To switch the Oracle install used, alter the ORACLE_HOME env variable. ...
    (comp.lang.tcl)
  • Re: Possible book on Oratcl if there is enough interest ... what would we like to see in it?
    ... nice treatment of using oratcl as a nonblocking db interface with Tcl's ... In oratcl you can do this as well (but due to tcl using for a few ... of Tcl scripts to be called from the command line. ... Some material on how Oracle database system works (the ...
    (comp.lang.tcl)
  • RE: Compiling oratcl needs library libtclstub8.4.12.a
    ... creating the oratcl library and see if that fixes things. ... Compiling oratcl needs library libtclstub8.4.12.a ... in the directory where the application installs its tcl and find the ... tcl version installed in the application directory. ...
    (RedHat)
  • Re: Oratcl 4.3 fails to initialize on Solaris with Oracle 9
    ... So then I watched the system call trace and found that Oratcl wasn't ... And after staring at the ... Makefile, I realized that there's nothing referring to ORACLE_HOME/lib. ...
    (comp.lang.tcl)