Try to teach C::Scan to ignore __extension__ (and perhaps __inline).
I think you can do that via the API, else hack the code.

If you're not comfortable doing that then Oracle::OCI isn't for
you - it's very much raw alpha code.

Tim.

On Thu, Sep 02, 2004 at 01:02:32PM -0600, Reidy, Ron wrote:
> All,
> 
> I am trying to build Oracle::OCI v0.006 and am getting the following errors:
> 
> $ ./boot
> Regex for h2xs ignores: 
> ^OCI(?!AQ|AttrGet|Bind|Cache|Callback|Complex|Context|Date|DirPath|EnvCallback|Extract|File|Format|Interval|Iter|Memory|Message|MultiByte|Object|Pickler|Raw|Ref|Security|SharedLibInit|StmtBindByName|StmtBindByPos|StmtGetBindInfo|String|Subscription|Table|Thread|Type|TypeArrayByName|TypeArrayByRef|WideChar|_FLAGS|_FNCODE_|_NLS_|_ORACLE)|^SQL
> Complete h2xs arguments: ./h2xs -d -O -n Oracle::OCI -F 
> -I/app/oracle/product/10.1/rdbms/public -I/app/oracle/product/10.1/rdbms/public 
> -I/app/oracle/product/10.1/network/public -I/app/oracle/product/10.1/plsql/public 
> -I/app/oracle/product/10.1/rdbms/public,/app/oracle/product/10.1/rdbms/public,/app/oracle/product/10.1/network/public,/app/oracle/product/10.1/plsql/public
>  -E get_oci_error,get_oci_handle,oci_buf_len,OCIAttrGet -M 
> '^OCI(?!AQ|AttrGet|Bind|Cache|Callback|Complex|Context|Date|DirPath|EnvCallback|Extract|File|Format|Interval|Iter|Memory|Message|MultiByte|Object|Pickler|Raw|Ref|Security|SharedLibInit|StmtBindByName|StmtBindByPos|StmtGetBindInfo|String|Subscription|Table|Thread|Type|TypeArrayByName|TypeArrayByRef|WideChar|_FLAGS|_FNCODE_|_NLS_|_ORACLE)|^SQL'
>  -k -x /app/oracle/product/10.1/rdbms/public/oci.h
> Running h2xs...
> Scanning typemaps...
>  Scanning /usr/local/lib/perl5/5.8.4/ExtUtils/typemap
> Scanning /app/oracle/product/10.1/rdbms/public/oci.h for functions...
> Expecting parenth after identifier in `__extension__
> extern __inline unsigned int gnu_dev_major (unsigned long long int __dev)
>      '
> after `__extension__
> ' at /usr/local/lib/perl5/site_perl/5.8.4/C/Scan.pm line 729.
> h2xs failed at ./boot line 190
> 
> My environment is:
> 
> Perl:
> 
> Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
>   Platform:
>     osname=linux, osvers=2.4.21-9.elsmp, archname=i686-linux-thread-multi
>     uname='linux dbtest02bldr.arraybp.com 2.4.21-9.elsmp #1 smp thu jan 8 17:08:56 
> est 2004 i686 i686 i386 gnulinux '
>     config_args=''
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
>     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
>     use64bitint=undef use64bitall=undef uselongdouble=undef
>     usemymalloc=n, bincompat5005=undef
>   Compiler:
>     cc='/usr/bin/gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
> -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
> -I/usr/include/gdbm',
>     optimize='-O3',
>     cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing 
> -I/usr/local/include -I/usr/include/gdbm'
>     ccversion='', gccversion='3.2.3 20030502 (Red Hat Linux 3.2.3-34)', 
> gccosandvers=''
>     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
>     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
>     alignbytes=4, prototype=define
>   Linker and Libraries:
>     ld='/usr/bin/gcc', ldflags =' -L/usr/local/lib'
>     libpth=/usr/local/lib /lib /usr/lib
>     libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
>     perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
>     libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
>     gnulibc_version='2.3.2'
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
>     cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
> 
> 
> Characteristics of this binary (from libperl):
>   Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES 
> PERL_IMPLICIT_CONTEXT
>   Built under linux
>   Compiled at May 19 2004 18:25:57
>   @INC:
>     /usr/local/lib/perl5/5.8.4/i686-linux-thread-multi
>     /usr/local/lib/perl5/5.8.4
>     /usr/local/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi
>     /usr/local/lib/perl5/site_perl/5.8.4
>     /usr/local/lib/perl5/site_perl
>     .
> 
> Oracle: 10.1.0.2.0
> 
> O/S: RedHat ES 3.0
> 
> Can anyone give me a clue?
> 
> Thanks.
> 
> --
> Ron Reidy
> Lead DBA
> Array BioPharma, Inc.
> 
> 
> 
> 
> This electronic message transmission is a PRIVATE communication which contains
> information which may be confidential or privileged. The information is intended 
> to be for the use of the individual or entity named above. If you are not the 
> intended recipient, please be aware that any disclosure, copying, distribution 
> or use of the contents of this information is prohibited. Please notify the
> sender  of the delivery error by replying to this message, or notify us by
> telephone (877-633-2436, ext. 0), and then delete it from your system.
> 
> 

Reply via email to