Unable to compile DBD:ODBC module with Openlink ODBC Drivers 
Author Message
 Unable to compile DBD:ODBC module with Openlink ODBC Drivers

Hi,

I'm using Perl 5.6.1 and Openlink drivers on a linux webserver and are
having problems trying to install the DBD:ODBC module. I can create
the makefile ok but when trying to run it I get the following:

cc -c -I. -I/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/auto/DBI
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2  
-DVERSION=\"0.30\" -DXS_VERSION=\"0.30\" -fpic
-I/usr/local/lib/perl5/5.6.1/i686-linux/CORE
-I/usr/openlink/odbcsdk/include ODBC.c
In file included from /usr/openlink/odbcsdk/include/isqlext.h:4,
                 from dbdodbc.h:6,
                 from ODBC.h:9,
                 from ODBC.xs:1:
/usr/openlink/odbcsdk/include/isql.h:10: parse error before `*'
/usr/openlink/odbcsdk/include/isql.h:10: warning: data definition has
no type or storage class
/usr/openlink/odbcsdk/include/isql.h:11: parse error before `*'
/usr/openlink/odbcsdk/include/isql.h:11: warning: data definition has
no type or storage class
/usr/openlink/odbcsdk/include/isql.h:12: parse error before `*'
/usr/openlink/odbcsdk/include/isql.h:12: warning: data definition has
no type or storage class
/usr/openlink/odbcsdk/include/isql.h:13: parse error before `*'
/usr/openlink/odbcsdk/include/isql.h:13: warning: data definition has
no type or storage class
/usr/openlink/odbcsdk/include/isql.h:151: parse error before
`CALLBACK'
/usr/openlink/odbcsdk/include/isql.h:151: parse error before `henv'
/usr/openlink/odbcsdk/include/isql.h:151: warning: data definition has
no type or storage class
/usr/openlink/odbcsdk/include/isql.h:152: parse error before
`CALLBACK'
/usr/openlink/odbcsdk/include/isql.h:152: parse error before `FAR'

There are a lot more of these errors but are all pretty similar.

Openlink appears to be installed correctly as I can connect to an
oracle database on a remote unix machine.

The values I use for the environment variables are:

DBI_DSN=dbi:ODBC:nsap
DBI_USER=username
DBI_PASS=password
ODBCHOME=/usr/openlink/odbcsdk

and I also declare the following enviroment variable after creating
the make file:

LD_LIBRARY_PATH="usr/openlink/odbcsdk/lib

Any help on this would be much appreciated!

I'm pretty much a novice at linux and perl so please forgive me for
missing out something obvious!

TIA

Lee Paton
Cardiff University



Wed, 30 Jun 2004 23:52:42 GMT  
 Unable to compile DBD:ODBC module with Openlink ODBC Drivers
Hello Lee,

I would like to suggest that you doublecheck your configuration
against the steps provided at

http://www.iodbc.org/odbc-perlHOWTO.html

It appears that you might have to set additional Environment Variables
such as ODBCINI.

Hope this helps,
Best Regards,
Jan Csisko
Technical Support Consultant
OpenLink Software
Web: http://www.openlinksw.com
Universal Data Access & Data Integration Technology Providers  

Quote:

> Hi,

> I'm using Perl 5.6.1 and Openlink drivers on a linux webserver and are
> having problems trying to install the DBD:ODBC module. I can create
> the makefile ok but when trying to run it I get the following:

> cc -c -I. -I/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/auto/DBI
> -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2  
> -DVERSION=\"0.30\" -DXS_VERSION=\"0.30\" -fpic
> -I/usr/local/lib/perl5/5.6.1/i686-linux/CORE
> -I/usr/openlink/odbcsdk/include ODBC.c
> In file included from /usr/openlink/odbcsdk/include/isqlext.h:4,
>                  from dbdodbc.h:6,
>                  from ODBC.h:9,
>                  from ODBC.xs:1:
> /usr/openlink/odbcsdk/include/isql.h:10: parse error before `*'
> /usr/openlink/odbcsdk/include/isql.h:10: warning: data definition has
> no type or storage class
> /usr/openlink/odbcsdk/include/isql.h:11: parse error before `*'
> /usr/openlink/odbcsdk/include/isql.h:11: warning: data definition has
> no type or storage class
> /usr/openlink/odbcsdk/include/isql.h:12: parse error before `*'
> /usr/openlink/odbcsdk/include/isql.h:12: warning: data definition has
> no type or storage class
> /usr/openlink/odbcsdk/include/isql.h:13: parse error before `*'
> /usr/openlink/odbcsdk/include/isql.h:13: warning: data definition has
> no type or storage class
> /usr/openlink/odbcsdk/include/isql.h:151: parse error before
> `CALLBACK'
> /usr/openlink/odbcsdk/include/isql.h:151: parse error before `henv'
> /usr/openlink/odbcsdk/include/isql.h:151: warning: data definition has
> no type or storage class
> /usr/openlink/odbcsdk/include/isql.h:152: parse error before
> `CALLBACK'
> /usr/openlink/odbcsdk/include/isql.h:152: parse error before `FAR'

> There are a lot more of these errors but are all pretty similar.

> Openlink appears to be installed correctly as I can connect to an
> oracle database on a remote unix machine.

> The values I use for the environment variables are:

> DBI_DSN=dbi:ODBC:nsap
> DBI_USER=username
> DBI_PASS=password
> ODBCHOME=/usr/openlink/odbcsdk

> and I also declare the following enviroment variable after creating
> the make file:

> LD_LIBRARY_PATH="usr/openlink/odbcsdk/lib

> Any help on this would be much appreciated!

> I'm pretty much a novice at linux and perl so please forgive me for
> missing out something obvious!

> TIA

> Lee Paton
> Cardiff University



Sat, 03 Jul 2004 01:18:16 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. dbd odbc openlink help

2. Apology...Was: Re: DBD:ODBC, Openlink->MSSQL, and LongReadLen

3. DBD:ODBC, Openlink->MSSQL, and LongReadLen

4. MS Access, Linux, DBI, DBD::ODBC, Easysoft's ODBC-ODBC Bridge

5. win32::ODBC use with ODBC Excel driver

6. Solaris DBD::ODBC driver

7. DBD::ODBC or Win32::ODBC?

8. DBD::ODBC or Win32::ODBC?

9. DBD::ODBC / Win32::ODBC access problem

10. Help compiling DBD::ODBC

11. DBD-ODBC-0.28 compiling error needs help !!

12. Need help compiling DBD::ODBC

 

 
Powered by phpBB® Forum Software