Closed tomasjura closed 8 years ago
One more patch to compile on cygwin.
--- ext/oci8/oraconf.rb.old 2015-12-16 12:15:04.256368800 +0100
+++ ext/oci8/oraconf.rb 2015-12-16 12:15:07.158024600 +0100
@@ -713,7 +713,7 @@
f.puts("EXPORTS")
open("|nm #{lib_dir}/MSVC/OCI.LIB") do |r|
while line = r.gets
- f.puts($1) if regex =~ line and oci_funcs.include?($1)
+ f.puts($1) if regex =~ line
end
end
end
Thank you! I'll check it later.
I fixed it by 936071ca28f4eb620d58116e523b4ac2109526fb, 677ab253fffa249590646436a3dd33b2122dbf5e and 5571da4084396f9c8567951de8ca4f2b5cb783a4.
Thanks again.
5571da4084396f9c8567951de8ca4f2b5cb783a4 uses _LP64
to decide the printf format of size_t on cygwin 64 because it is safer when the code snippet is reused. FIY _WIN64
is not defined without including windows.h
on cygwin 64 though it is included there.
I had problems is during compiling and linking plthook_win32.c. A command
gem install ruby-oci8
was used for installation.Patch: