RE: [rt.cpan.org #50450] Report a bug in Win32-ODBC

[email protected] ("Shawn Zong via RT")
Newsgroups perl.libwin32
Message-ID <[email protected]>
Wed Oct 14 10:09:09 2009: Request 50450 was acted upon.
Transaction: Correspondence added by [email protected]
       Queue: Win32-ODBC
     Subject: RE: [rt.cpan.org #50450] Report a bug in Win32-ODBC 
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: [email protected]
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=50450 >


I was installing Win32:ODBC module on latest cgywin 1.5.25-15, following the routine install procedure, i.e. 1 perl makefile.pl + 3 makes. The make process failed. 

Please let me know if you need more information.

Thanks.
Shawn

> What compiler and make utility are you using ?
> I'm using the MinGW port of gcc and dmake, with AS build 1005 (perl-5.10.0) 
> and there's no problem, afaict:

> Cheers,
> Rob
compile output.TXT (text/plain, 18.9 KB)
$ perl MakeFile.pl
Processing hints file hints/cygwin.pl
Writing Makefile for Win32::ODBC

$ make
g++ -c   -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -O3   -DVERSION=\"0.034\" -DXS_VERSION=\"0.034\"  "-I/usr/lib/perl5/5.10/i686-cygwin/CORE"   ODBC.cpp

....

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 functio
)
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 fu
ction)
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
unction)
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
unction)
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 functio
)
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 functio
)
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 functio
)
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.