Skip to content

Instantly share code, notes, and snippets.

@TomyLobo
Created December 5, 2017 19:20
Show Gist options
  • Save TomyLobo/d7f3143786a2755ff692d21e85536960 to your computer and use it in GitHub Desktop.
Save TomyLobo/d7f3143786a2755ff692d21e85536960 to your computer and use it in GitHub Desktop.
This ran on the prompt that appears if you click "Start Command Prompt with Ruby":
C:\blah\blah>gem install ruby-odbc
Building native extensions. This could take a while...
ERROR: Error installing ruby-odbc:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/ruby-odbc-0.99998/ext
C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20171205-6916-zolkgo.rb extconf.rb
checking for version.h... no
checking for sql.h... yes
checking for sqlext.h... yes
checking for SQLTCHAR in windows.h,sqltypes.h... yes
checking for SQLLEN in windows.h,sqltypes.h... yes
checking for SQLULEN in windows.h,sqltypes.h... yes
checking for odbcinst.h... yes
checking for SQLROWOFFSET in windows.h,sqltypes.h... yes
checking for odbcinst.h... yes
checking for SQLROWSETSIZE in windows.h,sqltypes.h... yes
checking for odbcinst.h... yes
checking for () in -lodbc32... no
checking for () in -lodbccp32... no
checking for () in -luser32... no
creating Makefile
current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/ruby-odbc-0.99998/ext
make "DESTDIR=" clean
current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/ruby-odbc-0.99998/ext
make "DESTDIR="
generating odbc-x64-mingw32.def
compiling init.c
compiling odbc.c
In file included from C:/Ruby24-x64/include/ruby-2.4.0/ruby/win32.h:41:0,
from C:/Ruby24-x64/include/ruby-2.4.0/ruby/defines.h:243,
from C:/Ruby24-x64/include/ruby-2.4.0/ruby/ruby.h:36,
from C:/Ruby24-x64/include/ruby-2.4.0/ruby.h:33,
from odbc.c:21:
C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h [-Wcpp]
#warning Please include winsock2.h before windows.h
^~~~~~~
linking shared-object odbc.so
odbc.o:odbc.c:(.text+0x1ee): undefined reference to `SQLError'
odbc.o:odbc.c:(.text+0x748): undefined reference to `SQLExecute'
odbc.o:odbc.c:(.text+0x818): undefined reference to `SQLDisconnect'
odbc.o:odbc.c:(.text+0x1950): undefined reference to `SQLFetchScroll'
odbc.o:odbc.c:(.text+0x1968): undefined reference to `SQLFetch'
odbc.o:odbc.c:(.text+0x1990): undefined reference to `SQLExecDirect'
odbc.o:odbc.c:(.text+0x19b0): undefined reference to `SQLPrepare'
odbc.o:odbc.c:(.text+0x19ff): undefined reference to `SQLTables'
odbc.o:odbc.c:(.text+0x1a4f): undefined reference to `SQLColumns'
odbc.o:odbc.c:(.text+0x1a8e): undefined reference to `SQLPrimaryKeys'
odbc.o:odbc.c:(.text+0x1ade): undefined reference to `SQLStatistics'
odbc.o:odbc.c:(.text+0x1afc): undefined reference to `SQLGetTypeInfo'
odbc.o:odbc.c:(.text+0x1b71): undefined reference to `SQLForeignKeys'
odbc.o:odbc.c:(.text+0x1bae): undefined reference to `SQLTablePrivileges'
odbc.o:odbc.c:(.text+0x1bee): undefined reference to `SQLProcedures'
odbc.o:odbc.c:(.text+0x1c3f): undefined reference to `SQLProcedureColumns'
odbc.o:odbc.c:(.text+0x1c97): undefined reference to `SQLSpecialColumns'
odbc.o:odbc.c:(.text+0x1ce7): undefined reference to `SQLDriverConnect'
odbc.o:odbc.c:(.text+0x1d2e): undefined reference to `SQLConnect'
odbc.o:odbc.c:(.text+0x1de1): undefined reference to `SQLReadFileDSN'
odbc.o:odbc.c:(.text+0x1f0d): undefined reference to `SQLWriteFileDSN'
odbc.o:odbc.c:(.text+0x1f84): undefined reference to `SQLEndTran'
odbc.o:odbc.c:(.text+0x22c1): undefined reference to `SQLCancel'
odbc.o:odbc.c:(.text+0x23ae): undefined reference to `SQLDescribeParam'
odbc.o:odbc.c:(.text+0x24da): undefined reference to `SQLNumParams'
odbc.o:odbc.c:(.text+0x2eda): undefined reference to `SQLAllocStmt'
odbc.o:odbc.c:(.text+0x2fb9): undefined reference to `SQLSetEnvAttr'
odbc.o:odbc.c:(.text+0x300b): undefined reference to `SQLGetEnvAttr'
odbc.o:odbc.c:(.text+0x30de): undefined reference to `SQLRowCount'
odbc.o:odbc.c:(.text+0x4c25): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x4cc0): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x4d58): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x4dd7): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x4e54): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x4ec8): more undefined references to `SQLColAttributes' follow
odbc.o:odbc.c:(.text+0x5345): undefined reference to `SQLConfigDataSource'
odbc.o:odbc.c:(.text+0x58d3): undefined reference to `SQLError'
odbc.o:odbc.c:(.text+0x5a32): undefined reference to `SQLGetData'
odbc.o:odbc.c:(.text+0x5f2d): undefined reference to `SQLGetData'
odbc.o:odbc.c:(.text+0x6343): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x640f): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x6594): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x668d): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x71e3): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x727f): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x72c6): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x7358): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x738d): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x7504): undefined reference to `SQLNumResultCols'
odbc.o:odbc.c:(.text+0x77e2): undefined reference to `SQLFreeEnv'
odbc.o:odbc.c:(.text+0x78cb): undefined reference to `SQLFreeConnect'
odbc.o:odbc.c:(.text+0x790c): undefined reference to `SQLFreeConnect'
odbc.o:odbc.c:(.text+0x79f9): undefined reference to `SQLNumParams'
odbc.o:odbc.c:(.text+0x7af9): undefined reference to `SQLNumResultCols'
odbc.o:odbc.c:(.text+0x7b4e): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x7d51): undefined reference to `SQLMoreResults'
odbc.o:odbc.c:(.text+0x7eea): undefined reference to `SQLAllocStmt'
odbc.o:odbc.c:(.text+0x852a): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x8681): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x86e6): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x87e1): undefined reference to `SQLAllocStmt'
odbc.o:odbc.c:(.text+0x8912): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x8984): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x89e1): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x8a19): undefined reference to `SQLAllocStmt'
odbc.o:odbc.c:(.text+0x8dcd): undefined reference to `SQLFreeConnect'
odbc.o:odbc.c:(.text+0x9733): undefined reference to `SQLAllocEnv'
odbc.o:odbc.c:(.text+0x9868): undefined reference to `SQLAllocConnect'
odbc.o:odbc.c:(.text+0x9a4d): undefined reference to `SQLFreeConnect'
odbc.o:odbc.c:(.text+0x9bdc): undefined reference to `SQLAllocConnect'
odbc.o:odbc.c:(.text+0x9cd5): undefined reference to `SQLAllocConnect'
odbc.o:odbc.c:(.text+0x9da9): undefined reference to `SQLFreeConnect'
odbc.o:odbc.c:(.text+0x9ee5): undefined reference to `SQLDrivers'
odbc.o:odbc.c:(.text+0xa1e5): undefined reference to `SQLDataSources'
odbc.o:odbc.c:(.text+0xa41f): undefined reference to `SQLSetCursorName'
odbc.o:odbc.c:(.text+0xa4b8): undefined reference to `SQLGetCursorName'
odbc.o:odbc.c:(.text+0xa729): undefined reference to `SQLGetInfo'
odbc.o:odbc.c:(.text+0xa7a0): undefined reference to `SQLGetInfo'
odbc.o:odbc.c:(.text+0xa8e7): undefined reference to `SQLGetInfo'
odbc.o:odbc.c:(.text+0xacef): undefined reference to `SQLBindParameter'
odbc.o:odbc.c:(.text+0xb3a6): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0xb3d7): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0xb48c): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0xb57b): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0xb5ea): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0xb9ef): undefined reference to `SQLSetStmtOption'
odbc.o:odbc.c:(.text+0xbb1d): undefined reference to `SQLGetConnectOption'
odbc.o:odbc.c:(.text+0xbc19): undefined reference to `SQLSetConnectOption'
odbc.o:odbc.c:(.text+0xbce2): undefined reference to `SQLGetStmtOption'
odbc.o:odbc.c:(.text+0x714): undefined reference to `SQLCancel'
odbc.o:odbc.c:(.text+0x724): undefined reference to `SQLCancel'
odbc.o:odbc.c:(.text+0x734): undefined reference to `SQLCancel'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:259: odbc.so] Error 1
make failed, exit code 2
Gem files will remain installed in C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/ruby-odbc-0.99998 for inspection.
Results logged to C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/ruby-odbc-0.99998/gem_make.out
current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/ruby-odbc-0.99998/ext
C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20171205-6916-zolkgo.rb extconf.rb
checking for version.h... no
checking for sql.h... yes
checking for sqlext.h... yes
checking for SQLTCHAR in windows.h,sqltypes.h... yes
checking for SQLLEN in windows.h,sqltypes.h... yes
checking for SQLULEN in windows.h,sqltypes.h... yes
checking for odbcinst.h... yes
checking for SQLROWOFFSET in windows.h,sqltypes.h... yes
checking for odbcinst.h... yes
checking for SQLROWSETSIZE in windows.h,sqltypes.h... yes
checking for odbcinst.h... yes
checking for () in -lodbc32... no
checking for () in -lodbccp32... no
checking for () in -luser32... no
creating Makefile
current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/ruby-odbc-0.99998/ext
make "DESTDIR=" clean
current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/ruby-odbc-0.99998/ext
make "DESTDIR="
generating odbc-x64-mingw32.def
compiling init.c
compiling odbc.c
In file included from C:/Ruby24-x64/include/ruby-2.4.0/ruby/win32.h:41:0,
from C:/Ruby24-x64/include/ruby-2.4.0/ruby/defines.h:243,
from C:/Ruby24-x64/include/ruby-2.4.0/ruby/ruby.h:36,
from C:/Ruby24-x64/include/ruby-2.4.0/ruby.h:33,
from odbc.c:21:
C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h [-Wcpp]
#warning Please include winsock2.h before windows.h
^~~~~~~
linking shared-object odbc.so
odbc.o:odbc.c:(.text+0x1ee): undefined reference to `SQLError'
odbc.o:odbc.c:(.text+0x748): undefined reference to `SQLExecute'
odbc.o:odbc.c:(.text+0x818): undefined reference to `SQLDisconnect'
odbc.o:odbc.c:(.text+0x1950): undefined reference to `SQLFetchScroll'
odbc.o:odbc.c:(.text+0x1968): undefined reference to `SQLFetch'
odbc.o:odbc.c:(.text+0x1990): undefined reference to `SQLExecDirect'
odbc.o:odbc.c:(.text+0x19b0): undefined reference to `SQLPrepare'
odbc.o:odbc.c:(.text+0x19ff): undefined reference to `SQLTables'
odbc.o:odbc.c:(.text+0x1a4f): undefined reference to `SQLColumns'
odbc.o:odbc.c:(.text+0x1a8e): undefined reference to `SQLPrimaryKeys'
odbc.o:odbc.c:(.text+0x1ade): undefined reference to `SQLStatistics'
odbc.o:odbc.c:(.text+0x1afc): undefined reference to `SQLGetTypeInfo'
odbc.o:odbc.c:(.text+0x1b71): undefined reference to `SQLForeignKeys'
odbc.o:odbc.c:(.text+0x1bae): undefined reference to `SQLTablePrivileges'
odbc.o:odbc.c:(.text+0x1bee): undefined reference to `SQLProcedures'
odbc.o:odbc.c:(.text+0x1c3f): undefined reference to `SQLProcedureColumns'
odbc.o:odbc.c:(.text+0x1c97): undefined reference to `SQLSpecialColumns'
odbc.o:odbc.c:(.text+0x1ce7): undefined reference to `SQLDriverConnect'
odbc.o:odbc.c:(.text+0x1d2e): undefined reference to `SQLConnect'
odbc.o:odbc.c:(.text+0x1de1): undefined reference to `SQLReadFileDSN'
odbc.o:odbc.c:(.text+0x1f0d): undefined reference to `SQLWriteFileDSN'
odbc.o:odbc.c:(.text+0x1f84): undefined reference to `SQLEndTran'
odbc.o:odbc.c:(.text+0x22c1): undefined reference to `SQLCancel'
odbc.o:odbc.c:(.text+0x23ae): undefined reference to `SQLDescribeParam'
odbc.o:odbc.c:(.text+0x24da): undefined reference to `SQLNumParams'
odbc.o:odbc.c:(.text+0x2eda): undefined reference to `SQLAllocStmt'
odbc.o:odbc.c:(.text+0x2fb9): undefined reference to `SQLSetEnvAttr'
odbc.o:odbc.c:(.text+0x300b): undefined reference to `SQLGetEnvAttr'
odbc.o:odbc.c:(.text+0x30de): undefined reference to `SQLRowCount'
odbc.o:odbc.c:(.text+0x4c25): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x4cc0): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x4d58): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x4dd7): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x4e54): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x4ec8): more undefined references to `SQLColAttributes' follow
odbc.o:odbc.c:(.text+0x5345): undefined reference to `SQLConfigDataSource'
odbc.o:odbc.c:(.text+0x58d3): undefined reference to `SQLError'
odbc.o:odbc.c:(.text+0x5a32): undefined reference to `SQLGetData'
odbc.o:odbc.c:(.text+0x5f2d): undefined reference to `SQLGetData'
odbc.o:odbc.c:(.text+0x6343): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x640f): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x6594): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x668d): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x71e3): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x727f): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x72c6): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x7358): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x738d): undefined reference to `SQLColAttributes'
odbc.o:odbc.c:(.text+0x7504): undefined reference to `SQLNumResultCols'
odbc.o:odbc.c:(.text+0x77e2): undefined reference to `SQLFreeEnv'
odbc.o:odbc.c:(.text+0x78cb): undefined reference to `SQLFreeConnect'
odbc.o:odbc.c:(.text+0x790c): undefined reference to `SQLFreeConnect'
odbc.o:odbc.c:(.text+0x79f9): undefined reference to `SQLNumParams'
odbc.o:odbc.c:(.text+0x7af9): undefined reference to `SQLNumResultCols'
odbc.o:odbc.c:(.text+0x7b4e): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x7d51): undefined reference to `SQLMoreResults'
odbc.o:odbc.c:(.text+0x7eea): undefined reference to `SQLAllocStmt'
odbc.o:odbc.c:(.text+0x852a): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x8681): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x86e6): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x87e1): undefined reference to `SQLAllocStmt'
odbc.o:odbc.c:(.text+0x8912): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x8984): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x89e1): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0x8a19): undefined reference to `SQLAllocStmt'
odbc.o:odbc.c:(.text+0x8dcd): undefined reference to `SQLFreeConnect'
odbc.o:odbc.c:(.text+0x9733): undefined reference to `SQLAllocEnv'
odbc.o:odbc.c:(.text+0x9868): undefined reference to `SQLAllocConnect'
odbc.o:odbc.c:(.text+0x9a4d): undefined reference to `SQLFreeConnect'
odbc.o:odbc.c:(.text+0x9bdc): undefined reference to `SQLAllocConnect'
odbc.o:odbc.c:(.text+0x9cd5): undefined reference to `SQLAllocConnect'
odbc.o:odbc.c:(.text+0x9da9): undefined reference to `SQLFreeConnect'
odbc.o:odbc.c:(.text+0x9ee5): undefined reference to `SQLDrivers'
odbc.o:odbc.c:(.text+0xa1e5): undefined reference to `SQLDataSources'
odbc.o:odbc.c:(.text+0xa41f): undefined reference to `SQLSetCursorName'
odbc.o:odbc.c:(.text+0xa4b8): undefined reference to `SQLGetCursorName'
odbc.o:odbc.c:(.text+0xa729): undefined reference to `SQLGetInfo'
odbc.o:odbc.c:(.text+0xa7a0): undefined reference to `SQLGetInfo'
odbc.o:odbc.c:(.text+0xa8e7): undefined reference to `SQLGetInfo'
odbc.o:odbc.c:(.text+0xacef): undefined reference to `SQLBindParameter'
odbc.o:odbc.c:(.text+0xb3a6): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0xb3d7): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0xb48c): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0xb57b): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0xb5ea): undefined reference to `SQLFreeStmt'
odbc.o:odbc.c:(.text+0xb9ef): undefined reference to `SQLSetStmtOption'
odbc.o:odbc.c:(.text+0xbb1d): undefined reference to `SQLGetConnectOption'
odbc.o:odbc.c:(.text+0xbc19): undefined reference to `SQLSetConnectOption'
odbc.o:odbc.c:(.text+0xbce2): undefined reference to `SQLGetStmtOption'
odbc.o:odbc.c:(.text+0x714): undefined reference to `SQLCancel'
odbc.o:odbc.c:(.text+0x724): undefined reference to `SQLCancel'
odbc.o:odbc.c:(.text+0x734): undefined reference to `SQLCancel'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:259: odbc.so] Error 1
make failed, exit code 2
have_header: checking for version.h... -------------------- no
"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe conftest.c -L. -LC:/Ruby24-x64/lib -L. -pipe -lx64-msvcrt-ruby240 -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char **argv)
6: {
7: return 0;
8: }
/* end */
"x86_64-w64-mingw32-gcc -E -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe conftest.c -o conftest.i"
conftest.c:5:10: fatal error: version.h: No such file or directory
#include <version.h>
^~~~~~~~~~~
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <version.h>
/* end */
--------------------
have_header: checking for sql.h... -------------------- yes
"x86_64-w64-mingw32-gcc -E -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <sql.h>
/* end */
--------------------
have_header: checking for sqlext.h... -------------------- yes
"x86_64-w64-mingw32-gcc -E -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <sqlext.h>
/* end */
--------------------
have_type: checking for SQLTCHAR in windows.h,sqltypes.h... -------------------- yes
"x86_64-w64-mingw32-gcc -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <windows.h>
6: #include <sqltypes.h>
7:
8: /*top*/
9: typedef SQLTCHAR conftest_type;
10: int conftestval[sizeof(conftest_type)?1:-1];
/* end */
--------------------
have_type: checking for SQLLEN in windows.h,sqltypes.h... -------------------- yes
"x86_64-w64-mingw32-gcc -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <windows.h>
6: #include <sqltypes.h>
7:
8: /*top*/
9: typedef SQLLEN conftest_type;
10: int conftestval[sizeof(conftest_type)?1:-1];
/* end */
--------------------
have_type: checking for SQLULEN in windows.h,sqltypes.h... -------------------- yes
"x86_64-w64-mingw32-gcc -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <windows.h>
6: #include <sqltypes.h>
7:
8: /*top*/
9: typedef SQLULEN conftest_type;
10: int conftestval[sizeof(conftest_type)?1:-1];
/* end */
--------------------
have_header: checking for odbcinst.h... -------------------- yes
"x86_64-w64-mingw32-gcc -E -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <odbcinst.h>
/* end */
--------------------
have_type: checking for SQLROWOFFSET in windows.h,sqltypes.h... -------------------- yes
"x86_64-w64-mingw32-gcc -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <windows.h>
6: #include <sqltypes.h>
7:
8: /*top*/
9: typedef SQLROWOFFSET conftest_type;
10: int conftestval[sizeof(conftest_type)?1:-1];
/* end */
--------------------
have_header: checking for odbcinst.h... -------------------- yes
"x86_64-w64-mingw32-gcc -E -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <odbcinst.h>
/* end */
--------------------
have_type: checking for SQLROWSETSIZE in windows.h,sqltypes.h... -------------------- yes
"x86_64-w64-mingw32-gcc -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <windows.h>
6: #include <sqltypes.h>
7:
8: /*top*/
9: typedef SQLROWSETSIZE conftest_type;
10: int conftestval[sizeof(conftest_type)?1:-1];
/* end */
--------------------
have_header: checking for odbcinst.h... -------------------- yes
"x86_64-w64-mingw32-gcc -E -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <odbcinst.h>
/* end */
--------------------
have_library: checking for () in -lodbc32... -------------------- no
"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe conftest.c -L. -LC:/Ruby24-x64/lib -L. -pipe -lx64-msvcrt-ruby240 -lodbc32 -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
conftest.c: In function 't':
conftest.c:16:57: error: expected expression before ';' token
int t(void) { void ((*volatile p)()); p = (void ((*)())); return !p; }
^
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: extern int t(void);
8: int main(int argc, char **argv)
9: {
10: if (argc > 1000000) {
11: printf("%p", &t);
12: }
13:
14: return 0;
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)())); return !p; }
/* end */
"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe conftest.c -L. -LC:/Ruby24-x64/lib -L. -pipe -lx64-msvcrt-ruby240 -lodbc32 -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
conftest.c:16:14: error: expected identifier or '(' before ')' token
extern void ();
^
conftest.c: In function 't':
conftest.c:17:16: error: expected expression before ')' token
int t(void) { (); return 0; }
^
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: extern int t(void);
8: int main(int argc, char **argv)
9: {
10: if (argc > 1000000) {
11: printf("%p", &t);
12: }
13:
14: return 0;
15: }
16: extern void ();
17: int t(void) { (); return 0; }
/* end */
--------------------
have_library: checking for () in -lodbccp32... -------------------- no
"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe conftest.c -L. -LC:/Ruby24-x64/lib -L. -pipe -lx64-msvcrt-ruby240 -lodbccp32 -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
conftest.c: In function 't':
conftest.c:16:57: error: expected expression before ';' token
int t(void) { void ((*volatile p)()); p = (void ((*)())); return !p; }
^
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: extern int t(void);
8: int main(int argc, char **argv)
9: {
10: if (argc > 1000000) {
11: printf("%p", &t);
12: }
13:
14: return 0;
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)())); return !p; }
/* end */
"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe conftest.c -L. -LC:/Ruby24-x64/lib -L. -pipe -lx64-msvcrt-ruby240 -lodbccp32 -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
conftest.c:16:14: error: expected identifier or '(' before ')' token
extern void ();
^
conftest.c: In function 't':
conftest.c:17:16: error: expected expression before ')' token
int t(void) { (); return 0; }
^
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: extern int t(void);
8: int main(int argc, char **argv)
9: {
10: if (argc > 1000000) {
11: printf("%p", &t);
12: }
13:
14: return 0;
15: }
16: extern void ();
17: int t(void) { (); return 0; }
/* end */
--------------------
have_library: checking for () in -luser32... -------------------- no
"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe conftest.c -L. -LC:/Ruby24-x64/lib -L. -pipe -lx64-msvcrt-ruby240 -luser32 -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
conftest.c: In function 't':
conftest.c:16:57: error: expected expression before ';' token
int t(void) { void ((*volatile p)()); p = (void ((*)())); return !p; }
^
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: extern int t(void);
8: int main(int argc, char **argv)
9: {
10: if (argc > 1000000) {
11: printf("%p", &t);
12: }
13:
14: return 0;
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)())); return !p; }
/* end */
"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby24-x64/include/ruby-2.4.0/x64-mingw32 -IC:/Ruby24-x64/include/ruby-2.4.0/ruby/backward -IC:/Ruby24-x64/include/ruby-2.4.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe conftest.c -L. -LC:/Ruby24-x64/lib -L. -pipe -lx64-msvcrt-ruby240 -luser32 -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
conftest.c:16:14: error: expected identifier or '(' before ')' token
extern void ();
^
conftest.c: In function 't':
conftest.c:17:16: error: expected expression before ')' token
int t(void) { (); return 0; }
^
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: extern int t(void);
8: int main(int argc, char **argv)
9: {
10: if (argc > 1000000) {
11: printf("%p", &t);
12: }
13:
14: return 0;
15: }
16: extern void ();
17: int t(void) { (); return 0; }
/* end */
--------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment