I am trying to build log4cxx 0.10.0 using ant, but the build fails
because of apr-util compilation errors.  Am I doing something wrong
here?

 

I am using the following environment:

 

    Micosoft Windows XP SP2

    Microsoft Visual C/C++ 6.0 SP 6

    Microsoft Platform SDK Feb. 2003

    Apache Ant 1.7.1

    AntContrib 1.0b3

    CppTasks 1.0b5

    log4cxx 0.10.0

    apr 1.3.3

    apr-util 1.3.4

 

The compilation errors are all from apr_dbd_odbc.c:

 

       [cc] apr_dbd_odbc.c

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(68) : error
C2061: syntax error : identifier 'henv'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(68) : error
C2059: syntax error : ';'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(68) : error
C2513: '/*global*/ ' : no variable declared before '='

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(72) : error
C2146: syntax error : missing ')' before identifier 'rc'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(72) : error
C2081: 'SQLRETURN' : name in formal parameter list illegal

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(72) : error
C2061: syntax error : identifier 'rc'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(72) : error
C2059: syntax error : ';'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(72) : error
C2059: syntax error : ','

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(73) : error
C2059: syntax error : ')'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(106) : error
C2061: syntax error : identifier 'SQLHANDLE'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(118) : error
C2059: syntax error : '}'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(122) : error
C2061: syntax error : identifier 'SQLHANDLE'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(123) : error
C2061: syntax error : identifier 'dbc'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(123) : error
C2059: syntax error : ';'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(130) : error
C2143: syntax error : missing '{' before '*'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(131) : error
C2143: syntax error : missing '{' before '*'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(132) : error
C2143: syntax error : missing '{' before '*'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(133) : error
C2143: syntax error : missing '{' before '*'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(134) : error
C2143: syntax error : missing '{' before '*'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(140) : error
C2059: syntax error : '}'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(154) : error
C2061: syntax error : identifier 'SQLHANDLE'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(155) : error
C2061: syntax error : identifier 'dbc'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(155) : error
C2059: syntax error : ';'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(158) : error
C2059: syntax error : '}'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(161) : error
C2061: syntax error : identifier 'SQLHANDLE'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(163) : error
C2059: syntax error : '}'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(166) : error
C2061: syntax error : identifier 'SQLHANDLE'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(167) : error
C2061: syntax error : identifier 'dbc'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(167) : error
C2059: syntax error : ';'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(173) : error
C2059: syntax error : '}'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(197) : error
C2061: syntax error : identifier 'SQLSMALLINT'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(198) : error
C2059: syntax error : '}'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(207) : error
C2143: syntax error : missing '{' before 'const'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(208) : error
C2065: 'SQL_C_DEFAULT' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(208) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(209) : error
C2065: 'SQL_C_STINYINT' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(209) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(210) : error
C2065: 'SQL_C_UTINYINT' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(210) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(211) : error
C2065: 'SQL_C_SSHORT' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(211) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(212) : error
C2065: 'SQL_C_USHORT' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(212) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(213) : error
C2065: 'SQL_C_SLONG' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(213) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(214) : error
C2065: 'SQL_C_ULONG' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(214) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(215) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(216) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(217) : error
C2065: 'SQL_C_SBIGINT' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(217) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(218) : error
C2065: 'SQL_C_UBIGINT' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(218) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(219) : error
C2065: 'SQL_C_FLOAT' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(219) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(220) : error
C2065: 'SQL_C_DOUBLE' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(220) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(221) : error
C2065: 'SQL_C_CHAR' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(221) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(222) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(223) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(224) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(225) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(226) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(227) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(228) : error
C2065: 'SQL_LONGVARBINARY' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(228) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(229) : error
C2065: 'SQL_LONGVARCHAR' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(229) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(231) : error
C2065: 'SQL_TYPE_NULL' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(231) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(234) : error
C2143: syntax error : missing '{' before 'const'

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(235) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(236) : error
C2065: 'SQL_TINYINT' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(236) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(237) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(238) : error
C2065: 'SQL_SMALLINT' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(238) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(239) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(240) : error
C2065: 'SQL_INTEGER' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(240) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(241) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(242) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(243) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(244) : error
C2065: 'SQL_BIGINT' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(244) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(245) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(246) : error
C2065: 'SQL_FLOAT' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(246) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(247) : error
C2065: 'SQL_DOUBLE' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(247) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(248) : error
C2065: 'SQL_CHAR' : undeclared identifier

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(248) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(249) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(250) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(251) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(252) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(253) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(254) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(255) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(256) : error
C2099: initializer is not a constant

       [cc]
C:\Projects\HEAD\ExtLib\Log4cxx\apr-util\dbd\apr_dbd_odbc.c(256) : fatal
error C1003: error count exceeds 100; stopping compilation

 

Any help wuld be appreciated.

 

Thanks,

 

Moshe

 

Reply via email to