Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36641 - php-core returns error when compiling php_odbc
Summary: php-core returns error when compiling php_odbc
Status: RESOLVED DUPLICATE of bug 34007
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-28 05:06 UTC by Paulo J. Matos
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paulo J. Matos 2003-12-28 05:06:57 UTC
While emerging php-core-4.3.4-r2:

gcc -I/usr/include -Iext/odbc/ -I/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/ -DPHP_ATOM_INC -I/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/include -I/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/main -I/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4 -I/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/Zend -I/usr/include/libxml2 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/imap -I/opt/interbase/include -I/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/mbstring/mbregex -I/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/mbstring/libmbfl -I/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/mbstring/libmbfl/mbfl -I/usr/include/mcal -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/xml/expat  -I/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/TSRM  -march=pentium4 -mcpu=pentium4 -O3 -pipe  -c /var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c -o ext/odbc/php_odbc.o  && echo > ext/odbc/php_odbc.lo
In file included from /var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:118,
                 from /var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:37:
/usr/include/sql.h:17:22: sqltypes.h: No such file or directory
In file included from /var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:118,
                 from /var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:37:
/usr/include/sql.h:565: error: syntax error before "SQLAllocConnect"
/usr/include/sql.h:565: error: syntax error before "EnvironmentHandle"
/usr/include/sql.h:568: error: syntax error before "SQLAllocEnv"
/usr/include/sql.h:568: error: syntax error before '*' token
/usr/include/sql.h:575: error: syntax error before "SQLAllocStmt"
/usr/include/sql.h:575: error: syntax error before "ConnectionHandle"
/usr/include/sql.h:578: error: syntax error before "SQLBindCol"
/usr/include/sql.h:578: error: syntax error before "StatementHandle"
/usr/include/sql.h:591: error: syntax error before "SQLCancel"
/usr/include/sql.h:591: error: syntax error before "StatementHandle"
/usr/include/sql.h:603: error: syntax error before "SQLColumns"
/usr/include/sql.h:603: error: syntax error before "StatementHandle"
/usr/include/sql.h:610: error: syntax error before "SQLConnect"
/usr/include/sql.h:610: error: syntax error before "ConnectionHandle"
/usr/include/sql.h:620: error: syntax error before "SQLDataSources"
/usr/include/sql.h:620: error: syntax error before "EnvironmentHandle"
/usr/include/sql.h:626: error: syntax error before "SQLDescribeCol"
/usr/include/sql.h:626: error: syntax error before "StatementHandle"
/usr/include/sql.h:632: error: syntax error before "SQLDisconnect"
/usr/include/sql.h:632: error: syntax error before "ConnectionHandle"
/usr/include/sql.h:639: error: syntax error before "SQLError"
/usr/include/sql.h:639: error: syntax error before "EnvironmentHandle"
/usr/include/sql.h:645: error: syntax error before "SQLExecDirect"
/usr/include/sql.h:645: error: syntax error before "StatementHandle"
/usr/include/sql.h:648: error: syntax error before "SQLExecute"
/usr/include/sql.h:648: error: syntax error before "StatementHandle"
/usr/include/sql.h:650: error: syntax error before "SQLFetch"
/usr/include/sql.h:650: error: syntax error before "StatementHandle"
/usr/include/sql.h:657: error: syntax error before "SQLFreeConnect"
/usr/include/sql.h:657: error: syntax error before "ConnectionHandle"
/usr/include/sql.h:659: error: syntax error before "SQLFreeEnv"
/usr/include/sql.h:659: error: syntax error before "EnvironmentHandle"
/usr/include/sql.h:665: error: syntax error before "SQLFreeStmt"
/usr/include/sql.h:665: error: syntax error before "StatementHandle"
/usr/include/sql.h:674: error: syntax error before "SQLGetConnectOption"
/usr/include/sql.h:674: error: syntax error before "ConnectionHandle"
/usr/include/sql.h:677: error: syntax error before "SQLGetCursorName"
/usr/include/sql.h:677: error: syntax error before "StatementHandle"
/usr/include/sql.h:681: error: syntax error before "SQLGetData"
/usr/include/sql.h:681: error: syntax error before "StatementHandle"
/usr/include/sql.h:714: error: syntax error before "SQLGetFunctions"
/usr/include/sql.h:714: error: syntax error before "ConnectionHandle"
/usr/include/sql.h:717: error: syntax error before "SQLGetInfo"
/usr/include/sql.h:717: error: syntax error before "ConnectionHandle"
/usr/include/sql.h:727: error: syntax error before "SQLGetStmtOption"
/usr/include/sql.h:727: error: syntax error before "StatementHandle"
/usr/include/sql.h:730: error: syntax error before "SQLGetTypeInfo"
/usr/include/sql.h:730: error: syntax error before "StatementHandle"
/usr/include/sql.h:733: error: syntax error before "SQLNumResultCols"
/usr/include/sql.h:733: error: syntax error before "StatementHandle"
/usr/include/sql.h:736: error: syntax error before "SQLParamData"
/usr/include/sql.h:736: error: syntax error before "StatementHandle"
/usr/include/sql.h:739: error: syntax error before "SQLPrepare"
/usr/include/sql.h:739: error: syntax error before "StatementHandle"
/usr/include/sql.h:742: error: syntax error before "SQLPutData"
/usr/include/sql.h:742: error: syntax error before "StatementHandle"
/usr/include/sql.h:745: error: syntax error before "SQLRowCount"
/usr/include/sql.h:745: error: syntax error before "StatementHandle"
/usr/include/sql.h:754: error: syntax error before "SQLSetConnectOption"
/usr/include/sql.h:754: error: syntax error before "ConnectionHandle"
/usr/include/sql.h:757: error: syntax error before "SQLSetCursorName"
/usr/include/sql.h:757: error: syntax error before "StatementHandle"
/usr/include/sql.h:777: error: syntax error before "SQLSetParam"
/usr/include/sql.h:777: error: syntax error before "StatementHandle"
/usr/include/sql.h:789: error: syntax error before "SQLSetStmtOption"
/usr/include/sql.h:789: error: syntax error before "StatementHandle"
/usr/include/sql.h:792: error: syntax error before "SQLSpecialColumns"
/usr/include/sql.h:792: error: syntax error before "StatementHandle"
/usr/include/sql.h:799: error: syntax error before "SQLStatistics"
/usr/include/sql.h:799: error: syntax error before "StatementHandle"
/usr/include/sql.h:805: error: syntax error before "SQLTables"
/usr/include/sql.h:805: error: syntax error before "StatementHandle"
/usr/include/sql.h:811: error: syntax error before "SQLTransact"
/usr/include/sql.h:811: error: syntax error before "EnvironmentHandle"
In file included from /var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:119,
                 from /var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:37:
/usr/include/sqlext.h:1703: error: syntax error before "SQLDriverConnect"
/usr/include/sqlext.h:1704: error: syntax error before "hdbc"
/usr/include/sqlext.h:1811: error: syntax error before "SQLBrowseConnect"
/usr/include/sqlext.h:1812: error: syntax error before "hdbc"
/usr/include/sqlext.h:1825: error: syntax error before "SQLColAttributes"
/usr/include/sqlext.h:1826: error: syntax error before "hstmt"
/usr/include/sqlext.h:1834: error: syntax error before "SQLColumnPrivileges"
/usr/include/sqlext.h:1835: error: syntax error before "hstmt"
/usr/include/sqlext.h:1845: error: syntax error before "SQLDescribeParam"
/usr/include/sqlext.h:1846: error: syntax error before "hstmt"
/usr/include/sqlext.h:1853: error: syntax error before "SQLExtendedFetch"
/usr/include/sqlext.h:1854: error: syntax error before "hstmt"
/usr/include/sqlext.h:1860: error: syntax error before "SQLForeignKeys"
/usr/include/sqlext.h:1861: error: syntax error before "hstmt"
/usr/include/sqlext.h:1875: error: syntax error before "SQLMoreResults"
/usr/include/sqlext.h:1876: error: syntax error before "hstmt"
/usr/include/sqlext.h:1878: error: syntax error before "SQLNativeSql"
/usr/include/sqlext.h:1879: error: syntax error before "hdbc"
/usr/include/sqlext.h:1886: error: syntax error before "SQLNumParams"
/usr/include/sqlext.h:1887: error: syntax error before "hstmt"
/usr/include/sqlext.h:1890: error: syntax error before "SQLParamOptions"
/usr/include/sqlext.h:1891: error: syntax error before "hstmt"
/usr/include/sqlext.h:1895: error: syntax error before "SQLPrimaryKeys"
/usr/include/sqlext.h:1896: error: syntax error before "hstmt"
/usr/include/sqlext.h:1904: error: syntax error before "SQLProcedureColumns"
/usr/include/sqlext.h:1905: error: syntax error before "hstmt"
/usr/include/sqlext.h:1915: error: syntax error before "SQLProcedures"
/usr/include/sqlext.h:1916: error: syntax error before "hstmt"
/usr/include/sqlext.h:1924: error: syntax error before "SQLSetPos"
/usr/include/sqlext.h:1925: error: syntax error before "hstmt"
/usr/include/sqlext.h:1930: error: syntax error before "SQLTablePrivileges"
/usr/include/sqlext.h:1931: error: syntax error before "hstmt"
/usr/include/sqlext.h:1939: error: syntax error before "SQLDrivers"
/usr/include/sqlext.h:1940: error: syntax error before "henv"
/usr/include/sqlext.h:1949: error: syntax error before "SQLBindParameter"
/usr/include/sqlext.h:1950: error: syntax error before "hstmt"
/usr/include/sqlext.h:2014: error: syntax error before "SQLSetScrollOptions"
/usr/include/sqlext.h:2015: error: syntax error before "hstmt"
/usr/include/sqlext.h:2030: error: syntax error before "TraceCloseLogFile"
/usr/include/sqlext.h:2032: error: syntax error before "TraceReturn"
/usr/include/sqlext.h:2036: error: syntax error before "TraceVersion"
/usr/include/sqlext.h:2044: error: syntax error before "TraceVSControl"
/usr/include/sqlext.h:2058: error: syntax error before "DWORD"
/usr/include/sqlext.h:2060: error: syntax error before "WCHAR"
/usr/include/sqlext.h:2062: error: syntax error before '}' token
/usr/include/sqlext.h:2064: error: syntax error before "WCHAR"
/usr/include/sqlext.h:2066: error: syntax error before '}' token
/usr/include/sqlext.h:2067: error: syntax error before "RetCode"
/usr/include/sqlext.h:2070: error: syntax error before "FireVSDebugEvent"
In file included from /var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:37:
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:208: error: syntax error before "SQLHANDLE"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:208: warning: no semicolon at end of struct or union
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:209: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:214: error: syntax error before '}' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:214: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:220: error: syntax error before "SDWORD"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:220: warning: no semicolon at end of struct or union
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:221: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:224: error: syntax error before "SQLHANDLE"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:224: warning: no semicolon at end of struct or union
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:226: error: syntax error before '*' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:226: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:227: error: syntax error before "numcols"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:227: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:228: error: syntax error before "numparams"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:228: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:235: error: syntax error before '*' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:235: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:236: error: syntax error before '}' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:236: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:257: error: syntax error before "odbc_result"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:258: error: syntax error before '*' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:258: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:260: error: syntax error before "HDBC"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:261: error: syntax error before '*' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:261: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:263: error: syntax error before '*' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc_includes.h:267: error: syntax error before '*' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c: In function `_free_odbc_result':
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:165: error: `res' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:165: error: (Each undeclared identifier is reported only once
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:165: error: for each function it appears in.)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:165: error: syntax error before ')' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:167: error: `RETCODE' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:167: error: syntax error before "rc"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:183: error: `rc' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c: In function `_close_odbc_conn':
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:216: error: `res' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:218: error: `conn' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:218: error: syntax error before ')' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:224: error: syntax error before ')' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c: In function `_close_odbc_pconn':
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:245: error: `res' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:246: error: `conn' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:246: error: syntax error before ')' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:252: error: syntax error before ')' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c: At top level:
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:561: error: syntax error before '*' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c: In function `odbc_sql_error':
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:564: error: `SDWORD' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:564: error: syntax error before "error"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:566: error: `SWORD' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:566: error: syntax error before "errormsgsize"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:567: error: `RETCODE' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:568: error: `SQLHANDLE' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:572: error: `conn_resource' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:573: error: `henv' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:574: error: `conn' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:585: error: `rc' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:585: error: `stmt' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:585: error: `error' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:585: error: `errormsgsize' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:592: error: `func' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c: In function `php_odbc_fetch_attribs':
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:607: error: `result' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:616: error: syntax error before ')' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c: At top level:
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:632: error: syntax error before '*' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c: In function `odbc_bindcols':
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:634: error: `RETCODE' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:634: error: syntax error before "rc"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:636: error: `SWORD' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:636: error: syntax error before "colnamelen"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:637: error: `SDWORD' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:639: error: `result' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:639: error: syntax error before ')' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:645: error: `rc' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:645: error: `UWORD' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:646: error: `colnamelen' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:671: error: `displaysize' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c: In function `odbc_transact':
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:687: error: `conn' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:688: error: `RETCODE' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:688: error: syntax error before "rc"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:695: error: syntax error before ')' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:697: error: `rc' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:697: error: `UWORD' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c: In function `_close_pconn_with_id':
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:710: error: syntax error before ')' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c: In function `odbc_column_lengths':
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:721: error: `result' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:731: error: `SQLINTEGER' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:731: error: syntax error before "len"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:741: error: syntax error before ')' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:758: error: `UWORD' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:759: error: `SQLUSMALLINT' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:760: error: `len' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c: In function `zif_odbc_prepare':
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:832: error: `result' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:833: error: `conn' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:834: error: `RETCODE' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:834: error: syntax error before "rc"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:836: error: `UDWORD' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:843: error: syntax error before ')' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:848: error: syntax error before ')' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:852: error: `rc' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:868: error: `scrollopts' undeclared (first use in this function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c: In function `zif_odbc_execute':
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:928: error: syntax error before "SDWORD"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:928: warning: no semicolon at end of struct or union
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c: At top level:
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:930: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:931: error: syntax error before '*' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:931: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:934: error: syntax error before "sqltype"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:934: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:935: error: syntax error before "nullable"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:935: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:936: error: syntax error before "precision"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:936: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:937: error: syntax error before '*' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:937: error: `result' used prior to declaration
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:937: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:939: error: syntax error before "rc"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:939: error: `rc' used prior to declaration
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:939: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:941: error: `ht' undeclared here (not in a function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:941: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:942: error: syntax error before "switch"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:952: error: syntax error before '->' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:959: error: conflicting types for `result'
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:937: error: previous declaration of `result'
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:959: error: syntax error before ')' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:962: error: syntax error before "if"
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:964: error: syntax error before '->' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:970: error: syntax error before '->' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:973: error: syntax error before '(' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:974: error: conflicting types for `params'
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:931: error: previous declaration of `params'
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:974: error: syntax error before ')' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:979: error: syntax error before '->' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:979: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:980: error: syntax error before '(' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:981: error: syntax error before '->' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:984: error: conflicting types for `otype'
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:933: error: previous declaration of `otype'
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:984: error: `tmp' undeclared here (not in a function)
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:984: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:985: error: syntax error before '(' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:988: error: syntax error before '->' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:988: warning: data definition has no type or storage class
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:989: error: syntax error before '(' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:990: error: syntax error before '->' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:993: error: syntax error before '->' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:995: error: syntax error before '.' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:996: error: syntax error before '.' token
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:1007: error: variable-size type declared outside of any function
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:1007: error: variable-sized object may not be initialized
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:1007: error: conflicting types for `filename'
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:932: error: previous declaration of `filename'
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:1007: warning: data definition has no type or storage class

<SNIPPING THOUSANDS OF LINES>
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:3626: error: invalid type argument of `->'
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:3627: error: invalid type argument of `->'
/var/tmp/portage/php-core-4.3.4-r2/work/php-4.3.4/ext/odbc/php_odbc.c:3628: warning: passing arg 2 of `zend_register_resource' makes pointer from integer without a cast
{standard input}: Assembler messages:
{standard input}:520: Error: symbol `rc' is already defined
{standard input}:526: Error: symbol `rc' is already defined
{standard input}:532: Error: symbol `rc' is already defined
make: *** [ext/odbc/php_odbc.lo] Error 1
make: *** Waiting for unfinished jobs....
 
!!! ERROR: dev-php/php-core-4.3.4-r2 failed.
!!! Function php_src_compile, Line 404, Exitcode 2
!!! compile problem



Reproducible: Always
Steps to Reproduce:
1. emerge php-core
2.
3.

Actual Results:  
It have an horrible error described in details.

Expected Results:  
Should emerge fine.

euler root # emerge info
Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0,
2.4.22-gentoo-r1)
=================================================================
System uname: 2.4.22-gentoo-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -mcpu=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -mcpu=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.rhnet.is/pub/gentoo/
http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3ds X aalib acpi acpi4linux altcolors apache2 apm auctex avi berkdb bonobo
cdr cjk cmucl crypt cups curl directfb doc dvd emacs encode esd ethereal evo
faad fam fbcon firebird flac flash foomaticdb freetds gb gd gd-external gdbm gif
ginac glut gmttria gnome gnomedb gpm gstreamer gtk gtk2 gtkhtml guile hbci
imagemagick imap imlib imlib2 informix innodb irda irmc java javascript jpeg
lcms ldap leim libg++ libgda libwww lids lirc mad mcal mdb memlimit mikmod mmx
mng motif mozaccess mozilla moznocompose moznoirc moznomail mpeg music mysql
ncurses nls odbc oggvorbis openal opengl oss pam pdflib perl png pnp postgres
ppds prelude python qhull quicktime radeon readline sdl slang snmp spell sqlite
sse ssl svga tcltk tcpd tetex tiff transcode truetype usb videos x86 xml xml2
xmms xv zlib video_cards_radeon"
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-04 19:22:38 UTC

*** This bug has been marked as a duplicate of 34007 ***