Re: Error from Scan.pm and h2xs

[email protected] (Tim Bunce) Sun, 5 Aug 2001 23:54:30 +0100
Newsgroups perl.dbi.oracle-oci
Message-ID <[email protected]>
On Wed, Jul 25, 2001 at 09:08:39AM -0700, Steve Mayer wrote:
> I've gotten this same error with Oracle-OCI-0.02,0.03 and 0.04:
> 
> Scanning /data3/oracle/rdbms/demo/oci.h for functions...
> Expecting parenth after identifier in `fd_set *__restrict __readfds'
> after `fd_set *__restrict ' at /usr/local/share/perl/5.6.1/C/Scan.pm line 797.
> h2xs failed at ./boot line 183
> 
> I have no idea where to begin looking at what the problem might be.

Can you try to find that line in your header files?
It may well be in your /usr/include (or similar) directory tree.
Try:

  find $ORACLE_HOME/rdbms /usr/include -type f -print | xargs grep __readfds

If you find it then please send the file to me. Thanks.

The C::Scan code is rather too inscrutable to work out what the problem
is from that end :-/  (Fundamentally though there ought to be a way to
tell it not to die, or at least to catch it warn and continue.)

Tim.