[erlang-bugs] R12B-5 odbc build failure on MacOSX 10.3

Mikael Pettersson <>
Fri Nov 7 22:07:36 CET 2008


gcc  -g -O2 -I. -I/usr/lib/include -I/home/mikpe/macosx/otp_src_R12B-5/lib/erl_interface/include -DUNIX -o ../priv/obj/powerpc-apple-darwin7.9.0/odbcserver.o -c odbcserver.c
In file included from odbcserver.c:122:
odbcserver.h:124: error: expected specifier-qualifier-list before 'SQLLEN'
odbcserver.c: In function 'db_select_count':
odbcserver.c:619: error: 'SQLLEN' undeclared (first use in this function)
odbcserver.c:619: error: (Each undeclared identifier is reported only once
odbcserver.c:619: error: for each function it appears in.)
odbcserver.c:619: error: expected ';' before 'num_of_rows'
odbcserver.c:656: error: 'num_of_rows' undeclared (first use in this function)
odbcserver.c: In function 'db_describe_table':
odbcserver.c:850: error: 'SQLLEN' undeclared (first use in this function)
odbcserver.c:850: error: expected ';' before 'size'
odbcserver.c:891: error: 'size' undeclared (first use in this function)
odbcserver.c: In function 'encode_result':
odbcserver.c:976: error: 'SQLLEN' undeclared (first use in this function)
odbcserver.c:976: error: expected ';' before 'RowCountPtr'
odbcserver.c:999: error: 'RowCountPtr' undeclared (first use in this function)
odbcserver.c: In function 'encode_out_params':
odbcserver.c:1083: error: 'col_type' has no member named 'len'
odbcserver.c:1084: error: 'col_type' has no member named 'strlen_or_indptr'
odbcserver.c:1090: error: 'col_type' has no member named 'len'
odbcserver.c: In function 'encode_column_name_list':
odbcserver.c:1157: error: 'SQLLEN' undeclared (first use in this function)
odbcserver.c:1157: error: expected ';' before 'size'
odbcserver.c:1169: error: 'size' undeclared (first use in this function)
odbcserver.c:1184: error: 'col_type' has no member named 'len'
odbcserver.c:1186: error: 'col_type' has no member named 'len'
odbcserver.c:1197: error: 'col_type' has no member named 'len'
odbcserver.c:1198: error: 'col_type' has no member named 'strlen_or_indptr'
odbcserver.c:1205: error: 'col_type' has no member named 'len'
odbcserver.c: In function 'encode_column_dyn':
odbcserver.c:1347: error: 'col_type' has no member named 'len'
odbcserver.c:1348: error: 'col_type' has no member named 'strlen_or_indptr'
odbcserver.c: In function 'decode_params':
odbcserver.c:1497: error: 'col_type' has no member named 'len'
odbcserver.c:1498: error: 'col_type' has no member named 'strlen_or_indptr_array'
odbcserver.c: In function 'connect_to_erlang':
odbcserver.c:1625: error: storage size of 'sin' isn't known
odbcserver.c: In function 'free_params':
odbcserver.c:1887: error: 'col_type' has no member named 'strlen_or_indptr_array'
odbcserver.c:1888: error: 'col_type' has no member named 'strlen_or_indptr_array'
odbcserver.c: In function 'init_param_column':
odbcserver.c:1969: error: 'col_type' has no member named 'strlen_or_indptr'
odbcserver.c:1970: error: 'col_type' has no member named 'strlen_or_indptr_array'
odbcserver.c:1977: error: 'col_type' has no member named 'len'
odbcserver.c:1980: error: 'col_type' has no member named 'len'
odbcserver.c:1985: error: 'col_type' has no member named 'len'
odbcserver.c:1988: error: 'col_type' has no member named 'len'
odbcserver.c:1993: error: 'col_type' has no member named 'len'
odbcserver.c:1996: error: 'col_type' has no member named 'len'
odbcserver.c:2010: error: 'col_type' has no member named 'len'
odbcserver.c:2013: error: 'col_type' has no member named 'len'
odbcserver.c:2015: error: 'col_type' has no member named 'strlen_or_indptr_array'
odbcserver.c:2016: error: 'SQLLEN' undeclared (first use in this function)
odbcserver.c:2016: error: expected expression before ')' token
odbcserver.c:2019: error: 'col_type' has no member named 'len'
odbcserver.c:2031: error: 'col_type' has no member named 'len'
odbcserver.c:2034: error: 'col_type' has no member named 'strlen_or_indptr_array'
odbcserver.c:2035: error: expected expression before ')' token
odbcserver.c:2038: error: 'col_type' has no member named 'len'
odbcserver.c:2044: error: 'col_type' has no member named 'len'
odbcserver.c:2048: error: 'col_type' has no member named 'len'
odbcserver.c:2053: error: 'col_type' has no member named 'len'
odbcserver.c:2056: error: 'col_type' has no member named 'len'
odbcserver.c:2061: error: 'col_type' has no member named 'len'
odbcserver.c:2064: error: 'col_type' has no member named 'len'
odbcserver.c:2069: error: 'col_type' has no member named 'len'
odbcserver.c:2070: error: 'col_type' has no member named 'len'
odbcserver.c:2072: error: 'col_type' has no member named 'len'
odbcserver.c: In function 'map_dec_num_2_c_column':
odbcserver.c:2148: error: 'col_type' has no member named 'len'
odbcserver.c:2151: error: 'col_type' has no member named 'len'
odbcserver.c:2155: error: 'col_type' has no member named 'len'
odbcserver.c:2158: error: 'col_type' has no member named 'len'
odbcserver.c: In function 'map_sql_2_c_column':
odbcserver.c:2178: error: 'col_type' has no member named 'len'
odbcserver.c:2182: error: 'col_type' has no member named 'strlen_or_indptr'
odbcserver.c:2188: error: 'col_type' has no member named 'strlen_or_indptr'
odbcserver.c:2193: error: 'col_type' has no member named 'len'
odbcserver.c:2195: error: 'col_type' has no member named 'strlen_or_indptr'
odbcserver.c:2200: error: 'col_type' has no member named 'len'
odbcserver.c:2202: error: 'col_type' has no member named 'strlen_or_indptr'
odbcserver.c:2207: error: 'col_type' has no member named 'len'
odbcserver.c:2210: error: 'col_type' has no member named 'strlen_or_indptr'
odbcserver.c:2213: error: 'col_type' has no member named 'len'
odbcserver.c:2215: error: 'col_type' has no member named 'strlen_or_indptr'
odbcserver.c:2218: error: 'col_type' has no member named 'len'
odbcserver.c:2220: error: 'col_type' has no member named 'strlen_or_indptr'
odbcserver.c: In function 'bind_parameter_arrays':
odbcserver.c:2284: error: 'col_type' has no member named 'len'
odbcserver.c:2285: error: 'col_type' has no member named 'strlen_or_indptr_array'
odbcserver.c: In function 'retrive_binary_data':
odbcserver.c:2325: error: 'col_type' has no member named 'len'
odbcserver.c:2329: error: 'col_type' has no member named 'strlen_or_indptr'
odbcserver.c:2336: error: 'col_type' has no member named 'len'
odbcserver.c:2337: error: 'col_type' has no member named 'len'
odbcserver.c:2339: error: 'col_type' has no member named 'len'
odbcserver.c:2344: error: 'col_type' has no member named 'strlen_or_indptr'
make[4]: *** [../priv/obj/powerpc-apple-darwin7.9.0/odbcserver.o] Error 1
make[4]: Leaving directory `/Users/mikpeadm/otp_src_R12B-5/lib/odbc/c_src'
make[3]: *** [opt] Error 2
make[3]: Leaving directory `/Users/mikpeadm/otp_src_R12B-5/lib/odbc/c_src'
make[2]: *** [opt] Error 2
make[2]: Leaving directory `/Users/mikpeadm/otp_src_R12B-5/lib/odbc'
make[1]: *** [opt] Error 2
make[1]: Leaving directory `/Users/mikpeadm/otp_src_R12B-5/lib'
make: *** [libs] Error 2

I don't really care if it builds odbc or not, but if it can't
build it ./configure should create a SKIP file there so the
entire build doesn't break.



More information about the erlang-bugs mailing list