[clue-tech] Cygwin, Perl, & CPAN

Mike Staver staver at fimble.com
Wed Jun 3 13:03:31 MDT 2009


I realize this isn't a direct linux question - but I'm hoping somebody on
this list knows something about cygwin.  I have never used it before, and
I have a project I'm working on that prohibits the use of a real *nix
environment at this time. A requirement I'm working on requires a perl
script.  One of the things this script is supposed to do is connect to an
Oracle database via ODBC to obtain some information.  I don't think I'd
have a problem doing this on Mac OS, Linux, Solaris, etc.  However, I've
been provided a Windows 2003 server with cygwin installed to accomplish
this.  From what I have read, I need the Win32::ODBC perl module in order
to make this happen.  Not being familar with cygwin, I tried installing
the module the same way I would on any *nix box:

perl -MCPAN -e 'install Win32::ODBC'

Here is the output I end up with when I try this:

CPAN: File::HomeDir loaded ok (v0.80)
CPAN: Storable loaded ok (v2.18)
Going to read /cygdrive/c/Documents and Settings/mstaver/.cpan/Metadata
  Database was generated on Wed, 03 Jun 2009 14:27:50 GMT
CPAN: YAML loaded ok (v0.66)
Going to read /cygdrive/c/Documents and Settings/mstaver/.cpan/build/
............................................................................DONE

Found 27 old builds, restored the state of 26
Running install for module 'Win32::ODBC'
Running make for J/JD/JDB/Win32-ODBC-0.034.tar.gz
Prepending /cygdrive/c/Documents and
Settings/mstaver/.cpan/build/Text-Glob-0.08
-MRaEmu/blib/arch /cygdrive/c/Documents and
Settings/mstaver/.cpan/build/Text-Gl
ob-0.08-MRaEmu/blib/lib /cygdrive/c/Documents and
Settings/mstaver/.cpan/build/P
athTools-3.30-I1mjY6/blib/arch /cygdrive/c/Documents and
Settings/mstaver/.cpan/
build/PathTools-3.30-I1mjY6/blib/lib /cygdrive/c/Documents and
Settings/mstaver/
.cpan/build/Module-Build-0.33-G3uJHg/blib/arch /cygdrive/c/Documents and
Setting
s/mstaver/.cpan/build/Module-Build-0.33-G3uJHg/blib/lib
/cygdrive/c/Documents an
d Settings/mstaver/.cpan/build/ExtUtils-CBuilder-0.24-5tlDfO/blib/arch
/cygdrive
/c/Documents and
Settings/mstaver/.cpan/build/ExtUtils-CBuilder-0.24-5tlDfO/blib
/lib /cygdrive/c/Documents and
Settings/mstaver/.cpan/build/Test-Harness-3.17-Fb
9lKn/blib/arch /cygdrive/c/Documents and
Settings/mstaver/.cpan/build/Test-Harne
ss-3.17-Fb9lKn/blib/lib to PERL5LIB for 'get'
  Has already been unwrapped into directory /cygdrive/c/Documents and
Settings/m
staver/.cpan/build/Win32-ODBC-0.034-xMna7d
Prepending /cygdrive/c/Documents and
Settings/mstaver/.cpan/build/Text-Glob-0.08
-MRaEmu/blib/arch /cygdrive/c/Documents and
Settings/mstaver/.cpan/build/Text-Gl
ob-0.08-MRaEmu/blib/lib /cygdrive/c/Documents and
Settings/mstaver/.cpan/build/P
athTools-3.30-I1mjY6/blib/arch /cygdrive/c/Documents and
Settings/mstaver/.cpan/
build/PathTools-3.30-I1mjY6/blib/lib /cygdrive/c/Documents and
Settings/mstaver/
.cpan/build/Module-Build-0.33-G3uJHg/blib/arch /cygdrive/c/Documents and
Setting
s/mstaver/.cpan/build/Module-Build-0.33-G3uJHg/blib/lib
/cygdrive/c/Documents an
d Settings/mstaver/.cpan/build/ExtUtils-CBuilder-0.24-5tlDfO/blib/arch
/cygdrive
/c/Documents and
Settings/mstaver/.cpan/build/ExtUtils-CBuilder-0.24-5tlDfO/blib
/lib /cygdrive/c/Documents and
Settings/mstaver/.cpan/build/Test-Harness-3.17-Fb
9lKn/blib/arch /cygdrive/c/Documents and
Settings/mstaver/.cpan/build/Test-Harne
ss-3.17-Fb9lKn/blib/lib to PERL5LIB for 'make'
Could not make: Unknown error
Prepending /cygdrive/c/Documents and
Settings/mstaver/.cpan/build/Text-Glob-0.08
-MRaEmu/blib/arch /cygdrive/c/Documents and
Settings/mstaver/.cpan/build/Text-Gl
ob-0.08-MRaEmu/blib/lib /cygdrive/c/Documents and
Settings/mstaver/.cpan/build/P
athTools-3.30-I1mjY6/blib/arch /cygdrive/c/Documents and
Settings/mstaver/.cpan/
build/PathTools-3.30-I1mjY6/blib/lib /cygdrive/c/Documents and
Settings/mstaver/
.cpan/build/Module-Build-0.33-G3uJHg/blib/arch /cygdrive/c/Documents and
Setting
s/mstaver/.cpan/build/Module-Build-0.33-G3uJHg/blib/lib
/cygdrive/c/Documents an
d Settings/mstaver/.cpan/build/ExtUtils-CBuilder-0.24-5tlDfO/blib/arch
/cygdrive
/c/Documents and
Settings/mstaver/.cpan/build/ExtUtils-CBuilder-0.24-5tlDfO/blib
/lib /cygdrive/c/Documents and
Settings/mstaver/.cpan/build/Test-Harness-3.17-Fb
9lKn/blib/arch /cygdrive/c/Documents and
Settings/mstaver/.cpan/build/Test-Harne
ss-3.17-Fb9lKn/blib/lib to PERL5LIB for 'test'
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible

So, it turns out I am not able to install ANYTHING via CPAN this way.  I
get the same results for anything.  It could be assumed that maybe my
configuration is off.  CPAN automagically configures itself when you run
it the first time, and generated this config for me:

cpan[1]> o conf
$CPAN::Config options from '/usr/lib/perl5/5.10/CPAN/Config.pm':
    commit             [Commit changes to disk]
    defaults           [Reload defaults from disk]
    help               [Short help about 'o conf' usage]
    init               [Interactive setting of all options]

    applypatch         []
    auto_commit        [0]
    build_cache        [100]
    build_dir          [/cygdrive/c/Documents and
Settings/mstaver/.cpan/build]
    build_dir_reuse    [1]
    build_requires_install_policy [ask/yes]
    bzip2              [/usr/bin/bzip2]
    cache_metadata     [1]
    check_sigs         [0]
    colorize_debug     undef
    colorize_output    undef
    colorize_print     undef
    colorize_warn      undef
    commandnumber_in_prompt [1]
    commands_quote     undef
    cpan_home          [/cygdrive/c/Documents and Settings/mstaver/.cpan]
    curl               []
    dontload_hash      undef
    dontload_list      undef
    ftp                []
    ftp_passive        [1]
    ftp_proxy          []
    getcwd             [cwd]
    gpg                []
    gzip               [/usr/bin/gzip]
    histfile           [/cygdrive/c/Documents and
Settings/mstaver/.cpan/histfil
e]
    histsize           [100]
    http_proxy         []
    inactivity_timeout [0]
    index_expire       [1]
    inhibit_startup_message [0]
    keep_source_where  [/cygdrive/c/Documents and
Settings/mstaver/.cpan/sources
]
    load_module_verbosity [v]
    lynx               []
    make               [/usr/bin/make]
    make_arg           []
    make_install_arg   []
    make_install_make_command [/usr/bin/make]
    makepl_arg         []
    mbuild_arg         []
    mbuild_install_arg []
    mbuild_install_build_command [./Build]
    mbuildpl_arg       []
    ncftp              []
    ncftpget           []
    no_proxy           []
    pager              [/usr/bin/less]
    password           undef
    patch              [/usr/bin/patch]
    prefer_installer   [MB]
    prefs_dir          [/cygdrive/c/Documents and
Settings/mstaver/.cpan/prefs]
    prerequisites_policy [ask]
    proxy_pass         undef
    proxy_user         undef
    randomize_urllist  undef
    scan_cache         [atstart]
    shell              []
    show_unparsable_versions [0]
    show_upload_date   [0]
    show_zero_versions [0]
    tar                [/usr/bin/tar]
    tar_verbosity      [v]
    term_is_latin      [1]
    term_ornaments     [1]
    test_report        [0]
    unzip              [/usr/bin/unzip]
    urllist
    use_sqlite         [0]
    username           undef
    wait_list          undef
    wget               [/usr/bin/wget]
    yaml_load_code     [0]
    yaml_module        [YAML]

All of the, especially the make section, seems normal to me.  Maybe I'm
missing something? I don't know - it seems to me that it should work.

Considering I can't install that way, I tried the old fashioned way of
using wget to obtain the Win32::ODBC module, uncompress it, then:

$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Processing hints file hints/cygwin.pl
Writing Makefile for Win32::ODBC

That goes well, so I move on to "make test":

ODBC.xs:34:26: iodbcinst.h: No such file or directory
In file included from ODBC.xs:57:
CResults.hpp:19: error: `SDWORD' does not name a type
CResults.hpp:20: error: `SDWORD' does not name a type
CResults.hpp:21: error: `SWORD' does not name a type
CResults.hpp:28: error: ISO C++ forbids declaration of `SDWORD' with no type
CResults.hpp:28: error: expected `;' before '*' token
CResults.hpp:30: error: ISO C++ forbids declaration of `SDWORD' with no type
CResults.hpp:30: error: expected `;' before '*' token
CResults.hpp:31: error: `SWORD' does not name a type
In file included from ODBC.xs:59:
ODBC.h:47: error: `HDBC' does not name a type
ODBC.h:63: error: `HENV' does not name a type
ODBC.h:64: error: `HSTMT' does not name a type
ODBC.h:68: error: `UWORD' does not name a type
ODBC.h:97: error: `HENV' does not name a type
ODBC.h:144: error: `RETCODE' does not name a type
ODBC.h:145: error: `UWORD' was not declared in this scope
ODBC.h:151: error: `RETCODE' does not name a type
ODBC.xs:66: error: `RETCODE' does not name a type
ODBC.xs: In function `ODBC_TYPE* NewODBC()':
ODBC.xs:113: error: `ghEnv' undeclared (first use this function)
ODBC.xs:113: error: (Each undeclared identifier is reported only once for
each function it appears in.)
ODBC.xs:114: error: `SQLAllocEnv' undeclared (first use this function)
ODBC.xs:135: error: 'struct ODBC_Conn' has no member named 'henv'
ODBC.xs: In function `ODBC_TYPE* CleanODBC(ODBC_TYPE*)':
ODBC.xs:163: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:163: error: `SQL_NULL_HSTMT' undeclared (first use this function)
ODBC.xs:164: error: 'struct ODBC_Conn' has no member named 'henv'
ODBC.xs:164: error: `SQL_NULL_HENV' undeclared (first use this function)
ODBC.xs:170: error: 'struct ODBC_Conn' has no member named 'uStmtCloseType'
ODBC.xs:170: error: `SQL_DROP' undeclared (first use this function)
ODBC.xs: In function `int FreeODBC(ODBC_TYPE*)':
ODBC.xs:208: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:211: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:211: error: `SQL_DROP' undeclared (first use this function)
ODBC.xs:211: error: `SQLFreeStmt' undeclared (first use this function)
ODBC.xs:212: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:212: error: `SQL_NULL_HSTMT' undeclared (first use this function)
ODBC.xs:222: error: 'struct ODBC_hdbc' has no member named 'hdbc'
ODBC.xs:222: error: `SQLDisconnect' undeclared (first use this function)
ODBC.xs:223: error: 'struct ODBC_hdbc' has no member named 'hdbc'
ODBC.xs:223: error: `SQL_NULL_HDBC' undeclared (first use this function)
ODBC.xs:226: error: 'struct ODBC_hdbc' has no member named 'hdbc'
ODBC.xs:226: error: `SQLFreeConnect' undeclared (first use this function)
ODBC.xs:236: error: 'struct ODBC_Conn' has no member named 'henv'
ODBC.xs:236: error: `SQL_NULL_HENV' undeclared (first use this function)
ODBC.xs: At global scope:
ODBC.xs:333: error: `RETCODE' does not name a type
ODBC.xs: In function `void _NT_ODBC_Error(ODBC_TYPE*, char*, char*)':
ODBC.xs:365: error: `SDWORD' undeclared (first use this function)
ODBC.xs:365: error: expected `;' before "cbErrorMsg"
ODBC.xs:372: error: 'struct ODBC_Conn' has no member named 'henv'
ODBC.xs:372: error: 'struct ODBC_hdbc' has no member named 'hdbc'
ODBC.xs:372: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:372: error: `SQLCHAR' undeclared (first use this function)
ODBC.xs:372: error: expected primary-expression before ')' token
ODBC.xs:372: error: `SQLINTEGER' undeclared (first use this function)
ODBC.xs:372: error: expected primary-expression before ')' token
ODBC.xs:372: error: expected primary-expression before ')' token
ODBC.xs:372: error: `SQLSMALLINT' undeclared (first use this function)
ODBC.xs:372: error: expected primary-expression before ')' token
ODBC.xs:372: error: `cbErrorMsg' undeclared (first use this function)
ODBC.xs:372: error: `SQLError' undeclared (first use this function)
ODBC.xs: In function `int ColNameToNum(ODBC_TYPE*, char*)':
ODBC.xs:509: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:509: error: `SQL_COLUMN_NAME' undeclared (first use this function)
ODBC.xs:509: error: `SQLColAttributes' undeclared (first use this function)
ODBC.xs: At global scope:
ODBC.xs:571: error: redefinition of `char*MapCloseType'
ODBC.h:145: error: `char*MapCloseType' previously defined here
ODBC.xs:571: error: `UWORD' was not declared in this scope
ODBC.xs:571: error: expected `,' or `;' before '{' token
ODBC.xs: In function `void XS_WIN32__ODBC_Connect(PerlInterpreter*, CV*)':
ODBC.xs:617: error: `RETCODE' undeclared (first use this function)
ODBC.xs:617: error: expected `;' before "retcode"
ODBC.xs:619: error: `SDWORD' undeclared (first use this function)
ODBC.xs:619: error: expected `;' before "bufflenout"
ODBC.xs:649: error: 'struct ODBC_hdbc' has no member named 'hdbc'
ODBC.xs:649: error: `SQL_NULL_HDBC' undeclared (first use this function)
ODBC.xs:658: error: `retcode' undeclared (first use this function)
ODBC.xs:658: error: 'struct ODBC_Conn' has no member named 'henv'
ODBC.xs:658: error: 'struct ODBC_hdbc' has no member named 'hdbc'
ODBC.xs:658: error: `SQLAllocConnect' undeclared (first use this function)
ODBC.xs:659: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs:669: error: `UWORD' undeclared (first use this function)
ODBC.xs:669: error: expected `;' before "uType"
ODBC.xs:670: error: `UDWORD' undeclared (first use this function)
ODBC.xs:670: error: expected `;' before "udValue"
ODBC.xs:674: error: `uType' undeclared (first use this function)
ODBC.xs:676: error: `udValue' undeclared (first use this function)
ODBC.xs:680: error: 'struct ODBC_hdbc' has no member named 'hdbc'
ODBC.xs:680: error: `SQLSetConnectOption' undeclared (first use this
function)
ODBC.xs:691: error: 'struct ODBC_hdbc' has no member named 'hdbc'
ODBC.xs:691: error: `bufflenout' undeclared (first use this function)
ODBC.xs:691: error: `SQL_DRIVER_NOPROMPT' undeclared (first use this
function)
ODBC.xs:691: error: `SQLDriverConnect' undeclared (first use this function)
ODBC.xs:692: error: `SQL_SUCCESS_WITH_INFO' undeclared (first use this
function)
ODBC.xs:718: error: `ResetStmt' undeclared (first use this function)
ODBC.xs: In function `void XS_WIN32__ODBC_Execute(PerlInterpreter*, CV*)':
ODBC.xs:741: error: `RETCODE' undeclared (first use this function)
ODBC.xs:741: error: expected `;' before "retcode"
ODBC.xs:743: error: `SDWORD' undeclared (first use this function)
ODBC.xs:743: error: expected `;' before "bufflenout"
ODBC.xs:744: error: `UWORD' undeclared (first use this function)
ODBC.xs:744: error: expected `;' before "x"
ODBC.xs:760: error: `ResetStmt' undeclared (first use this function)
ODBC.xs:760: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs:772: error: `retcode' undeclared (first use this function)
ODBC.xs:772: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:772: error: `SQLExecDirect' undeclared (first use this function)
ODBC.xs:773: error: `SQL_SUCCESS_WITH_INFO' undeclared (first use this
function)
ODBC.xs:785: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:785: error: `SQLNumResultCols' undeclared (first use this function)
ODBC.xs:786: error: `x' undeclared (first use this function)
ODBC.xs:787: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:787: error: `SQL_COLUMN_NAME' undeclared (first use this function)
ODBC.xs:787: error: `bufflenout' undeclared (first use this function)
ODBC.xs:787: error: `SQLColAttributes' undeclared (first use this function)
ODBC.xs: In function `void XS_WIN32__ODBC_Fetch(PerlInterpreter*, CV*)':
ODBC.xs:806: error: `RETCODE' undeclared (first use this function)
ODBC.xs:806: error: expected `;' before "retcode"
ODBC.xs:807: error: `UWORD' undeclared (first use this function)
ODBC.xs:807: error: expected `;' before "uType"
ODBC.xs:808: error: `SDWORD' undeclared (first use this function)
ODBC.xs:808: error: expected `;' before "sdRow"
ODBC.xs:811: error: `rgfRowStatus' undeclared (first use this function)
ODBC.xs:812: error: `UDWORD' undeclared (first use this function)
ODBC.xs:812: error: expected `;' before "udCRow"
ODBC.xs:823: error: `sdRow' undeclared (first use this function)
ODBC.xs:827: error: `uType' undeclared (first use this function)
ODBC.xs:833: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:833: error: `SQL_ROWSET_SIZE' undeclared (first use this function)
ODBC.xs:833: error: `SQLGetStmtOption' undeclared (first use this function)
ODBC.xs:835: error: `UWORD' has not been declared
ODBC.xs:842: error: `retcode' undeclared (first use this function)
ODBC.xs:842: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:842: error: `udCRow' undeclared (first use this function)
ODBC.xs:842: error: `SQLExtendedFetch' undeclared (first use this function)
ODBC.xs:845: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs:845: error: `SQL_SUCCESS_WITH_INFO' undeclared (first use this
function)
ODBC.xs:848: error: `SQL_NO_DATA_FOUND' undeclared (first use this function)
ODBC.xs: In function `void XS_WIN32__ODBC_TableList(PerlInterpreter*, CV*)':
ODBC.xs:938: error: `RETCODE' undeclared (first use this function)
ODBC.xs:938: error: expected `;' before "retcode"
ODBC.xs:944: error: `retcode' undeclared (first use this function)
ODBC.xs:944: error: `TableColList' undeclared (first use this function)
ODBC.xs: In function `void XS_WIN32__ODBC_ColumnList(PerlInterpreter*, CV*)':
ODBC.xs:950: error: `RETCODE' undeclared (first use this function)
ODBC.xs:950: error: expected `;' before "retcode"
ODBC.xs:956: error: `retcode' undeclared (first use this function)
ODBC.xs:956: error: `TableColList' undeclared (first use this function)
ODBC.xs: At global scope:
ODBC.xs:959: error: `RETCODE' does not name a type
ODBC.xs: In function `void XS_WIN32__ODBC_MoreResults(PerlInterpreter*,
CV*)':
ODBC.xs:1073: error: `RETCODE' undeclared (first use this function)
ODBC.xs:1073: error: expected `;' before "retcode"
ODBC.xs:1080: error: `retcode' undeclared (first use this function)
ODBC.xs:1080: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:1080: error: `SQLMoreResults' undeclared (first use this function)
ODBC.xs:1081: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs:1081: error: `SQL_SUCCESS_WITH_INFO' undeclared (first use this
function)
ODBC.xs:1084: error: `SQL_NO_DATA_FOUND' undeclared (first use this function)
ODBC.xs: In function `void XS_WIN32__ODBC_GetDSN(PerlInterpreter*, CV*)':
ODBC.xs:1204: error: `SQLGetPrivateProfileString' undeclared (first use
this function)
ODBC.xs: In function `void XS_WIN32__ODBC_DataSources(PerlInterpreter*,
CV*)':
ODBC.xs:1243: error: `SQL_MAX_DSN_LENGTH' undeclared (first use this
function)
ODBC.xs:1244: error: `SWORD' undeclared (first use this function)
ODBC.xs:1244: error: expected `;' before "pcbDSN"
ODBC.xs:1246: error: expected `;' before "pcbDesc"
ODBC.xs:1248: error: `RETCODE' undeclared (first use this function)
ODBC.xs:1248: error: expected `;' before "retcode"
ODBC.xs:1266: error: `szDSN' undeclared (first use this function)
ODBC.xs:1267: error: `retcode' undeclared (first use this function)
ODBC.xs:1267: error: 'struct ODBC_Conn' has no member named 'henv'
ODBC.xs:1267: error: `SQL_FETCH_FIRST' undeclared (first use this function)
ODBC.xs:1267: error: `pcbDSN' undeclared (first use this function)
ODBC.xs:1267: error: `pcbDesc' undeclared (first use this function)
ODBC.xs:1267: error: `SQLDataSources' undeclared (first use this function)
ODBC.xs:1268: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs:1277: error: 'struct ODBC_Conn' has no member named 'henv'
ODBC.xs:1277: error: `SQL_FETCH_NEXT' undeclared (first use this function)
ODBC.xs: In function `void XS_WIN32__ODBC_Drivers(PerlInterpreter*, CV*)':
ODBC.xs:1293: error: `SWORD' undeclared (first use this function)
ODBC.xs:1293: error: expected `;' before "cbAttr"
ODBC.xs:1295: error: expected `;' before "cbDesc"
ODBC.xs:1297: error: `RETCODE' undeclared (first use this function)
ODBC.xs:1297: error: expected `;' before "retcode"
ODBC.xs:1307: error: `retcode' undeclared (first use this function)
ODBC.xs:1307: error: 'struct ODBC_Conn' has no member named 'henv'
ODBC.xs:1307: error: `SQL_FETCH_FIRST' undeclared (first use this function)
ODBC.xs:1307: error: `cbDesc' undeclared (first use this function)
ODBC.xs:1307: error: `cbAttr' undeclared (first use this function)
ODBC.xs:1307: error: `SQLDrivers' undeclared (first use this function)
ODBC.xs:1308: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs:1320: error: 'struct ODBC_Conn' has no member named 'henv'
ODBC.xs:1320: error: `SQL_FETCH_NEXT' undeclared (first use this function)
ODBC.xs: In function `void XS_WIN32__ODBC_RowCount(PerlInterpreter*, CV*)':
ODBC.xs:1334: error: `SDWORD' undeclared (first use this function)
ODBC.xs:1334: error: expected `;' before "sdRows"
ODBC.xs:1335: error: `RETCODE' undeclared (first use this function)
ODBC.xs:1335: error: expected `;' before "retcode"
ODBC.xs:1345: error: `retcode' undeclared (first use this function)
ODBC.xs:1345: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:1345: error: `sdRows' undeclared (first use this function)
ODBC.xs:1345: error: `SQLRowCount' undeclared (first use this function)
ODBC.xs:1346: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs: In function `void
XS_WIN32__ODBC_GetStmtCloseType(PerlInterpreter*, CV*)':
ODBC.xs:1394: error: 'struct ODBC_Conn' has no member named 'uStmtCloseType'
ODBC.xs:1394: error: `MapCloseType' cannot be used as a function
ODBC.xs: In function `void
XS_WIN32__ODBC_SetStmtCloseType(PerlInterpreter*, CV*)':
ODBC.xs:1412: error: `UWORD' undeclared (first use this function)
ODBC.xs:1412: error: expected `;' before "uType"
ODBC.xs:1420: error: `uType' undeclared (first use this function)
ODBC.xs:1425: error: `SQL_DROP' undeclared (first use this function)
ODBC.xs:1426: error: `SQL_CLOSE' undeclared (first use this function)
ODBC.xs:1427: error: `SQL_UNBIND' undeclared (first use this function)
ODBC.xs:1428: error: `SQL_RESET_PARAMS' undeclared (first use this function)
ODBC.xs:1429: error: 'struct ODBC_Conn' has no member named 'uStmtCloseType'
ODBC.xs:1430: error: 'struct ODBC_Conn' has no member named 'uStmtCloseType'
ODBC.xs:1430: error: `MapCloseType' cannot be used as a function
ODBC.xs: In function `void
XS_WIN32__ODBC_SetConnectOption(PerlInterpreter*, CV*)':
ODBC.xs:1455: error: `UWORD' undeclared (first use this function)
ODBC.xs:1455: error: expected `;' before "uType"
ODBC.xs:1456: error: `UDWORD' undeclared (first use this function)
ODBC.xs:1456: error: expected `;' before "udValue"
ODBC.xs:1457: error: `RETCODE' undeclared (first use this function)
ODBC.xs:1457: error: expected `;' before "rResult"
ODBC.xs:1466: error: `uType' undeclared (first use this function)
ODBC.xs:1468: error: `udValue' undeclared (first use this function)
ODBC.xs:1475: error: `rResult' undeclared (first use this function)
ODBC.xs:1475: error: 'struct ODBC_hdbc' has no member named 'hdbc'
ODBC.xs:1475: error: `SQLSetConnectOption' undeclared (first use this
function)
ODBC.xs:1476: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs: In function `void
XS_WIN32__ODBC_GetConnectOption(PerlInterpreter*, CV*)':
ODBC.xs:1497: error: `SQL_MAX_OPTION_STRING_LENGTH' undeclared (first use
this function)
ODBC.xs:1498: error: `ucValue' undeclared (first use this function)
ODBC.xs:1499: error: `UWORD' undeclared (first use this function)
ODBC.xs:1499: error: expected `;' before "uOption"
ODBC.xs:1500: error: `RETCODE' undeclared (first use this function)
ODBC.xs:1500: error: expected `;' before "rResult"
ODBC.xs:1508: error: `uOption' undeclared (first use this function)
ODBC.xs:1513: error: `rResult' undeclared (first use this function)
ODBC.xs:1513: error: 'struct ODBC_hdbc' has no member named 'hdbc'
ODBC.xs:1513: error: `SQLGetConnectOption' undeclared (first use this
function)
ODBC.xs:1514: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs:1522: error: `SQL_ACCESS_MODE' undeclared (first use this function)
ODBC.xs:1523: error: `SQL_AUTOCOMMIT' undeclared (first use this function)
ODBC.xs:1524: error: `SQL_LOGIN_TIMEOUT' undeclared (first use this function)
ODBC.xs:1525: error: `SQL_ODBC_CURSORS' undeclared (first use this function)
ODBC.xs:1526: error: `SQL_OPT_TRACE' undeclared (first use this function)
ODBC.xs:1527: error: `SQL_PACKET_SIZE' undeclared (first use this function)
ODBC.xs:1528: error: `SQL_QUIET_MODE' undeclared (first use this function)
ODBC.xs:1529: error: `SQL_TRANSLATE_OPTION' undeclared (first use this
function)
ODBC.xs:1530: error: `SQL_TXN_ISOLATION' undeclared (first use this function)
ODBC.xs: In function `void XS_WIN32__ODBC_StmtOption(PerlInterpreter*, CV*)':
ODBC.xs:1553: error: `SQL_MAX_OPTION_STRING_LENGTH' undeclared (first use
this function)
ODBC.xs:1554: error: `ucValue' undeclared (first use this function)
ODBC.xs:1555: error: `UWORD' undeclared (first use this function)
ODBC.xs:1555: error: expected `;' before "uOption"
ODBC.xs:1556: error: `UDWORD' undeclared (first use this function)
ODBC.xs:1556: error: expected `;' before "udValue"
ODBC.xs:1557: error: `RETCODE' undeclared (first use this function)
ODBC.xs:1557: error: expected `;' before "rResult"
ODBC.xs:1566: error: `uOption' undeclared (first use this function)
ODBC.xs:1569: error: `udValue' undeclared (first use this function)
ODBC.xs:1581: error: `rResult' undeclared (first use this function)
ODBC.xs:1581: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:1581: error: `SQLGetStmtOption' undeclared (first use this function)
ODBC.xs:1582: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs:1587: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:1587: error: `SQLSetStmtOption' undeclared (first use this function)
ODBC.xs: In function `void XS_WIN32__ODBC_GetFunctions(PerlInterpreter*,
CV*)':
ODBC.xs:1629: error: `UWORD' undeclared (first use this function)
ODBC.xs:1629: error: expected `;' before "uOutput"
ODBC.xs:1630: error: expected `;' before "uOption"
ODBC.xs:1631: error: `RETCODE' undeclared (first use this function)
ODBC.xs:1631: error: expected `;' before "rResult"
ODBC.xs:1647: error: `uOption' undeclared (first use this function)
ODBC.xs:1647: error: `SQL_API_ALL_FUNCTIONS' undeclared (first use this
function)
ODBC.xs:1655: error: `rResult' undeclared (first use this function)
ODBC.xs:1655: error: 'struct ODBC_hdbc' has no member named 'hdbc'
ODBC.xs:1655: error: `uOutput' undeclared (first use this function)
ODBC.xs:1655: error: `SQLGetFunctions' undeclared (first use this function)
ODBC.xs:1656: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs: In function `void XS_WIN32__ODBC_Transact(PerlInterpreter*, CV*)':
ODBC.xs:1694: error: `UWORD' undeclared (first use this function)
ODBC.xs:1694: error: expected `;' before "uType"
ODBC.xs:1695: error: `RETCODE' undeclared (first use this function)
ODBC.xs:1695: error: expected `;' before "rResult"
ODBC.xs:1703: error: `uType' undeclared (first use this function)
ODBC.xs:1707: error: `SQL_ROLLBACK' undeclared (first use this function)
ODBC.xs:1707: error: `SQL_COMMIT' undeclared (first use this function)
ODBC.xs:1708: error: `rResult' undeclared (first use this function)
ODBC.xs:1708: error: 'struct ODBC_Conn' has no member named 'henv'
ODBC.xs:1708: error: 'struct ODBC_hdbc' has no member named 'hdbc'
ODBC.xs:1708: error: `SQLTransact' undeclared (first use this function)
ODBC.xs:1709: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs: In function `void XS_WIN32__ODBC_ConfigDSN(PerlInterpreter*, CV*)':
ODBC.xs:1733: error: `UWORD' undeclared (first use this function)
ODBC.xs:1733: error: expected `;' before "uType"
ODBC.xs:1750: error: `uType' undeclared (first use this function)
ODBC.xs:1806: error: `SQLConfigDataSource' undeclared (first use this
function)
ODBC.xs: In function `void XS_WIN32__ODBC_GetInfo(PerlInterpreter*, CV*)':
ODBC.xs:1833: error: `UWORD' undeclared (first use this function)
ODBC.xs:1833: error: `uValue' undeclared (first use this function)
ODBC.xs:1834: error: expected `;' before "uType"
ODBC.xs:1835: error: `SWORD' undeclared (first use this function)
ODBC.xs:1835: error: expected `;' before "swBytes"
ODBC.xs:1836: error: `RETCODE' undeclared (first use this function)
ODBC.xs:1836: error: expected `;' before "rResult"
ODBC.xs:1844: error: `uType' undeclared (first use this function)
ODBC.xs:1854: error: expected primary-expression before ')' token
ODBC.xs:1854: error: expected `;' before "ucValue"
ODBC.xs:1855: error: `rResult' undeclared (first use this function)
ODBC.xs:1855: error: 'struct ODBC_hdbc' has no member named 'hdbc'
ODBC.xs:1855: error: `swBytes' undeclared (first use this function)
ODBC.xs:1855: error: `SQLGetInfo' undeclared (first use this function)
ODBC.xs:1856: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs: In function `void XS_WIN32__ODBC_ColAttributes(PerlInterpreter*,
CV*)':
ODBC.xs:1923: error: `UWORD' undeclared (first use this function)
ODBC.xs:1923: error: expected `;' before "iCol"
ODBC.xs:1924: error: expected `;' before "iType"
ODBC.xs:1927: error: `SWORD' undeclared (first use this function)
ODBC.xs:1927: error: expected `;' before "dBuffLen"
ODBC.xs:1928: error: `SDWORD' undeclared (first use this function)
ODBC.xs:1928: error: expected `;' before "dValue"
ODBC.xs:1929: error: `RETCODE' undeclared (first use this function)
ODBC.xs:1929: error: expected `;' before "rResult"
ODBC.xs:1938: error: `iType' undeclared (first use this function)
ODBC.xs:1944: error: `iCol' undeclared (first use this function)
ODBC.xs:1946: error: `rResult' undeclared (first use this function)
ODBC.xs:1946: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:1946: error: `dBuffLen' undeclared (first use this function)
ODBC.xs:1946: error: expected primary-expression before ')' token
ODBC.xs:1946: error: `dValue' undeclared (first use this function)
ODBC.xs:1946: error: `SQLColAttributes' undeclared (first use this function)
ODBC.xs:1947: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs:1947: error: `SQL_SUCCESS_WITH_INFO' undeclared (first use this
function)
ODBC.xs: In function `void XS_WIN32__ODBC_SetPos(PerlInterpreter*, CV*)':
ODBC.xs:2063: error: `UWORD' undeclared (first use this function)
ODBC.xs:2063: error: expected `;' before "uRow"
ODBC.xs:2064: error: expected `;' before "uOption"
ODBC.xs:2065: error: expected `;' before "uLock"
ODBC.xs:2066: error: `RETCODE' undeclared (first use this function)
ODBC.xs:2066: error: expected `;' before "rResult"
ODBC.xs:2074: error: `uRow' undeclared (first use this function)
ODBC.xs:2076: error: `uOption' undeclared (first use this function)
ODBC.xs:2079: error: `uLock' undeclared (first use this function)
ODBC.xs:2084: error: `rResult' undeclared (first use this function)
ODBC.xs:2084: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:2084: error: `SQLSetPos' undeclared (first use this function)
ODBC.xs:2085: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs: In function `void XS_WIN32__ODBC_GetData(PerlInterpreter*, CV*)':
ODBC.xs:2109: error: `SDWORD' undeclared (first use this function)
ODBC.xs:2109: error: expected `;' before "iBuf"
ODBC.xs:2153: error: 'class CResults' has no member named 'NumOfCols'
ODBC.xs:2157: error: 'class CResults' has no member named 'ReturnSize'
ODBC.xs: In function `void XS_WIN32__ODBC_DropCursor(PerlInterpreter*, CV*)':
ODBC.xs:2183: error: `UWORD' undeclared (first use this function)
ODBC.xs:2183: error: expected `;' before "uCloseType"
ODBC.xs:2184: error: `RETCODE' undeclared (first use this function)
ODBC.xs:2184: error: expected `;' before "retcode"
ODBC.xs:2192: error: `uCloseSpecified' undeclared (first use this function)
ODBC.xs:2198: error: `uCloseType' undeclared (first use this function)
ODBC.xs:2198: error: 'struct ODBC_Conn' has no member named 'uStmtCloseType'
ODBC.xs:2199: error: 'struct ODBC_Conn' has no member named 'uStmtCloseType'
ODBC.xs:2199: error: `SQL_DROP' undeclared (first use this function)
ODBC.xs:2200: error: `retcode' undeclared (first use this function)
ODBC.xs:2200: error: `ResetStmt' undeclared (first use this function)
ODBC.xs:2201: error: 'struct ODBC_Conn' has no member named 'uStmtCloseType'
ODBC.xs: In function `void XS_WIN32__ODBC_CursorName(PerlInterpreter*, CV*)':
ODBC.xs:2219: error: `SWORD' undeclared (first use this function)
ODBC.xs:2219: error: expected `;' before "sSize"
ODBC.xs:2220: error: `RETCODE' undeclared (first use this function)
ODBC.xs:2220: error: expected `;' before "retcode"
ODBC.xs:2235: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:2235: error: `SQLSetCursorName' undeclared (first use this function)
ODBC.xs:2235: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs:2241: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:2241: error: `sSize' undeclared (first use this function)
ODBC.xs:2241: error: `SQLGetCursorName' undeclared (first use this function)
ODBC.xs:2245: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs: In function `void XS_WIN32__ODBC_Clone(PerlInterpreter*, CV*)':
ODBC.xs:2276: error: `RETCODE' undeclared (first use this function)
ODBC.xs:2276: error: expected `;' before "retcode"
ODBC.xs:2294: error: 'struct ODBC_Conn' has no member named 'henv'
ODBC.xs:2294: error: 'struct ODBC_Conn' has no member named 'henv'
ODBC.xs:2307: error: `retcode' undeclared (first use this function)
ODBC.xs:2307: error: `ResetStmt' undeclared (first use this function)
ODBC.xs:2308: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs: In function `void XS_WIN32__ODBC_GetTypeInfo(PerlInterpreter*,
CV*)':
ODBC.xs:2443: error: `SWORD' undeclared (first use this function)
ODBC.xs:2443: error: expected `;' before "sType"
ODBC.xs:2444: error: `RETCODE' undeclared (first use this function)
ODBC.xs:2444: error: expected `;' before "retcode"
ODBC.xs:2453: error: `sType' undeclared (first use this function)
ODBC.xs:2457: error: `ResetStmt' undeclared (first use this function)
ODBC.xs:2457: error: `SQL_SUCCESS' undeclared (first use this function)
ODBC.xs:2465: error: `retcode' undeclared (first use this function)
ODBC.xs:2465: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:2465: error: `SQLGetTypeInfo' undeclared (first use this function)
ODBC.xs:2466: error: `SQL_SUCCESS_WITH_INFO' undeclared (first use this
function)
ODBC.xs:2478: error: `SDWORD' undeclared (first use this function)
ODBC.xs:2478: error: expected `;' before "bufflenout"
ODBC.xs:2482: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:2482: error: `SQLNumResultCols' undeclared (first use this function)
ODBC.xs:2484: error: 'struct ODBC_Conn' has no member named 'hstmt'
ODBC.xs:2484: error: `SQL_COLUMN_NAME' undeclared (first use this function)
ODBC.xs:2484: error: `bufflenout' undeclared (first use this function)
ODBC.xs:2484: error: `SQLColAttributes' undeclared (first use this function)
ODBC.xs: In function `void boot_Win32__ODBC(PerlInterpreter*, CV*)':
ODBC.xs:2597: error: `RETCODE' undeclared (first use this function)
ODBC.xs:2597: error: expected `;' before "iRetCode"
ODBC.xs:2604: error: `iRetCode' undeclared (first use this function)
make: *** [ODBC.o] Error 1

What I would really prefer is if somebody knows how to get CPAN working
under Cygwin - and fail that, does anybody know where this file
(iodbcinst.h) should be locate or can be found? Google hasn't provided me
much help today.



More information about the clue-tech mailing list