rails-sqlserver/tiny_tds — Issue #69: Fix Windows Cross Compile
Author: metaskills
Created: 2011-12-21 12:48:40+00:00
State: open

Running errors.

```
∴ ~/.rbenv/shims/rake cross compile RUBY_CC_VERSION=1.8.7:1.9.2 --trace
** Invoke cross (first_time)
** Execute cross
** Invoke compile (first_time)
** Invoke compile:i386-mingw32 (first_time)
** Invoke compile:tiny_tds:i386-mingw32 (first_time)
** Invoke copy:tiny_tds:i386-mingw32:1.8.7 (first_time)
** Invoke lib/tiny_tds/1.8 (first_time, not_needed)
** Invoke tmp/i386-mingw32/tiny_tds/1.8.7/tiny_tds.so (first_time)
** Invoke tmp/i386-mingw32/tiny_tds/1.8.7/Makefile (first_time)
** Invoke tmp/i386-mingw32/tiny_tds/1.8.7 (first_time)
** Execute tmp/i386-mingw32/tiny_tds/1.8.7
mkdir -p tmp/i386-mingw32/tiny_tds/1.8.7
** Invoke ext/tiny_tds/extconf.rb (first_time, not_needed)
** Invoke tmp/i386-mingw32/tiny_tds/1.8.7/fake.rb (first_time)
** Execute tmp/i386-mingw32/tiny_tds/1.8.7/fake.rb
** Invoke tmp/i386-mingw32/tiny_tds/1.8.7/rbconfig.rb (first_time)
** Invoke /Users/kencollins/.rake-compiler/ruby/ruby-1.8.7-p352/lib/ruby/1.8/i386-mingw32/rbconfig.rb (first_time, not_needed)
** Execute tmp/i386-mingw32/tiny_tds/1.8.7/rbconfig.rb
cp /Users/kencollins/.rake-compiler/ruby/ruby-1.8.7-p352/lib/ruby/1.8/i386-mingw32/rbconfig.rb tmp/i386-mingw32/tiny_tds/1.8.7/rbconfig.rb
** Invoke tmp/i386-mingw32/tiny_tds/1.8.7/mkmf.rb (first_time)
** Invoke /Users/kencollins/.rake-compiler/ruby/ruby-1.8.7-p352/lib/ruby/1.8/mkmf.rb (first_time, not_needed)
** Execute tmp/i386-mingw32/tiny_tds/1.8.7/mkmf.rb
cp /Users/kencollins/.rake-compiler/ruby/ruby-1.8.7-p352/lib/ruby/1.8/mkmf.rb tmp/i386-mingw32/tiny_tds/1.8.7/mkmf.rb
** Execute tmp/i386-mingw32/tiny_tds/1.8.7/Makefile
cd tmp/i386-mingw32/tiny_tds/1.8.7
/Users/kencollins/.rbenv/versions/ree/bin/ruby -I. -rfake ../../../../ext/tiny_tds/extconf.rb --disable-lookup
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... no
-----
libiconv is missing.
-----
*** ../../../../ext/tiny_tds/extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=../../../../ext/tiny_tds
--curdir
--ruby=/Users/kencollins/.rake-compiler/ruby/ruby-1.8.7-p352/bin/ruby
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--with-freetds-dir
--without-freetds-dir
--with-freetds-include
--without-freetds-include=${freetds-dir}/include
--with-freetds-lib
--without-freetds-lib=${freetds-dir}/lib
--with-iconvlib
--without-iconvlib
rake aborted!
Command failed with status (1): [/Users/kencollins/.rbenv/versions/ree/bin/...]
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `create_shell_runner'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-compiler-0.7.9/lib/rake/extensiontask.rb:147:in `define_compile_tasks'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/1.8/fileutils.rb:121:in `chdir'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/1.8/fileutils.rb:121:in `chdir'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `chdir'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-compiler-0.7.9/lib/rake/extensiontask.rb:143:in `define_compile_tasks'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:203:in `call'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:203:in `execute'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `invoke_prerequisites'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `invoke_with_call_chain'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `invoke_prerequisites'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `invoke_with_call_chain'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `invoke_prerequisites'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `invoke_with_call_chain'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `invoke_prerequisites'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `invoke_with_call_chain'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `invoke_prerequisites'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `invoke_with_call_chain'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/kencollins/.rbenv/versions/ree/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
/Users/kencollins/.rbenv/versions/ree/bin/rake:19:in `load'
/Users/kencollins/.rbenv/versions/ree/bin/rake:19
Tasks: TOP => compile => compile:i386-mingw32 => compile:tiny_tds:i386-mingw32 => copy:tiny_tds:i386-mingw32:1.8.7 => tmp/i386-mingw32/tiny_tds/1.8.7/tiny_tds.so => tmp/i386-mingw32/tiny_tds/1.8.7/Makefile
```