CC: | "Pierzchala, Tomasz" <Tomasz.Pierzchala [...] sabre.com>, "Augustynski, Adam" <Adam.Augustynski [...] sabre.com> |
Subject: | Cygwin 64 and DBD::Oracle |
Date: | Mon, 16 Sep 2013 13:05:24 +0100 |
To: | "bug-DBD-Oracle [...] rt.cpan.org" <bug-DBD-Oracle [...] rt.cpan.org> |
From: | "Petriczek, Witold" <Witold.Petriczek [...] sabre.com> |
Hey there, I've been trying really hard to get DBD::Oracle 1.66 to install from Cpan on a unix virtual machine:
I installed the latest 64 bit Cygwin, set up cpan, installed a ton of packages, I've got make running and perl is using gcc and g++ as compiler and linker.
I downloaded the latest oracle instant client with all additional packages and set up the appriopriate environmental variables.
When trying to install DBD::Oracle on Cygwin I specifically get test errors like these:
t/22nchar_al32utf8.t .......... Unknown DBD::Oracle constant 'ora_cygwin_set_env' at /home/towdie/.cpan/build/DBD-Oracle-1.66-oGNqYd/blib/lib/DBD/Oracle.pm line 121.
t/22nchar_al32utf8.t .......... Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
t/22nchar_utf8.t .............. Unknown DBD::Oracle constant 'ora_cygwin_set_env' at /home/towdie/.cpan/build/DBD-Oracle-1.66-oGNqYd/blib/lib/DBD/Oracle.pm line 121.
t/22nchar_utf8.t .............. Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
t/23wide_db.t ................. Unknown DBD::Oracle constant 'ora_cygwin_set_env' at /home/towdie/.cpan/build/DBD-Oracle-1.66-oGNqYd/blib/lib/DBD/Oracle.pm line 121.
t/23wide_db.t ................. Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
t/23wide_db_8bit.t ............ Unknown DBD::Oracle constant 'ora_cygwin_set_env' at /home/towdie/.cpan/build/DBD-Oracle-1.66-oGNqYd/blib/lib/DBD/Oracle.pm line 121.
t/23wide_db_8bit.t ............ Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
t/23wide_db_al32utf8.t ........ Unknown DBD::Oracle constant 'ora_cygwin_set_env' at /home/towdie/.cpan/build/DBD-Oracle-1.66-oGNqYd/blib/lib/DBD/Oracle.pm line 121.
t/23wide_db_al32utf8.t ........ Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
t/28array_bind.t .............. Unknown DBD::Oracle constant 'ora_cygwin_set_env' at /home/towdie/.cpan/build/DBD-Oracle-1.66-oGNqYd/blib/lib/DBD/Oracle.pm line 121.
t/28array_bind.t .............. Dubious, test returned 255 (wstat 65280, 0xff00)
t/80ora_charset.t ............. Unknown DBD::Oracle constant 'ora_cygwin_set_env' at /home/towdie/.cpan/build/DBD-Oracle-1.66-oGNqYd/blib/lib/DBD/Oracle.pm line 121.
t/80ora_charset.t ............. Dubious, test returned 255 (wstat 65280, 0xff00)
Which is weird because in Oracle.xs there's code
#ifdef __CYGWIN32__
void
ora_cygwin_set_env(name, value)
char * name
char * value
CODE:
ora_cygwin_set_env(name, value);
#endif /* __CYGWIN32__ */
And in Oracle.pm
sub AUTOLOAD {
(my $constname = $AUTOLOAD) =~ s/.*:://;
my $val = constant($constname); <= this causes the error
*$AUTOLOAD = sub { $val };
goto &$AUTOLOAD;
}
If it's defined then it shouldn't be unknown, I have not digged deeper into the package but that's how far I got while debugging these tests.
Could you help me out? Is there an error on my side (windows xp professional virtual machine with 64 bit Cygwin) or should I change something in Oracle.pm to make those tests work on Cygwin ?
I'll look forward towards your reply, take care
Witold