Advertisement
Guest User

sqlsrv driver install error

a guest
Jun 9th, 2018
719
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.84 KB | None | 0 0
  1. WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
  2. downloading sqlsrv-5.2.0.tgz ...
  3. Starting to download sqlsrv-5.2.0.tgz (171,728 bytes)
  4. ............done: 171,728 bytes
  5. downloading pdo_sqlsrv-5.2.0.tgz ...
  6. Starting to download pdo_sqlsrv-5.2.0.tgz (164,456 bytes)
  7. ...done: 164,456 bytes
  8. 33 source files, building
  9. running: phpize
  10. Configuring for:
  11. PHP Api Version: 20170718
  12. Zend Module Api No: 20170718
  13. Zend Extension Api No: 320170718
  14. building in /private/tmp/pear/temp/pear-build-root5XI7ZG/sqlsrv-5.2.0
  15. running: /private/tmp/pear/temp/sqlsrv/configure --with-php-config=/Applications/MAMP/bin/php/php7.2.1/bin/php-config
  16. checking for grep that handles long lines and -e... /usr/bin/grep
  17. checking for egrep... /usr/bin/grep -E
  18. checking for a sed that does not truncate output... /usr/bin/sed
  19. checking for cc... cc
  20. checking whether the C compiler works... yes
  21. checking for C compiler default output file name... a.out
  22. checking for suffix of executables...
  23. checking whether we are cross compiling... no
  24. checking for suffix of object files... o
  25. checking whether we are using the GNU C compiler... yes
  26. checking whether cc accepts -g... yes
  27. checking for cc option to accept ISO C89... none needed
  28. checking how to run the C preprocessor... cc -E
  29. checking for icc... no
  30. checking for suncc... no
  31. checking whether cc understands -c and -o together... yes
  32. checking for system library directory... lib
  33. checking if compiler supports -R... no
  34. checking if compiler supports -Wl,-rpath,... yes
  35. checking build system type... x86_64-apple-darwin16.7.0
  36. checking host system type... x86_64-apple-darwin16.7.0
  37. checking target system type... x86_64-apple-darwin16.7.0
  38. checking for PHP prefix... /Applications/MAMP/bin/php/php7.2.1
  39. checking for PHP includes... -I/Applications/MAMP/bin/php/php7.2.1/include/php -I/Applications/MAMP/bin/php/php7.2.1/include/php/main -I/Applications/MAMP/bin/php/php7.2.1/include/php/TSRM -I/Applications/MAMP/bin/php/php7.2.1/include/php/Zend -I/Applications/MAMP/bin/php/php7.2.1/include/php/ext -I/Applications/MAMP/bin/php/php7.2.1/include/php/ext/date/lib
  40. checking for PHP extension directory... /Applications/MAMP/bin/php/php7.2.1/lib/php/extensions/no-debug-non-zts-20170718
  41. checking for PHP installed headers prefix... /Applications/MAMP/bin/php/php7.2.1/include/php
  42. checking if debug is enabled... no
  43. checking if zts is enabled... no
  44. checking for re2c... no
  45. configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
  46. checking for gawk... no
  47. checking for nawk... no
  48. checking for awk... awk
  49. checking if awk is broken... no
  50. checking whether to enable sqlsrv functions... yes, shared
  51. checking for SQLSRV headers... /private/tmp/pear/temp/sqlsrv/shared/
  52. checking for g++... g++
  53. checking whether we are using the GNU C++ compiler... yes
  54. checking whether g++ accepts -g... yes
  55. checking how to run the C++ preprocessor... g++ -E
  56. checking for ld used by cc... /Library/Developer/CommandLineTools/usr/bin/ld
  57. checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
  58. checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
  59. checking for BSD-compatible nm... /usr/bin/nm -B
  60. checking whether ln -s works... yes
  61. checking how to recognize dependent libraries... pass_all
  62. checking for ANSI C header files... yes
  63. checking for sys/types.h... yes
  64. checking for sys/stat.h... yes
  65. checking for stdlib.h... yes
  66. checking for string.h... yes
  67. checking for memory.h... yes
  68. checking for strings.h... yes
  69. checking for inttypes.h... yes
  70. checking for stdint.h... yes
  71. checking for unistd.h... yes
  72. checking dlfcn.h usability... yes
  73. checking dlfcn.h presence... yes
  74. checking for dlfcn.h... yes
  75. checking how to run the C++ preprocessor... g++ -E
  76. checking the maximum length of command line arguments... 196608
  77. checking command to parse /usr/bin/nm -B output from cc object... ok
  78. checking for objdir... .libs
  79. checking for ar... ar
  80. checking for ranlib... ranlib
  81. checking for strip... strip
  82. checking for dsymutil... dsymutil
  83. checking for nmedit... nmedit
  84. checking for -single_module linker flag... yes
  85. checking for -exported_symbols_list linker flag... yes
  86. checking if cc supports -fno-rtti -fno-exceptions... yes
  87. checking for cc option to produce PIC... -fno-common
  88. checking if cc PIC flag -fno-common works... yes
  89. checking if cc static flag -static works... no
  90. checking if cc supports -c -o file.o... yes
  91. checking whether the cc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
  92. checking dynamic linker characteristics... darwin16.7.0 dyld
  93. checking how to hardcode library paths into programs... immediate
  94. checking whether stripping libraries is possible... yes
  95. checking if libtool supports shared libraries... yes
  96. checking whether to build shared libraries... yes
  97. checking whether to build static libraries... no
  98.  
  99. creating libtool
  100. appending configuration tag "CXX" to libtool
  101. checking for ld used by g++... /Library/Developer/CommandLineTools/usr/bin/ld
  102. checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
  103. checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
  104. checking for g++ option to produce PIC... -fno-common
  105. checking if g++ PIC flag -fno-common works... yes
  106. checking if g++ static flag -static works... no
  107. checking if g++ supports -c -o file.o... yes
  108. checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
  109. checking dynamic linker characteristics... darwin16.7.0 dyld
  110. (cached) (cached) checking how to hardcode library paths into programs... immediate
  111. configure: creating ./config.status
  112. config.status: creating config.h
  113. running: make
  114. /bin/sh /private/tmp/pear/temp/pear-build-root5XI7ZG/sqlsrv-5.2.0/libtool --mode=compile g++ -std=c++11 -I. -I/private/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-root5XI7ZG/sqlsrv-5.2.0/include -I/private/tmp/pear/temp/pear-build-root5XI7ZG/sqlsrv-5.2.0/main -I/private/tmp/pear/temp/sqlsrv -I/Applications/MAMP/bin/php/php7.2.1/include/php -I/Applications/MAMP/bin/php/php7.2.1/include/php/main -I/Applications/MAMP/bin/php/php7.2.1/include/php/TSRM -I/Applications/MAMP/bin/php/php7.2.1/include/php/Zend -I/Applications/MAMP/bin/php/php7.2.1/include/php/ext -I/Applications/MAMP/bin/php/php7.2.1/include/php/ext/date/lib -I/private/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /private/tmp/pear/temp/sqlsrv/conn.cpp -o conn.lo
  115. mkdir .libs
  116. g++ -std=c++11 -I. -I/private/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-root5XI7ZG/sqlsrv-5.2.0/include -I/private/tmp/pear/temp/pear-build-root5XI7ZG/sqlsrv-5.2.0/main -I/private/tmp/pear/temp/sqlsrv -I/Applications/MAMP/bin/php/php7.2.1/include/php -I/Applications/MAMP/bin/php/php7.2.1/include/php/main -I/Applications/MAMP/bin/php/php7.2.1/include/php/TSRM -I/Applications/MAMP/bin/php/php7.2.1/include/php/Zend -I/Applications/MAMP/bin/php/php7.2.1/include/php/ext -I/Applications/MAMP/bin/php/php7.2.1/include/php/ext/date/lib -I/private/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /private/tmp/pear/temp/sqlsrv/conn.cpp -fno-common -DPIC -o .libs/conn.o
  117. In file included from /private/tmp/pear/temp/sqlsrv/conn.cpp:20:
  118. In file included from /private/tmp/pear/temp/sqlsrv/php_sqlsrv.h:25:
  119. In file included from /private/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:41:
  120. In file included from /private/tmp/pear/temp/sqlsrv/shared/FormattedPrint.h:24:
  121. In file included from /private/tmp/pear/temp/sqlsrv/shared/xplat_winnls.h:24:
  122. In file included from /private/tmp/pear/temp/sqlsrv/shared/typedefs_for_linux.h:23:
  123. /private/tmp/pear/temp/sqlsrv/shared/xplat.h:132:16: error: typedef redefinition with different types ('WCHAR *' (aka 'unsigned short *') vs 'wchar_t *')
  124. typedef WCHAR *LPWSTR;
  125. ^
  126. /usr/local/include/iodbcunix.h:131:20: note: previous definition is here
  127. typedef wchar_t * LPWSTR;
  128. ^
  129. In file included from /private/tmp/pear/temp/sqlsrv/conn.cpp:20:
  130. In file included from /private/tmp/pear/temp/sqlsrv/php_sqlsrv.h:25:
  131. In file included from /private/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:41:
  132. In file included from /private/tmp/pear/temp/sqlsrv/shared/FormattedPrint.h:24:
  133. In file included from /private/tmp/pear/temp/sqlsrv/shared/xplat_winnls.h:24:
  134. In file included from /private/tmp/pear/temp/sqlsrv/shared/typedefs_for_linux.h:23:
  135. /private/tmp/pear/temp/sqlsrv/shared/xplat.h:133:22: error: typedef redefinition with different types ('const WCHAR *' (aka 'const unsigned short *') vs 'const wchar_t *')
  136. typedef CONST WCHAR *LPCWSTR;
  137. ^
  138. /usr/local/include/iodbcunix.h:132:26: note: previous definition is here
  139. typedef const wchar_t * LPCWSTR;
  140. ^
  141. In file included from /private/tmp/pear/temp/sqlsrv/conn.cpp:20:
  142. In file included from /private/tmp/pear/temp/sqlsrv/php_sqlsrv.h:25:
  143. In file included from /private/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:41:
  144. In file included from /private/tmp/pear/temp/sqlsrv/shared/FormattedPrint.h:24:
  145. In file included from /private/tmp/pear/temp/sqlsrv/shared/xplat_winnls.h:24:
  146. In file included from /private/tmp/pear/temp/sqlsrv/shared/typedefs_for_linux.h:23:
  147. /private/tmp/pear/temp/sqlsrv/shared/xplat.h:182:9: warning: 'FALSE' macro redefined [-Wmacro-redefined]
  148. #define FALSE ((BOOL)0)
  149. ^
  150. /usr/local/include/iodbcunix.h:112:9: note: previous definition is here
  151. #define FALSE 0
  152. ^
  153. In file included from /private/tmp/pear/temp/sqlsrv/conn.cpp:20:
  154. In file included from /private/tmp/pear/temp/sqlsrv/php_sqlsrv.h:25:
  155. In file included from /private/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:41:
  156. In file included from /private/tmp/pear/temp/sqlsrv/shared/FormattedPrint.h:24:
  157. In file included from /private/tmp/pear/temp/sqlsrv/shared/xplat_winnls.h:24:
  158. In file included from /private/tmp/pear/temp/sqlsrv/shared/typedefs_for_linux.h:23:
  159. /private/tmp/pear/temp/sqlsrv/shared/xplat.h:183:9: warning: 'TRUE' macro redefined [-Wmacro-redefined]
  160. #define TRUE ((BOOL)1)
  161. ^
  162. /usr/local/include/iodbcunix.h:109:9: note: previous definition is here
  163. #define TRUE 1
  164. ^
  165. In file included from /private/tmp/pear/temp/sqlsrv/conn.cpp:20:
  166. In file included from /private/tmp/pear/temp/sqlsrv/php_sqlsrv.h:25:
  167. In file included from /private/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:41:
  168. In file included from /private/tmp/pear/temp/sqlsrv/shared/FormattedPrint.h:24:
  169. In file included from /private/tmp/pear/temp/sqlsrv/shared/xplat_winnls.h:24:
  170. /private/tmp/pear/temp/sqlsrv/shared/typedefs_for_linux.h:35:5: error: unknown type name 'LPTSTR'
  171. LPTSTR lpBuffer,
  172. ^
  173. In file included from /private/tmp/pear/temp/sqlsrv/conn.cpp:20:
  174. In file included from /private/tmp/pear/temp/sqlsrv/php_sqlsrv.h:25:
  175. /private/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1752:29: warning: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior [-Wvarargs]
  176. va_start( print_params, warning );
  177. ^
  178. /private/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1749:120: note: parameter of type 'bool' is declared here
  179. inline bool call_error_handler( _Inout_ sqlsrv_context& ctx, _In_ unsigned long sqlsrv_error_code TSRMLS_DC, _In_ bool warning, ... )
  180. ^
  181. /private/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1761:29: warning: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior [-Wvarargs]
  182. va_start( print_params, warning );
  183. ^
  184. /private/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1758:120: note: parameter of type 'bool' is declared here
  185. inline bool call_error_handler( _Inout_ sqlsrv_context* ctx, _In_ unsigned long sqlsrv_error_code TSRMLS_DC, _In_ bool warning, ... )
  186. ^
  187. In file included from /private/tmp/pear/temp/sqlsrv/conn.cpp:20:
  188. /private/tmp/pear/temp/sqlsrv/php_sqlsrv.h:514:20: warning: expression result unused [-Wunused-value]
  189. SQLSRV_UNUSED( return_value );
  190. ^~~~~~~~~~~~
  191. /private/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1643:32: note: expanded from macro 'SQLSRV_UNUSED'
  192. #define SQLSRV_UNUSED( var ) var;
  193. ^~~
  194. /private/tmp/pear/temp/sqlsrv/conn.cpp:1218:22: warning: enumeration value 'CONN_ATTR_INVALID' not handled in switch [-Wswitch]
  195. switch( SS_CONN_OPTS[ i ].value_type ) {
  196. ^
  197. /private/tmp/pear/temp/sqlsrv/conn.cpp:1218:22: note: add missing switch cases
  198. switch( SS_CONN_OPTS[ i ].value_type ) {
  199. ^
  200. In file included from /private/tmp/pear/temp/sqlsrv/conn.cpp:20:
  201. /private/tmp/pear/temp/sqlsrv/php_sqlsrv.h:514:20: warning: expression result unused [-Wunused-value]
  202. SQLSRV_UNUSED( return_value );
  203. ^~~~~~~~~~~~
  204. /private/tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:1643:32: note: expanded from macro 'SQLSRV_UNUSED'
  205. #define SQLSRV_UNUSED( var ) var;
  206. ^~~
  207. /private/tmp/pear/temp/sqlsrv/conn.cpp:597:5: note: in instantiation of function template specialization 'process_params<ss_sqlsrv_conn>' requested here
  208. PROCESS_PARAMS( conn, "r", _FN_, 0 );
  209. ^
  210. /private/tmp/pear/temp/sqlsrv/conn.cpp:168:12: note: expanded from macro 'PROCESS_PARAMS'
  211. rsrc = process_params<ss_sqlsrv_conn>( INTERNAL_FUNCTION_PARAM_PASSTHRU, param_spec, calling_func, param_count, ##__VA_ARGS__ );\
  212. ^
  213. 7 warnings and 3 errors generated.
  214. make: *** [conn.lo] Error 1
  215. ERROR: `make' failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement