I have found a couple of hits in this mailing list that have the same
problem that I am having but those threads do not seem to include the
resolution. 
I am trying to install DBD::ODBC on a SunOS 5.6 server.   I had no problems
installing the DBI or the manager.  The perl Makefile.PL appears to run fine
and creates a make file.  When I run the make it fails on line 185 of the
ODBC.xs file.  I have verified that all files do not contain the ^M
characters.  Output is as follows:
# perl Makefile.PL

Configuring DBD::ODBC ...

>>>     Remember to actually *READ* the README file!
        And re-read it if you have any problems.

Using DBI 1.32 installed in
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI
Using ODBC in /usr/local

Umm, this looks like a iodbc type of driver manager.

We expect to find the isql.h, isqlext.h and iodbc.h files (which were
supplied with iODBC) in $ODBCHOME/include directory alongside
the /usr/local/lib/libiodbc.a /usr/local/lib/libiodbc.so library.


Checking if your kit is complete...
Looks good
Injecting selected odbc driver into cc command
Injecting selected odbc driver into cc command
Using DBI 1.32 installed in
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI
to/DBI
Writing Makefile for DBD::ODBC

The DBD::ODBC tests will use these values for the database connection:
    DBI_DSN=dbi:ODBC:OpenRDA            e.g. dbi:ODBC:demo
    DBI_USER=unix
    DBI_PASS=unix

# 
# make
cp Changes blib/lib/DBD/ODBC/Changes.pm
cp ODBC.pm blib/lib/DBD/ODBC.pm
/usr/bin/perl -p -e "s/~DRIVER~/ODBC/g" <
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI/Driver.xst >
ODBC.xsi
/usr/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap
/usr/local/lib/perl5/5.8.0/ExtUtils/typemap  ODBC.xs > ODBC.xsc && mv
ODBC.xsc ODBC.c
gcc -B/usr/ccs/bin/ -c -I/usr/local/include  -I.
-I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION=\"1.00\"  -DXS_VERSION=\"1.00\" -fPIC
"-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE"  -I/usr/local/include
ODBC.c
cc1: Invalid option `-fno-strict-aliasing'
ODBC.xs: In function `XS_DBD__ODBC__db_GetFunctions':
ODBC.xs:172: `SQL_API_ODBC3_ALL_FUNCTIONS_SIZE' undeclared (first use in
this function)
ODBC.xs:172: (Each undeclared identifier is reported only once
ODBC.xs:172: for each function it appears in.)
ODBC.xs:185: `SQL_API_ODBC3_ALL_FUNCTIONS' undeclared (first use in this
function)
gcc: file path prefix `/usr/ccs/bin/' never used
*** Error code 1
make: Fatal error: Command failed for target `ODBC.o'

I would really appreciate it if someone could point me in the right
direction to getting this fixed.
Thanks.
Jdavis
[EMAIL PROTECTED]

Reply via email to