On Tue, May 25, 2004 at 02:28:36PM -0700, Hom, Soo wrote:
>    I am attempting to run make on DBD-Oracle-1.15 and I get this fatal error:
> 
>    gcc -c  -I/export/home/oracle/rdbms/demo -I/export/home/oracle/rdbms/public
>    -I/export/home/oracle/plsql/public -I/export/home/oracle/network/public 
> -I/export/home/oracle/rdbms/demo
>    -I/export/home/oracle/rdbms/public -I/export/home/oracle/rdbms/demo
>    -I/usr/local/perl5/lib/site_perl/5.8.4/sun4-solaris/auto/DBI -fno-strict-aliasing 
> -I/usr/local/include
>    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"1.15\" 
> -DXS_VERSION=\"1.15\" -fPIC
>    "-I/usr/local/perl5/lib/5.8.4/sun4-solaris/CORE"  -DUTF8_SUPPORT xstmp.c
> 
>    Oracle.c: In function `XS_DBD__Oracle__db_ora_lob_write':
> 
>    Oracle.c:874: error: syntax error before '*' token

This doesn't make any sense as the XS_DBD__Oracle__db_ora_lob_write doesn't
appear in Oracle.c until well after line 874.

The other errors don't make much sense either.

Try running this

        perl -i.bak -p -e '$_="" if /^#line/' Oracle.c

after the make fails and then rerun the make. It'll remove the #line
directives that may be confusing the picture (and perhaps the compiler).

Tim.

>    Oracle.xs:126: error: `data' undeclared (first use in this function)
>    Oracle.xs:126: error: (Each undeclared identifier is reported only once
>    Oracle.xs:126: error: for each function it appears in.)
>    Oracle.xs:131: error: `offset' undeclared (first use in this function)


>    Oracle.c: In function `XS_DBD__Oracle__db_ora_lob_read':
>    Oracle.c:971: error: syntax error at '#' token
>    Oracle.c:971: error: syntax error before "line"
>    Oracle.xs:193: error: `length' undeclared (first use in this function)
>    Oracle.xs:202: error: `imp_dbh' undeclared (first use in this function)
>    Oracle.xs:202: error: `offset' undeclared (first use in this function)
> 
>    Oracle.c: In function `XS_DBD__Oracle__db_ora_lob_trim':
>    Oracle.c:1025: error: syntax error at '#' token
>    Oracle.c:1025: error: syntax error before numeric constant
>    Oracle.xs:229: error: `imp_dbh' undeclared (first use in this function)
>    Oracle.xs:229: error: `length' undeclared (first use in this function)
> 
>    make: *** [xstmp.o] Error 1

Reply via email to