· 6 years ago · Oct 09, 2019, 08:16 PM
1root@vps-60 []# /opt/plesk/php/7.2/bin/pecl install sqlsrv
2downloading sqlsrv-5.6.1.tgz ...
3Starting to download sqlsrv-5.6.1.tgz (183,396 bytes)
4.......................................done: 183,396 bytes
534 source files, building
6running: phpize
7Configuring for:
8PHP Api Version: 20100412
9Zend Module Api No: 20100525
10Zend Extension Api No: 220100525
11building in /tmp/pear-build-bunadvTsyw1/sqlsrv-5.6.1
12running: /tmp/sqlsrv/configure --with-php-config=/usr/bin/php-config
13checking for grep that handles long lines and -e... /usr/bin/grep
14checking for egrep... /usr/bin/grep -E
15checking for a sed that does not truncate output... /usr/bin/sed
16checking for cc... cc
17checking whether the C compiler works... yes
18checking for C compiler default output file name... a.out
19checking for suffix of executables...
20checking whether we are cross compiling... no
21checking for suffix of object files... o
22checking whether we are using the GNU C compiler... yes
23checking whether cc accepts -g... yes
24checking for cc option to accept ISO C89... none needed
25checking how to run the C preprocessor... cc -E
26checking for icc... no
27checking for suncc... no
28checking whether cc understands -c and -o together... yes
29checking for system library directory... lib
30checking if compiler supports -R... no
31checking if compiler supports -Wl,-rpath,... yes
32checking build system type... x86_64-unknown-linux-gnu
33checking host system type... x86_64-unknown-linux-gnu
34checking target system type... x86_64-unknown-linux-gnu
35checking for PHP prefix... /usr
36checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
37checking for PHP extension directory... /usr/lib64/php/modules
38checking for PHP installed headers prefix... /usr/include/php
39checking if debug is enabled... no
40checking if zts is enabled... no
41checking for re2c... no
42configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
43checking for gawk... gawk
44checking whether to enable sqlsrv functions... yes, shared
45checking for SQLSRV headers... /tmp/sqlsrv/shared/
46checking for g++... g++
47checking whether we are using the GNU C++ compiler... yes
48checking whether g++ accepts -g... yes
49checking how to run the C++ preprocessor... g++ -E
50checking how to print strings... printf
51checking for a sed that does not truncate output... (cached) /usr/bin/sed
52checking for fgrep... /usr/bin/grep -F
53checking for ld used by cc... /usr/bin/ld
54checking if the linker (/usr/bin/ld) is GNU ld... yes
55checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
56checking the name lister (/usr/bin/nm -B) interface... BSD nm
57checking whether ln -s works... yes
58checking the maximum length of command line arguments... 1572864
59checking whether the shell understands some XSI constructs... yes
60checking whether the shell understands "+="... yes
61checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
62checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
63checking for /usr/bin/ld option to reload object files... -r
64checking for objdump... objdump
65checking how to recognize dependent libraries... pass_all
66checking for dlltool... no
67checking how to associate runtime and link libraries... printf %s\n
68checking for ar... ar
69checking for archiver @FILE support... @
70checking for strip... strip
71checking for ranlib... ranlib
72checking for gawk... (cached) gawk
73checking command to parse /usr/bin/nm -B output from cc object... ok
74checking for sysroot... no
75checking for mt... no
76checking if : is a manifest tool... no
77checking for ANSI C header files... yes
78checking for sys/types.h... yes
79checking for sys/stat.h... yes
80checking for stdlib.h... yes
81checking for string.h... yes
82checking for memory.h... yes
83checking for strings.h... yes
84checking for inttypes.h... yes
85checking for stdint.h... yes
86checking for unistd.h... yes
87checking for dlfcn.h... yes
88checking for objdir... .libs
89checking if cc supports -fno-rtti -fno-exceptions... no
90checking for cc option to produce PIC... -fPIC -DPIC
91checking if cc PIC flag -fPIC -DPIC works... yes
92checking if cc static flag -static works... no
93checking if cc supports -c -o file.o... yes
94checking if cc supports -c -o file.o... (cached) yes
95checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
96checking whether -lc should be explicitly linked in... no
97checking dynamic linker characteristics... GNU/Linux ld.so
98checking how to hardcode library paths into programs... immediate
99checking whether stripping libraries is possible... yes
100checking if libtool supports shared libraries... yes
101checking whether to build shared libraries... yes
102checking whether to build static libraries... no
103checking how to run the C++ preprocessor... g++ -E
104checking for ld used by g++... /usr/bin/ld -m elf_x86_64
105checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
106checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
107checking for g++ option to produce PIC... -fPIC -DPIC
108checking if g++ PIC flag -fPIC -DPIC works... yes
109checking if g++ static flag -static works... no
110checking if g++ supports -c -o file.o... yes
111checking if g++ supports -c -o file.o... (cached) yes
112checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
113checking dynamic linker characteristics... (cached) GNU/Linux ld.so
114checking how to hardcode library paths into programs... immediate
115configure: creating ./config.status
116config.status: creating config.h
117config.status: executing libtool commands
118running: make
119/bin/sh /tmp/pear-build-bunadvTsyw1/sqlsrv-5.6.1/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear-build-bunadvTsyw1/sqlsrv-5.6.1/include -I/tmp/pear-build-bunadvTsyw1/sqlsrv-5.6.1/main -I/tmp/sqlsrv -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/tmp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /tmp/sqlsrv/conn.cpp -o conn.lo
120libtool: compile: g++ -std=c++11 -I. -I/tmp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear-build-bunadvTsyw1/sqlsrv-5.6.1/include -I/tmp/pear-build-bunadvTsyw1/sqlsrv-5.6.1/main -I/tmp/sqlsrv -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/tmp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /tmp/sqlsrv/conn.cpp -fPIC -DPIC -o .libs/conn.o
121In file included from /tmp/sqlsrv/php_sqlsrv_int.h:25:0,
122 from /tmp/sqlsrv/conn.cpp:24:
123/tmp/sqlsrv/shared/core_sqlsrv.h:2390:38: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given
124 ZVAL_STRINGL(value_z, str, str_len);
125 ^
126/tmp/sqlsrv/shared/core_sqlsrv.h:2437:54: error: macro "add_assoc_string" requires 4 arguments, but only 3 given
127 int zr = ::add_assoc_string(array_z, key, val);
128 ^
129/tmp/sqlsrv/shared/core_sqlsrv.h:2468:58: error: macro "zend_hash_get_current_data" requires 2 arguments, but only 1 given
130 int zr = (output_data = ::zend_hash_get_current_data(ht)) != NULL ? SUCCESS : FAILURE;
131 ^
132/tmp/sqlsrv/shared/core_sqlsrv.h:2492:70: error: macro "zend_hash_index_update" requires 5 arguments, but only 3 given
133 int zr = (data_z = ::zend_hash_index_update(ht, index, data_z)) != NULL ? SUCCESS : FAILURE;
134 ^
135/tmp/sqlsrv/shared/core_sqlsrv.h:2517:64: error: macro "zend_hash_next_index_insert" requires 4 arguments, but only 2 given
136 int zr = (data = ::zend_hash_next_index_insert(ht, data)) != NULL ? SUCCESS : FAILURE;
137 ^
138In file included from /tmp/sqlsrv/conn.cpp:21:0:
139/tmp/sqlsrv/php_sqlsrv.h:39:1: error: 'zend_long' does not name a type
140 zend_long log_severity;
141 ^
142/tmp/sqlsrv/php_sqlsrv.h:40:1: error: 'zend_long' does not name a type
143 zend_long log_subsystems;
144 ^
145/tmp/sqlsrv/php_sqlsrv.h:41:1: error: 'zend_long' does not name a type
146 zend_long current_subsystem;
147 ^
148/tmp/sqlsrv/php_sqlsrv.h:43:1: error: 'zend_long' does not name a type
149 zend_long buffered_query_limit;
150 ^
151In file included from /tmp/sqlsrv/php_sqlsrv_int.h:25:0,
152 from /tmp/sqlsrv/conn.cpp:24:
153/tmp/sqlsrv/shared/core_sqlsrv.h:254:5: error: 'zend_long' does not name a type
154 zend_long value;
155 ^
156/tmp/sqlsrv/shared/core_sqlsrv.h:268:5: error: 'zend_long' does not name a type
157 zend_long value;
158 ^
159In file included from /usr/include/php/Zend/zend.h:831:0,
160 from /usr/include/php/main/php.h:34,
161 from /tmp/sqlsrv/php_sqlsrv.h:25,
162 from /tmp/sqlsrv/conn.cpp:21:
163/tmp/sqlsrv/shared/core_sqlsrv.h: In member function 'void zval_auto_ptr::reset(zval*)':
164/usr/include/php/Zend/zend_variables.h:57:76: error: cannot convert '_zval_struct*' to 'zval** {aka _zval_struct**}' for argument '1' to 'void _zval_ptr_dtor(zval**)'
165 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
166 ^
167/tmp/sqlsrv/shared/core_sqlsrv.h:738:13: note: in expansion of macro 'zval_ptr_dtor'
168 zval_ptr_dtor(_ptr );
169 ^
170In file included from /tmp/sqlsrv/php_sqlsrv_int.h:25:0,
171 from /tmp/sqlsrv/conn.cpp:24:
172/tmp/sqlsrv/shared/core_sqlsrv.h: At global scope:
173/tmp/sqlsrv/shared/core_sqlsrv.h:1442:5: error: 'zend_long' does not name a type
174 zend_long buffered_query_limit; // maximum allowed memory for a buffered query (measured in KB)
175 ^
176/tmp/sqlsrv/shared/core_sqlsrv.h:1607:18: error: 'zend_long' does not name a type
177 static const zend_long BUFFERED_QUERY_LIMIT_DEFAULT = 10240; // measured in KB
178 ^
179/tmp/sqlsrv/shared/core_sqlsrv.h:1608:18: error: 'zend_long' does not name a type
180 static const zend_long BUFFERED_QUERY_LIMIT_INVALID = 0;
181 ^
182/tmp/sqlsrv/shared/core_sqlsrv.h: In function 'void core::sqlsrv_zval_stringl(zval*, const char*, std::size_t)':
183/tmp/sqlsrv/shared/core_sqlsrv.h:2384:56: error: 'Z_STR_P' was not declared in this scope
184 if (Z_TYPE_P(value_z) == IS_STRING && Z_STR_P(value_z) != NULL) {
185 ^
186/tmp/sqlsrv/shared/core_sqlsrv.h:2385:4: error: 'zend_string' was not declared in this scope
187 zend_string* temp_zstr = zend_string_init(str, str_len, 0);
188 ^
189/tmp/sqlsrv/shared/core_sqlsrv.h:2385:17: error: 'temp_zstr' was not declared in this scope
190 zend_string* temp_zstr = zend_string_init(str, str_len, 0);
191 ^
192/tmp/sqlsrv/shared/core_sqlsrv.h:2385:61: error: 'zend_string_init' was not declared in this scope
193 zend_string* temp_zstr = zend_string_init(str, str_len, 0);
194 ^
195/tmp/sqlsrv/shared/core_sqlsrv.h:2386:40: error: 'zend_string_release' was not declared in this scope
196 zend_string_release(Z_STR_P(value_z));
197 ^
198/tmp/sqlsrv/shared/core_sqlsrv.h:2387:35: error: 'ZVAL_NEW_STR' was not declared in this scope
199 ZVAL_NEW_STR(value_z, temp_zstr);
200 ^
201/tmp/sqlsrv/shared/core_sqlsrv.h:2390:4: error: 'ZVAL_STRINGL' was not declared in this scope
202 ZVAL_STRINGL(value_z, str, str_len);
203 ^
204/tmp/sqlsrv/shared/core_sqlsrv.h: At global scope:
205/tmp/sqlsrv/shared/core_sqlsrv.h:2427:119: error: 'zend_long' has not been declared
206 inline void sqlsrv_add_assoc_long( _Inout_ sqlsrv_context& ctx, _Inout_ zval* array_z, _In_ const char* key, _In_ zend_long val TSRMLS_DC )
207 ^
208/tmp/sqlsrv/shared/core_sqlsrv.h: In function 'void core::sqlsrv_add_assoc_string(sqlsrv_context&, zval*, const char*, char*, bool)':
209/tmp/sqlsrv/shared/core_sqlsrv.h:2437:18: error: '::add_assoc_string' has not been declared
210 int zr = ::add_assoc_string(array_z, key, val);
211 ^
212In file included from /usr/include/php/main/php.h:396:0,
213 from /tmp/sqlsrv/php_sqlsrv.h:25,
214 from /tmp/sqlsrv/conn.cpp:21:
215/tmp/sqlsrv/shared/core_sqlsrv.h: In function 'void core::sqlsrv_php_stream_from_zval_no_verify(sqlsrv_context&, php_stream*&, zval*)':
216/usr/include/php/main/php_streams.h:263:182: error: cannot convert 'zval* {aka _zval_struct*}' to 'zval** {aka _zval_struct**}' for argument '1' to 'void* zend_fetch_resource(zval**, int, const char*, int*, int, ...)'
217 #define php_stream_from_zval_no_verify(xstr, ppzval) (xstr) = (php_stream*)zend_fetch_resource((ppzval) TSRMLS_CC, -1, "stream", NULL, 2, php_file_le_stream(), php_file_le_pstream())
218 ^
219/tmp/sqlsrv/shared/core_sqlsrv.h:2460:9: note: in expansion of macro 'php_stream_from_zval_no_verify'
220 php_stream_from_zval_no_verify( stream, stream_z );
221 ^
222In file included from /tmp/sqlsrv/php_sqlsrv_int.h:25:0,
223 from /tmp/sqlsrv/conn.cpp:24:
224/tmp/sqlsrv/shared/core_sqlsrv.h: In function 'void core::sqlsrv_zend_hash_get_current_data(sqlsrv_context&, HashTable*, zval*&)':
225/tmp/sqlsrv/shared/core_sqlsrv.h:2468:27: error: '::zend_hash_get_current_data' has not been declared
226 int zr = (output_data = ::zend_hash_get_current_data(ht)) != NULL ? SUCCESS : FAILURE;
227 ^
228/tmp/sqlsrv/shared/core_sqlsrv.h: In function 'void core::sqlsrv_zend_hash_get_current_data_ptr(sqlsrv_context&, HashTable*, void*&)':
229/tmp/sqlsrv/shared/core_sqlsrv.h:2476:33: error: '::zend_hash_get_current_data_ptr' has not been declared
230 int zr = (output_data = ::zend_hash_get_current_data_ptr(ht)) != NULL ? SUCCESS : FAILURE;
231 ^
232/tmp/sqlsrv/shared/core_sqlsrv.h: In function 'void core::sqlsrv_zend_hash_index_update(sqlsrv_context&, HashTable*, zend_ulong, zval*)':
233/tmp/sqlsrv/shared/core_sqlsrv.h:2492:28: error: '::zend_hash_index_update' has not been declared
234 int zr = (data_z = ::zend_hash_index_update(ht, index, data_z)) != NULL ? SUCCESS : FAILURE;
235 ^
236/tmp/sqlsrv/shared/core_sqlsrv.h: In function 'void core::sqlsrv_zend_hash_index_update_ptr(sqlsrv_context&, HashTable*, zend_ulong, void*)':
237/tmp/sqlsrv/shared/core_sqlsrv.h:2500:27: error: '::zend_hash_index_update_ptr' has not been declared
238 int zr = (pData = ::zend_hash_index_update_ptr(ht, index, pData)) != NULL ? SUCCESS : FAILURE;
239 ^
240/tmp/sqlsrv/shared/core_sqlsrv.h: In function 'void core::sqlsrv_zend_hash_index_update_mem(sqlsrv_context&, HashTable*, zend_ulong, void*, std::size_t)':
241/tmp/sqlsrv/shared/core_sqlsrv.h:2509:21: error: '::zend_hash_index_update_mem' has not been declared
242 int zr = (pData = ::zend_hash_index_update_mem(ht, index, pData, size)) != NULL ? SUCCESS : FAILURE;
243 ^
244/tmp/sqlsrv/shared/core_sqlsrv.h: In function 'void core::sqlsrv_zend_hash_next_index_insert(sqlsrv_context&, HashTable*, zval*)':
245/tmp/sqlsrv/shared/core_sqlsrv.h:2517:26: error: '::zend_hash_next_index_insert' has not been declared
246 int zr = (data = ::zend_hash_next_index_insert(ht, data)) != NULL ? SUCCESS : FAILURE;
247 ^
248/tmp/sqlsrv/shared/core_sqlsrv.h: In function 'void core::sqlsrv_zend_hash_next_index_insert_mem(sqlsrv_context&, HashTable*, void*, uint)':
249/tmp/sqlsrv/shared/core_sqlsrv.h:2525:20: error: '::zend_hash_next_index_insert_mem' has not been declared
250 int zr = (data = ::zend_hash_next_index_insert_mem(ht, data, data_size)) != NULL ? SUCCESS : FAILURE;
251 ^
252/tmp/sqlsrv/shared/core_sqlsrv.h: In function 'void core::sqlsrv_zend_hash_next_index_insert_ptr(sqlsrv_context&, HashTable*, void*)':
253/tmp/sqlsrv/shared/core_sqlsrv.h:2533:26: error: '::zend_hash_next_index_insert_ptr' has not been declared
254 int zr = (data = ::zend_hash_next_index_insert_ptr(ht, data)) != NULL ? SUCCESS : FAILURE;
255 ^
256In file included from /usr/include/php/main/php_ini.h:24:0,
257 from /usr/include/php/main/fopen_wrappers.h:26,
258 from /usr/include/php/main/php.h:398,
259 from /tmp/sqlsrv/php_sqlsrv.h:25,
260 from /tmp/sqlsrv/conn.cpp:21:
261/tmp/sqlsrv/php_sqlsrv_int.h: At global scope:
262/tmp/sqlsrv/php_sqlsrv_int.h:43:85: error: 'zend_sqlsrv_globals' has no member named 'log_severity'
263 STD_PHP_INI_ENTRY( INI_PREFIX INI_LOG_SEVERITY, "0", PHP_INI_ALL, OnUpdateLong, log_severity, zend_sqlsrv_globals,
264 ^
265/usr/include/php/Zend/zend_ini.h:118:50: note: in definition of macro 'ZEND_INI_ENTRY3_EX'
266 { 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
267 ^
268/usr/include/php/Zend/zend_ini.h:127:2: note: in expansion of macro 'ZEND_INI_ENTRY2_EX'
269 ZEND_INI_ENTRY2_EX(name, default_value, modifiable, on_modify, arg1, arg2, NULL)
270 ^
271/usr/include/php/Zend/zend_ini.h:150:2: note: in expansion of macro 'ZEND_INI_ENTRY2'
272 ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
273 ^
274/usr/include/php/Zend/zend_ini.h:55:36: note: in expansion of macro 'XtOffset'
275 # define XtOffsetOf(s_type, field) XtOffset(s_type*, field)
276 ^
277/usr/include/php/Zend/zend_ini.h:150:71: note: in expansion of macro 'XtOffsetOf'
278 ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
279 ^
280/usr/include/php/main/php_ini.h:67:28: note: in expansion of macro 'STD_ZEND_INI_ENTRY'
281 #define STD_PHP_INI_ENTRY STD_ZEND_INI_ENTRY
282 ^
283/tmp/sqlsrv/php_sqlsrv_int.h:43:5: note: in expansion of macro 'STD_PHP_INI_ENTRY'
284 STD_PHP_INI_ENTRY( INI_PREFIX INI_LOG_SEVERITY, "0", PHP_INI_ALL, OnUpdateLong, log_severity, zend_sqlsrv_globals,
285 ^
286/tmp/sqlsrv/php_sqlsrv_int.h:45:87: error: 'zend_sqlsrv_globals' has no member named 'log_subsystems'
287 STD_PHP_INI_ENTRY( INI_PREFIX INI_LOG_SUBSYSTEMS, "0", PHP_INI_ALL, OnUpdateLong, log_subsystems, zend_sqlsrv_globals,
288 ^
289/usr/include/php/Zend/zend_ini.h:118:50: note: in definition of macro 'ZEND_INI_ENTRY3_EX'
290 { 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
291 ^
292/usr/include/php/Zend/zend_ini.h:127:2: note: in expansion of macro 'ZEND_INI_ENTRY2_EX'
293 ZEND_INI_ENTRY2_EX(name, default_value, modifiable, on_modify, arg1, arg2, NULL)
294 ^
295/usr/include/php/Zend/zend_ini.h:150:2: note: in expansion of macro 'ZEND_INI_ENTRY2'
296 ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
297 ^
298/usr/include/php/Zend/zend_ini.h:55:36: note: in expansion of macro 'XtOffset'
299 # define XtOffsetOf(s_type, field) XtOffset(s_type*, field)
300 ^
301/usr/include/php/Zend/zend_ini.h:150:71: note: in expansion of macro 'XtOffsetOf'
302 ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
303 ^
304/usr/include/php/main/php_ini.h:67:28: note: in expansion of macro 'STD_ZEND_INI_ENTRY'
305 #define STD_PHP_INI_ENTRY STD_ZEND_INI_ENTRY
306 ^
307/tmp/sqlsrv/php_sqlsrv_int.h:45:5: note: in expansion of macro 'STD_PHP_INI_ENTRY'
308 STD_PHP_INI_ENTRY( INI_PREFIX INI_LOG_SUBSYSTEMS, "0", PHP_INI_ALL, OnUpdateLong, log_subsystems, zend_sqlsrv_globals,
309 ^
310/tmp/sqlsrv/php_sqlsrv_int.h:47:122: error: 'zend_sqlsrv_globals' has no member named 'buffered_query_limit'
311 STD_PHP_INI_ENTRY( INI_PREFIX INI_BUFFERED_QUERY_LIMIT, INI_BUFFERED_QUERY_LIMIT_DEFAULT, PHP_INI_ALL, OnUpdateLong, buffered_query_limit,
312 ^
313/usr/include/php/Zend/zend_ini.h:118:50: note: in definition of macro 'ZEND_INI_ENTRY3_EX'
314 { 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
315 ^
316/usr/include/php/Zend/zend_ini.h:127:2: note: in expansion of macro 'ZEND_INI_ENTRY2_EX'
317 ZEND_INI_ENTRY2_EX(name, default_value, modifiable, on_modify, arg1, arg2, NULL)
318 ^
319/usr/include/php/Zend/zend_ini.h:150:2: note: in expansion of macro 'ZEND_INI_ENTRY2'
320 ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
321 ^
322/usr/include/php/Zend/zend_ini.h:55:36: note: in expansion of macro 'XtOffset'
323 # define XtOffsetOf(s_type, field) XtOffset(s_type*, field)
324 ^
325/usr/include/php/Zend/zend_ini.h:150:71: note: in expansion of macro 'XtOffsetOf'
326 ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
327 ^
328/usr/include/php/main/php_ini.h:67:28: note: in expansion of macro 'STD_ZEND_INI_ENTRY'
329 #define STD_PHP_INI_ENTRY STD_ZEND_INI_ENTRY
330 ^
331/tmp/sqlsrv/php_sqlsrv_int.h:47:5: note: in expansion of macro 'STD_PHP_INI_ENTRY'
332 STD_PHP_INI_ENTRY( INI_PREFIX INI_BUFFERED_QUERY_LIMIT, INI_BUFFERED_QUERY_LIMIT_DEFAULT, PHP_INI_ALL, OnUpdateLong, buffered_query_limit,
333 ^
334In file included from /tmp/sqlsrv/conn.cpp:24:0:
335/tmp/sqlsrv/php_sqlsrv_int.h:97:40: error: variable or field 'sqlsrv_conn_dtor' declared void
336 void __cdecl sqlsrv_conn_dtor( _Inout_ zend_resource *rsrc TSRMLS_DC );
337 ^
338/tmp/sqlsrv/php_sqlsrv_int.h:97:40: error: 'zend_resource' was not declared in this scope
339/tmp/sqlsrv/php_sqlsrv_int.h:97:55: error: 'rsrc' was not declared in this scope
340 void __cdecl sqlsrv_conn_dtor( _Inout_ zend_resource *rsrc TSRMLS_DC );
341 ^
342/tmp/sqlsrv/php_sqlsrv_int.h:157:40: error: variable or field 'sqlsrv_stmt_dtor' declared void
343 void __cdecl sqlsrv_stmt_dtor( _Inout_ zend_resource *rsrc TSRMLS_DC );
344 ^
345/tmp/sqlsrv/php_sqlsrv_int.h:157:40: error: 'zend_resource' was not declared in this scope
346/tmp/sqlsrv/php_sqlsrv_int.h:157:55: error: 'rsrc' was not declared in this scope
347 void __cdecl sqlsrv_stmt_dtor( _Inout_ zend_resource *rsrc TSRMLS_DC );
348 ^
349/tmp/sqlsrv/php_sqlsrv_int.h:229:33: error: variable or field 'sqlsrv_error_dtor' declared void
350 void __cdecl sqlsrv_error_dtor( zend_resource *rsrc TSRMLS_DC );
351 ^
352/tmp/sqlsrv/php_sqlsrv_int.h:229:33: error: 'zend_resource' was not declared in this scope
353/tmp/sqlsrv/php_sqlsrv_int.h:229:48: error: 'rsrc' was not declared in this scope
354 void __cdecl sqlsrv_error_dtor( zend_resource *rsrc TSRMLS_DC );
355 ^
356In file included from /usr/include/php/Zend/zend.h:830:0,
357 from /usr/include/php/main/php.h:34,
358 from /tmp/sqlsrv/php_sqlsrv.h:25,
359 from /tmp/sqlsrv/conn.cpp:21:
360/tmp/sqlsrv/php_sqlsrv_int.h: In function 'void reset_errors()':
361/tmp/sqlsrv/php_sqlsrv.h:50:50: error: 'sqlsrv' was not declared in this scope
362 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
363 ^
364/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
365 #define Z_TYPE(zval) (zval).type
366 ^
367/tmp/sqlsrv/php_sqlsrv_int.h:234:17: note: in expansion of macro 'SQLSRV_G'
368 if( Z_TYPE( SQLSRV_G( errors )) != IS_ARRAY && Z_TYPE( SQLSRV_G( errors )) != IS_NULL ) {
369 ^
370/tmp/sqlsrv/php_sqlsrv_int.h:234:27: error: 'errors' was not declared in this scope
371 if( Z_TYPE( SQLSRV_G( errors )) != IS_ARRAY && Z_TYPE( SQLSRV_G( errors )) != IS_NULL ) {
372 ^
373/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
374 #define Z_TYPE(zval) (zval).type
375 ^
376/tmp/sqlsrv/php_sqlsrv_int.h:234:17: note: in expansion of macro 'SQLSRV_G'
377 if( Z_TYPE( SQLSRV_G( errors )) != IS_ARRAY && Z_TYPE( SQLSRV_G( errors )) != IS_NULL ) {
378 ^
379/tmp/sqlsrv/php_sqlsrv.h:50:59: error: 'ZEND_MODULE_GLOBALS_ACCESSOR' was not declared in this scope
380 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
381 ^
382/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
383 #define Z_TYPE(zval) (zval).type
384 ^
385/tmp/sqlsrv/php_sqlsrv_int.h:234:17: note: in expansion of macro 'SQLSRV_G'
386 if( Z_TYPE( SQLSRV_G( errors )) != IS_ARRAY && Z_TYPE( SQLSRV_G( errors )) != IS_NULL ) {
387 ^
388/tmp/sqlsrv/php_sqlsrv.h:50:50: error: 'sqlsrv' was not declared in this scope
389 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
390 ^
391/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
392 #define Z_TYPE(zval) (zval).type
393 ^
394/tmp/sqlsrv/php_sqlsrv_int.h:237:17: note: in expansion of macro 'SQLSRV_G'
395 if( Z_TYPE( SQLSRV_G( warnings )) != IS_ARRAY && Z_TYPE( SQLSRV_G( warnings )) != IS_NULL ) {
396 ^
397/tmp/sqlsrv/php_sqlsrv_int.h:237:27: error: 'warnings' was not declared in this scope
398 if( Z_TYPE( SQLSRV_G( warnings )) != IS_ARRAY && Z_TYPE( SQLSRV_G( warnings )) != IS_NULL ) {
399 ^
400/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
401 #define Z_TYPE(zval) (zval).type
402 ^
403/tmp/sqlsrv/php_sqlsrv_int.h:237:17: note: in expansion of macro 'SQLSRV_G'
404 if( Z_TYPE( SQLSRV_G( warnings )) != IS_ARRAY && Z_TYPE( SQLSRV_G( warnings )) != IS_NULL ) {
405 ^
406/tmp/sqlsrv/php_sqlsrv.h:50:59: error: 'ZEND_MODULE_GLOBALS_ACCESSOR' was not declared in this scope
407 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
408 ^
409/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
410 #define Z_TYPE(zval) (zval).type
411 ^
412/tmp/sqlsrv/php_sqlsrv_int.h:237:17: note: in expansion of macro 'SQLSRV_G'
413 if( Z_TYPE( SQLSRV_G( warnings )) != IS_ARRAY && Z_TYPE( SQLSRV_G( warnings )) != IS_NULL ) {
414 ^
415/tmp/sqlsrv/php_sqlsrv.h:50:50: error: 'sqlsrv' was not declared in this scope
416 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
417 ^
418/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
419 #define Z_TYPE(zval) (zval).type
420 ^
421/tmp/sqlsrv/php_sqlsrv_int.h:241:17: note: in expansion of macro 'SQLSRV_G'
422 if( Z_TYPE( SQLSRV_G( errors )) == IS_ARRAY ) {
423 ^
424/tmp/sqlsrv/php_sqlsrv_int.h:241:27: error: 'errors' was not declared in this scope
425 if( Z_TYPE( SQLSRV_G( errors )) == IS_ARRAY ) {
426 ^
427/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
428 #define Z_TYPE(zval) (zval).type
429 ^
430/tmp/sqlsrv/php_sqlsrv_int.h:241:17: note: in expansion of macro 'SQLSRV_G'
431 if( Z_TYPE( SQLSRV_G( errors )) == IS_ARRAY ) {
432 ^
433/tmp/sqlsrv/php_sqlsrv.h:50:59: error: 'ZEND_MODULE_GLOBALS_ACCESSOR' was not declared in this scope
434 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
435 ^
436/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
437 #define Z_TYPE(zval) (zval).type
438 ^
439/tmp/sqlsrv/php_sqlsrv_int.h:241:17: note: in expansion of macro 'SQLSRV_G'
440 if( Z_TYPE( SQLSRV_G( errors )) == IS_ARRAY ) {
441 ^
442/tmp/sqlsrv/php_sqlsrv.h:50:50: error: 'sqlsrv' was not declared in this scope
443 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
444 ^
445/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
446 #define Z_TYPE(zval) (zval).type
447 ^
448/tmp/sqlsrv/php_sqlsrv_int.h:245:17: note: in expansion of macro 'SQLSRV_G'
449 if( Z_TYPE( SQLSRV_G( warnings )) == IS_ARRAY ) {
450 ^
451/tmp/sqlsrv/php_sqlsrv_int.h:245:27: error: 'warnings' was not declared in this scope
452 if( Z_TYPE( SQLSRV_G( warnings )) == IS_ARRAY ) {
453 ^
454/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
455 #define Z_TYPE(zval) (zval).type
456 ^
457/tmp/sqlsrv/php_sqlsrv_int.h:245:17: note: in expansion of macro 'SQLSRV_G'
458 if( Z_TYPE( SQLSRV_G( warnings )) == IS_ARRAY ) {
459 ^
460/tmp/sqlsrv/php_sqlsrv.h:50:59: error: 'ZEND_MODULE_GLOBALS_ACCESSOR' was not declared in this scope
461 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
462 ^
463/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
464 #define Z_TYPE(zval) (zval).type
465 ^
466/tmp/sqlsrv/php_sqlsrv_int.h:245:17: note: in expansion of macro 'SQLSRV_G'
467 if( Z_TYPE( SQLSRV_G( warnings )) == IS_ARRAY ) {
468 ^
469/tmp/sqlsrv/php_sqlsrv.h:50:50: error: 'sqlsrv' was not declared in this scope
470 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
471 ^
472/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
473 #define Z_TYPE(zval) (zval).type
474 ^
475/usr/include/php/Zend/zend_API.h:555:3: note: in expansion of macro 'Z_TYPE_P'
476 Z_TYPE_P(z) = IS_NULL; \
477 ^
478/tmp/sqlsrv/php_sqlsrv_int.h:250:5: note: in expansion of macro 'ZVAL_NULL'
479 ZVAL_NULL( &SQLSRV_G( errors ));
480 ^
481/tmp/sqlsrv/php_sqlsrv_int.h:250:17: note: in expansion of macro 'SQLSRV_G'
482 ZVAL_NULL( &SQLSRV_G( errors ));
483 ^
484/tmp/sqlsrv/php_sqlsrv_int.h:250:27: error: 'errors' was not declared in this scope
485 ZVAL_NULL( &SQLSRV_G( errors ));
486 ^
487/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
488 #define Z_TYPE(zval) (zval).type
489 ^
490/usr/include/php/Zend/zend_API.h:555:3: note: in expansion of macro 'Z_TYPE_P'
491 Z_TYPE_P(z) = IS_NULL; \
492 ^
493/tmp/sqlsrv/php_sqlsrv_int.h:250:5: note: in expansion of macro 'ZVAL_NULL'
494 ZVAL_NULL( &SQLSRV_G( errors ));
495 ^
496/tmp/sqlsrv/php_sqlsrv_int.h:250:17: note: in expansion of macro 'SQLSRV_G'
497 ZVAL_NULL( &SQLSRV_G( errors ));
498 ^
499/tmp/sqlsrv/php_sqlsrv.h:50:59: error: 'ZEND_MODULE_GLOBALS_ACCESSOR' was not declared in this scope
500 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
501 ^
502/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
503 #define Z_TYPE(zval) (zval).type
504 ^
505/usr/include/php/Zend/zend_API.h:555:3: note: in expansion of macro 'Z_TYPE_P'
506 Z_TYPE_P(z) = IS_NULL; \
507 ^
508/tmp/sqlsrv/php_sqlsrv_int.h:250:5: note: in expansion of macro 'ZVAL_NULL'
509 ZVAL_NULL( &SQLSRV_G( errors ));
510 ^
511/tmp/sqlsrv/php_sqlsrv_int.h:250:17: note: in expansion of macro 'SQLSRV_G'
512 ZVAL_NULL( &SQLSRV_G( errors ));
513 ^
514/tmp/sqlsrv/php_sqlsrv.h:50:50: error: 'sqlsrv' was not declared in this scope
515 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
516 ^
517/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
518 #define Z_TYPE(zval) (zval).type
519 ^
520/usr/include/php/Zend/zend_API.h:555:3: note: in expansion of macro 'Z_TYPE_P'
521 Z_TYPE_P(z) = IS_NULL; \
522 ^
523/tmp/sqlsrv/php_sqlsrv_int.h:251:5: note: in expansion of macro 'ZVAL_NULL'
524 ZVAL_NULL( &SQLSRV_G( warnings ));
525 ^
526/tmp/sqlsrv/php_sqlsrv_int.h:251:17: note: in expansion of macro 'SQLSRV_G'
527 ZVAL_NULL( &SQLSRV_G( warnings ));
528 ^
529/tmp/sqlsrv/php_sqlsrv_int.h:251:27: error: 'warnings' was not declared in this scope
530 ZVAL_NULL( &SQLSRV_G( warnings ));
531 ^
532/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
533 #define Z_TYPE(zval) (zval).type
534 ^
535/usr/include/php/Zend/zend_API.h:555:3: note: in expansion of macro 'Z_TYPE_P'
536 Z_TYPE_P(z) = IS_NULL; \
537 ^
538/tmp/sqlsrv/php_sqlsrv_int.h:251:5: note: in expansion of macro 'ZVAL_NULL'
539 ZVAL_NULL( &SQLSRV_G( warnings ));
540 ^
541/tmp/sqlsrv/php_sqlsrv_int.h:251:17: note: in expansion of macro 'SQLSRV_G'
542 ZVAL_NULL( &SQLSRV_G( warnings ));
543 ^
544/tmp/sqlsrv/php_sqlsrv.h:50:59: error: 'ZEND_MODULE_GLOBALS_ACCESSOR' was not declared in this scope
545 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
546 ^
547/usr/include/php/Zend/zend_operators.h:460:24: note: in definition of macro 'Z_TYPE'
548 #define Z_TYPE(zval) (zval).type
549 ^
550/usr/include/php/Zend/zend_API.h:555:3: note: in expansion of macro 'Z_TYPE_P'
551 Z_TYPE_P(z) = IS_NULL; \
552 ^
553/tmp/sqlsrv/php_sqlsrv_int.h:251:5: note: in expansion of macro 'ZVAL_NULL'
554 ZVAL_NULL( &SQLSRV_G( warnings ));
555 ^
556/tmp/sqlsrv/php_sqlsrv_int.h:251:17: note: in expansion of macro 'SQLSRV_G'
557 ZVAL_NULL( &SQLSRV_G( warnings ));
558 ^
559In file included from /tmp/sqlsrv/conn.cpp:24:0:
560/tmp/sqlsrv/php_sqlsrv_int.h: In function 'void ss::zend_register_resource(zval&, void*, int, const char*)':
561/tmp/sqlsrv/php_sqlsrv_int.h:342:45: error: 'Z_RES' was not declared in this scope
562 int zr = (NULL != (Z_RES(rsrc_result) = ::zend_register_resource(rsrc_pointer, rsrc_type)) ? SUCCESS : FAILURE);
563 ^
564/tmp/sqlsrv/php_sqlsrv_int.h:342:97: error: invalid conversion from 'void*' to 'zval* {aka _zval_struct*}' [-fpermissive]
565 int zr = (NULL != (Z_RES(rsrc_result) = ::zend_register_resource(rsrc_pointer, rsrc_type)) ? SUCCESS : FAILURE);
566 ^
567/tmp/sqlsrv/php_sqlsrv_int.h:342:97: error: invalid conversion from 'int' to 'void*' [-fpermissive]
568/tmp/sqlsrv/php_sqlsrv_int.h:342:97: error: too few arguments to function 'int zend_register_resource(zval*, void*, int)'
569In file included from /usr/include/php/Zend/zend_API.h:27:0,
570 from /usr/include/php/main/php.h:38,
571 from /tmp/sqlsrv/php_sqlsrv.h:25,
572 from /tmp/sqlsrv/conn.cpp:21:
573/usr/include/php/Zend/zend_list.h:82:14: note: declared here
574 ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
575 ^
576In file included from /tmp/sqlsrv/conn.cpp:24:0:
577/tmp/sqlsrv/php_sqlsrv_int.h:347:32: error: 'Z_TYPE_INFO' was not declared in this scope
578 Z_TYPE_INFO(rsrc_result) = IS_RESOURCE_EX;
579 ^
580/tmp/sqlsrv/php_sqlsrv_int.h:347:36: error: 'IS_RESOURCE_EX' was not declared in this scope
581 Z_TYPE_INFO(rsrc_result) = IS_RESOURCE_EX;
582 ^
583/tmp/sqlsrv/php_sqlsrv_int.h: In function 'H* process_params(int, zval*, zval**, zval*, int, const char*, const char*, size_t, ...)':
584/tmp/sqlsrv/php_sqlsrv_int.h:446:62: error: there are no arguments to 'Z_RES_P' that depend on a template parameter, so a declaration of 'Z_RES_P' must be available [-fpermissive]
585 h = static_cast<H*>( zend_fetch_resource(Z_RES_P(rsrc) TSRMLS_CC, H::resource_name, H::descriptor ));
586 ^
587/tmp/sqlsrv/php_sqlsrv_int.h:446:62: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
588/tmp/sqlsrv/conn.cpp: In static member function 'static void {anonymous}::decimal_places_func::func(const connection_option*, zval*, sqlsrv_conn*, std::string&)':
589/tmp/sqlsrv/conn.cpp:82:9: error: 'zend_long' was not declared in this scope
590 zend_long decimal_places = Z_LVAL_P(value);
591 ^
592/tmp/sqlsrv/conn.cpp:82:19: error: expected ';' before 'decimal_places'
593 zend_long decimal_places = Z_LVAL_P(value);
594 ^
595/tmp/sqlsrv/conn.cpp:83:13: error: 'decimal_places' was not declared in this scope
596 if (decimal_places < 0 || decimal_places > SQL_SERVER_MAX_MONEY_SCALE) {
597 ^
598/tmp/sqlsrv/conn.cpp:88:54: error: 'decimal_places' was not declared in this scope
599 ss_conn->decimal_places = static_cast<short>(decimal_places);
600 ^
601/tmp/sqlsrv/conn.cpp: In static member function 'static void {anonymous}::conn_char_set_func::func(const connection_option*, zval*, sqlsrv_conn*, std::string&)':
602/tmp/sqlsrv/conn.cpp:101:10: error: 'zend_string' was not declared in this scope
603 zend_string* key = NULL;
604 ^
605/tmp/sqlsrv/conn.cpp:101:23: error: 'key' was not declared in this scope
606 zend_string* key = NULL;
607 ^
608/tmp/sqlsrv/conn.cpp:104:85: error: 'ZEND_HASH_FOREACH_KEY_PTR' was not declared in this scope
609 ZEND_HASH_FOREACH_KEY_PTR( g_ss_encodings_ht, index, key, ss_encoding_temp ) {
610 ^
611/tmp/sqlsrv/conn.cpp:104:87: error: expected ';' before '{' token
612 ZEND_HASH_FOREACH_KEY_PTR( g_ss_encodings_ht, index, key, ss_encoding_temp ) {
613 ^
614/tmp/sqlsrv/conn.cpp:119:5: error: expected '}' at end of input
615 }
616 ^
617/tmp/sqlsrv/conn.cpp: In static member function 'static void {anonymous}::bool_conn_attr_func<Attr>::func(const connection_option*, zval*, sqlsrv_conn*, std::string&)':
618/tmp/sqlsrv/conn.cpp:178:80: error: 'zend_long' was not declared in this scope
619 core::SQLSetConnectAttr(conn, Attr, reinterpret_cast<SQLPOINTER>((zend_long)zend_is_true(value)), SQL_IS_UINTEGER TSRMLS_CC);
620 ^
621/tmp/sqlsrv/conn.cpp:178:90: error: expected ')' before 'zend_is_true'
622 core::SQLSetConnectAttr(conn, Attr, reinterpret_cast<SQLPOINTER>((zend_long)zend_is_true(value)), SQL_IS_UINTEGER TSRMLS_CC);
623 ^
624/tmp/sqlsrv/conn.cpp:178:137: error: expected ';' before ')' token
625 core::SQLSetConnectAttr(conn, Attr, reinterpret_cast<SQLPOINTER>((zend_long)zend_is_true(value)), SQL_IS_UINTEGER TSRMLS_CC);
626 ^
627/tmp/sqlsrv/conn.cpp: At global scope:
628/tmp/sqlsrv/conn.cpp:194:61: error: 'zend_string' has not been declared
629 void add_conn_option_key( _Inout_ sqlsrv_context& ctx, _In_ zend_string* key, _In_ size_t key_len,
630 ^
631/tmp/sqlsrv/conn.cpp:196:61: error: 'zend_string' has not been declared
632 void add_stmt_option_key( _Inout_ sqlsrv_context& ctx, _In_ zend_string* key, _In_ size_t key_len, _Inout_ HashTable* options_ht, _Inout_ zval* data TSRMLS_DC );
633 ^
634/tmp/sqlsrv/conn.cpp:197:60: error: 'zend_string' has not been declared
635 int get_conn_option_key( _Inout_ sqlsrv_context& ctx, _In_ zend_string* key, _In_ size_t key_len, _Inout_ zval const* value_z TSRMLS_DC );
636 ^
637/tmp/sqlsrv/conn.cpp:198:31: error: 'zend_string' was not declared in this scope
638 int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC );
639 ^
640/tmp/sqlsrv/conn.cpp:198:44: error: 'key' was not declared in this scope
641 int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC );
642 ^
643/tmp/sqlsrv/conn.cpp:198:61: error: expected primary-expression before 'key_len'
644 int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC );
645 ^
646/tmp/sqlsrv/conn.cpp:198:79: error: expression list treated as compound expression in initializer [-fpermissive]
647 int get_stmt_option_key( _In_ zend_string* key, _In_ size_t key_len TSRMLS_DC );
648 ^
649In file included from /tmp/sqlsrv/conn.cpp:21:0:
650/tmp/sqlsrv/conn.cpp: In function 'void zif_sqlsrv_connect(int, zval*, zval**, zval*, int)':
651/tmp/sqlsrv/php_sqlsrv.h:50:50: error: 'sqlsrv' was not declared in this scope
652 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
653 ^
654/tmp/sqlsrv/php_sqlsrv_int.h:303:4: note: in expansion of macro 'SQLSRV_G'
655 SQLSRV_G( current_subsystem ) = current_log_subsystem; \
656 ^
657/tmp/sqlsrv/conn.cpp:616:5: note: in expansion of macro 'LOG_FUNCTION'
658 LOG_FUNCTION( "sqlsrv_connect" );
659 ^
660/tmp/sqlsrv/php_sqlsrv_int.h:303:14: error: 'current_subsystem' was not declared in this scope
661 SQLSRV_G( current_subsystem ) = current_log_subsystem; \
662 ^
663/tmp/sqlsrv/php_sqlsrv.h:50:58: note: in definition of macro 'SQLSRV_G'
664 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
665 ^
666/tmp/sqlsrv/conn.cpp:616:5: note: in expansion of macro 'LOG_FUNCTION'
667 LOG_FUNCTION( "sqlsrv_connect" );
668 ^
669/tmp/sqlsrv/php_sqlsrv.h:50:59: error: 'ZEND_MODULE_GLOBALS_ACCESSOR' was not declared in this scope
670 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
671 ^
672/tmp/sqlsrv/php_sqlsrv_int.h:303:4: note: in expansion of macro 'SQLSRV_G'
673 SQLSRV_G( current_subsystem ) = current_log_subsystem; \
674 ^
675/tmp/sqlsrv/conn.cpp:616:5: note: in expansion of macro 'LOG_FUNCTION'
676 LOG_FUNCTION( "sqlsrv_connect" );
677 ^
678/tmp/sqlsrv/conn.cpp:628:23: error: 'ZVAL_UNDEF' was not declared in this scope
679 ZVAL_UNDEF(&conn_z);
680 ^
681/tmp/sqlsrv/conn.cpp:669:33: error: 'Z_RES' was not declared in this scope
682 RETURN_RES( Z_RES(conn_z) );
683 ^
684/tmp/sqlsrv/conn.cpp:669:35: error: 'RETURN_RES' was not declared in this scope
685 RETURN_RES( Z_RES(conn_z) );
686 ^
687In file included from /tmp/sqlsrv/conn.cpp:21:0:
688/tmp/sqlsrv/conn.cpp: In function 'void zif_sqlsrv_begin_transaction(int, zval*, zval**, zval*, int)':
689/tmp/sqlsrv/php_sqlsrv.h:50:50: error: 'sqlsrv' was not declared in this scope
690 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
691 ^
692/tmp/sqlsrv/php_sqlsrv_int.h:303:4: note: in expansion of macro 'SQLSRV_G'
693 SQLSRV_G( current_subsystem ) = current_log_subsystem; \
694 ^
695/tmp/sqlsrv/conn.cpp:713:5: note: in expansion of macro 'LOG_FUNCTION'
696 LOG_FUNCTION( "sqlsrv_begin_transaction" );
697 ^
698/tmp/sqlsrv/php_sqlsrv_int.h:303:14: error: 'current_subsystem' was not declared in this scope
699 SQLSRV_G( current_subsystem ) = current_log_subsystem; \
700 ^
701/tmp/sqlsrv/php_sqlsrv.h:50:58: note: in definition of macro 'SQLSRV_G'
702 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
703 ^
704/tmp/sqlsrv/conn.cpp:713:5: note: in expansion of macro 'LOG_FUNCTION'
705 LOG_FUNCTION( "sqlsrv_begin_transaction" );
706 ^
707/tmp/sqlsrv/php_sqlsrv.h:50:59: error: 'ZEND_MODULE_GLOBALS_ACCESSOR' was not declared in this scope
708 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
709 ^
710/tmp/sqlsrv/php_sqlsrv_int.h:303:4: note: in expansion of macro 'SQLSRV_G'
711 SQLSRV_G( current_subsystem ) = current_log_subsystem; \
712 ^
713/tmp/sqlsrv/conn.cpp:713:5: note: in expansion of macro 'LOG_FUNCTION'
714 LOG_FUNCTION( "sqlsrv_begin_transaction" );
715 ^
716/tmp/sqlsrv/conn.cpp: In function 'void zif_sqlsrv_close(int, zval*, zval**, zval*, int)':
717/tmp/sqlsrv/php_sqlsrv.h:50:50: error: 'sqlsrv' was not declared in this scope
718 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
719 ^
720/tmp/sqlsrv/php_sqlsrv_int.h:303:4: note: in expansion of macro 'SQLSRV_G'
721 SQLSRV_G( current_subsystem ) = current_log_subsystem; \
722 ^
723/tmp/sqlsrv/conn.cpp:759:5: note: in expansion of macro 'LOG_FUNCTION'
724 LOG_FUNCTION( "sqlsrv_close" );
725 ^
726/tmp/sqlsrv/php_sqlsrv_int.h:303:14: error: 'current_subsystem' was not declared in this scope
727 SQLSRV_G( current_subsystem ) = current_log_subsystem; \
728 ^
729/tmp/sqlsrv/php_sqlsrv.h:50:58: note: in definition of macro 'SQLSRV_G'
730 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
731 ^
732/tmp/sqlsrv/conn.cpp:759:5: note: in expansion of macro 'LOG_FUNCTION'
733 LOG_FUNCTION( "sqlsrv_close" );
734 ^
735/tmp/sqlsrv/php_sqlsrv.h:50:59: error: 'ZEND_MODULE_GLOBALS_ACCESSOR' was not declared in this scope
736 #define SQLSRV_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlsrv, v)
737 ^
738/tmp/sqlsrv/php_sqlsrv_int.h:303:4: note: in expansion of macro 'SQLSRV_G'
739 SQLSRV_G( current_subsystem ) = current_log_subsystem; \
740 ^
741/tmp/sqlsrv/conn.cpp:759:5: note: in expansion of macro 'LOG_FUNCTION'
742 LOG_FUNCTION( "sqlsrv_close" );
743 ^
744/tmp/sqlsrv/conn.cpp:790:83: error: 'Z_RES_P' was not declared in this scope
745 conn = static_cast<ss_sqlsrv_conn*>( zend_fetch_resource( Z_RES_P( conn_r ) TSRMLS_CC, ss_sqlsrv_conn::resource_name, ss_sqlsrv_conn::descriptor ));
746 ^
747/tmp/sqlsrv/conn.cpp:793:35: error: 'Z_RES_TYPE_P' was not declared in this scope
748 if ( Z_RES_TYPE_P( conn_r ) == RSRC_INVALID_TYPE) {
749 ^
750/tmp/sqlsrv/conn.cpp:807:48: error: 'zend_list_close' was not declared in this scope
751 if( zend_list_close( Z_RES_P( conn_r ) ) == FAILURE ) {
752 ^
753In file included from /tmp/sqlsrv/php_sqlsrv_int.h:25:0,
754 from /tmp/sqlsrv/conn.cpp:24:
755/tmp/sqlsrv/conn.cpp:808:98: error: 'Z_RES_HANDLE_P' was not declared in this scope
756 LOG( SEV_ERROR, "Failed to remove connection resource %1!d!", Z_RES_HANDLE_P( conn_r ));
757 ^
758/tmp/sqlsrv/shared/core_sqlsrv.h:298:79: note: in definition of macro 'LOG'
759 #define LOG( severity, msg, ...) write_to_log( severity TSRMLS_CC, msg, ## __VA_ARGS__ )
760 ^
761/tmp/sqlsrv/conn.cpp:814:30: error: 'Z_TRY_DELREF_P' was not declared in this scope
762 Z_TRY_DELREF_P(conn_r);
763 ^
764/tmp/sqlsrv/conn.cpp: At global scope:
765/tmp/sqlsrv/conn.cpp:829:40: error: variable or field 'sqlsrv_conn_dtor' declared void
766 void __cdecl sqlsrv_conn_dtor( _Inout_ zend_resource *rsrc TSRMLS_DC )
767 ^
768/tmp/sqlsrv/conn.cpp:829:40: error: 'zend_resource' was not declared in this scope
769/tmp/sqlsrv/conn.cpp:829:55: error: 'rsrc' was not declared in this scope
770 void __cdecl sqlsrv_conn_dtor( _Inout_ zend_resource *rsrc TSRMLS_DC )
771 ^
772In file included from /tmp/sqlsrv/conn.cpp:24:0:
773/tmp/sqlsrv/php_sqlsrv_int.h: In instantiation of 'H* process_params(int, zval*, zval**, zval*, int, const char*, const char*, size_t, ...) [with H = ss_sqlsrv_conn; zval = _zval_struct; size_t = long unsigned int]':
774/tmp/sqlsrv/conn.cpp:717:5: required from here
775/tmp/sqlsrv/php_sqlsrv_int.h:446:62: error: 'Z_RES_P' was not declared in this scope
776 h = static_cast<H*>( zend_fetch_resource(Z_RES_P(rsrc) TSRMLS_CC, H::resource_name, H::descriptor ));
777 ^
778make: *** [conn.lo] Error 1
779ERROR: `make' failed