DBD 1.18a make not working
DBD 1.18a make not working
am 28.09.2006 01:12:22 von sunilav
------=_Part_38645_13497108.1159398742504
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
I installed DBI and everything worked. Now I am trying to install
DBD::Oracle 1.18a on a unix box which has Oracle 10 client and gcc. perl
MakeFile.PL worked fine. But make is giving this error after mentioning
about a string of syntax errors.
------------------------------------------------------------ ---------------------
cc: acomp failed for dbdimp.c
------------------------------------------------------------ ---------------------
Please note that I am specifying PREFIX and INSTALLSITELIB so that I can
install the modules in a directory different than perl standard for which I
do not have permissions
myunixbox /data/dir/DBD-Oracle-1.18 >make
cc -c -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.2.0.1\"
-I/opt/oracle/product/10.2.0.1.0_64c/rdbms/public
-I/opt/oracle/product/10.2.0.1.0_64c/rdbms/demo
-I/opt/oracle/product/10.2.0.1.0_64c/rdbms/public
-I/opt/oracle/product/10.2.0.1.0_64c/plsql/public
-I/opt/oracle/product/10.2.0.1.0_64c/network/public
-I/data/dq/ip/r4pp/perlmodules/auto/DBI -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -xdepend -DVERSION=\"1.18\" -DXS_VERSION=\"1.18\"
-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DUTF8_SUPPORT -DNEW_OCI_INIT
-DORA_OCI_VERSION=\"10.2.0.1\" Oracle.c
cc: Warning: Optimizer level changed from 0 to 3 to support dependence based
transformations.
cc -c -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.2.0.1\"
-I/opt/oracle/product/10.2.0.1.0_64c/rdbms/public
-I/opt/oracle/product/10.2.0.1.0_64c/rdbms/demo
-I/opt/oracle/product/10.2.0.1.0_64c/rdbms/public
-I/opt/oracle/product/10.2.0.1.0_64c/plsql/public
-I/opt/oracle/product/10.2.0.1.0_64c/network/public
-I/data/dq/ip/r4pp/perlmodules/auto/DBI -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -xdepend -DVERSION=\"1.18\" -DXS_VERSION=\"1.18\"
-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DUTF8_SUPPORT -DNEW_OCI_INIT
-DORA_OCI_VERSION=\"10.2.0.1\" dbdimp.c
cc: Warning: Optimizer level changed from 0 to 3 to support dependence based
transformations.
"dbdimp.c", line 11: warning: invalid white space character in directive
"dbdimp.c", line 13: warning: invalid white space character in directive
"dbdimp.c", line 15: warning: invalid white space character in directive
"dbdimp.c", line 18: warning: invalid white space character in directive
"dbdimp.c", line 20: warning: invalid white space character in directive
"dbdimp.c", line 22: warning: invalid white space character in directive
"dbdimp.c", line 24: warning: invalid white space character in directive
"dbdimp.c", line 27: warning: invalid white space character in directive
"dbdimp.c", line 28: warning: invalid white space character in directive
"dbdimp.c", line 31: warning: invalid white space character in directive
"dbdimp.c", line 32: syntax error before or at: ->
"dbdimp.c", line 32: undefined or not a type: sv_flags
"dbdimp.c", line 32: syntax error before or at: *
"dbdimp.c", line 32: undefined or not a type: h
"dbdimp.c", line 32: syntax error before or at: ->
"dbdimp.c", line 32: undefined or not a type: sv_any
"dbdimp.c", line 32: undefined or not a type: xrv_rv
"dbdimp.c", line 32: undefined or not a type: sv_flags
"dbdimp.c", line 32: undefined or not a type: SVt_PVHV
"dbdimp.c", line 32: invalid source character: '\'
"dbdimp.c", line 33: syntax error before or at: *
"dbdimp.c", line 33: undefined or not a type: h
"dbdimp.c", line 33: syntax error before or at: ->
"dbdimp.c", line 33: undefined or not a type: sv_any
"dbdimp.c", line 33: undefined or not a type: xrv_rv
"dbdimp.c", line 33: undefined or not a type: sv_flags
"dbdimp.c", line 33: syntax error before or at: *
"dbdimp.c", line 33: syntax error before or at: *
"dbdimp.c", line 33: undefined or not a type: h
"dbdimp.c", line 33: syntax error before or at: ->
"dbdimp.c", line 33: undefined or not a type: sv_any
"dbdimp.c", line 33: undefined or not a type: xrv_rv
"dbdimp.c", line 33: undefined or not a type: sv_any
"dbdimp.c", line 33: undefined or not a type: xmg_magic
"dbdimp.c", line 33: undefined or not a type: mg_type
"dbdimp.c", line 35: warning: invalid white space character in directive
"dbdimp.c", line 37: warning: invalid white space character in directive
"dbdimp.c", line 107: cannot recover from previous errors
cc: acomp failed for dbdimp.c
*** Error code 2
make: Fatal error: Command failed for target `dbdimp.o'
Thanks,
Sunil
------=_Part_38645_13497108.1159398742504--
RE: DBD 1.18a make not working
am 28.09.2006 09:47:22 von Martin.Evans
On 27-Sep-2006 Sunil A V wrote:
> I installed DBI and everything worked. Now I am trying to install
> DBD::Oracle 1.18a on a unix box which has Oracle 10 client and gcc. perl
> MakeFile.PL worked fine. But make is giving this error after mentioning
> about a string of syntax errors.
> cc -c -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.2.0.1\"
> -I/opt/oracle/product/10.2.0.1.0_64c/rdbms/public
> -I/opt/oracle/product/10.2.0.1.0_64c/rdbms/demo
> -I/opt/oracle/product/10.2.0.1.0_64c/rdbms/public
> -I/opt/oracle/product/10.2.0.1.0_64c/plsql/public
> -I/opt/oracle/product/10.2.0.1.0_64c/network/public
> -I/data/dq/ip/r4pp/perlmodules/auto/DBI -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -xdepend -DVERSION=\"1.18\" -DXS_VERSION=\"1.18\"
> -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DUTF8_SUPPORT -DNEW_OCI_INIT
> -DORA_OCI_VERSION=\"10.2.0.1\" dbdimp.c
> cc: Warning: Optimizer level changed from 0 to 3 to support dependence based
> transformations.
> "dbdimp.c", line 11: warning: invalid white space character in directive
I think you'll find the file dbdimp.c has DOS line endings. You'll need to
convert it to use unix line feeds instead.
Martin
--
Martin J. Evans
Easysoft Ltd, UK
http://www.easysoft.com
Re: DBD 1.18a make not working
am 28.09.2006 12:52:49 von scoles
That sounds about right. Can you check this version of the file to see if it
works for you
http://svn.perl.org/modules/dbd-oracle/trunk/dbdimp.c
This would be the current code from subversion. It should be in UNIX
format. If not I will have to fix that
Cheers
John Scoles
----- Original Message -----
From: "Sunil A V"
To:
Sent: Wednesday, September 27, 2006 7:12 PM
Subject: DBD 1.18a make not working
>I installed DBI and everything worked. Now I am trying to install
> DBD::Oracle 1.18a on a unix box which has Oracle 10 client and gcc. perl
> MakeFile.PL worked fine. But make is giving this error after mentioning
> about a string of syntax errors.
> ------------------------------------------------------------ ---------------------
> cc: acomp failed for dbdimp.c
> ------------------------------------------------------------ ---------------------
> Please note that I am specifying PREFIX and INSTALLSITELIB so that I can
> install the modules in a directory different than perl standard for which
> I
> do not have permissions
>
> myunixbox /data/dir/DBD-Oracle-1.18 >make
> cc -c -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.2.0.1\"
> -I/opt/oracle/product/10.2.0.1.0_64c/rdbms/public
> -I/opt/oracle/product/10.2.0.1.0_64c/rdbms/demo
> -I/opt/oracle/product/10.2.0.1.0_64c/rdbms/public
> -I/opt/oracle/product/10.2.0.1.0_64c/plsql/public
> -I/opt/oracle/product/10.2.0.1.0_64c/network/public
> -I/data/dq/ip/r4pp/perlmodules/auto/DBI -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -xdepend -DVERSION=\"1.18\" -DXS_VERSION=\"1.18\"
> -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DUTF8_SUPPORT -DNEW_OCI_INIT
> -DORA_OCI_VERSION=\"10.2.0.1\" Oracle.c
> cc: Warning: Optimizer level changed from 0 to 3 to support dependence
> based
> transformations.
> cc -c -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.2.0.1\"
> -I/opt/oracle/product/10.2.0.1.0_64c/rdbms/public
> -I/opt/oracle/product/10.2.0.1.0_64c/rdbms/demo
> -I/opt/oracle/product/10.2.0.1.0_64c/rdbms/public
> -I/opt/oracle/product/10.2.0.1.0_64c/plsql/public
> -I/opt/oracle/product/10.2.0.1.0_64c/network/public
> -I/data/dq/ip/r4pp/perlmodules/auto/DBI -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -xdepend -DVERSION=\"1.18\" -DXS_VERSION=\"1.18\"
> -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DUTF8_SUPPORT -DNEW_OCI_INIT
> -DORA_OCI_VERSION=\"10.2.0.1\" dbdimp.c
> cc: Warning: Optimizer level changed from 0 to 3 to support dependence
> based
> transformations.
> "dbdimp.c", line 11: warning: invalid white space character in directive
> "dbdimp.c", line 13: warning: invalid white space character in directive
> "dbdimp.c", line 15: warning: invalid white space character in directive
> "dbdimp.c", line 18: warning: invalid white space character in directive
> "dbdimp.c", line 20: warning: invalid white space character in directive
> "dbdimp.c", line 22: warning: invalid white space character in directive
> "dbdimp.c", line 24: warning: invalid white space character in directive
> "dbdimp.c", line 27: warning: invalid white space character in directive
> "dbdimp.c", line 28: warning: invalid white space character in directive
> "dbdimp.c", line 31: warning: invalid white space character in directive
> "dbdimp.c", line 32: syntax error before or at: ->
> "dbdimp.c", line 32: undefined or not a type: sv_flags
> "dbdimp.c", line 32: syntax error before or at: *
> "dbdimp.c", line 32: undefined or not a type: h
> "dbdimp.c", line 32: syntax error before or at: ->
> "dbdimp.c", line 32: undefined or not a type: sv_any
> "dbdimp.c", line 32: undefined or not a type: xrv_rv
> "dbdimp.c", line 32: undefined or not a type: sv_flags
> "dbdimp.c", line 32: undefined or not a type: SVt_PVHV
> "dbdimp.c", line 32: invalid source character: '\'
> "dbdimp.c", line 33: syntax error before or at: *
> "dbdimp.c", line 33: undefined or not a type: h
> "dbdimp.c", line 33: syntax error before or at: ->
> "dbdimp.c", line 33: undefined or not a type: sv_any
> "dbdimp.c", line 33: undefined or not a type: xrv_rv
> "dbdimp.c", line 33: undefined or not a type: sv_flags
> "dbdimp.c", line 33: syntax error before or at: *
> "dbdimp.c", line 33: syntax error before or at: *
> "dbdimp.c", line 33: undefined or not a type: h
> "dbdimp.c", line 33: syntax error before or at: ->
> "dbdimp.c", line 33: undefined or not a type: sv_any
> "dbdimp.c", line 33: undefined or not a type: xrv_rv
> "dbdimp.c", line 33: undefined or not a type: sv_any
> "dbdimp.c", line 33: undefined or not a type: xmg_magic
> "dbdimp.c", line 33: undefined or not a type: mg_type
> "dbdimp.c", line 35: warning: invalid white space character in directive
> "dbdimp.c", line 37: warning: invalid white space character in directive
> "dbdimp.c", line 107: cannot recover from previous errors
> cc: acomp failed for dbdimp.c
> *** Error code 2
> make: Fatal error: Command failed for target `dbdimp.o'
>
> Thanks,
> Sunil
>
Re: DBD 1.18a make not working
am 28.09.2006 14:09:14 von scoles
----- Original Message -----
From: "Martin Gainty"
To: "Martin J. Evans" ;
Sent: Thursday, September 28, 2006 8:05 AM
Subject: Re: DBD 1.18a make not working
> First thing I would look at is LD_LIBRARY_PATH to make sure that is set
> correctly
> The second thing is to
> vi -b
> in which case you will find a number of non-white-space characters which
> are causing your error
>
> of course the permanent solution is to rewrite in Java so it works
> flawlessly in all environments without mucking around with native binaries
> M-
I think .NET would be better much wider acceptance.
> ************************************************************ *********
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed. If you have received this email message in error, please
> notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy. Thank you.
>
>
>
> ----- Original Message -----
> From: "Martin J. Evans"
> To:
> Sent: Thursday, September 28, 2006 3:47 AM
> Subject: RE: DBD 1.18a make not working
>
>
>> On 27-Sep-2006 Sunil A V wrote:
>>> I installed DBI and everything worked. Now I am trying to install
>>> DBD::Oracle 1.18a on a unix box which has Oracle 10 client and gcc. perl
>>> MakeFile.PL worked fine. But make is giving this error after mentioning
>>> about a string of syntax errors.
>>
>>> cc -c -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.2.0.1\"
>>> -I/opt/oracle/product/10.2.0.1.0_64c/rdbms/public
>>> -I/opt/oracle/product/10.2.0.1.0_64c/rdbms/demo
>>> -I/opt/oracle/product/10.2.0.1.0_64c/rdbms/public
>>> -I/opt/oracle/product/10.2.0.1.0_64c/plsql/public
>>> -I/opt/oracle/product/10.2.0.1.0_64c/network/public
>>> -I/data/dq/ip/r4pp/perlmodules/auto/DBI -D_LARGEFILE_SOURCE
>>> -D_FILE_OFFSET_BITS=64 -xdepend -DVERSION=\"1.18\" -DXS_VERSION=\"1.18\"
>>> -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DUTF8_SUPPORT -DNEW_OCI_INIT
>>> -DORA_OCI_VERSION=\"10.2.0.1\" dbdimp.c
>>> cc: Warning: Optimizer level changed from 0 to 3 to support dependence
>>> based
>>> transformations.
>>> "dbdimp.c", line 11: warning: invalid white space character in directive
>>
>> I think you'll find the file dbdimp.c has DOS line endings. You'll need
>> to
>> convert it to use unix line feeds instead.
>>
>> Martin
>> --
>> Martin J. Evans
>> Easysoft Ltd, UK
>> http://www.easysoft.com
>>
>>
Re: DBD 1.18a make not working
am 29.09.2006 00:33:12 von sunilav
------=_Part_57663_8447499.1159482792146
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Thanks all. I removed ctrl M ctrl V characters from end of each line in the
file and ran the perl Makefile.PL and make again. IT WORKED.
What I did was got DBD-Oracle-1.18a from CPAN and put in unix box 'A'. This
unix box has a proper compiler and Oracle ver 10 client installed. Now after
doing make I tarred the whole DBD-Oracle-1.18 directory and ftp-ed to Unix
box 'B' where I untarred it.This box does not have a c compiler but has
Oracle ver 8.1.7 installed. When i try to do 'make install' on Unix box 'B'
it is giving me the error
make: Fatal error: Don't know how to make target
`/mydir/perlmodules/auto/DBI/Driver.xst'
any ideas?
Please note for installing DBI, a similar procedure of making in Unix box A
and make installing on B worked fine
Thanks,
Sunil
On 9/28/06, John Scoles wrote:
>
> ----- Original Message -----
> From: "Martin Gainty"
> To: "Martin J. Evans" ;
> Sent: Thursday, September 28, 2006 8:05 AM
> Subject: Re: DBD 1.18a make not working
>
>
> > First thing I would look at is LD_LIBRARY_PATH to make sure that is set
> > correctly
> > The second thing is to
> > vi -b
> > in which case you will find a number of non-white-space characters which
> > are causing your error
> >
> > of course the permanent solution is to rewrite in Java so it works
> > flawlessly in all environments without mucking around with native
> binaries
> > M-
>
> I think .NET would be better much wider acceptance.
>
> > ************************************************************ *********
> > This email message and any files transmitted with it contain
> confidential
> > information intended only for the person(s) to whom this email message
> is
> > addressed. If you have received this email message in error, please
> > notify
> > the sender immediately by telephone or email and destroy the original
> > message without making a copy. Thank you.
> >
> >
> >
> > ----- Original Message -----
> > From: "Martin J. Evans"
> > To:
> > Sent: Thursday, September 28, 2006 3:47 AM
> > Subject: RE: DBD 1.18a make not working
> >
> >
> >> On 27-Sep-2006 Sunil A V wrote:
> >>> I installed DBI and everything worked. Now I am trying to install
> >>> DBD::Oracle 1.18a on a unix box which has Oracle 10 client and gcc.
> perl
> >>> MakeFile.PL worked fine. But make is giving this error after
> mentioning
> >>> about a string of syntax errors.
> >>
> >>> cc -c -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.2.0.1\"
> >>> -I/opt/oracle/product/10.2.0.1.0_64c/rdbms/public
> >>> -I/opt/oracle/product/10.2.0.1.0_64c/rdbms/demo
> >>> -I/opt/oracle/product/10.2.0.1.0_64c/rdbms/public
> >>> -I/opt/oracle/product/10.2.0.1.0_64c/plsql/public
> >>> -I/opt/oracle/product/10.2.0.1.0_64c/network/public
> >>> -I/data/dq/ip/r4pp/perlmodules/auto/DBI -D_LARGEFILE_SOURCE
> >>> -D_FILE_OFFSET_BITS=64 -xdepend -DVERSION=\"1.18\" -DXS_VERSION=\"
> 1.18\"
> >>> -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DUTF8_SUPPORT
> -DNEW_OCI_INIT
> >>> -DORA_OCI_VERSION=\"10.2.0.1\" dbdimp.c
> >>> cc: Warning: Optimizer level changed from 0 to 3 to support dependence
> >>> based
> >>> transformations.
> >>> "dbdimp.c", line 11: warning: invalid white space character in
> directive
> >>
> >> I think you'll find the file dbdimp.c has DOS line endings. You'll need
> >> to
> >> convert it to use unix line feeds instead.
> >>
> >> Martin
> >> --
> >> Martin J. Evans
> >> Easysoft Ltd, UK
> >> http://www.easysoft.com
> >>
> >>
>
>
------=_Part_57663_8447499.1159482792146--