develooper Front page | perl.dbi.users | Postings from January 2007

Re: :Oracle make test problem

From:
Tim Bunce
Date:
January 24, 2007 04:20
Subject:
Re: :Oracle make test problem
Message ID:
20070124122030.GA15586@ip-192-168-1-101.internal.terminal.newtec.be
On Tue, Jan 23, 2007 at 11:36:13PM -0000, Andy Hassall wrote:
> The two failed tests aren't Oracle tests, but are checking how exit codes
> are handled on your OS:
> 
> 	is system("exit 1;"), 1<<8, 'system exit 1 should return 256';
> 	is system("exit 0;"),    0, 'system exit 0 should return 0';
> 
> All the Oracle tests run and pass, so there's nothing apparently wrong on
> the Oracle side, but those above fail. 

They fail because Oracle has hijacked the SIGCHLD signal handler.

Tim.

> According to the docs for "system":
> 
> "Return value of -1 indicates a failure to start the program or an error of
> the wait(2) system call (inspect $! for the reason)."
> 
> What output do you get if you run the following:
> 
> perl -e 'system("exit 1;"); print "$? $!\n"'
> perl -e 'system("exit 0;"); print "$? $!\n"'
> 
> -- 
> Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
> http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
> 
> From: Weaver John Cairns CONT NSSC [mailto:WeaverJC@NAVSEA.NAVY.MIL] 
> Sent: 23 January 2007 18:16
> To: 'dbi-users@perl.org'
> Cc: 'Tim.Bunce@pobox.com'
> Subject: DBD::Oracle make test problem
> 
> 
> 
> Hi,
> 
>  
> 
> I am having problems with DBD::Oracle install any help would be appreciated.
> I am running Solaris10 (1/06 Sparc) and Oracle 10g.
> 
>  
> 
>  
> 
>  
> 
> Thank you,
> 
>  
> 
> John Weaver
> 
>  
> 
> Please look at my log file attached
> 
>  
> 
>  
> 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About