oraperl questions?

From: Ali Bakhshandeh <ali_at_more.net>
Date: 1995/04/14
Message-ID: <3mmoak$qf6_at_news.missouri.edu>


Hi,

We have installed oracle 7.1.4 under Sun Solaris 2.4. I have also compiled perl4-036 and perl5-001 using gcc. I have not installed either of them. As It was my impression that making the source available to oraperl by changing $SRC in oraperl Makefile to point to perl source directory is enough to compile oraperl2.4. Perl5.001 compiled fine and "make test" was 100% successful.
For perl4.036, the test failed in one case and when I asked some more knowlegeable people they said it should be O.K. The error was:



comp/cpp......sh: /usr/local/bin/cppstdin: not found FAILED on test 0

. When I tried to compile oraperl2.4 while $SRC pointing to perl5-001, I had the error that:

For "make oraperl" command I got:

make: *** No rule to make target `/home/dba/ali/perl5/perl5-001/uperl.o'. Stop.

and I looked at the directory there was no such file (uperl.o).

At the same time I realized that there is no subdirectory as "usub" under perl5-001 which is needed when coraperl is compiled.

. When I tried to let $SRC points to perl4-036. For first time the error was:

queen:ali:/home/dba/ali/oraperl/oraperl-v2.4> make oraperl



/home/dba/ali/perl-4.036/usub/mus oracle.mus >oracle.c /bin/sh: /home/dba/ali/perl-4.036/usub/mus: cannot execute make: *** [oracle.c] Error 1

When for the second time I run "make oraperl", I got the following output then it stopped:

queen:ali:/home/dba/ali/oraperl/oraperl-v2.4> make oraperl



gcc -Idbug -I/home/dba/ali/perl-4.036 -DPERL_DEBUGGING -c oracle.c -o o racle.o
gcc -Idbug -I/home/dba/ali/perl-4.036 -DPERL_DEBUGGING -c orafns.c -o o rafns.o
orafns.c: In function `set_sid':
orafns.c:89: warning: comparison between pointer and integer
orafns.c:112: warning: comparison between pointer and integer
orafns.c:112: warning: comparison between pointer and integer
gcc -Idbug -I/home/dba/ali/perl-4.036      -DPERL_DEBUGGING     -c getcursor.c -
o getcursor.o
gcc -Idbug -I/home/dba/ali/perl-4.036      -DPERL_DEBUGGING     -c colons.c -o c
olons.o
gcc -Idbug -I/home/dba/ali/perl-4.036      -DPERL_DEBUGGING     -c debug.c -o de
bug.o
gcc -Idbug -I/home/dba/ali/perl-4.036      -DPERL_DEBUGGING     -c strtoul.c -o
strtoul.o
gcc -Idbug -I/home/dba/ali/perl-4.036      -DPERL_DEBUGGING     -c usersub.c -o
usersub.o
(cd dbug ; make dbug.o)
make[1]: Entering directory `/export/home/dba/ali/oraperl/oraperl-v2.4/dbug' cc -c dbug.c -o dbug.o
"dbug.c", line 187: warning: identifier redeclared: fprintf
        current : function() returning int
        previous: function(pointer to struct {int _cnt, pointer to uchar _ptr, p

        previous: function(pointer to struct {int _cnt, pointer to uchar _ptr, p
ointer to uchar _base, uchar _flag, uchar _file}, pointer to c... : "/usr/includ e/stdio.h", line 161
"dbug.c", line 1764: incomplete struct/union/enum rusage: ru
"dbug.c", line 1766: undefined symbol: RUSAGE_SELF
"dbug.c", line 1766: undefined symbol: RUSAGE_SELF
"dbug.c", line 1767: undefined struct/union member: ru_utime
"dbug.c", line 1767: warning: left operand of "." must be struct/union object
"dbug.c", line 1767: warning: improper member use: ru_utime
"dbug.c", line 1767: warning: left operand of "." must be struct/union object
"dbug.c", line 1767: cannot access member of non-struct/union object
cc: acomp failed for dbug.c
make[1]: *** [dbug.o] Error 2
make[1]: Leaving directory `/export/home/dba/ali/oraperl/oraperl-v2.4/dbug' make: *** [dbug/dbug.o] Error 2

The error was exactly the same when I commented CC = gcc in the Makefile and tried to compile oraperl.

O.K. after this long report I need to have some answer for the following questions and possibly some other advise you might have for me to overcome the difficulties I have with compiling oraperl and coraperl.

My questions are:

1- Does oraperl2.4 works under Solaris 2.4? Have you heard of any successfull

   installation of oraperl under Solaris 2.4?

2- Does oraperl work with perl-5.001? If yes why uperl.o does not exist? At the

   same time The Makefile looks for "usub" directory which does not exist under    perl-5.001 source code directory while it exists under perl-4.036. Then    does perl-5.001 supports "usub" functionality?

3- Is that true that the current setup is for using oraperl2.4 with perl-4.036?

I'll appreciate your time to read my note. I'll be happy to get some feedback regarding the above questions and the errors I'm getting. Any general hint is also appreciated.

Bye, Ali
Tigers major le

--
Ali Bakhshandeh                     ali_at_more.net
Missouri Research and Education Network(MOREnet)
Received on Fri Apr 14 1995 - 00:00:00 CEST

Original text of this message