ibm_db 5.4.1 → 5.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1442fe8ba7fad4a5b9d5458adf6e8988a84f4fb2f1c1bb8b855bf773cb6feba1
4
- data.tar.gz: b153cc17d22dcb6c5600e4108068b75c964b287a6409edc4a3bc6c43fa994cec
3
+ metadata.gz: 64bf4ebfa86937d52fb6d1ff87abf63cabf6b3d696b386b61c190e3fe4731842
4
+ data.tar.gz: 982845fcdebb72af189de2a6c4ae919ef16a2fc830340976275c62b7e8cd7087
5
5
  SHA512:
6
- metadata.gz: 228ab54f4bb6ecf3997e2ee66a9d198a40a61b36494da4d92e6c680e95cc782077d8e73a48efd198eebe2ae39604036532d231f1da3641f39a5606379a196d7b
7
- data.tar.gz: 75183b6948628962040cdb9caff0ddca0dfe7549c69fb1b1723187dad41be00d2d96827f92225e43ed339744f3045985f998f378562a8fa283fe01f6e4ed9df3
6
+ metadata.gz: 43f50779d0b202f247d63576263666c6516d96606d2f993f3519ebc8933b585e9f0004faf95dc0ff676ae3abb2febc89270015b12d0f8148e7c9b8267e5682b0
7
+ data.tar.gz: a4402e11047db606ec816e271587631eb79e2f65e7d29263aa6a6ea509b3a86f084b88d7e4c9ea90a5197d9b6edba71033ffd8be4a3d7bddff7b9f28c7862763
data/CHANGES CHANGED
@@ -1,5 +1,14 @@
1
1
  Change Log
2
2
  ==============
3
+ 2024/12/13 (IBM_DB adapter 5.5.1, driver 3.1.1)
4
+ - Support for MAC ARM64
5
+
6
+ 2024/07/10 (IBM_DB adapter 5.5.0, driver 3.1.0)
7
+ - Support for ruby 3.2 and rails 7.1.3.2
8
+
9
+ 2023/10/11 (IBM_DB adapter 5.4.2, driver 3.1.0)
10
+ - config.yml to have Environment variables to specify credentials.
11
+
3
12
  2023/03/29 (IBM_DB adapter 5.4.1, driver 3.1.0)
4
13
  - Download clidriver issue fixed and replaced http links with https.
5
14
 
data/README CHANGED
@@ -1,6 +1,6 @@
1
1
  =====================================================================
2
- README for the IBM_DB Adapter >= 5.0.0 and Driver >= 3.0.5
3
- For ActiveRecord Version >= 5.0.7 (and Rails >= 5.0.7)
2
+ README for the IBM_DB Adapter >= 5.5.0 and Driver >= 3.1.0
3
+ For ActiveRecord Version >= 7.1.x (and Rails >= 7.1.x)
4
4
  =====================================================================
5
5
 
6
6
  Supported Operating Systems
@@ -133,6 +133,7 @@ Testing the IBM_DB Adapter
133
133
  2) Edit the Rakefile to include ibm_db in list of adapters
134
134
  %w( mysql mysql2 postgresql sqlite3 sqlite3_mem firebird db2 oracle sybase openbase ibm_db frontbase jdbcmysql jdbcpostgresql jdbcsqlite3 jdbcderby jdbch2 jdbchsqldb )
135
135
  3) Configure the connection information in test/config.yml for ibm_db
136
+ Set Environment Variables DB2_USER1, DB2_PASSWD1, DB2_DATABASE1, DB2_HOST1, DB2_PORT1 etc... accordingly.
136
137
  4) run the test suite - rake test_ibm_db
137
138
 
138
139
  Running IBM_DB driver test suite
data/ext/Makefile CHANGED
@@ -13,12 +13,12 @@ NULLCMD = :
13
13
  #### Start of system configuration section. ####
14
14
 
15
15
  srcdir = .
16
- topdir = /home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0
16
+ topdir = /Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0
17
17
  hdrdir = $(topdir)
18
- arch_hdrdir = /home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0/x86_64-linux
18
+ arch_hdrdir = /Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/arm64-darwin24
19
19
  PATH_SEPARATOR = :
20
20
  VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
21
- prefix = $(DESTDIR)/home/pnarayanappa/ROR31/ruby_exe
21
+ prefix = $(DESTDIR)/Users/pnarayanappa/ROR32/ruby_exe
22
22
  rubysitearchprefix = $(rubylibprefix)/$(sitearch)
23
23
  rubyarchprefix = $(rubylibprefix)/$(arch)
24
24
  rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
@@ -52,7 +52,7 @@ htmldir = $(docdir)
52
52
  infodir = $(datarootdir)/info
53
53
  docdir = $(datarootdir)/doc/$(PACKAGE)
54
54
  oldincludedir = $(DESTDIR)/usr/include
55
- includedir = $(prefix)/include
55
+ includedir = $(SDKROOT)$(prefix)/include
56
56
  runstatedir = $(localstatedir)/run
57
57
  localstatedir = $(prefix)/var
58
58
  sharedstatedir = $(prefix)/com
@@ -66,57 +66,58 @@ archdir = $(rubyarchdir)
66
66
 
67
67
 
68
68
  CC_WRAPPER =
69
- CC = gcc
70
- CXX = g++
69
+ CC = clang
70
+ CXX = clang++
71
71
  LIBRUBY = $(LIBRUBY_A)
72
72
  LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
73
- LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir)
74
- LIBRUBYARG_STATIC = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static $(MAINLIBS)
73
+ LIBRUBYARG_SHARED =
74
+ LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static -framework CoreFoundation $(MAINLIBS)
75
75
  empty =
76
76
  OUTFLAG = -o $(empty)
77
77
  COUTFLAG = -o $(empty)
78
78
  CSRCFLAG = $(empty)
79
79
 
80
80
  RUBY_EXTCONF_H = unicode_support_version.h
81
- cflags = $(optflags) $(debugflags) $(warnflags)
81
+ cflags = -fdeclspec $(optflags) $(debugflags) $(warnflags)
82
82
  cxxflags =
83
83
  optflags = -O3 -fno-fast-math
84
84
  debugflags = -ggdb3
85
- warnflags = -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef
85
+ warnflags = -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wundef
86
86
  cppflags =
87
- CCDLFLAGS = -fPIC
88
- CFLAGS = $(CCDLFLAGS) $(cflags) $(ARCH_FLAG)
87
+ CCDLFLAGS = -fno-common
88
+ CFLAGS = $(CCDLFLAGS) $(cflags) -pipe $(ARCH_FLAG)
89
89
  INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
90
90
  DEFS =
91
- CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\" -I/home/pnarayanappa/ROR31/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include $(DEFS) $(cppflags)
92
- CXXFLAGS = $(CCDLFLAGS) $(ARCH_FLAG)
93
- ldflags = -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic
94
- dldflags = -Wl,--compress-debug-sections=zlib
91
+ CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\" -I/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags)
92
+ CXXFLAGS = $(CCDLFLAGS) -fdeclspec $(ARCH_FLAG)
93
+ ldflags = -L. -fstack-protector-strong
94
+ dldflags = -Wl,-undefined,dynamic_lookup -bundle_loader '$(BUILTRUBY)'
95
95
  ARCH_FLAG =
96
96
  DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
97
- LDSHARED = $(CC) -shared
98
- LDSHAREDXX = $(CXX) -shared
99
- AR = gcc-ar
97
+ LDSHARED = $(CC) -dynamic -bundle
98
+ LDSHAREDXX = $(CXX) -dynamic -bundle
99
+ AR = /Library/Developer/CommandLineTools/usr/bin/ar
100
100
  EXEEXT =
101
101
 
102
102
  RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
103
- RUBY_SO_NAME = ruby
103
+ RUBY_SO_NAME = ruby.3.2
104
104
  RUBYW_INSTALL_NAME =
105
105
  RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
106
106
  RUBYW_BASE_NAME = rubyw
107
107
  RUBY_BASE_NAME = ruby
108
108
 
109
- arch = x86_64-linux
109
+ arch = arm64-darwin24
110
110
  sitearch = $(arch)
111
- ruby_version = 3.1.0
111
+ ruby_version = 3.2.0
112
112
  ruby = $(bindir)/$(RUBY_BASE_NAME)
113
113
  RUBY = $(ruby)
114
+ BUILTRUBY = $(bindir)/$(RUBY_BASE_NAME)
114
115
  ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h $(RUBY_EXTCONF_H)
115
116
 
116
117
  RM = rm -f
117
118
  RM_RF = rm -fr
118
- RMDIRS = rmdir --ignore-fail-on-non-empty -p
119
- MAKEDIRS = /bin/mkdir -p
119
+ RMDIRS = rmdir -p
120
+ MAKEDIRS = mkdir -p
120
121
  INSTALL = /usr/bin/install -c
121
122
  INSTALL_PROG = $(INSTALL) -m 0755
122
123
  INSTALL_DATA = $(INSTALL) -m 644
@@ -126,8 +127,8 @@ TOUCH = exit >
126
127
  #### End of system configuration section. ####
127
128
 
128
129
  preload =
129
- libpath = . $(libdir) /home/pnarayanappa/ROR31/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib
130
- LIBPATH = -L. -L$(libdir) -Wl,-rpath,$(libdir) -L/home/pnarayanappa/ROR31/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -Wl,-rpath,/home/pnarayanappa/ROR31/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib '-Wl,-R$$ORIGIN/clidriver/lib'
130
+ libpath = . $(libdir) /Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib
131
+ LIBPATH = -L. -L$(libdir) -L/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib
131
132
  DEFFILE =
132
133
 
133
134
  CLEANFILES = mkmf.log
@@ -138,7 +139,7 @@ extout =
138
139
  extout_prefix =
139
140
  target_prefix =
140
141
  LOCAL_LIBS =
141
- LIBS = -ldb2 -lm -lc
142
+ LIBS = -ldb2 -lpthread
142
143
  ORIG_SRCS = ibm_db.c ruby_ibm_db_cli.c
143
144
  SRCS = $(ORIG_SRCS)
144
145
  OBJS = ibm_db.o ruby_ibm_db_cli.o
@@ -147,7 +148,7 @@ LOCAL_HDRS =
147
148
  TARGET = ibm_db
148
149
  TARGET_NAME = ibm_db
149
150
  TARGET_ENTRY = Init_$(TARGET_NAME)
150
- DLLIB = $(TARGET).so
151
+ DLLIB = $(TARGET).bundle
151
152
  EXTSTATIC =
152
153
  STATIC_LIB =
153
154
 
@@ -160,8 +161,9 @@ HDRDIR = $(sitehdrdir)$(target_prefix)
160
161
  ARCHHDRDIR = $(sitearchhdrdir)$(target_prefix)
161
162
  TARGET_SO_DIR =
162
163
  TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
163
- CLEANLIBS = $(TARGET_SO) false
164
- CLEANOBJS = *.o *.bak
164
+ CLEANLIBS = $(TARGET_SO) $(TARGET_SO).dSYM
165
+ CLEANOBJS = $(OBJS) *.bak
166
+ TARGET_SO_DIR_TIMESTAMP = $(TIMESTAMP_DIR)/.sitearchdir.time
165
167
 
166
168
  all: $(DLLIB)
167
169
  static: $(STATIC_LIB)
@@ -187,7 +189,7 @@ distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
187
189
  realclean: distclean
188
190
  install: install-so install-rb
189
191
 
190
- install-so: $(DLLIB) $(TIMESTAMP_DIR)/.sitearchdir.time
192
+ install-so: $(DLLIB) $(TARGET_SO_DIR_TIMESTAMP)
191
193
  $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
192
194
  clean-static::
193
195
  -$(Q)$(RM) $(STATIC_LIB)
@@ -199,7 +201,7 @@ do-install-rb:
199
201
  do-install-rb-default:
200
202
  pre-install-rb-default:
201
203
  @$(NULLCMD)
202
- $(TIMESTAMP_DIR)/.sitearchdir.time:
204
+ $(TARGET_SO_DIR_TIMESTAMP):
203
205
  $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
204
206
  $(Q) $(TOUCH) $@
205
207
 
@@ -261,6 +263,7 @@ $(TARGET_SO): $(OBJS) Makefile
261
263
  $(ECHO) linking shared-object $(DLLIB)
262
264
  -$(Q)$(RM) $(@)
263
265
  $(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
266
+ $(Q) $(POSTLINK)
264
267
 
265
268
 
266
269
 
data/ext/extconf.rb CHANGED
@@ -10,7 +10,7 @@ require 'down'
10
10
  # +----------------------------------------------------------------------+
11
11
  # | Licensed Materials - Property of IBM |
12
12
  # | |
13
- # | (C) Copyright IBM Corporation 2006 - 2016 |
13
+ # | (C) Copyright IBM Corporation 2006 - 2024 |
14
14
  # +----------------------------------------------------------------------+
15
15
 
16
16
  TAR_LONGLINK = '././@LongLink'
@@ -90,8 +90,11 @@ elsif (RUBY_PLATFORM =~ /solaris/i)
90
90
  DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/sunamd32_odbc_cli.tar.gz"
91
91
  end
92
92
  elsif (RUBY_PLATFORM =~ /darwin/i)
93
- if(is64Bit)
94
- puts "Detected platform - MacOS darwin64"
93
+ if (RUBY_PLATFORM =~ /arm64/i)
94
+ puts "Detected platform - MacOS darwin arm64"
95
+ DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/macarm64_odbc_cli.tar.gz"
96
+ elsif(RUBY_PLATFORM =~ /x86_64/i || is64Bit)
97
+ puts "Detected platform - MacOS darwin x86_64"
95
98
  DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/macos64_odbc_cli.tar.gz"
96
99
  else
97
100
  puts "Mac OS 32 bit not supported. Please use an x64 architecture."
@@ -151,11 +154,17 @@ def untarCLIPackage(archive,destination)
151
154
  FileUtils.mkdir_p file, :mode => entry.header.mode, :verbose => false
152
155
  elsif entry.file?
153
156
  FileUtils.rm_rf file if File.directory? file
157
+ if (RUBY_PLATFORM =~ /darwin/i) && (RUBY_PLATFORM =~ /arm64/i) && File.exist?(file)
158
+ FileUtils.chmod 755, file, :verbose => false
159
+ end
154
160
  File.open file, "wb" do |f|
155
161
  f.print entry.read
156
162
  end
157
163
  FileUtils.chmod entry.header.mode, file, :verbose => false
158
164
  elsif entry.header.typeflag == '2' #Symlink!
165
+ if (RUBY_PLATFORM =~ /darwin/i) && (RUBY_PLATFORM =~ /arm64/i) && File.exist?(file)
166
+ File.delete file if File.file? file
167
+ end
159
168
  File.symlink entry.header.linkname, file
160
169
  end
161
170
  end
data/ext/ibm_db.bundle ADDED
Binary file
data/ext/ibm_db.c CHANGED
@@ -2,7 +2,7 @@
2
2
  +----------------------------------------------------------------------+
3
3
  | Licensed Materials - Property of IBM |
4
4
  | |
5
- | (C) Copyright IBM Corporation 2006 - 2022 |
5
+ | (C) Copyright IBM Corporation 2006 - 2024 |
6
6
  +----------------------------------------------------------------------+
7
7
  | Authors: Sushant Koduru, Lynh Nguyen, Kanchana Padmanabhan, |
8
8
  | Dan Scott, Helmut Tessarek, Sam Ruby, Kellen Bombardier, |
@@ -12,7 +12,7 @@
12
12
  +----------------------------------------------------------------------+
13
13
  */
14
14
 
15
- #define MODULE_RELEASE "3.1.0"
15
+ #define MODULE_RELEASE "3.1.1"
16
16
 
17
17
  #ifdef HAVE_CONFIG_H
18
18
  #include "config.h"
@@ -686,8 +686,7 @@ static void _ruby_ibm_db_mark_stmt_struct(stmt_handle *handle)
686
686
  static inline
687
687
  VALUE ibm_Ruby_Thread_Call(rb_blocking_function_t *func, void *data1, rb_unblock_function_t *ubf, void *data2)
688
688
  {
689
- void *(*f)(void*) = (void *(*)(void*))func;
690
- return (VALUE)rb_thread_call_without_gvl(f, data1, ubf, data2);
689
+ return func(data1);
691
690
  }
692
691
 
693
692
 
@@ -11238,7 +11237,7 @@ VALUE ibm_db_server_info(int argc, VALUE *argv, VALUE self)
11238
11237
  rb_scan_args(argc, argv, "1", &connection);
11239
11238
 
11240
11239
 
11241
- if(NIL_P(&connection))
11240
+ if(NIL_P(connection))
11242
11241
  {
11243
11242
  }
11244
11243
  if(&connection == NULL)
data/ext/ibm_db.o CHANGED
Binary file
data/ext/mkmf.log CHANGED
@@ -14,7 +14,8 @@ unicode_support_version.h is:
14
14
 
15
15
  have_library: checking for SQLConnect() in -ldb2... -------------------- yes
16
16
 
17
- LD_LIBRARY_PATH=.:/home/pnarayanappa/ROR31/ruby_exe/lib:/jre/lib:/jre/bin:/lib:/home/pnarayanappa/nodework/clidriver/lib "gcc -o conftest -I/home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0/x86_64-linux -I/home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0/ruby/backward -I/home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0 -I. -I/home/pnarayanappa/ROR31/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef conftest.c -L. -L/home/pnarayanappa/ROR31/ruby_exe/lib -Wl,-rpath,/home/pnarayanappa/ROR31/ruby_exe/lib -L/home/pnarayanappa/ROR31/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -Wl,-rpath,/home/pnarayanappa/ROR31/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/home/pnarayanappa/ROR31/ruby_exe/lib -L/home/pnarayanappa/ROR31/ruby_exe/lib -lruby-static -lz -lpthread -lrt -lrt -ldl -lcrypt -lm -lm -lc"
17
+ DYLD_FALLBACK_LIBRARY_PATH=.:/Users/pnarayanappa/ROR32/ruby_exe/lib "clang -o conftest -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/arm64-darwin24 -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/ruby/backward -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0 -I. -I/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wundef -pipe conftest.c -L. -L/Users/pnarayanappa/ROR32/ruby_exe/lib -L/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -L. -fstack-protector-strong -lruby.3.2-static -framework CoreFoundation -ldl -lobjc -lpthread -lpthread "
18
+ ld: warning: ignoring duplicate libraries: '-lpthread'
18
19
  checked program was:
19
20
  /* begin */
20
21
  1: #include "ruby.h"
@@ -25,17 +26,11 @@ checked program was:
25
26
  6: }
26
27
  /* end */
27
28
 
28
- LD_LIBRARY_PATH=.:/home/pnarayanappa/ROR31/ruby_exe/lib:/jre/lib:/jre/bin:/lib:/home/pnarayanappa/nodework/clidriver/lib "gcc -o conftest -I/home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0/x86_64-linux -I/home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0/ruby/backward -I/home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0 -I. -I/home/pnarayanappa/ROR31/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef conftest.c -L. -L/home/pnarayanappa/ROR31/ruby_exe/lib -Wl,-rpath,/home/pnarayanappa/ROR31/ruby_exe/lib -L/home/pnarayanappa/ROR31/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -Wl,-rpath,/home/pnarayanappa/ROR31/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/home/pnarayanappa/ROR31/ruby_exe/lib -L/home/pnarayanappa/ROR31/ruby_exe/lib -lruby-static -lz -lpthread -lrt -lrt -ldl -lcrypt -lm -ldb2 -lm -lc"
29
- conftest.c: In function ‘t’:
30
- conftest.c:14:57: error: ‘SQLConnect’ undeclared (first use in this function)
31
- int t(void) { void ((*volatile p)()); p = (void ((*)()))SQLConnect; return !p; }
32
- ^~~~~~~~~~
33
- conftest.c:14:57: note: each undeclared identifier is reported only once for each function it appears in
34
- conftest.c: At top level:
35
- cc1: warning: unrecognized command line option ‘-Wno-self-assign’
36
- cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
37
- cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
38
- cc1: warning: unrecognized command line option ‘-Wno-cast-function-type’
29
+ DYLD_FALLBACK_LIBRARY_PATH=.:/Users/pnarayanappa/ROR32/ruby_exe/lib "clang -o conftest -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/arm64-darwin24 -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/ruby/backward -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0 -I. -I/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wundef -pipe conftest.c -L. -L/Users/pnarayanappa/ROR32/ruby_exe/lib -L/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -L. -fstack-protector-strong -lruby.3.2-static -framework CoreFoundation -ldl -lobjc -lpthread -ldb2 -lpthread "
30
+ conftest.c:14:57: error: use of undeclared identifier 'SQLConnect'
31
+ int t(void) { void ((*volatile p)()); p = (void ((*)()))SQLConnect; return !p; }
32
+ ^
33
+ 1 error generated.
39
34
  checked program was:
40
35
  /* begin */
41
36
  1: #include "ruby.h"
@@ -54,7 +49,8 @@ checked program was:
54
49
  14: int t(void) { void ((*volatile p)()); p = (void ((*)()))SQLConnect; return !p; }
55
50
  /* end */
56
51
 
57
- LD_LIBRARY_PATH=.:/home/pnarayanappa/ROR31/ruby_exe/lib:/jre/lib:/jre/bin:/lib:/home/pnarayanappa/nodework/clidriver/lib "gcc -o conftest -I/home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0/x86_64-linux -I/home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0/ruby/backward -I/home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0 -I. -I/home/pnarayanappa/ROR31/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef conftest.c -L. -L/home/pnarayanappa/ROR31/ruby_exe/lib -Wl,-rpath,/home/pnarayanappa/ROR31/ruby_exe/lib -L/home/pnarayanappa/ROR31/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -Wl,-rpath,/home/pnarayanappa/ROR31/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/home/pnarayanappa/ROR31/ruby_exe/lib -L/home/pnarayanappa/ROR31/ruby_exe/lib -lruby-static -lz -lpthread -lrt -lrt -ldl -lcrypt -lm -ldb2 -lm -lc"
52
+ DYLD_FALLBACK_LIBRARY_PATH=.:/Users/pnarayanappa/ROR32/ruby_exe/lib "clang -o conftest -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/arm64-darwin24 -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/ruby/backward -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0 -I. -I/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wundef -pipe conftest.c -L. -L/Users/pnarayanappa/ROR32/ruby_exe/lib -L/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -L. -fstack-protector-strong -lruby.3.2-static -framework CoreFoundation -ldl -lobjc -lpthread -ldb2 -lpthread "
53
+ ld: warning: ignoring duplicate libraries: '-lpthread'
58
54
  checked program was:
59
55
  /* begin */
60
56
  1: #include "ruby.h"
@@ -78,7 +74,7 @@ checked program was:
78
74
 
79
75
  have_header: checking for gil_release_version.h... -------------------- yes
80
76
 
81
- LD_LIBRARY_PATH=.:/home/pnarayanappa/ROR31/ruby_exe/lib:/jre/lib:/jre/bin:/lib:/home/pnarayanappa/nodework/clidriver/lib "gcc -I/home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0/x86_64-linux -I/home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0/ruby/backward -I/home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0 -I. -I/home/pnarayanappa/ROR31/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef -c conftest.c"
77
+ DYLD_FALLBACK_LIBRARY_PATH=.:/Users/pnarayanappa/ROR32/ruby_exe/lib "clang -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/arm64-darwin24 -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/ruby/backward -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0 -I. -I/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wundef -pipe -c conftest.c"
82
78
  checked program was:
83
79
  /* begin */
84
80
  1: #include "ruby.h"
@@ -90,7 +86,7 @@ checked program was:
90
86
 
91
87
  have_header: checking for unicode_support_version.h... -------------------- yes
92
88
 
93
- LD_LIBRARY_PATH=.:/home/pnarayanappa/ROR31/ruby_exe/lib:/jre/lib:/jre/bin:/lib:/home/pnarayanappa/nodework/clidriver/lib "gcc -I/home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0/x86_64-linux -I/home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0/ruby/backward -I/home/pnarayanappa/ROR31/ruby_exe/include/ruby-3.1.0 -I. -I/home/pnarayanappa/ROR31/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef -c conftest.c"
89
+ DYLD_FALLBACK_LIBRARY_PATH=.:/Users/pnarayanappa/ROR32/ruby_exe/lib "clang -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/arm64-darwin24 -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/ruby/backward -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0 -I. -I/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wundef -pipe -c conftest.c"
94
90
  checked program was:
95
91
  /* begin */
96
92
  1: #include "ruby.h"
@@ -208,7 +208,7 @@ int _ruby_ibm_db_SQLForeignKeys_helper(metadata_args *data) {
208
208
 
209
209
  data->stmt_res->is_executing = 1;
210
210
 
211
- if(!NIL_P(data->table_type))
211
+ if(data->table_type != NULL && !NIL_P(*data->table_type))
212
212
  {
213
213
  #ifndef UNICODE_SUPPORT_VERSION_H
214
214
  rc = SQLForeignKeys( (SQLHSTMT) data->stmt_res->hstmt, data->qualifier, data->qualifier_len,
Binary file
data/lib/IBM_DB.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  if(RUBY_PLATFORM =~ /darwin/i)
2
2
  cliPackagePath = File.dirname(__FILE__) + '/clidriver'
3
- if(Dir.exists?(cliPackagePath))
3
+ if(Dir.exist?(cliPackagePath))
4
4
  currentPath = "#{File.expand_path(File.dirname(File.dirname(__FILE__)))}"
5
5
 
6
6
  cmd = "chmod 755 #{currentPath}/lib/ibm_db.bundle "