Mail Archives: cygwin/2001/10/23/06:54:20
Hallo Gerrit,
2001-10-23 12:42:15, du schreibst:
> turner AT uvs DOT is schrieb am 2001-10-16, 23:02:
>>1) DBD::Oracle (my bread and butter) fails to build.
> Sorry, havn't tested this yet (have no Oracle here).
I have tested now to build DBD::Oracle.
It seems to build OK. What is your problem, some more details would be
nice, otherwise I will not be able to help you.
The test failures below are probably caused by the fact that my Oracle
DB isn't running, but I'm not sure if it is possible to build
DBD::Oracle on Cygwin with the native Oracle Windows dll's at all.
Gerrit
--
cpan> install DBD::Oracle
CPAN: Storable loaded ok
Going to read /home/Gerrit/.cpan/Metadata
Database was generated on Tue, 23 Oct 2001 08:33:10 GMT
Running install for module DBD::Oracle
Running make for T/TI/TIMB/DBD-Oracle-1.12.tar.gz
CPAN: MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /home/Gerrit/.cpan/sources/authors/id/T/TI/TIMB/DBD-Oracle-1.12.tar.gz ok
Scanning cache /home/Gerrit/.cpan/build for sizes
DBD-Oracle-1.12/
DBD-Oracle-1.12/Todo
DBD-Oracle-1.12/MANIFEST
DBD-Oracle-1.12/oci8.c
DBD-Oracle-1.12/Oracle.h
DBD-Oracle-1.12/ora_explain.PL
DBD-Oracle-1.12/t/
DBD-Oracle-1.12/t/reauth.t
DBD-Oracle-1.12/t/plsql.t
DBD-Oracle-1.12/t/general.t
DBD-Oracle-1.12/t/ph_type.t
DBD-Oracle-1.12/t/long.t
DBD-Oracle-1.12/t/base.t
DBD-Oracle-1.12/README.wingcc
DBD-Oracle-1.12/Oracle.xs
DBD-Oracle-1.12/hints/
DBD-Oracle-1.12/hints/svr4.pl
DBD-Oracle-1.12/Changes
DBD-Oracle-1.12/dbdimp.c
DBD-Oracle-1.12/README.explain
DBD-Oracle-1.12/README.win32
DBD-Oracle-1.12/dbdimp.h
DBD-Oracle-1.12/Oracle.ex/
DBD-Oracle-1.12/Oracle.ex/japh
DBD-Oracle-1.12/Oracle.ex/curref.pl
DBD-Oracle-1.12/Oracle.ex/ex.pl
DBD-Oracle-1.12/Oracle.ex/proc.pl
DBD-Oracle-1.12/Oracle.ex/oradump.pl
DBD-Oracle-1.12/Oracle.ex/bind.pl
DBD-Oracle-1.12/Oracle.ex/commit.pl
DBD-Oracle-1.12/Oracle.ex/mktable.pl
DBD-Oracle-1.12/Oracle.ex/sql
DBD-Oracle-1.12/Oracle.ex/tabinfo.pl
DBD-Oracle-1.12/Oracle.ex/Readme
DBD-Oracle-1.12/README.longs
DBD-Oracle-1.12/README
DBD-Oracle-1.12/oci7.c
DBD-Oracle-1.12/README.sec
DBD-Oracle-1.12/test.pl
DBD-Oracle-1.12/README.login
DBD-Oracle-1.12/oraperl.ph
DBD-Oracle-1.12/Makefile.PL
DBD-Oracle-1.12/Oraperl.pm
DBD-Oracle-1.12/README.hpux
DBD-Oracle-1.12/oci.def
DBD-Oracle-1.12/Oracle.pm
DBD-Oracle-1.12/README.help
DBD-Oracle-1.12/README.java
DBD-Oracle-1.12/ocitrace.h
DBD-Oracle-1.12/README.clients
Removing previously used /home/Gerrit/.cpan/build/DBD-Oracle-1.12
CPAN.pm: Going to build T/TI/TIMB/DBD-Oracle-1.12.tar.gz
Using DBI 1.20 installed in /usr/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/DBI
Configuring DBD::Oracle ...
>>> Remember to actually *READ* the README file!
Especially if you have any problems.
Using Oracle in /cygdrive/i/Oracle/Ora81
Found header files in rdbms/demo.
Found oci directory
Using OCI directory 'oci'
Using liboci.a (did you build it?)
System: perl5.006001 cygwin_nt-4.0 loreley 1.3.2(0.3932) 2001-05-20 23:28 i686 unknown
Compiler: gcc -O2 -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
Linker: /bin/ld
Sysliblist:
Warning: If you have problems you may need to rebuild perl with -Uusemymalloc.
Checking if your kit is complete...
Looks good
Ignoring LD_RUN_PATH='/usr/lib:/usr/local/lib:/usr/X11R6/lib' in environment
LD_RUN_PATH=/usr/lib
Using DBD::Oracle 1.12.
Using DBI 1.20 installed in /usr/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/DBI
Writing Makefile for DBD::Oracle
*** If you have problems...
read all the log printed above, and the README and README.help files.
(Of course, you have read README by now anyway, haven't you?)
cp oraperl.ph blib/lib/oraperl.ph
cp Oracle.pm blib/lib/DBD/Oracle.pm
cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm
cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h
cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h
cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h
cp Oraperl.pm blib/lib/Oraperl.pm
/bin/perl -p -e "s/~DRIVER~/Oracle/g" < /usr/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/DBI/Driver.xst > Oracle.xsi
/bin/perl -I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1 /usr/lib/perl5/5.6.1/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.6.1/ExtUtils/typemap Oracle.xs > Oracle.xsc && mv Oracle.xsc Oracle.c
gcc -c -I/cygdrive/i/Oracle/Ora81/oci/include -I/cygdrive/i/Oracle/Ora81/rdbms/demo -I/usr/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/DBI -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include -DUSEIMPORTLIB -O2 -DVERSION=\"1.12\" -DXS_VERSION=\"1.12\" -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE Oracle.c
gcc -c -I/cygdrive/i/Oracle/Ora81/oci/include -I/cygdrive/i/Oracle/Ora81/rdbms/demo -I/usr/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/DBI -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include -DUSEIMPORTLIB -O2 -DVERSION=\"1.12\" -DXS_VERSION=\"1.12\" -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE dbdimp.c
gcc -c -I/cygdrive/i/Oracle/Ora81/oci/include -I/cygdrive/i/Oracle/Ora81/rdbms/demo -I/usr/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/DBI -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include -DUSEIMPORTLIB -O2 -DVERSION=\"1.12\" -DXS_VERSION=\"1.12\" -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE oci7.c
gcc -c -I/cygdrive/i/Oracle/Ora81/oci/include -I/cygdrive/i/Oracle/Ora81/rdbms/demo -I/usr/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/DBI -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include -DUSEIMPORTLIB -O2 -DVERSION=\"1.12\" -DXS_VERSION=\"1.12\" -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE oci8.c
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.dll
LD_RUN_PATH="/usr/lib" ld2 -s -L/usr/local/lib Oracle.o dbdimp.o oci7.o oci8.o -o blib/arch/auto/DBD/Oracle/Oracle.dll /usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a -loci
dllwrap --dllname Oracle.dll --driver-name gcc --dlltool dlltool --export-all-symbols --as as --output-def libOracle.def --output-lib libOracle.a \
-s -L/usr/local/lib Oracle.o dbdimp.o oci7.o oci8.o /usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a -loci
dllwrap: no export definition file provided
dllwrap: creating one, but that may not be what you want
mv Oracle.dll libOracle.a blib/arch/auto/DBD/Oracle/
chmod 755 blib/arch/auto/DBD/Oracle/Oracle.dll
cp Oracle.bs blib/arch/auto/DBD/Oracle/Oracle.bs
chmod 644 blib/arch/auto/DBD/Oracle/Oracle.bs
/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1 ora_explain.PL ora_explain
Extracted ora_explain from ora_explain.PL with variable substitutions.
cp ora_explain blib/script/ora_explain
/bin/perl -I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1 -MExtUtils::MakeMaker -e "MY->fixin(shift)" blib/script/ora_explain
Manifying blib/man3/DBD.Oracle.3
Manifying blib/man1/ora_explain.1
Manifying blib/man3/DBD.Oraperl.3
/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
t/general...........DBI->connect() failed: Error while trying to retrieve text for error ORA-12538 (DBD ERROR: OCIServerAttach) at t/general.t line 20
Unable to connect to Oracle (Error while trying to retrieve text for error ORA-12538 (DBD ERROR: OCIServerAttach))
Tests skiped.
skipped test on this platform
t/long..............Unable to connect to Oracle (Error while trying to retrieve text for error ORA-12538 (DBD ERROR: OCIServerAttach))
Tests skiped.
skipped test on this platform
t/ph_type...........DBI->connect() failed: Error while trying to retrieve text for error ORA-12538 (DBD ERROR: OCIServerAttach) at t/ph_type.t line 24
Unable to connect to Oracle (Error while trying to retrieve text for error ORA-12538 (DBD ERROR: OCIServerAttach))
Tests skipped.
skipped test on this platform
t/plsql.............Unable to connect to Oracle (Error while trying to retrieve text for error ORA-12538 (DBD ERROR: OCIServerAttach))
Tests skiped.
skipped test on this platform
t/reauth............skipped test on this platform
All tests successful, 5 tests skipped.
Files=6, Tests=5, 6 wallclock secs ( 2.10 cusr + 1.72 csys = 3.82 CPU)
PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1 test.pl
Oraperl test application $Revision: 1.4 $
Oraperl emulation interface version 1.41
DBD::Oracle 1.12 using OCI8 by Tim Bunce
DBI 1.20 by Tim Bunce
Data sources:
dbi:Oracle:EXTPROC_CONNECTION_DATA.CONVEY_KOELN
dbi:Oracle:MESSE.CONVEY_KOELN
Connecting
to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
as 'scott/tiger' (via ORACLE_USERID env var or default - recommend name/passwd AT dbname)
(ORACLE_SID='', TWO_TASK='')
ora_login: 12538: Error while trying to retrieve text for error ORA-12538 (DBD ERROR: OCIServerAttach)
Generally set TWO_TASK or ORACLE_SID but not both at the same time.
Try to connect to the database using an oracle tool like sqlplus
only if that works should you suspect problems with DBD::Oracle.
Try leaving dbname value empty and set dbuser to name/passwd AT dbname.
Test aborted.
make: *** [test_dynamic] Error 255
/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
--
convey Information Systems GmbH http://www.convey.de/
Vitalisstraße 326-328
Gerrit P. Haase D-50933 Köln
gerrit DOT haase AT convey DOT de Fon: ++49 221 6903922
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -