免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
1234
最近访问板块 发新帖
楼主: limits999
打印 上一主题 下一主题

DBD::mysql模块的安装失败 [复制链接]

论坛徽章:
7
巳蛇
日期:2014-04-10 08:54:57白羊座
日期:2014-04-22 20:06:262015年亚洲杯之沙特阿拉伯
日期:2015-02-10 14:18:532015年辞旧岁徽章
日期:2015-03-03 16:54:152015亚冠之吉达阿赫利
日期:2015-06-02 11:34:112015亚冠之武里南联
日期:2015-06-24 12:13:082015亚冠之阿尔纳斯尔
日期:2015-08-03 09:08:25
31 [报告]
发表于 2014-05-20 17:13 |只看该作者
回复 30# Monox


    不好意思,打字的时候少打了几个字,不是在D之前加I,而是加-I,也就是有一个小横杠。

论坛徽章:
0
32 [报告]
发表于 2014-05-21 09:11 |只看该作者
Monox 发表于 2014-05-20 17:00
回复 28# limits999


灰常灰常感激啊,一直陪着我调试,我都不好意思了
言归正传,直接加-I后的完整代码如下(贴不下的代码在下一楼里):
  1. C:\Users\Administrator>d:

  2. D:\>cd D:\perl\DBD-mysql-4.027

  3. D:\perl\DBD-mysql-4.027>perl Makefile.PL --cflags=-ID:\mysql\mysql-5.5.25-winx64\include --libs=D:\mysql\mysql-5.5.25-wi
  4. nx64\lib  --testhost=localhost --testuser=root  --testpassword=111111  --testdb=test

  5. mysql_config.pl, and an associated bat file, has been
  6. successfully created under
  7.    D:\mysql\MYSQL-~1.25-\bin

  8. Unknown option: testsocket
  9. Unknown option: testport
  10. Unknown option: nocatchstderr
  11. Unknown option: ssl
  12. Unknown option: nofoundrows
  13. Unknown option: force-embedded
  14. I will use the following settings for compiling and testing:

  15.   cflags        (User's choice) = -ID:\mysql\mysql-5.5.25-winx64\include
  16.   embedded      (mysql_config ) =
  17.   libs          (User's choice) = D:\mysql\mysql-5.5.25-winx64\lib
  18.   mysql_config  (guessed      ) = mysql_config
  19.   nocatchstderr (default      ) = 0
  20.   nofoundrows   (default      ) = 0
  21.   ssl           (guessed      ) = 0
  22.   testdb        (User's choice) = test
  23.   testhost      (User's choice) = localhost
  24.   testpassword  (User's choice) = 111111
  25.   testport      (default      ) =
  26.   testsocket    (default      ) =
  27.   testuser      (User's choice) = root

  28. To change these settings, see 'perl Makefile.PL --help' and
  29. 'perldoc DBD::mysql::INSTALL'.

  30. Checking if your kit is complete...
  31. Looks good
  32. Warning (mostly harmless): No library found for -lmoldname
  33. Warning (mostly harmless): No library found for -lkernel32
  34. Warning (mostly harmless): No library found for -luser32
  35. Warning (mostly harmless): No library found for -lgdi32
  36. Warning (mostly harmless): No library found for -lwinspool
  37. Warning (mostly harmless): No library found for -lcomdlg32
  38. Warning (mostly harmless): No library found for -ladvapi32
  39. Warning (mostly harmless): No library found for -lshell32
  40. Warning (mostly harmless): No library found for -lole32
  41. Warning (mostly harmless): No library found for -loleaut32
  42. Warning (mostly harmless): No library found for -lnetapi32
  43. Warning (mostly harmless): No library found for -luuid
  44. Warning (mostly harmless): No library found for -lws2_32
  45. Warning (mostly harmless): No library found for -lmpr
  46. Warning (mostly harmless): No library found for -lwinmm
  47. Warning (mostly harmless): No library found for -lversion
  48. Warning (mostly harmless): No library found for -lodbc32
  49. Warning (mostly harmless): No library found for -lodbccp32
  50. Warning (mostly harmless): No library found for -lcomctl32
  51. Multiple copies of Driver.xst found in: D:/perl/site/lib/auto/DBI/ D:/perl/lib/auto/DBI/ at Makefile.PL line 936.
  52. Using DBI 1.631 (for perl 5.018002 on MSWin32-x64-multi-thread) installed in D:/perl/site/lib/auto/DBI/
  53. Generating a dmake-style Makefile
  54. Writing Makefile for DBD::mysql
  55. Writing MYMETA.yml and MYMETA.json

  56. D:\perl\DBD-mysql-4.027>


  57. D:\perl\DBD-mysql-4.027>dmake test
  58. cp lib/DBD/mysql/GetInfo.pm blib\lib\DBD\mysql\GetInfo.pm
  59. cp lib/DBD/mysql.pm blib\lib\DBD\mysql.pm
  60. cp README.pod blib\lib\DBD\README.pod
  61. cp lib/DBD/mysql/INSTALL.pod blib\lib\DBD\mysql\INSTALL.pod
  62. cp lib/Bundle/DBD/mysql.pm blib\lib\Bundle\DBD\mysql.pm
  63. Running Mkbootstrap for DBD::mysql ()
  64. D:\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 mysql.bs
  65. gcc -c  -ID:\perl\site\lib\auto\DBI -ID:\mysql\mysql-5.5.25-winx64\include -DDBD_MYSQL_INSERT_ID_IS_GOOD -g     -s -O2 -
  66. DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -D
  67. USE_PERLIO -fno-strict-aliasing -mms-bitfields -s -O2     -DVERSION=\"4.027\"   -DXS_VERSION=\"4.027\"  "-ID:\perl\lib\C
  68. ORE"   dbdimp.c
  69. dbdimp.c: In function 'mysql_db_disconnect':
  70. dbdimp.c:2213:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  71.                  (long) imp_dbh->pmysql);
  72.                  ^
  73. In file included from d:\dev-cpp\mingw64\lib\gcc\x86_64-w64-mingw32\4.8.1\include\mm_malloc.h:27:0,
  74.                  from d:\dev-cpp\mingw64\lib\gcc\x86_64-w64-mingw32\4.8.1\include\xmmintrin.h:38,
  75.                  from d:\dev-cpp\mingw64\lib\gcc\x86_64-w64-mingw32\4.8.1\include\x86intrin.h:34,
  76.                  from d:\dev-cpp\mingw64\x86_64-w64-mingw32\include\winnt.h:1495,
  77.                  from d:\dev-cpp\mingw64\x86_64-w64-mingw32\include\minwindef.h:146,
  78.                  from d:\dev-cpp\mingw64\x86_64-w64-mingw32\include\windef.h:8,
  79.                  from d:\dev-cpp\mingw64\x86_64-w64-mingw32\include\windows.h:69,
  80.                  from dbdimp.c:16:
  81. dbdimp.c: In function 'mysql_st_internal_execute':
  82. dbdimp.c:3167:7: warning: '_errno' redeclared without dllimport attribute after being referenced with dll linkage [enabl
  83. ed by default]
  84.    int errno;
  85.        ^
  86. dbdimp.c: In function 'mysql_st_execute':
  87. dbdimp.c:3495:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  88.        " -> dbd_st_execute for %08lx\n", (u_long) sth);
  89.                                          ^
  90. dbdimp.c: In function 'mysql_st_fetch':
  91. dbdimp.c:3791:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  92.                    (u_long) sth, ChopBlanks);
  93.                    ^
  94. dbdimp.c:3959:71: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  95.        PerlIO_printf(DBIc_LOGPIO(imp_xxh), "\timp_sth->result=%08lx\n",(long unsigned int) imp_sth->result);
  96.                                                                        ^
  97. dbdimp.c:3967:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  98.                      (u_long) sth,imp_sth->currow);
  99.                      ^
  100. dbdimp.c: In function 'mysql_st_STORE_attrib':
  101. dbdimp.c:4276:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  102.                    (u_long) sth, key);
  103.                    ^
  104. dbdimp.c:4286:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  105.                    (u_long) sth, retval);
  106.                    ^
  107. dbdimp.c: In function 'mysql_st_FETCH_attrib':
  108. dbdimp.c:4485:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  109.                    (u_long) sth, key);
  110.                    ^
  111. D:\perl\bin\perl.exe -p -e "s/~DRIVER~/mysql/g" D:\perl\site\lib\auto\DBI\Driver.xst > mysql.xsi
  112. D:\perl\bin\perl.exe D:\perl\lib\ExtUtils\xsubpp  -typemap D:\perl\lib\ExtUtils\typemap  mysql.xs > mysql.xsc && D:\perl
  113. \bin\perl.exe -MExtUtils::Command -e mv -- mysql.xsc mysql.c
  114. Warning: duplicate function definition 'do' detected in mysql.xs, line 242
  115. Warning: duplicate function definition 'rows' detected in mysql.xs, line 754
  116. gcc -c  -ID:\perl\site\lib\auto\DBI -ID:\mysql\mysql-5.5.25-winx64\include -DDBD_MYSQL_INSERT_ID_IS_GOOD -g     -s -O2 -
  117. DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -D
  118. USE_PERLIO -fno-strict-aliasing -mms-bitfields -s -O2     -DVERSION=\"4.027\"   -DXS_VERSION=\"4.027\"  "-ID:\perl\lib\C
  119. ORE"   mysql.c
  120. mysql.xs: In function 'XS_DBD__mysql__GetInfo_dbd_mysql_get_info':
  121. mysql.xs:933:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  122.     croak("Unknown SQL Info type: %i", (int) dbh);
  123.                                        ^
  124. D:\perl\bin\perl.exe -MExtUtils::Mksymlists \
  125.      -e "Mksymlists('NAME'=>\"DBD::mysql\", 'DLBASE' => 'mysql', 'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' => {  }
  126. , 'DL_VARS' => []);"
  127. dlltool --def mysql.def --output-exp dll.exp
  128. D:\perl\bin\perl.exe myld g++ -o blib\arch\auto\DBD\mysql\mysql.dll -Wl,--base-file -Wl,dll.base -mdll -s -static-libgcc
  129. -static-libstdc++ -L"D:\perl\lib\CORE" -L"C:\MinGW\x86_64-w64-mingw32\lib" dbdimp.o    mysql.o   D:\perl\lib\CORE\libpe
  130. rl518.a -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32
  131. -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp
  132. dbdimp.o: In function `mysql_dr_connect':
  133. D:\perl\DBD-mysql-4.027/dbdimp.c:1663: undefined reference to `mysql_init'
  134. D:\perl\DBD-mysql-4.027/dbdimp.c:1924: undefined reference to `mysql_real_connect'
  135. D:\perl\DBD-mysql-4.027/dbdimp.c:1704: undefined reference to `mysql_options'
  136. D:\perl\DBD-mysql-4.027/dbdimp.c:1841: undefined reference to `mysql_options'
  137. D:\perl\DBD-mysql-4.027/dbdimp.c:1912: undefined reference to `mysql_options'
  138. D:\perl\DBD-mysql-4.027/dbdimp.c:1758: undefined reference to `mysql_options'
  139. D:\perl\DBD-mysql-4.027/dbdimp.c:1737: undefined reference to `mysql_options'
  140. dbdimp.o:D:\perl\DBD-mysql-4.027/dbdimp.c:1715: more undefined references to `mysql_options' follow
  141. dbdimp.o: In function `mysql_db_login':
  142. D:\perl\DBD-mysql-4.027/dbdimp.c:2096: undefined reference to `mysql_sqlstate'
  143. D:\perl\DBD-mysql-4.027/dbdimp.c:2096: undefined reference to `mysql_error'
  144. D:\perl\DBD-mysql-4.027/dbdimp.c:2096: undefined reference to `mysql_errno'
  145. dbdimp.o: In function `mysql_db_commit':
  146. D:\perl\DBD-mysql-4.027/dbdimp.c:2141: undefined reference to `mysql_commit'
  147. D:\perl\DBD-mysql-4.027/dbdimp.c:2144: undefined reference to `mysql_sqlstate'
  148. D:\perl\DBD-mysql-4.027/dbdimp.c:2144: undefined reference to `mysql_error'
  149. D:\perl\DBD-mysql-4.027/dbdimp.c:2144: undefined reference to `mysql_errno'
  150. dbdimp.o: In function `mysql_db_rollback':
  151. D:\perl\DBD-mysql-4.027/dbdimp.c:2171: undefined reference to `mysql_rollback'
  152. D:\perl\DBD-mysql-4.027/dbdimp.c:2174: undefined reference to `mysql_sqlstate'
  153. D:\perl\DBD-mysql-4.027/dbdimp.c:2174: undefined reference to `mysql_error'
  154. D:\perl\DBD-mysql-4.027/dbdimp.c:2174: undefined reference to `mysql_errno'
  155. dbdimp.o: In function `mysql_db_disconnect':
  156. D:\perl\DBD-mysql-4.027/dbdimp.c:2214: undefined reference to `mysql_close'
  157. dbdimp.o: In function `dbd_discon_all':
  158. D:\perl\DBD-mysql-4.027/dbdimp.c:2265: undefined reference to `mysql_server_end'
  159. dbdimp.o: In function `mysql_db_destroy':
  160. D:\perl\DBD-mysql-4.027/dbdimp.c:2308: undefined reference to `mysql_rollback'
  161. dbdimp.o: In function `mysql_db_STORE_attrib':
  162. D:\perl\DBD-mysql-4.027/dbdimp.c:2365: undefined reference to `mysql_autocommit'
  163. dbdimp.o: In function `mysql_db_FETCH_attrib':
  164. D:\perl\DBD-mysql-4.027/dbdimp.c:2614: undefined reference to `mysql_warning_count'
  165. D:\perl\DBD-mysql-4.027/dbdimp.c:2507: undefined reference to `mysql_get_client_version'
  166. D:\perl\DBD-mysql-4.027/dbdimp.c:2609: undefined reference to `mysql_thread_id'
  167. D:\perl\DBD-mysql-4.027/dbdimp.c:2565: undefined reference to `mysql_insert_id'
  168. D:\perl\DBD-mysql-4.027/dbdimp.c:2575: undefined reference to `mysql_get_proto_info'
  169. D:\perl\DBD-mysql-4.027/dbdimp.c:2512: undefined reference to `mysql_errno'
  170. D:\perl\DBD-mysql-4.027/dbdimp.c:2560: undefined reference to `mysql_info'
  171. D:\perl\DBD-mysql-4.027/dbdimp.c:2501: undefined reference to `mysql_get_client_info'
  172. D:\perl\DBD-mysql-4.027/dbdimp.c:2580: undefined reference to `mysql_get_server_info'
  173. D:\perl\DBD-mysql-4.027/dbdimp.c:2551: undefined reference to `mysql_get_host_info'
  174. D:\perl\DBD-mysql-4.027/dbdimp.c:2516: undefined reference to `mysql_error'
  175. D:\perl\DBD-mysql-4.027/dbdimp.c:2585: undefined reference to `mysql_get_server_version'
  176. D:\perl\DBD-mysql-4.027/dbdimp.c:2599: undefined reference to `mysql_stat'
  177. dbdimp.o: In function `mysql_st_free_result_sets':
  178. D:\perl\DBD-mysql-4.027/dbdimp.c:2953: undefined reference to `mysql_free_result'
  179. D:\perl\DBD-mysql-4.027/dbdimp.c:2956: undefined reference to `mysql_next_result'
  180. D:\perl\DBD-mysql-4.027/dbdimp.c:2936: undefined reference to `mysql_use_result'
  181. D:\perl\DBD-mysql-4.027/dbdimp.c:2939: undefined reference to `mysql_field_count'
  182. D:\perl\DBD-mysql-4.027/dbdimp.c:2942: undefined reference to `mysql_error'
  183. D:\perl\DBD-mysql-4.027/dbdimp.c:2945: undefined reference to `mysql_sqlstate'
  184. D:\perl\DBD-mysql-4.027/dbdimp.c:2945: undefined reference to `mysql_error'
  185. D:\perl\DBD-mysql-4.027/dbdimp.c:2945: undefined reference to `mysql_errno'
  186. D:\perl\DBD-mysql-4.027/dbdimp.c:2961: undefined reference to `mysql_error'
  187. D:\perl\DBD-mysql-4.027/dbdimp.c:2964: undefined reference to `mysql_sqlstate'
  188. D:\perl\DBD-mysql-4.027/dbdimp.c:2964: undefined reference to `mysql_error'
  189. D:\perl\DBD-mysql-4.027/dbdimp.c:2964: undefined reference to `mysql_errno'
  190. dbdimp.o: In function `mysql_st_prepare':
  191. D:\perl\DBD-mysql-4.027/dbdimp.c:2795: undefined reference to `mysql_stmt_init'
  192. D:\perl\DBD-mysql-4.027/dbdimp.c:2807: undefined reference to `mysql_stmt_prepare'
  193. D:\perl\DBD-mysql-4.027/dbdimp.c:2818: undefined reference to `mysql_stmt_error'
  194. D:\perl\DBD-mysql-4.027/dbdimp.c:2818: undefined reference to `mysql_stmt_errno'
  195. D:\perl\DBD-mysql-4.027/dbdimp.c:2825: undefined reference to `mysql_stmt_errno'
  196. D:\perl\DBD-mysql-4.027/dbdimp.c:2834: undefined reference to `mysql_sqlstate'
  197. D:\perl\DBD-mysql-4.027/dbdimp.c:2834: undefined reference to `mysql_stmt_error'
  198. D:\perl\DBD-mysql-4.027/dbdimp.c:2834: undefined reference to `mysql_stmt_errno'
  199. D:\perl\DBD-mysql-4.027/dbdimp.c:2837: undefined reference to `mysql_stmt_close'
  200. D:\perl\DBD-mysql-4.027/dbdimp.c:2844: undefined reference to `mysql_stmt_param_count'
  201. D:\perl\DBD-mysql-4.027/dbdimp.c:2800: undefined reference to `mysql_error'
  202. D:\perl\DBD-mysql-4.027/dbdimp.c:2800: undefined reference to `mysql_errno'
  203. dbdimp.o: In function `mysql_st_next_results':
  204. D:\perl\DBD-mysql-4.027/dbdimp.c:3010: undefined reference to `mysql_more_results'
  205. D:\perl\DBD-mysql-4.027/dbdimp.c:3039: undefined reference to `mysql_free_result'
  206. D:\perl\DBD-mysql-4.027/dbdimp.c:3044: undefined reference to `mysql_next_result'
  207. D:\perl\DBD-mysql-4.027/dbdimp.c:3046: undefined reference to `mysql_warning_count'
  208. D:\perl\DBD-mysql-4.027/dbdimp.c:3069: undefined reference to `mysql_use_result'
  209. D:\perl\DBD-mysql-4.027/dbdimp.c:3071: undefined reference to `mysql_errno'
  210. D:\perl\DBD-mysql-4.027/dbdimp.c:3078: undefined reference to `mysql_affected_rows'
  211. D:\perl\DBD-mysql-4.027/dbdimp.c:3118: undefined reference to `mysql_num_fields'
  212. D:\perl\DBD-mysql-4.027/dbdimp.c:3073: undefined reference to `mysql_sqlstate'
  213. D:\perl\DBD-mysql-4.027/dbdimp.c:3073: undefined reference to `mysql_error'
  214. D:\perl\DBD-mysql-4.027/dbdimp.c:3073: undefined reference to `mysql_errno'
  215. D:\perl\DBD-mysql-4.027/dbdimp.c:3069: undefined reference to `mysql_store_result'
  216. dbdimp.o: In function `mysql_st_internal_execute41':
  217. D:\perl\DBD-mysql-4.027/dbdimp.c:3373: undefined reference to `mysql_free_result'
  218. D:\perl\DBD-mysql-4.027/dbdimp.c:3395: undefined reference to `mysql_stmt_execute'
  219. D:\perl\DBD-mysql-4.027/dbdimp.c:3443: undefined reference to `mysql_free_result'
  220. D:\perl\DBD-mysql-4.027/dbdimp.c:3447: undefined reference to `mysql_stmt_error'
  221. D:\perl\DBD-mysql-4.027/dbdimp.c:3447: undefined reference to `mysql_stmt_errno'
  222. D:\perl\DBD-mysql-4.027/dbdimp.c:3451: undefined reference to `mysql_stmt_sqlstate'
  223. D:\perl\DBD-mysql-4.027/dbdimp.c:3451: undefined reference to `mysql_stmt_error'
  224. D:\perl\DBD-mysql-4.027/dbdimp.c:3451: undefined reference to `mysql_stmt_errno'
  225. D:\perl\DBD-mysql-4.027/dbdimp.c:3453: undefined reference to `mysql_stmt_reset'
  226. D:\perl\DBD-mysql-4.027/dbdimp.c:3406: undefined reference to `mysql_stmt_result_metadata'
  227. D:\perl\DBD-mysql-4.027/dbdimp.c:3418: undefined reference to `mysql_stmt_field_count'
  228. D:\perl\DBD-mysql-4.027/dbdimp.c:3424: undefined reference to `mysql_stmt_attr_set'
  229. D:\perl\DBD-mysql-4.027/dbdimp.c:3429: undefined reference to `mysql_stmt_store_result'
  230. D:\perl\DBD-mysql-4.027/dbdimp.c:3432: undefined reference to `mysql_stmt_num_rows'
  231. D:\perl\DBD-mysql-4.027/dbdimp.c:3384: undefined reference to `mysql_stmt_bind_param'
  232. D:\perl\DBD-mysql-4.027/dbdimp.c:3408: undefined reference to `mysql_stmt_errno'
  233. D:\perl\DBD-mysql-4.027/dbdimp.c:3411: undefined reference to `mysql_stmt_affected_rows'
  234. dbdimp.o: In function `mysql_describe':
  235. D:\perl\DBD-mysql-4.027/dbdimp.c:3648: undefined reference to `mysql_fetch_fields'
  236. D:\perl\DBD-mysql-4.027/dbdimp.c:3699: undefined reference to `mysql_stmt_bind_result'
  237. D:\perl\DBD-mysql-4.027/dbdimp.c:3701: undefined reference to `mysql_stmt_sqlstate'
  238. D:\perl\DBD-mysql-4.027/dbdimp.c:3701: undefined reference to `mysql_stmt_error'
  239. D:\perl\DBD-mysql-4.027/dbdimp.c:3701: undefined reference to `mysql_stmt_errno'
  240. dbdimp.o: In function `mysql_st_clean_cursor':
  241. D:\perl\DBD-mysql-4.027/dbdimp.c:4079: undefined reference to `mysql_stmt_free_result'
  242. dbdimp.o: In function `mysql_st_fetch':
  243. D:\perl\DBD-mysql-4.027/dbdimp.c:3961: undefined reference to `mysql_num_fields'
  244. D:\perl\DBD-mysql-4.027/dbdimp.c:3962: undefined reference to `mysql_num_rows'
  245. D:\perl\DBD-mysql-4.027/dbdimp.c:3964: undefined reference to `mysql_affected_rows'
  246. D:\perl\DBD-mysql-4.027/dbdimp.c:3970: undefined reference to `mysql_fetch_row'
  247. D:\perl\DBD-mysql-4.027/dbdimp.c:3989: undefined reference to `mysql_num_fields'
  248. D:\perl\DBD-mysql-4.027/dbdimp.c:3990: undefined reference to `mysql_fetch_fields'
  249. D:\perl\DBD-mysql-4.027/dbdimp.c:3991: undefined reference to `mysql_fetch_lengths'
  250. D:\perl\DBD-mysql-4.027/dbdimp.c:3808: undefined reference to `mysql_stmt_fetch'
  251. D:\perl\DBD-mysql-4.027/dbdimp.c:3838: undefined reference to `mysql_stmt_field_count'
  252. D:\perl\DBD-mysql-4.027/dbdimp.c:3881: undefined reference to `mysql_stmt_fetch_column'
  253. D:\perl\DBD-mysql-4.027/dbdimp.c:3882: undefined reference to `mysql_stmt_sqlstate'
  254. D:\perl\DBD-mysql-4.027/dbdimp.c:3882: undefined reference to `mysql_stmt_error'
  255. D:\perl\DBD-mysql-4.027/dbdimp.c:3882: undefined reference to `mysql_stmt_errno'
  256. D:\perl\DBD-mysql-4.027/dbdimp.c:3976: undefined reference to `mysql_errno'
  257. D:\perl\DBD-mysql-4.027/dbdimp.c:3983: undefined reference to `mysql_more_results'
  258. D:\perl\DBD-mysql-4.027/dbdimp.c:3824: undefined reference to `mysql_stmt_affected_rows'
  259. D:\perl\DBD-mysql-4.027/dbdimp.c:3977: undefined reference to `mysql_sqlstate'
  260. D:\perl\DBD-mysql-4.027/dbdimp.c:3977: undefined reference to `mysql_error'
  261. D:\perl\DBD-mysql-4.027/dbdimp.c:3977: undefined reference to `mysql_errno'
  262. D:\perl\DBD-mysql-4.027/dbdimp.c:3811: undefined reference to `mysql_stmt_sqlstate'
  263. D:\perl\DBD-mysql-4.027/dbdimp.c:3811: undefined reference to `mysql_stmt_error'
  264. D:\perl\DBD-mysql-4.027/dbdimp.c:3811: undefined reference to `mysql_stmt_errno'
  265. dbdimp.o: In function `mysql_st_destroy':
  266. D:\perl\DBD-mysql-4.027/dbdimp.c:4211: undefined reference to `mysql_stmt_close'
  267. D:\perl\DBD-mysql-4.027/dbdimp.c:4213: undefined reference to `mysql_stmt_sqlstate'
  268. D:\perl\DBD-mysql-4.027/dbdimp.c:4213: undefined reference to `mysql_stmt_error'
  269. D:\perl\DBD-mysql-4.027/dbdimp.c:4213: undefined reference to `mysql_stmt_errno'
  270. dbdimp.o: In function `mysql_st_FETCH_internal':
  271. D:\perl\DBD-mysql-4.027/dbdimp.c:4353: undefined reference to `mysql_field_seek'
  272. D:\perl\DBD-mysql-4.027/dbdimp.c:4354: undefined reference to `mysql_fetch_field'
  273. D:\perl\DBD-mysql-4.027/dbdimp.c:4354: undefined reference to `mysql_fetch_field'
  274. dbdimp.o: In function `mysql_db_reconnect':
  275. D:\perl\DBD-mysql-4.027/dbdimp.c:4872: undefined reference to `mysql_errno'
  276. D:\perl\DBD-mysql-4.027/dbdimp.c:4900: undefined reference to `mysql_sqlstate'
  277. D:\perl\DBD-mysql-4.027/dbdimp.c:4900: undefined reference to `mysql_error'
  278. D:\perl\DBD-mysql-4.027/dbdimp.c:4900: undefined reference to `mysql_errno'
  279. dbdimp.o: In function `mysql_st_internal_execute':
  280. D:\perl\DBD-mysql-4.027/dbdimp.c:3268: undefined reference to `mysql_list_fields'
  281. D:\perl\DBD-mysql-4.027/dbdimp.c:3274: undefined reference to `mysql_sqlstate'
  282. D:\perl\DBD-mysql-4.027/dbdimp.c:3274: undefined reference to `mysql_error'
  283. D:\perl\DBD-mysql-4.027/dbdimp.c:3274: undefined reference to `mysql_errno'
  284. D:\perl\DBD-mysql-4.027/dbdimp.c:3294: undefined reference to `mysql_real_query'
  285. D:\perl\DBD-mysql-4.027/dbdimp.c:3302: undefined reference to `mysql_store_result'
  286. D:\perl\DBD-mysql-4.027/dbdimp.c:3304: undefined reference to `mysql_errno'
  287. D:\perl\DBD-mysql-4.027/dbdimp.c:3311: undefined reference to `mysql_num_rows'
  288. dbdimp.o: In function `parse_params':
  289. D:\perl\DBD-mysql-4.027/dbdimp.c:767: undefined reference to `mysql_real_escape_string'
  290. dbdimp.o: In function `mysql_st_internal_execute':
  291. D:\perl\DBD-mysql-4.027/dbdimp.c:3302: undefined reference to `mysql_use_result'
  292. D:\perl\DBD-mysql-4.027/dbdimp.c:3320: undefined reference to `mysql_sqlstate'
  293. D:\perl\DBD-mysql-4.027/dbdimp.c:3320: undefined reference to `mysql_error'
  294. D:\perl\DBD-mysql-4.027/dbdimp.c:3320: undefined reference to `mysql_errno'
  295. D:\perl\DBD-mysql-4.027/dbdimp.c:3305: undefined reference to `mysql_sqlstate'
  296. D:\perl\DBD-mysql-4.027/dbdimp.c:3305: undefined reference to `mysql_error'
  297. D:\perl\DBD-mysql-4.027/dbdimp.c:3305: undefined reference to `mysql_errno'
  298. D:\perl\DBD-mysql-4.027/dbdimp.c:3309: undefined reference to `mysql_affected_rows'
  299. D:\perl\DBD-mysql-4.027/dbdimp.c:3296: undefined reference to `mysql_real_query'
  300. dbdimp.o: In function `mysql_st_execute':
  301. D:\perl\DBD-mysql-4.027/dbdimp.c:3563: undefined reference to `mysql_num_fields'
  302. D:\perl\DBD-mysql-4.027/dbdimp.c:3571: undefined reference to `mysql_warning_count'
  303. D:\perl\DBD-mysql-4.027/dbdimp.c:3554: undefined reference to `mysql_insert_id'
  304. D:\perl\DBD-mysql-4.027/dbdimp.c:3556: undefined reference to `mysql_more_results'
  305. dbdimp.o: In function `mysql_db_quote':
  306. D:\perl\DBD-mysql-4.027/dbdimp.c:5074: undefined reference to `mysql_real_escape_string'
  307. dbdimp.o: In function `mysql_db_last_insert_id':
  308. D:\perl\DBD-mysql-4.027/dbdimp.c:5100: undefined reference to `mysql_insert_id'
  309. mysql.o: In function `XS_DBD__mysql__dr__ListDBs':
  310. D:\perl\DBD-mysql-4.027/mysql.xs:65: undefined reference to `mysql_list_dbs'
  311. D:\perl\DBD-mysql-4.027/mysql.xs:72: undefined reference to `mysql_num_rows'
  312. D:\perl\DBD-mysql-4.027/mysql.xs:73: undefined reference to `mysql_fetch_row'
  313. D:\perl\DBD-mysql-4.027/mysql.xs:77: undefined reference to `mysql_free_result'
  314. D:\perl\DBD-mysql-4.027/mysql.xs:79: undefined reference to `mysql_close'
  315. D:\perl\DBD-mysql-4.027/mysql.xs:72: undefined reference to `mysql_num_rows'
  316. D:\perl\DBD-mysql-4.027/mysql.xs:68: undefined reference to `mysql_sqlstate'
  317. D:\perl\DBD-mysql-4.027/mysql.xs:68: undefined reference to `mysql_error'
  318. D:\perl\DBD-mysql-4.027/mysql.xs:68: undefined reference to `mysql_errno'
  319. mysql.o: In function `XS_DBD__mysql__GetInfo_dbd_mysql_get_info':
  320. D:\perl\DBD-mysql-4.027/mysql.xs:906: undefined reference to `mysql_get_parameters'
  321. D:\perl\DBD-mysql-4.027/mysql.xs:902: undefined reference to `mysql_get_server_info'
  322. mysql.o: In function `XS_DBD__mysql__st_dataseek':
  323. D:\perl\DBD-mysql-4.027/mysql.xs:740: undefined reference to `mysql_data_seek'
  324. D:\perl\DBD-mysql-4.027/mysql.xs:720: undefined reference to `mysql_stmt_data_seek'
  325. mysql.o: In function `XS_DBD__mysql__db_ping':
  326. D:\perl\DBD-mysql-4.027/mysql.xs:589: undefined reference to `mysql_ping'
  327. D:\perl\DBD-mysql-4.027/mysql.xs:592: undefined reference to `mysql_ping'
  328. mysql.o: In function `XS_DBD__mysql__db_do':
  329. D:\perl\DBD-mysql-4.027/mysql.xs:276: undefined reference to `mysql_use_result'
  330. D:\perl\DBD-mysql-4.027/mysql.xs:274: undefined reference to `mysql_next_result'
  331. D:\perl\DBD-mysql-4.027/mysql.xs:278: undefined reference to `mysql_free_result'
  332. D:\perl\DBD-mysql-4.027/mysql.xs:326: undefined reference to `mysql_stmt_init'
  333. D:\perl\DBD-mysql-4.027/mysql.xs:328: undefined reference to `mysql_stmt_prepare'
  334. D:\perl\DBD-mysql-4.027/mysql.xs:508: undefined reference to `mysql_stmt_close'
  335. D:\perl\DBD-mysql-4.027/mysql.xs:542: undefined reference to `mysql_free_result'
  336. D:\perl\DBD-mysql-4.027/mysql.xs:551: undefined reference to `mysql_use_result'
  337. D:\perl\DBD-mysql-4.027/mysql.xs:549: undefined reference to `mysql_next_result'
  338. D:\perl\DBD-mysql-4.027/mysql.xs:558: undefined reference to `mysql_error'
  339. D:\perl\DBD-mysql-4.027/mysql.xs:562: undefined reference to `mysql_sqlstate'
  340. D:\perl\DBD-mysql-4.027/mysql.xs:562: undefined reference to `mysql_error'
  341. D:\perl\DBD-mysql-4.027/mysql.xs:562: undefined reference to `mysql_errno'
  342. D:\perl\DBD-mysql-4.027/mysql.xs:330: undefined reference to `mysql_stmt_prepare'
  343. D:\perl\DBD-mysql-4.027/mysql.xs:336: undefined reference to `mysql_stmt_errno'
  344. D:\perl\DBD-mysql-4.027/mysql.xs:346: undefined reference to `mysql_stmt_close'
  345. D:\perl\DBD-mysql-4.027/mysql.xs:553: undefined reference to `mysql_free_result'
  346. D:\perl\DBD-mysql-4.027/mysql.xs:511: undefined reference to `mysql_stmt_error'
  347. D:\perl\DBD-mysql-4.027/mysql.xs:342: undefined reference to `mysql_stmt_sqlstate'
  348. D:\perl\DBD-mysql-4.027/mysql.xs:342: undefined reference to `mysql_stmt_error'
  349. D:\perl\DBD-mysql-4.027/mysql.xs:342: undefined reference to `mysql_stmt_errno'
  350. D:\perl\DBD-mysql-4.027/mysql.xs:346: undefined reference to `mysql_stmt_close'
  351. mysql.o: In function `XS_DBD__mysql__db__ListDBs':
  352. D:\perl\DBD-mysql-4.027/mysql.xs:222: undefined reference to `mysql_list_dbs'
  353. D:\perl\DBD-mysql-4.027/mysql.xs:232: undefined reference to `mysql_num_rows'
  354. D:\perl\DBD-mysql-4.027/mysql.xs:233: undefined reference to `mysql_fetch_row'
  355. D:\perl\DBD-mysql-4.027/mysql.xs:237: undefined reference to `mysql_free_result'
  356. D:\perl\DBD-mysql-4.027/mysql.xs:232: undefined reference to `mysql_num_rows'
  357. D:\perl\DBD-mysql-4.027/mysql.xs:224: undefined reference to `mysql_list_dbs'
  358. D:\perl\DBD-mysql-4.027/mysql.xs:227: undefined reference to `mysql_sqlstate'
  359. D:\perl\DBD-mysql-4.027/mysql.xs:227: undefined reference to `mysql_error'
  360. D:\perl\DBD-mysql-4.027/mysql.xs:227: undefined reference to `mysql_errno'
  361. mysql.o: In function `XS_DBD__mysql__dr__admin_internal':
  362. D:\perl\DBD-mysql-4.027/mysql.xs:161: undefined reference to `mysql_real_query'
  363. D:\perl\DBD-mysql-4.027/mysql.xs:178: undefined reference to `mysql_close'
  364. D:\perl\DBD-mysql-4.027/mysql.xs:122: undefined reference to `mysql_shutdown'
  365. D:\perl\DBD-mysql-4.027/mysql.xs:172: undefined reference to `mysql_sqlstate'
  366. D:\perl\DBD-mysql-4.027/mysql.xs:172: undefined reference to `mysql_error'
  367. D:\perl\DBD-mysql-4.027/mysql.xs:172: undefined reference to `mysql_errno'
  368. D:\perl\DBD-mysql-4.027/mysql.xs:125: undefined reference to `mysql_refresh'
  369. D:\perl\DBD-mysql-4.027/mysql.xs:112: undefined reference to `mysql_sqlstate'
  370. D:\perl\DBD-mysql-4.027/mysql.xs:112: undefined reference to `mysql_error'
  371. D:\perl\DBD-mysql-4.027/mysql.xs:112: undefined reference to `mysql_errno'
  372. collect2.exe: error: ld returned 1 exit status
  373. dmake:  Error code 129, while making 'blib\arch\auto\DBD\mysql\mysql.dll'

  374. D:\perl\DBD-mysql-4.027>


复制代码

论坛徽章:
0
33 [报告]
发表于 2014-05-21 09:12 |只看该作者
上一楼里剩下的代码如下:
  1. D:\perl\DBD-mysql-4.027>dmake install
  2. dlltool --def mysql.def --output-exp dll.exp
  3. D:\perl\bin\perl.exe myld g++ -o blib\arch\auto\DBD\mysql\mysql.dll -Wl,--base-file -Wl,dll.base -mdll -s -static-libgcc
  4. -static-libstdc++ -L"D:\perl\lib\CORE" -L"C:\MinGW\x86_64-w64-mingw32\lib" dbdimp.o    mysql.o   D:\perl\lib\CORE\libpe
  5. rl518.a -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32
  6. -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp
  7. dbdimp.o: In function `mysql_dr_connect':
  8. D:\perl\DBD-mysql-4.027/dbdimp.c:1663: undefined reference to `mysql_init'
  9. D:\perl\DBD-mysql-4.027/dbdimp.c:1924: undefined reference to `mysql_real_connect'
  10. D:\perl\DBD-mysql-4.027/dbdimp.c:1704: undefined reference to `mysql_options'
  11. D:\perl\DBD-mysql-4.027/dbdimp.c:1841: undefined reference to `mysql_options'
  12. D:\perl\DBD-mysql-4.027/dbdimp.c:1912: undefined reference to `mysql_options'
  13. D:\perl\DBD-mysql-4.027/dbdimp.c:1758: undefined reference to `mysql_options'
  14. D:\perl\DBD-mysql-4.027/dbdimp.c:1737: undefined reference to `mysql_options'
  15. dbdimp.o:D:\perl\DBD-mysql-4.027/dbdimp.c:1715: more undefined references to `mysql_options' follow
  16. dbdimp.o: In function `mysql_db_login':
  17. D:\perl\DBD-mysql-4.027/dbdimp.c:2096: undefined reference to `mysql_sqlstate'
  18. D:\perl\DBD-mysql-4.027/dbdimp.c:2096: undefined reference to `mysql_error'
  19. D:\perl\DBD-mysql-4.027/dbdimp.c:2096: undefined reference to `mysql_errno'
  20. dbdimp.o: In function `mysql_db_commit':
  21. D:\perl\DBD-mysql-4.027/dbdimp.c:2141: undefined reference to `mysql_commit'
  22. D:\perl\DBD-mysql-4.027/dbdimp.c:2144: undefined reference to `mysql_sqlstate'
  23. D:\perl\DBD-mysql-4.027/dbdimp.c:2144: undefined reference to `mysql_error'
  24. D:\perl\DBD-mysql-4.027/dbdimp.c:2144: undefined reference to `mysql_errno'
  25. dbdimp.o: In function `mysql_db_rollback':
  26. D:\perl\DBD-mysql-4.027/dbdimp.c:2171: undefined reference to `mysql_rollback'
  27. D:\perl\DBD-mysql-4.027/dbdimp.c:2174: undefined reference to `mysql_sqlstate'
  28. D:\perl\DBD-mysql-4.027/dbdimp.c:2174: undefined reference to `mysql_error'
  29. D:\perl\DBD-mysql-4.027/dbdimp.c:2174: undefined reference to `mysql_errno'
  30. dbdimp.o: In function `mysql_db_disconnect':
  31. D:\perl\DBD-mysql-4.027/dbdimp.c:2214: undefined reference to `mysql_close'
  32. dbdimp.o: In function `dbd_discon_all':
  33. D:\perl\DBD-mysql-4.027/dbdimp.c:2265: undefined reference to `mysql_server_end'
  34. dbdimp.o: In function `mysql_db_destroy':
  35. D:\perl\DBD-mysql-4.027/dbdimp.c:2308: undefined reference to `mysql_rollback'
  36. dbdimp.o: In function `mysql_db_STORE_attrib':
  37. D:\perl\DBD-mysql-4.027/dbdimp.c:2365: undefined reference to `mysql_autocommit'
  38. dbdimp.o: In function `mysql_db_FETCH_attrib':
  39. D:\perl\DBD-mysql-4.027/dbdimp.c:2614: undefined reference to `mysql_warning_count'
  40. D:\perl\DBD-mysql-4.027/dbdimp.c:2507: undefined reference to `mysql_get_client_version'
  41. D:\perl\DBD-mysql-4.027/dbdimp.c:2609: undefined reference to `mysql_thread_id'
  42. D:\perl\DBD-mysql-4.027/dbdimp.c:2565: undefined reference to `mysql_insert_id'
  43. D:\perl\DBD-mysql-4.027/dbdimp.c:2575: undefined reference to `mysql_get_proto_info'
  44. D:\perl\DBD-mysql-4.027/dbdimp.c:2512: undefined reference to `mysql_errno'
  45. D:\perl\DBD-mysql-4.027/dbdimp.c:2560: undefined reference to `mysql_info'
  46. D:\perl\DBD-mysql-4.027/dbdimp.c:2501: undefined reference to `mysql_get_client_info'
  47. D:\perl\DBD-mysql-4.027/dbdimp.c:2580: undefined reference to `mysql_get_server_info'
  48. D:\perl\DBD-mysql-4.027/dbdimp.c:2551: undefined reference to `mysql_get_host_info'
  49. D:\perl\DBD-mysql-4.027/dbdimp.c:2516: undefined reference to `mysql_error'
  50. D:\perl\DBD-mysql-4.027/dbdimp.c:2585: undefined reference to `mysql_get_server_version'
  51. D:\perl\DBD-mysql-4.027/dbdimp.c:2599: undefined reference to `mysql_stat'
  52. dbdimp.o: In function `mysql_st_free_result_sets':
  53. D:\perl\DBD-mysql-4.027/dbdimp.c:2953: undefined reference to `mysql_free_result'
  54. D:\perl\DBD-mysql-4.027/dbdimp.c:2956: undefined reference to `mysql_next_result'
  55. D:\perl\DBD-mysql-4.027/dbdimp.c:2936: undefined reference to `mysql_use_result'
  56. D:\perl\DBD-mysql-4.027/dbdimp.c:2939: undefined reference to `mysql_field_count'
  57. D:\perl\DBD-mysql-4.027/dbdimp.c:2942: undefined reference to `mysql_error'
  58. D:\perl\DBD-mysql-4.027/dbdimp.c:2945: undefined reference to `mysql_sqlstate'
  59. D:\perl\DBD-mysql-4.027/dbdimp.c:2945: undefined reference to `mysql_error'
  60. D:\perl\DBD-mysql-4.027/dbdimp.c:2945: undefined reference to `mysql_errno'
  61. D:\perl\DBD-mysql-4.027/dbdimp.c:2961: undefined reference to `mysql_error'
  62. D:\perl\DBD-mysql-4.027/dbdimp.c:2964: undefined reference to `mysql_sqlstate'
  63. D:\perl\DBD-mysql-4.027/dbdimp.c:2964: undefined reference to `mysql_error'
  64. D:\perl\DBD-mysql-4.027/dbdimp.c:2964: undefined reference to `mysql_errno'
  65. dbdimp.o: In function `mysql_st_prepare':
  66. D:\perl\DBD-mysql-4.027/dbdimp.c:2795: undefined reference to `mysql_stmt_init'
  67. D:\perl\DBD-mysql-4.027/dbdimp.c:2807: undefined reference to `mysql_stmt_prepare'
  68. D:\perl\DBD-mysql-4.027/dbdimp.c:2818: undefined reference to `mysql_stmt_error'
  69. D:\perl\DBD-mysql-4.027/dbdimp.c:2818: undefined reference to `mysql_stmt_errno'
  70. D:\perl\DBD-mysql-4.027/dbdimp.c:2825: undefined reference to `mysql_stmt_errno'
  71. D:\perl\DBD-mysql-4.027/dbdimp.c:2834: undefined reference to `mysql_sqlstate'
  72. D:\perl\DBD-mysql-4.027/dbdimp.c:2834: undefined reference to `mysql_stmt_error'
  73. D:\perl\DBD-mysql-4.027/dbdimp.c:2834: undefined reference to `mysql_stmt_errno'
  74. D:\perl\DBD-mysql-4.027/dbdimp.c:2837: undefined reference to `mysql_stmt_close'
  75. D:\perl\DBD-mysql-4.027/dbdimp.c:2844: undefined reference to `mysql_stmt_param_count'
  76. D:\perl\DBD-mysql-4.027/dbdimp.c:2800: undefined reference to `mysql_error'
  77. D:\perl\DBD-mysql-4.027/dbdimp.c:2800: undefined reference to `mysql_errno'
  78. dbdimp.o: In function `mysql_st_next_results':
  79. D:\perl\DBD-mysql-4.027/dbdimp.c:3010: undefined reference to `mysql_more_results'
  80. D:\perl\DBD-mysql-4.027/dbdimp.c:3039: undefined reference to `mysql_free_result'
  81. D:\perl\DBD-mysql-4.027/dbdimp.c:3044: undefined reference to `mysql_next_result'
  82. D:\perl\DBD-mysql-4.027/dbdimp.c:3046: undefined reference to `mysql_warning_count'
  83. D:\perl\DBD-mysql-4.027/dbdimp.c:3069: undefined reference to `mysql_use_result'
  84. D:\perl\DBD-mysql-4.027/dbdimp.c:3071: undefined reference to `mysql_errno'
  85. D:\perl\DBD-mysql-4.027/dbdimp.c:3078: undefined reference to `mysql_affected_rows'
  86. D:\perl\DBD-mysql-4.027/dbdimp.c:3118: undefined reference to `mysql_num_fields'
  87. D:\perl\DBD-mysql-4.027/dbdimp.c:3073: undefined reference to `mysql_sqlstate'
  88. D:\perl\DBD-mysql-4.027/dbdimp.c:3073: undefined reference to `mysql_error'
  89. D:\perl\DBD-mysql-4.027/dbdimp.c:3073: undefined reference to `mysql_errno'
  90. D:\perl\DBD-mysql-4.027/dbdimp.c:3069: undefined reference to `mysql_store_result'
  91. dbdimp.o: In function `mysql_st_internal_execute41':
  92. D:\perl\DBD-mysql-4.027/dbdimp.c:3373: undefined reference to `mysql_free_result'
  93. D:\perl\DBD-mysql-4.027/dbdimp.c:3395: undefined reference to `mysql_stmt_execute'
  94. D:\perl\DBD-mysql-4.027/dbdimp.c:3443: undefined reference to `mysql_free_result'
  95. D:\perl\DBD-mysql-4.027/dbdimp.c:3447: undefined reference to `mysql_stmt_error'
  96. D:\perl\DBD-mysql-4.027/dbdimp.c:3447: undefined reference to `mysql_stmt_errno'
  97. D:\perl\DBD-mysql-4.027/dbdimp.c:3451: undefined reference to `mysql_stmt_sqlstate'
  98. D:\perl\DBD-mysql-4.027/dbdimp.c:3451: undefined reference to `mysql_stmt_error'
  99. D:\perl\DBD-mysql-4.027/dbdimp.c:3451: undefined reference to `mysql_stmt_errno'
  100. D:\perl\DBD-mysql-4.027/dbdimp.c:3453: undefined reference to `mysql_stmt_reset'
  101. D:\perl\DBD-mysql-4.027/dbdimp.c:3406: undefined reference to `mysql_stmt_result_metadata'
  102. D:\perl\DBD-mysql-4.027/dbdimp.c:3418: undefined reference to `mysql_stmt_field_count'
  103. D:\perl\DBD-mysql-4.027/dbdimp.c:3424: undefined reference to `mysql_stmt_attr_set'
  104. D:\perl\DBD-mysql-4.027/dbdimp.c:3429: undefined reference to `mysql_stmt_store_result'
  105. D:\perl\DBD-mysql-4.027/dbdimp.c:3432: undefined reference to `mysql_stmt_num_rows'
  106. D:\perl\DBD-mysql-4.027/dbdimp.c:3384: undefined reference to `mysql_stmt_bind_param'
  107. D:\perl\DBD-mysql-4.027/dbdimp.c:3408: undefined reference to `mysql_stmt_errno'
  108. D:\perl\DBD-mysql-4.027/dbdimp.c:3411: undefined reference to `mysql_stmt_affected_rows'
  109. dbdimp.o: In function `mysql_describe':
  110. D:\perl\DBD-mysql-4.027/dbdimp.c:3648: undefined reference to `mysql_fetch_fields'
  111. D:\perl\DBD-mysql-4.027/dbdimp.c:3699: undefined reference to `mysql_stmt_bind_result'
  112. D:\perl\DBD-mysql-4.027/dbdimp.c:3701: undefined reference to `mysql_stmt_sqlstate'
  113. D:\perl\DBD-mysql-4.027/dbdimp.c:3701: undefined reference to `mysql_stmt_error'
  114. D:\perl\DBD-mysql-4.027/dbdimp.c:3701: undefined reference to `mysql_stmt_errno'
  115. dbdimp.o: In function `mysql_st_clean_cursor':
  116. D:\perl\DBD-mysql-4.027/dbdimp.c:4079: undefined reference to `mysql_stmt_free_result'
  117. dbdimp.o: In function `mysql_st_fetch':
  118. D:\perl\DBD-mysql-4.027/dbdimp.c:3961: undefined reference to `mysql_num_fields'
  119. D:\perl\DBD-mysql-4.027/dbdimp.c:3962: undefined reference to `mysql_num_rows'
  120. D:\perl\DBD-mysql-4.027/dbdimp.c:3964: undefined reference to `mysql_affected_rows'
  121. D:\perl\DBD-mysql-4.027/dbdimp.c:3970: undefined reference to `mysql_fetch_row'
  122. D:\perl\DBD-mysql-4.027/dbdimp.c:3989: undefined reference to `mysql_num_fields'
  123. D:\perl\DBD-mysql-4.027/dbdimp.c:3990: undefined reference to `mysql_fetch_fields'
  124. D:\perl\DBD-mysql-4.027/dbdimp.c:3991: undefined reference to `mysql_fetch_lengths'
  125. D:\perl\DBD-mysql-4.027/dbdimp.c:3808: undefined reference to `mysql_stmt_fetch'
  126. D:\perl\DBD-mysql-4.027/dbdimp.c:3838: undefined reference to `mysql_stmt_field_count'
  127. D:\perl\DBD-mysql-4.027/dbdimp.c:3881: undefined reference to `mysql_stmt_fetch_column'
  128. D:\perl\DBD-mysql-4.027/dbdimp.c:3882: undefined reference to `mysql_stmt_sqlstate'
  129. D:\perl\DBD-mysql-4.027/dbdimp.c:3882: undefined reference to `mysql_stmt_error'
  130. D:\perl\DBD-mysql-4.027/dbdimp.c:3882: undefined reference to `mysql_stmt_errno'
  131. D:\perl\DBD-mysql-4.027/dbdimp.c:3976: undefined reference to `mysql_errno'
  132. D:\perl\DBD-mysql-4.027/dbdimp.c:3983: undefined reference to `mysql_more_results'
  133. D:\perl\DBD-mysql-4.027/dbdimp.c:3824: undefined reference to `mysql_stmt_affected_rows'
  134. D:\perl\DBD-mysql-4.027/dbdimp.c:3977: undefined reference to `mysql_sqlstate'
  135. D:\perl\DBD-mysql-4.027/dbdimp.c:3977: undefined reference to `mysql_error'
  136. D:\perl\DBD-mysql-4.027/dbdimp.c:3977: undefined reference to `mysql_errno'
  137. D:\perl\DBD-mysql-4.027/dbdimp.c:3811: undefined reference to `mysql_stmt_sqlstate'
  138. D:\perl\DBD-mysql-4.027/dbdimp.c:3811: undefined reference to `mysql_stmt_error'
  139. D:\perl\DBD-mysql-4.027/dbdimp.c:3811: undefined reference to `mysql_stmt_errno'
  140. dbdimp.o: In function `mysql_st_destroy':
  141. D:\perl\DBD-mysql-4.027/dbdimp.c:4211: undefined reference to `mysql_stmt_close'
  142. D:\perl\DBD-mysql-4.027/dbdimp.c:4213: undefined reference to `mysql_stmt_sqlstate'
  143. D:\perl\DBD-mysql-4.027/dbdimp.c:4213: undefined reference to `mysql_stmt_error'
  144. D:\perl\DBD-mysql-4.027/dbdimp.c:4213: undefined reference to `mysql_stmt_errno'
  145. dbdimp.o: In function `mysql_st_FETCH_internal':
  146. D:\perl\DBD-mysql-4.027/dbdimp.c:4353: undefined reference to `mysql_field_seek'
  147. D:\perl\DBD-mysql-4.027/dbdimp.c:4354: undefined reference to `mysql_fetch_field'
  148. D:\perl\DBD-mysql-4.027/dbdimp.c:4354: undefined reference to `mysql_fetch_field'
  149. dbdimp.o: In function `mysql_db_reconnect':
  150. D:\perl\DBD-mysql-4.027/dbdimp.c:4872: undefined reference to `mysql_errno'
  151. D:\perl\DBD-mysql-4.027/dbdimp.c:4900: undefined reference to `mysql_sqlstate'
  152. D:\perl\DBD-mysql-4.027/dbdimp.c:4900: undefined reference to `mysql_error'
  153. D:\perl\DBD-mysql-4.027/dbdimp.c:4900: undefined reference to `mysql_errno'
  154. dbdimp.o: In function `mysql_st_internal_execute':
  155. D:\perl\DBD-mysql-4.027/dbdimp.c:3268: undefined reference to `mysql_list_fields'
  156. D:\perl\DBD-mysql-4.027/dbdimp.c:3274: undefined reference to `mysql_sqlstate'
  157. D:\perl\DBD-mysql-4.027/dbdimp.c:3274: undefined reference to `mysql_error'
  158. D:\perl\DBD-mysql-4.027/dbdimp.c:3274: undefined reference to `mysql_errno'
  159. D:\perl\DBD-mysql-4.027/dbdimp.c:3294: undefined reference to `mysql_real_query'
  160. D:\perl\DBD-mysql-4.027/dbdimp.c:3302: undefined reference to `mysql_store_result'
  161. D:\perl\DBD-mysql-4.027/dbdimp.c:3304: undefined reference to `mysql_errno'
  162. D:\perl\DBD-mysql-4.027/dbdimp.c:3311: undefined reference to `mysql_num_rows'
  163. dbdimp.o: In function `parse_params':
  164. D:\perl\DBD-mysql-4.027/dbdimp.c:767: undefined reference to `mysql_real_escape_string'
  165. dbdimp.o: In function `mysql_st_internal_execute':
  166. D:\perl\DBD-mysql-4.027/dbdimp.c:3302: undefined reference to `mysql_use_result'
  167. D:\perl\DBD-mysql-4.027/dbdimp.c:3320: undefined reference to `mysql_sqlstate'
  168. D:\perl\DBD-mysql-4.027/dbdimp.c:3320: undefined reference to `mysql_error'
  169. D:\perl\DBD-mysql-4.027/dbdimp.c:3320: undefined reference to `mysql_errno'
  170. D:\perl\DBD-mysql-4.027/dbdimp.c:3305: undefined reference to `mysql_sqlstate'
  171. D:\perl\DBD-mysql-4.027/dbdimp.c:3305: undefined reference to `mysql_error'
  172. D:\perl\DBD-mysql-4.027/dbdimp.c:3305: undefined reference to `mysql_errno'
  173. D:\perl\DBD-mysql-4.027/dbdimp.c:3309: undefined reference to `mysql_affected_rows'
  174. D:\perl\DBD-mysql-4.027/dbdimp.c:3296: undefined reference to `mysql_real_query'
  175. dbdimp.o: In function `mysql_st_execute':
  176. D:\perl\DBD-mysql-4.027/dbdimp.c:3563: undefined reference to `mysql_num_fields'
  177. D:\perl\DBD-mysql-4.027/dbdimp.c:3571: undefined reference to `mysql_warning_count'
  178. D:\perl\DBD-mysql-4.027/dbdimp.c:3554: undefined reference to `mysql_insert_id'
  179. D:\perl\DBD-mysql-4.027/dbdimp.c:3556: undefined reference to `mysql_more_results'
  180. dbdimp.o: In function `mysql_db_quote':
  181. D:\perl\DBD-mysql-4.027/dbdimp.c:5074: undefined reference to `mysql_real_escape_string'
  182. dbdimp.o: In function `mysql_db_last_insert_id':
  183. D:\perl\DBD-mysql-4.027/dbdimp.c:5100: undefined reference to `mysql_insert_id'
  184. mysql.o: In function `XS_DBD__mysql__dr__ListDBs':
  185. D:\perl\DBD-mysql-4.027/mysql.xs:65: undefined reference to `mysql_list_dbs'
  186. D:\perl\DBD-mysql-4.027/mysql.xs:72: undefined reference to `mysql_num_rows'
  187. D:\perl\DBD-mysql-4.027/mysql.xs:73: undefined reference to `mysql_fetch_row'
  188. D:\perl\DBD-mysql-4.027/mysql.xs:77: undefined reference to `mysql_free_result'
  189. D:\perl\DBD-mysql-4.027/mysql.xs:79: undefined reference to `mysql_close'
  190. D:\perl\DBD-mysql-4.027/mysql.xs:72: undefined reference to `mysql_num_rows'
  191. D:\perl\DBD-mysql-4.027/mysql.xs:68: undefined reference to `mysql_sqlstate'
  192. D:\perl\DBD-mysql-4.027/mysql.xs:68: undefined reference to `mysql_error'
  193. D:\perl\DBD-mysql-4.027/mysql.xs:68: undefined reference to `mysql_errno'
  194. mysql.o: In function `XS_DBD__mysql__GetInfo_dbd_mysql_get_info':
  195. D:\perl\DBD-mysql-4.027/mysql.xs:906: undefined reference to `mysql_get_parameters'
  196. D:\perl\DBD-mysql-4.027/mysql.xs:902: undefined reference to `mysql_get_server_info'
  197. mysql.o: In function `XS_DBD__mysql__st_dataseek':
  198. D:\perl\DBD-mysql-4.027/mysql.xs:740: undefined reference to `mysql_data_seek'
  199. D:\perl\DBD-mysql-4.027/mysql.xs:720: undefined reference to `mysql_stmt_data_seek'
  200. mysql.o: In function `XS_DBD__mysql__db_ping':
  201. D:\perl\DBD-mysql-4.027/mysql.xs:589: undefined reference to `mysql_ping'
  202. D:\perl\DBD-mysql-4.027/mysql.xs:592: undefined reference to `mysql_ping'
  203. mysql.o: In function `XS_DBD__mysql__db_do':
  204. D:\perl\DBD-mysql-4.027/mysql.xs:276: undefined reference to `mysql_use_result'
  205. D:\perl\DBD-mysql-4.027/mysql.xs:274: undefined reference to `mysql_next_result'
  206. D:\perl\DBD-mysql-4.027/mysql.xs:278: undefined reference to `mysql_free_result'
  207. D:\perl\DBD-mysql-4.027/mysql.xs:326: undefined reference to `mysql_stmt_init'
  208. D:\perl\DBD-mysql-4.027/mysql.xs:328: undefined reference to `mysql_stmt_prepare'
  209. D:\perl\DBD-mysql-4.027/mysql.xs:508: undefined reference to `mysql_stmt_close'
  210. D:\perl\DBD-mysql-4.027/mysql.xs:542: undefined reference to `mysql_free_result'
  211. D:\perl\DBD-mysql-4.027/mysql.xs:551: undefined reference to `mysql_use_result'
  212. D:\perl\DBD-mysql-4.027/mysql.xs:549: undefined reference to `mysql_next_result'
  213. D:\perl\DBD-mysql-4.027/mysql.xs:558: undefined reference to `mysql_error'
  214. D:\perl\DBD-mysql-4.027/mysql.xs:562: undefined reference to `mysql_sqlstate'
  215. D:\perl\DBD-mysql-4.027/mysql.xs:562: undefined reference to `mysql_error'
  216. D:\perl\DBD-mysql-4.027/mysql.xs:562: undefined reference to `mysql_errno'
  217. D:\perl\DBD-mysql-4.027/mysql.xs:330: undefined reference to `mysql_stmt_prepare'
  218. D:\perl\DBD-mysql-4.027/mysql.xs:336: undefined reference to `mysql_stmt_errno'
  219. D:\perl\DBD-mysql-4.027/mysql.xs:346: undefined reference to `mysql_stmt_close'
  220. D:\perl\DBD-mysql-4.027/mysql.xs:553: undefined reference to `mysql_free_result'
  221. D:\perl\DBD-mysql-4.027/mysql.xs:511: undefined reference to `mysql_stmt_error'
  222. D:\perl\DBD-mysql-4.027/mysql.xs:342: undefined reference to `mysql_stmt_sqlstate'
  223. D:\perl\DBD-mysql-4.027/mysql.xs:342: undefined reference to `mysql_stmt_error'
  224. D:\perl\DBD-mysql-4.027/mysql.xs:342: undefined reference to `mysql_stmt_errno'
  225. D:\perl\DBD-mysql-4.027/mysql.xs:346: undefined reference to `mysql_stmt_close'
  226. mysql.o: In function `XS_DBD__mysql__db__ListDBs':
  227. D:\perl\DBD-mysql-4.027/mysql.xs:222: undefined reference to `mysql_list_dbs'
  228. D:\perl\DBD-mysql-4.027/mysql.xs:232: undefined reference to `mysql_num_rows'
  229. D:\perl\DBD-mysql-4.027/mysql.xs:233: undefined reference to `mysql_fetch_row'
  230. D:\perl\DBD-mysql-4.027/mysql.xs:237: undefined reference to `mysql_free_result'
  231. D:\perl\DBD-mysql-4.027/mysql.xs:232: undefined reference to `mysql_num_rows'
  232. D:\perl\DBD-mysql-4.027/mysql.xs:224: undefined reference to `mysql_list_dbs'
  233. D:\perl\DBD-mysql-4.027/mysql.xs:227: undefined reference to `mysql_sqlstate'
  234. D:\perl\DBD-mysql-4.027/mysql.xs:227: undefined reference to `mysql_error'
  235. D:\perl\DBD-mysql-4.027/mysql.xs:227: undefined reference to `mysql_errno'
  236. mysql.o: In function `XS_DBD__mysql__dr__admin_internal':
  237. D:\perl\DBD-mysql-4.027/mysql.xs:161: undefined reference to `mysql_real_query'
  238. D:\perl\DBD-mysql-4.027/mysql.xs:178: undefined reference to `mysql_close'
  239. D:\perl\DBD-mysql-4.027/mysql.xs:122: undefined reference to `mysql_shutdown'
  240. D:\perl\DBD-mysql-4.027/mysql.xs:172: undefined reference to `mysql_sqlstate'
  241. D:\perl\DBD-mysql-4.027/mysql.xs:172: undefined reference to `mysql_error'
  242. D:\perl\DBD-mysql-4.027/mysql.xs:172: undefined reference to `mysql_errno'
  243. D:\perl\DBD-mysql-4.027/mysql.xs:125: undefined reference to `mysql_refresh'
  244. D:\perl\DBD-mysql-4.027/mysql.xs:112: undefined reference to `mysql_sqlstate'
  245. D:\perl\DBD-mysql-4.027/mysql.xs:112: undefined reference to `mysql_error'
  246. D:\perl\DBD-mysql-4.027/mysql.xs:112: undefined reference to `mysql_errno'
  247. collect2.exe: error: ld returned 1 exit status
  248. dmake:  Error code 129, while making 'blib\arch\auto\DBD\mysql\mysql.dll'

  249. D:\perl\DBD-mysql-4.027>
复制代码

论坛徽章:
0
34 [报告]
发表于 2014-05-21 09:12 |只看该作者
本帖最后由 limits999 于 2014-05-21 09:14 编辑

如果是只要-I的话,提示了格式错误,代码如下:
  1. C:\Users\Administrator>d:

  2. D:\>cd D:\perl\DBD-mysql-4.027

  3. D:\perl\DBD-mysql-4.027>perl Makefile.PL -I D:\mysql\mysql-5.5.25-winx64\include --libs=D:\mysql\mysql-5.5.25-winx64\lib
  4.   --testhost=localhost --testuser=root  --testpassword=111111  --testdb=test
  5. Unknown option: i
  6. Usage: perl Makefile.PL [options]

  7. Possible options are:

  8.   --cflags=<flags>       Use <flags> for running the C compiler; defaults
  9.                          to the value of "mysql_config --cflags" or a guessed
  10.                          value
  11.   --libs=<libs>          Use <libs> for running the linker; defaults
  12.                          to the value of "mysql_config --libs" or a gussed
  13.                          value
  14.   --force-embedded       Build version of driver supporting mysqlEmb
  15.   --embedded=<libs>      Use these libs when building the embedded version of
  16.                          DBD (with --force-embedded). Defaults to the value of
  17.                          "mysql_config --embedded".
  18.   --testdb=<db>          Use the database <db> for running the test suite;
  19.                          defaults to test
  20.   --testuser=<user>      Use the username <user> for running the test suite;
  21.                          defaults to no username
  22.   --testpassword=<pwd>   Use the password <pwd> for running the test suite;
  23.                          defaults to no password
  24.   --testhost=<host>      Use <host> as a database server for running the
  25.                          test suite; defaults to localhost.
  26.   --testport=<port>      Use <port> as the port number of the database;
  27.                          by default the port number is choosen from the
  28.                          mysqlclient library
  29.   --mysql_config=<path>  Specify <path> for mysql_config script
  30.   --with-mysql=<path>    Specify <path> for the root of the MySQL installation.
  31.   --nocatchstderr        Supress using the "myld" script that redirects
  32.                          STDERR while running the linker.
  33.   --nofoundrows          Change the behavior of $sth->rows() so that it
  34.                          returns the number of rows physically modified
  35.                          instead of the rows matched
  36.   --ps-protocol          Toggle the use of driver emulated prepared statements
  37.                          prepare, requires MySQL server >= 4.1.3 for
  38.                          server side prepared statements, off by default
  39.   --bind-type-guessing   Toggle the use of driver attribute mysql_bind_type_guessing
  40.                          This feature makes it so driver-emulated prepared statements
  41.                          try to "guess" if a value being bound is numeric, in which
  42.                          case, quotes will not be put around the value.
  43.   --ssl                          Enable SSL support
  44.   --help                 Print this message and exit

  45. All options may be configured on the command line. If they are
  46. not present on the command line, then mysql_config is called (if
  47. it can be found):

  48.   mysql_config --cflags
  49.   mysql_config --libs
  50.   mysql_config --embedded
  51.   mysql_config --testdb

  52. and so on. See DBD::mysql::INSTALL for details.

  53. D:\perl\DBD-mysql-4.027>
复制代码
-I的标记是否意味着不同系统下或者不同版本的perl或者不同版本的DBD::mysql的格式要求啊?

论坛徽章:
7
巳蛇
日期:2014-04-10 08:54:57白羊座
日期:2014-04-22 20:06:262015年亚洲杯之沙特阿拉伯
日期:2015-02-10 14:18:532015年辞旧岁徽章
日期:2015-03-03 16:54:152015亚冠之吉达阿赫利
日期:2015-06-02 11:34:112015亚冠之武里南联
日期:2015-06-24 12:13:082015亚冠之阿尔纳斯尔
日期:2015-08-03 09:08:25
35 [报告]
发表于 2014-05-21 13:08 |只看该作者
limits999 发表于 2014-05-21 09:11
言归正传,直接加-I后的完整代码如下(贴不下的代码在下一楼里)

我想让你做的就是直接加上-I,不过你下一楼的错误尝试的输出也很有意思,从下一楼的错误输出来看你的libs确实指定错了,不过这个并不要紧,libs是用来指定到底需要链接哪些库的,而要链接哪些库除了通过libs指定外,安装脚本可以根据mysql_config的输出确定。而另一方面的,我并没有看到有可以指定库链接路径的选项,可能你可以看看安装说明里有没有提到其他选项。不过,作为另一种变通的方案,根据
  1. D:\perl\bin\perl.exe myld g++ -o blib\arch\auto\DBD\mysql\mysql.dll -Wl,--base-file -Wl,dll.base -mdll -s -static-libgcc
  2. -static-libstdc++ -L"D:\perl\lib\CORE" -L"C:\MinGW\x86_64-w64-mingw32\lib" dbdimp.o    mysql.o   D:\perl\lib\CORE\libpe
  3. rl518.a -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32
  4. -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp
复制代码
你可以把你那些kernel32.dll之类的库文件拷到C:\MinGW\x86_64-w64-mingw32\lib这个目录下面去,预期这样做了以后你的输出信息会有很大的改变,没准就不会再有出错信息了(不过万事都没有绝对)。

论坛徽章:
0
36 [报告]
发表于 2014-05-21 15:57 |只看该作者
Monox 发表于 2014-05-21 13:08
我想让你做的就是直接加上-I,不过你下一楼的错误尝试的输出也很有意思,从下一楼的错误输出来看你的libs ...


把原来libs文件夹下的库文件拷贝到C:\MinGW\x86_64-w64-mingw32\lib后,重新调整了库文件目录的结果如下:
  1. C:\Users\Administrator>d:

  2. D:\>cd D:\perl\DBD-mysql-4.027

  3. D:\perl\DBD-mysql-4.027>perl Makefile.PL --cflags=D:\mysql\mysql-5.5.25-winx64\include --libs=C:\MinGW\x86_64-w64-mingw3
  4. 2\lib  --testhost=localhost --testuser=root  --testpassword=111111  --testdb=test

  5. mysql_config.pl, and an associated bat file, has been
  6. successfully created under
  7.    D:\mysql\MYSQL-~1.25-\bin

  8. Unknown option: testsocket
  9. Unknown option: testport
  10. Unknown option: nocatchstderr
  11. Unknown option: ssl
  12. Unknown option: nofoundrows
  13. Unknown option: force-embedded
  14. I will use the following settings for compiling and testing:

  15.   cflags        (User's choice) = D:\mysql\mysql-5.5.25-winx64\include
  16.   embedded      (mysql_config ) =
  17.   libs          (User's choice) = C:\MinGW\x86_64-w64-mingw32\lib
  18.   mysql_config  (guessed      ) = mysql_config
  19.   nocatchstderr (default      ) = 0
  20.   nofoundrows   (default      ) = 0
  21.   ssl           (guessed      ) = 0
  22.   testdb        (User's choice) = test
  23.   testhost      (User's choice) = localhost
  24.   testpassword  (User's choice) = 111111
  25.   testport      (default      ) =
  26.   testsocket    (default      ) =
  27.   testuser      (User's choice) = root

  28. To change these settings, see 'perl Makefile.PL --help' and
  29. 'perldoc DBD::mysql::INSTALL'.

  30. Checking if your kit is complete...
  31. Looks good
  32. Warning (mostly harmless): No library found for -lmoldname
  33. Warning (mostly harmless): No library found for -lkernel32
  34. Warning (mostly harmless): No library found for -luser32
  35. Warning (mostly harmless): No library found for -lgdi32
  36. Warning (mostly harmless): No library found for -lwinspool
  37. Warning (mostly harmless): No library found for -lcomdlg32
  38. Warning (mostly harmless): No library found for -ladvapi32
  39. Warning (mostly harmless): No library found for -lshell32
  40. Warning (mostly harmless): No library found for -lole32
  41. Warning (mostly harmless): No library found for -loleaut32
  42. Warning (mostly harmless): No library found for -lnetapi32
  43. Warning (mostly harmless): No library found for -luuid
  44. Warning (mostly harmless): No library found for -lws2_32
  45. Warning (mostly harmless): No library found for -lmpr
  46. Warning (mostly harmless): No library found for -lwinmm
  47. Warning (mostly harmless): No library found for -lversion
  48. Warning (mostly harmless): No library found for -lodbc32
  49. Warning (mostly harmless): No library found for -lodbccp32
  50. Warning (mostly harmless): No library found for -lcomctl32
  51. Using DBI 1.631 (for perl 5.018002 on MSWin32-x64-multi-thread) installed in D:/perl/site/lib/auto/DBI/
  52. Generating a dmake-style Makefile
  53. Writing Makefile for DBD::mysql
  54. Writing MYMETA.yml and MYMETA.json

  55. D:\perl\DBD-mysql-4.027>

复制代码
另外,我看了mysql_config.pl文件的内容,每次尝试perl Makefile.PL,它都会更新,目录部分自动恢复为如下的代码,即使在里头指定了正确的路径,也给自动覆盖了,不知道这个是否影响了库文件和头文件的正确指定?:
  1. my $basedir = q{D:\mysql\MYSQL-~1.25-};
  2. my $ldata = q{D:\mysql\MYSQL-~1.25-\data};
  3. my $execdir = q{D:\mysql\MYSQL-~1.25-\bin};
  4. my $bindir = q{D:\mysql\MYSQL-~1.25-\bin};
  5. my $pkglibdir = q{D:\mysql\MYSQL-~1.25-\lib\opt};
  6. my $pkgincludedir = q{D:\mysql\MYSQL-~1.25-\include};
  7. my $ldflags = q{};
  8. my $client_libs = q{-lmysql -lzlib};
  9. my $version = q{5.5.25-log};
  10. my $port = q{3306};
  11. my $libs = q{ -L"D:\mysql\MYSQL-~1.25-\lib\opt" -lmysql -lzlib};
  12. my $cflags = q{-I"D:\mysql\MYSQL-~1.25-\include"};
  13. my $embedded_libs = q{ -L"D:\mysql\MYSQL-~1.25-\lib\opt"};
复制代码

论坛徽章:
7
巳蛇
日期:2014-04-10 08:54:57白羊座
日期:2014-04-22 20:06:262015年亚洲杯之沙特阿拉伯
日期:2015-02-10 14:18:532015年辞旧岁徽章
日期:2015-03-03 16:54:152015亚冠之吉达阿赫利
日期:2015-06-02 11:34:112015亚冠之武里南联
日期:2015-06-24 12:13:082015亚冠之阿尔纳斯尔
日期:2015-08-03 09:08:25
37 [报告]
发表于 2014-05-21 19:20 |只看该作者
回复 36# limits999

因为我没看mysql_config.pl这个文件是如何在这个安装过程中被使用的,所以也不太好确定它的内容是不是真的就一定得和我们设置的一样(我真的不想把这个包下载下来,看里面的源代码),一般来说这里提到的my $ldflags = q{};和
    my $cflags = q{-I"D:\mysql\MYSQL-~1.25-\include"};都是很重要的。
一方面来说,如果它告诉你指定--cflags什么的又不能影响这个文件里的cflags的值的话,那不就成了它的bug吗?我想,大概这里的值会和参数整合的,真正重要的是这些参数最终在生成Makefile的时候是什么样的值,因为我担心Makefile会很长,而你肯定不知道应该帖Makefile的哪一部分出来,所以我至始至终都没让你帖Makefile的内容。所以如果Makefile的内容不长的话就也帖一下吧,太长的话就不要帖了,我也懒得看,毕竟我帮你debug是出于自愿,不是出于义务。而另一方面,之前说的不知道有没有指定链接库路径的参数就是想知道有没有指定ldflags的参数,因为之前的信息里没有看到指定这个参数的输出信息,所以直接建议你拷到Mingw的目录下去了。还有一方面,你之前按我说的加了-I之后不是可以找到mysql.h了吗?就说明你指定的--cflags是有效的。最后一方面,因为我不知道有没有设置ldflags的参数,所以建议你了一个投机的方式,而它打印warnings的机制可能和最终编译的机制是不一样的(就是路径不一定一样),所以这些warnings你可以暂时不考虑,看后面可不可以通过。我一开始就知道很有可能这里还有warnings的,但是我不确定是否会(希望不会)导致最终编译也失败。

论坛徽章:
7
巳蛇
日期:2014-04-10 08:54:57白羊座
日期:2014-04-22 20:06:262015年亚洲杯之沙特阿拉伯
日期:2015-02-10 14:18:532015年辞旧岁徽章
日期:2015-03-03 16:54:152015亚冠之吉达阿赫利
日期:2015-06-02 11:34:112015亚冠之武里南联
日期:2015-06-24 12:13:082015亚冠之阿尔纳斯尔
日期:2015-08-03 09:08:25
38 [报告]
发表于 2014-05-21 19:26 |只看该作者
而且,我刚发现你最后帖出来的代码又没加-I,加上我上面的回复暗含的,你也没有把信息帖全(不过这后一点是可以理解的),所以我本不应该回复上面的内容的。

论坛徽章:
0
39 [报告]
发表于 2014-05-25 15:03 |只看该作者
Monox 发表于 2014-05-21 19:26
而且,我刚发现你最后帖出来的代码又没加-I,加上我上面的回复暗含的,你也没有把信息帖全(不过这后一点是 ...


谢谢。最近外出了没有时间继续进行调试,灰常感谢perler的耐心热情帮助,哈哈
由于急用,目前我的方法是转移到了ubuntu上操作,省去了些许麻烦,自己放弃了继续调试学习的过程。

论坛徽章:
0
40 [报告]
发表于 2014-05-25 15:46 |只看该作者
Monox 发表于 2014-05-21 19:26
而且,我刚发现你最后帖出来的代码又没加-I,加上我上面的回复暗含的,你也没有把信息帖全(不过这后一点是 ...


另外,加-I的事我在34楼已经反馈过了,是报错的,同时提示了正确的语法结构是用--cflags这样的格式。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP