Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DBD-Oracle CPAN distribution.

Report information
The Basics
Id: 88709
Status: resolved
Priority: 0/
Queue: DBD-Oracle

People
Owner: Nobody in particular
Requestors: Witold.Petriczek [...] sabre.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Download (untitled) / with headers
text/html 11.1k
Subject: Re: [rt.cpan.org #88709] Cygwin 64 and DBD::Oracle
Date: Wed, 18 Sep 2013 09:55:49 -0400
To: bug-DBD-Oracle [...] rt.cpan.org
From: Yanick Champoux <champoux [...] pythian.com>
Download (untitled) / with headers
text/plain 598b
On 13-09-16 08:05 AM, Petriczek, Witold via RT wrote: Show quoted text
> Subject: >>> Cygwin 64 <<< and DBD::Oracle
Show quoted text
> Which is weird because in Oracle.xs there's code > #ifdef >>> __CYGWIN32__ <<<
Looks like Cygwin 64 doesn't define __CYGWIN32__ (which kinda makes sense). I'll try to see how to fix this, but the hard part of it will be to get on a Cygwin environment. In all cases, in the meantime, what you can do is to remove the #ifdef __CYGWIN32__ and #endif lines, which will force the compilation of the function, which in turn should fix the immediate problem. Cheers, `/anick -- --
CC: "Pierzchala, Tomasz" <Tomasz.Pierzchala [...] sabre.com>, "Augustynski, Adam" <Adam.Augustynski [...] sabre.com>, "Szewczyk, Marcin" <Marcin.Szewczyk [...] sabre.com>
Subject: RE: [rt.cpan.org #88709] Cygwin 64 and DBD::Oracle
Date: Wed, 18 Sep 2013 14:57:54 +0100
To: "bug-DBD-Oracle [...] rt.cpan.org" <bug-DBD-Oracle [...] rt.cpan.org>
From: "Petriczek, Witold" <Witold.Petriczek [...] sabre.com>
Download (untitled) / with headers
text/plain 969b
Thank you very much for confirming this issue. BR, Witold Show quoted text
-----Original Message----- From: Pythian Remote DBA via RT [mailto:bug-DBD-Oracle@rt.cpan.org] Sent: Wednesday, September 18, 2013 3:56 PM To: Petriczek, Witold Subject: Re: [rt.cpan.org #88709] Cygwin 64 and DBD::Oracle <URL: https://rt.cpan.org/Ticket/Display.html?id=88709 > On 13-09-16 08:05 AM, Petriczek, Witold via RT wrote:
> Subject: >>> Cygwin 64 <<< and DBD::Oracle
> Which is weird because in Oracle.xs there's code #ifdef >>> > __CYGWIN32__ <<<
Looks like Cygwin 64 doesn't define __CYGWIN32__ (which kinda makes sense). I'll try to see how to fix this, but the hard part of it will be to get on a Cygwin environment. In all cases, in the meantime, what you can do is to remove the #ifdef __CYGWIN32__ and #endif lines, which will force the compilation of the function, which in turn should fix the immediate problem. Cheers, `/anick -- --
Download (untitled) / with headers
text/plain 853b
On Wed Sep 18 09:56:08 2013, PYTHIAN wrote: Show quoted text
> On 13-09-16 08:05 AM, Petriczek, Witold via RT wrote:
> > Subject: >>> Cygwin 64 <<< and DBD::Oracle
> >
> > Which is weird because in Oracle.xs there's code > > #ifdef >>> __CYGWIN32__ <<<
> > > Looks like Cygwin 64 doesn't define __CYGWIN32__ (which kinda makes > sense). I'll try to see how to fix this, but the hard part of it will be > to get on a Cygwin environment. In all cases, in the meantime, what you > can do is to remove the #ifdef __CYGWIN32__ and #endif lines, which will > force the compilation of the function, which in turn should fix the > immediate problem. > > Cheers, > `/anick >
May be there is a __CYGWIN64__ in which case the fix is easy. Perhaps the original poster can confirm whether changing it to __CYGWIN64__ works. Martin -- Martin J. Evans Wetherby, UK
Witold, Can you change the __CYGWIN32__ for a __CYGWIN64__ in the code and see if this also works? Joy, `/anick On Thu Feb 20 09:10:07 2014, MJEVANS wrote: Show quoted text
> On Wed Sep 18 09:56:08 2013, PYTHIAN wrote:
> > On 13-09-16 08:05 AM, Petriczek, Witold via RT wrote:
> > > Subject: >>> Cygwin 64 <<< and DBD::Oracle
> > > >
> > > Which is weird because in Oracle.xs there's code > > > #ifdef >>> __CYGWIN32__ <<<
> > > > > > Looks like Cygwin 64 doesn't define __CYGWIN32__ (which kinda makes > > sense). I'll try to see how to fix this, but the hard part of it will > > be > > to get on a Cygwin environment. In all cases, in the meantime, what > > you > > can do is to remove the #ifdef __CYGWIN32__ and #endif lines, which > > will > > force the compilation of the function, which in turn should fix the > > immediate problem. > > > > Cheers, > > `/anick > >
> > May be there is a __CYGWIN64__ in which case the fix is easy. > > Perhaps the original poster can confirm whether changing it to > __CYGWIN64__ works. > > Martin
Subject: RE: [rt.cpan.org #88709] Cygwin 64 and DBD::Oracle
Date: Mon, 10 Mar 2014 07:10:38 +0000
To: "bug-DBD-Oracle [...] rt.cpan.org" <bug-DBD-Oracle [...] rt.cpan.org>, "Pierzchala, Tomasz" <Tomasz.Pierzchala [...] sabre.com>, "Augustynski, Adam" <Adam.Augustynski [...] sabre.com>
From: "Petriczek, Witold" <Witold.Petriczek [...] sabre.com>
Download (untitled) / with headers
text/plain 1.4k
Thank you very much. I'll forward this to people who might be interested in a solution too :) Witold Show quoted text
-----Original Message----- From: Pythian Remote DBA via RT [mailto:bug-DBD-Oracle@rt.cpan.org] Sent: Friday, March 07, 2014 9:30 PM To: Petriczek, Witold Subject: [rt.cpan.org #88709] Cygwin 64 and DBD::Oracle <URL: https://rt.cpan.org/Ticket/Display.html?id=88709 > Witold, Can you change the __CYGWIN32__ for a __CYGWIN64__ in the code and see if this also works? Joy, `/anick On Thu Feb 20 09:10:07 2014, MJEVANS wrote:
> On Wed Sep 18 09:56:08 2013, PYTHIAN wrote:
> > On 13-09-16 08:05 AM, Petriczek, Witold via RT wrote:
> > > Subject: >>> Cygwin 64 <<< and DBD::Oracle
> > > >
> > > Which is weird because in Oracle.xs there's code #ifdef >>> > > > __CYGWIN32__ <<<
> > > > > > Looks like Cygwin 64 doesn't define __CYGWIN32__ (which kinda makes > > sense). I'll try to see how to fix this, but the hard part of it > > will be to get on a Cygwin environment. In all cases, in the > > meantime, what you can do is to remove the #ifdef __CYGWIN32__ and > > #endif lines, which will force the compilation of the function, > > which in turn should fix the immediate problem. > > > > Cheers, > > `/anick > >
> > May be there is a __CYGWIN64__ in which case the fix is easy. > > Perhaps the original poster can confirm whether changing it to > __CYGWIN64__ works. > > Martin
Subject: [rt.cpan.org #88709] Cygwin 64 and DBD::Oracle
Date: Thu, 15 May 2014 19:15:45 +0200
To: bug-DBD-Oracle [...] rt.cpan.org
From: Alexander Stadler <sa.maillists [...] univie.ac.at>
Download (untitled) / with headers
text/plain 1.5k
Dear Yanick! Commit 5badfc7a40508e77a27286e463cf21be9cb90b44 (0ef5493edfda38ffe9989c5dac3ec70e7dba51f) is not enough. You have missed: diff old/dbdimp.c new/dbdimp.c 16c16 < #ifdef __CYGWIN32__ --- Show quoted text
> #if defined(__CYGWIN32__) || defined(__CYGWIN64__)
167c167 < #ifdef __CYGWIN32__ --- Show quoted text
> #if defined(__CYGWIN32__) || defined(__CYGWIN64__)
diff old/dbdimp.h new/dbdimp.h 372c372 < #ifdef __CYGWIN32__ --- Show quoted text
> #if defined(__CYGWIN32__) || defined(__CYGWIN64__)
diff old/Oracle.h new/Oracle.h 29c29 < #if defined(__MINGW32__) || defined(__CYGWIN32__) --- Show quoted text
> #if defined(__MINGW32__) || defined(__CYGWIN32__) || defined(__CYGWIN64__)
but as __CYGWIN64__ is not defined you still have to use perl Makefile.PL CCFLAGS=-D__CYGWIN64__ which is not better as to use perl Makefile.PL CCFLAGS=-D__CYGWIN32__ So I would suggest: diff old/dbdimp.c correct/dbdimp.c 16c16 < #ifdef __CYGWIN32__ --- Show quoted text
> #ifdef __CYGWIN__
19c19 < #endif /* __CYGWIN32__ */ --- Show quoted text
> #endif /* __CYGWIN__ */
167c167 < #ifdef __CYGWIN32__ --- Show quoted text
> #ifdef __CYGWIN__
193c193 < #endif /* __CYGWIN32__ */ --- Show quoted text
> #endif /* __CYGWIN__ */
diff old/dbdimp.h correct/dbdimp.h 372c372 < #ifdef __CYGWIN32__ --- Show quoted text
> #ifdef __CYGWIN__
375c375 < #endif /* __CYGWIN32__ */ --- Show quoted text
> #endif /* __CYGWIN__ */
diff old/Oracle.h correct/Oracle.h 29c29 < #if defined(__MINGW32__) || defined(__CYGWIN32__) --- Show quoted text
> #if defined(__MINGW32__) || defined(__CYGWIN__)
diff old/Oracle.xs correct/Oracle.xs 107c107 < #if defined(__CYGWIN32__) || defined(__CYGWIN64__) --- Show quoted text
> #ifdef __CYGWIN__
115c115 < #endif /* __CYGWIN32__ */ --- Show quoted text
> #endif /* __CYGWIN__ */
Patch File attached. Regards Alexander
Download DBD-Oracle.patch
text/x-diff 2.1k

Message body is not shown because sender requested not to inline it.

Download (untitled) / with headers
text/plain 2.1k
Hi, I have applied the patch on the branch at https://github.com/pythian/DBD-Oracle/tree/cygwin-64 Can you compile and try out that branch, and let me know if the tests pass for you? Since I don't have a cygwin machine, I'll need someone to try the code on cygwin before I can merge the code back into master. Cheers, `/anick On Thu May 15 13:15:28 2014, sa.maillists@univie.ac.at wrote: Show quoted text
> Dear Yanick! > > Commit 5badfc7a40508e77a27286e463cf21be9cb90b44 > (0ef5493edfda38ffe9989c5dac3ec70e7dba51f) is not enough. > > You have missed: > > diff old/dbdimp.c new/dbdimp.c > 16c16 > < #ifdef __CYGWIN32__ > ---
> > #if defined(__CYGWIN32__) || defined(__CYGWIN64__)
> 167c167 > < #ifdef __CYGWIN32__ > ---
> > #if defined(__CYGWIN32__) || defined(__CYGWIN64__)
> diff old/dbdimp.h new/dbdimp.h > 372c372 > < #ifdef __CYGWIN32__ > ---
> > #if defined(__CYGWIN32__) || defined(__CYGWIN64__)
> diff old/Oracle.h new/Oracle.h > 29c29 > < #if defined(__MINGW32__) || defined(__CYGWIN32__) > ---
> > #if defined(__MINGW32__) || defined(__CYGWIN32__) || > > defined(__CYGWIN64__)
> > but as __CYGWIN64__ is not defined > you still have to use > perl Makefile.PL CCFLAGS=-D__CYGWIN64__ > which is not better as to use > perl Makefile.PL CCFLAGS=-D__CYGWIN32__ > > So I would suggest: > diff old/dbdimp.c correct/dbdimp.c > 16c16 > < #ifdef __CYGWIN32__ > ---
> > #ifdef __CYGWIN__
> 19c19 > < #endif /* __CYGWIN32__ */ > ---
> > #endif /* __CYGWIN__ */
> 167c167 > < #ifdef __CYGWIN32__ > ---
> > #ifdef __CYGWIN__
> 193c193 > < #endif /* __CYGWIN32__ */ > ---
> > #endif /* __CYGWIN__ */
> diff old/dbdimp.h correct/dbdimp.h > 372c372 > < #ifdef __CYGWIN32__ > ---
> > #ifdef __CYGWIN__
> 375c375 > < #endif /* __CYGWIN32__ */ > ---
> > #endif /* __CYGWIN__ */
> diff old/Oracle.h correct/Oracle.h > 29c29 > < #if defined(__MINGW32__) || defined(__CYGWIN32__) > ---
> > #if defined(__MINGW32__) || defined(__CYGWIN__)
> diff old/Oracle.xs correct/Oracle.xs > 107c107 > < #if defined(__CYGWIN32__) || defined(__CYGWIN64__) > ---
> > #ifdef __CYGWIN__
> 115c115 > < #endif /* __CYGWIN32__ */ > ---
> > #endif /* __CYGWIN__ */
> > Patch File attached. > > Regards > > Alexander
Subject: RE: [rt.cpan.org #88709] Cygwin 64 and DBD::Oracle
Date: Tue, 27 May 2014 07:09:20 +0100
To: "bug-DBD-Oracle [...] rt.cpan.org" <bug-DBD-Oracle [...] rt.cpan.org>
From: "Petriczek, Witold" <Witold.Petriczek [...] sabre.com>
Download (untitled) / with headers
text/plain 2.6k
I can try, though I have different tasks on my head today, I'll let you know if it works fine :-] I actually haven't done any code in Perl since October 2013 ;) Thanks a lot for the support! Show quoted text
-----Original Message----- From: Pythian Remote DBA via RT [mailto:bug-DBD-Oracle@rt.cpan.org] Sent: Monday, May 26, 2014 8:25 PM To: Petriczek, Witold Subject: [rt.cpan.org #88709] Cygwin 64 and DBD::Oracle <URL: https://rt.cpan.org/Ticket/Display.html?id=88709 > Hi, I have applied the patch on the branch at https://github.com/pythian/DBD-Oracle/tree/cygwin-64 Can you compile and try out that branch, and let me know if the tests pass for you? Since I don't have a cygwin machine, I'll need someone to try the code on cygwin before I can merge the code back into master. Cheers, `/anick On Thu May 15 13:15:28 2014, sa.maillists@univie.ac.at wrote:
> Dear Yanick! > > Commit 5badfc7a40508e77a27286e463cf21be9cb90b44 > (0ef5493edfda38ffe9989c5dac3ec70e7dba51f) is not enough. > > You have missed: > > diff old/dbdimp.c new/dbdimp.c > 16c16 > < #ifdef __CYGWIN32__ > ---
> > #if defined(__CYGWIN32__) || defined(__CYGWIN64__)
> 167c167 > < #ifdef __CYGWIN32__ > ---
> > #if defined(__CYGWIN32__) || defined(__CYGWIN64__)
> diff old/dbdimp.h new/dbdimp.h > 372c372 > < #ifdef __CYGWIN32__ > ---
> > #if defined(__CYGWIN32__) || defined(__CYGWIN64__)
> diff old/Oracle.h new/Oracle.h > 29c29 > < #if defined(__MINGW32__) || defined(__CYGWIN32__) > ---
> > #if defined(__MINGW32__) || defined(__CYGWIN32__) || > > defined(__CYGWIN64__)
> > but as __CYGWIN64__ is not defined > you still have to use > perl Makefile.PL CCFLAGS=-D__CYGWIN64__ which is not better as to use > perl Makefile.PL CCFLAGS=-D__CYGWIN32__ > > So I would suggest: > diff old/dbdimp.c correct/dbdimp.c > 16c16 > < #ifdef __CYGWIN32__ > ---
> > #ifdef __CYGWIN__
> 19c19 > < #endif /* __CYGWIN32__ */ > ---
> > #endif /* __CYGWIN__ */
> 167c167 > < #ifdef __CYGWIN32__ > ---
> > #ifdef __CYGWIN__
> 193c193 > < #endif /* __CYGWIN32__ */ > ---
> > #endif /* __CYGWIN__ */
> diff old/dbdimp.h correct/dbdimp.h > 372c372 > < #ifdef __CYGWIN32__ > ---
> > #ifdef __CYGWIN__
> 375c375 > < #endif /* __CYGWIN32__ */ > ---
> > #endif /* __CYGWIN__ */
> diff old/Oracle.h correct/Oracle.h > 29c29 > < #if defined(__MINGW32__) || defined(__CYGWIN32__) > ---
> > #if defined(__MINGW32__) || defined(__CYGWIN__)
> diff old/Oracle.xs correct/Oracle.xs > 107c107 > < #if defined(__CYGWIN32__) || defined(__CYGWIN64__) > ---
> > #ifdef __CYGWIN__
> 115c115 > < #endif /* __CYGWIN32__ */ > ---
> > #endif /* __CYGWIN__ */
> > Patch File attached. > > Regards > > Alexander
Subject: Re: [rt.cpan.org #88709] Cygwin 64 and DBD::Oracle
Date: Tue, 27 May 2014 13:59:49 -0400
To: bug-DBD-Oracle [...] rt.cpan.org
From: Yanick Champoux <champoux [...] pythian.com>
Download (untitled) / with headers
text/plain 603b
On 2014-05-27, 2:14 AM, Petriczek, Witold via RT wrote: Show quoted text
> I can try, though I have different tasks on my head today, I'll let you know if it works fine :-]
Excellent. And no need to rush: the ticket has been around for some time. I'm pretty sure it'll wait a few days more still. :-) Show quoted text
> I actually haven't done any code in Perl since October 2013 ;)
Oh my, that's... yeah, that's a wee while. Heh. See it as a trip down memory lane? ;-) Thanks! `/anick -- Yanick Champoux Solutions Architect Pythian - Love your data champoux@pythian.com Tel: +1 613 565 8696 x 274 www.pythian.com -- --
Subject: RE: [rt.cpan.org #88709] Cygwin 64 and DBD::Oracle
Date: Wed, 28 May 2014 07:32:21 +0100
To: "bug-DBD-Oracle [...] rt.cpan.org" <bug-DBD-Oracle [...] rt.cpan.org>
From: "Petriczek, Witold" <Witold.Petriczek [...] sabre.com>
Download (untitled) / with headers
text/plain 940b
Indeed it will be ;) Show quoted text
-----Original Message----- From: Pythian Remote DBA via RT [mailto:bug-DBD-Oracle@rt.cpan.org] Sent: Tuesday, May 27, 2014 8:00 PM To: Petriczek, Witold Subject: Re: [rt.cpan.org #88709] Cygwin 64 and DBD::Oracle <URL: https://rt.cpan.org/Ticket/Display.html?id=88709 > On 2014-05-27, 2:14 AM, Petriczek, Witold via RT wrote:
> I can try, though I have different tasks on my head today, I'll let > you know if it works fine :-]
Excellent. And no need to rush: the ticket has been around for some time. I'm pretty sure it'll wait a few days more still. :-)
> I actually haven't done any code in Perl since October 2013 ;)
Oh my, that's... yeah, that's a wee while. Heh. See it as a trip down memory lane? ;-) Thanks! `/anick -- Yanick Champoux Solutions Architect Pythian - Love your data champoux@pythian.com Tel: +1 613 565 8696 x 274 www.pythian.com -- --
Download (untitled) / with headers
text/plain 213b
Marking resolved/closed now even though it may not be. The issue is very old and no activity. We have moved to github for issues. By all means open a new ticket on github. Martin -- Martin J. Evans Wetherby, UK


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.