aboutsummaryrefslogtreecommitdiff
path: root/README-DEV
blob: e7fd5ce29f248e716a21d6b3f4f9f4b2d335c9f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
mv COPYING GPLv2
mv README COPYING # Truncate to contain only the licensing information.

copy client/get_password.c to mysql/extra/yassl/src
copy libbinlogevents/export/binary_log_types.h to mysql/
copy include/mysql_version.h.in to mysql/version.h.in



copy cmake-generated (from libmysql/libmysql.ver.in) libmysql.ver to
mysql/libmysql/



copy make-generated (using built comp_err utility from errmsg-utf8.txt)
mysqld_error.h. Note that it is not packaged, so we need to build the upstream
package, rather than just configure. The comp_err utility will also produce
some other headers (which we don't use) and localized errmsg.sys files that
are not installed by connector, and so by us (check if debian install them
with libs/devel packages).

@@ What if the client app wants to print an error message? Will it get an
english-spelled error message at least? Seems so, see libmysql/errmsg.c for
details.

Rename .cc files to .cpp:
for f in `find . -name '*.cc'`; do mv "$f" "${f%.cc}.cpp"; done

Make sure there is no unwanted system headers are included into the source
code.

$ cat `find . -name '*.d'` | sort -u >headers
$ emacs headers  # Edit, leaving system headers only.
$ fgrep -e 'mysql' -e 'mariadb' -e 'openssl' -e 'zlib' headers

The auto-generated config.h (with a tons of macro definitions) is an internal
file, so we can brush it a bit, removing defines that are not used in the
package files. The bad new is that there is a my_config.h file that is
equivalent to the config.h file, but is installed. Theoretically, for every
macro defined in my_config.h there can be a client, that uses it. However the
content of this file is not a part of the library API and we still may brush it
until the client that includes just mysql.h can be compiled. So we will do the
following:

- brush my_config.h, defining/undefining only those macros that are used in the
  library source code or the installed header files. Note that the upstream
  package installs more headers that are used by the library itself.

$ for m in `cat mysql/config.h.cmake.orig | sed -n 's/.*#\s*\(define\|cmakedefine\)\s\{1,\}\([_A-Z0-9]\{1,\}\)\(\s.*\)\{0,1\}$/\2/p' | sort -u`; do
    if grep -q -e "\b$m\b" `find . -name '*.h' -a ! -name 'my_config.h' -a ! -name 'config.h' -o -name '*.c'`; then
      echo "$m"
    fi
  done >used-macros1

$ cat mysql/my_config.h |
  sed -n 's/#\s*\(define\|undef\)\s\{1,\}\([_A-Z0-9]\{1,\}\)\(\s.*\)\{0,1\}$/\2/p' |
  sort -u >defined-macros

$ diff defined-macros used-macros


- make config.h to just include my_config.h.




$ for m in `cat mysql/config.h.cmake.orig | sed -n 's/.*#\s*\(define\|cmakedefine\)\s\{1,\}\([_a-zA-Z0-9]\{1,\}\)\(\s.*\)\{0,1\}$/\2/p' | sort -u`; do
    if grep -q -e "\b$m\b" `find . -name '*.h' -a ! -name 'my_config.h' -a ! -name 'config.h' -o -name '*.c'`; then
      echo "$m"
    fi
  done >used-macros

$ cat mysql/my_config.h |
  sed -n 's/#\s*\(define\|undef\)\s\{1,\}\([_a-zA-Z0-9]\{1,\}\)\(\s.*\)\{0,1\}$/\2/p' |
  sort -u >defined-macros


=================

MSVC:

strings
zlib
taocrypt
yassl
auth_win_client    *** windows-specific
vio
INFO_BIN           ***
INFO_SRC           ***
regex
mysys
conf_to_src        ***
dbug
mysys_ssl
comp_err
my_print_defaults
resolveip
GenError
clientlib
perror
libmysql
mysqlclient
mysql_client_test
libmysql_api_test

ALL_BUILD
INSTALL
PACKAGE

===================

GCC:

zlib
yassl
taocrypt
strings
mysys
dbug
vio
regex    [-] (is compiled by connector but is not linked anywhere)
mysys_ssl
comp_err [-]
GenError [-] (generate files with comp_err)
clientlib

mysqlclient
libmysql
libmysql_api_test
my_print_defaults
perror
resolveip
mysql_client_test

------

-- CMAKE_BUILD_TYPE: RelWithDebInfo
-- COMPILE_DEFINITIONS: _GNU_SOURCE;_FILE_OFFSET_BITS=64;HAVE_CONFIG_H
-- CMAKE_C_FLAGS:    -Wall -Wextra -Wformat-security -Wvla -Wno-unused-parameter -Wwrite-strings -Wdeclaration-after-statement
-- CMAKE_CXX_FLAGS:  -Wall -Wextra -Wformat-security -Wvla -Wno-unused-parameter -Woverloaded-virtual
-- CMAKE_C_FLAGS_RELWITHDEBINFO:   -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -std=gnu++03

...........

-- COMPILE_DEFINITIONS: _WIN32_WINNT=0x0601;WIN32_LEAN_AND_MEAN;NOGDI;NOMINMAX;HAVE_CONFIG_H
-- CMAKE_C_FLAGS: /DWIN32 /D_WINDOWS /W3 /MP /wd4800 /wd4805 /wd4996
-- CMAKE_CXX_FLAGS: /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MP /wd4800 /wd4805 /wd4996 /we4099
-- CMAKE_C_FLAGS_DEBUG: /MTd /Zi /Ob1 /Od /RTC1 /EHsc -DENABLED_DEBUG_SYNC -DSAFE_MUTEX
-- CMAKE_CXX_FLAGS_DEBUG: /MTd /Zi /Ob1 /Od /RTC1 /EHsc -DENABLED_DEBUG_SYNC -DSAFE_MUTEX
-- CMAKE_C_FLAGS_RELWITHDEBINFO: /MT /Zi /O2 /Ob1 /DNDEBUG /EHsc -DDBUG_OFF
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: /MT /Zi /O2 /Ob1 /DNDEBUG /EHsc -DDBUG_OFF

-----------------

zlib: -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/zlib
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing
-DDBUG_OFF -fPIC

C_FLAGS = -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing
          -DDBUG_OFF -fPIC

C_DEFINES = -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE

C_INCLUDES =
-Ipackaging.orig/mysql/mysql-connector-c-6.1.11-src/build/include
-Ipackaging.orig/mysql/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-Ipackaging.orig/mysql/mysql-connector-c-6.1.11-src/include
-Ipackaging.orig/mysql/mysql-connector-c-6.1.11-src/zlib


................


CL.exe  /c /I"out\include" /I"extra\rapidjson\include" /I"include" /I"zlib"
/Zi /nologo /W3 /WX- /MP /O2 /Ob1 /Oy- /D WIN32 /D _WINDOWS /D NDEBUG
/D DBUG_OFF /D _WIN32_WINNT=0x0601 /D WIN32_LEAN_AND_MEAN /D NOGDI /D NOMINMAX
/D HAVE_CONFIG_H /D "CMAKE_INTDIR=\"RelWithDebInfo\"" /D _MBCS /Gm- /EHsc /MT
/GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline
/Fo"zlib.dir\RelWithDebInfo\\" /Fd"zlib.dir\RelWithDebInfo\zlib.pdb"
/Gd /TC /wd4800 /wd4805 /wd4996 /analyze- /errorReport:prompt



-----------------

yassl: -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-Dget_tty_password=yassl_mysql_get_tty_password
-Dget_tty_password_ext=yassl_mysql_get_tty_password_ext
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/mySTL
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing
-std=gnu++03 -DDBUG_OFF
-DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED
-fPIC

C_FLAGS = -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing
-DDBUG_OFF   -DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED -fPIC

C_DEFINES = -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-Dget_tty_password=yassl_mysql_get_tty_password
-Dget_tty_password_ext=yassl_mysql_get_tty_password_ext

C_INCLUDES =
-Ibuild/include
-Iextra/rapidjson/include
-Iinclude
-Iextra/yassl/include
-Iextra/yassl/taocrypt/include
-Iextra/yassl/taocrypt/mySTL

CXX_FLAGS = -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing
-DDBUG_OFF   -DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED -fPIC

CXX_DEFINES = -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-Dget_tty_password=yassl_mysql_get_tty_password
-Dget_tty_password_ext=yassl_mysql_get_tty_password_ext

CXX_INCLUDES =
-Ibuild/include
-Iextra/rapidjson/include
-Iinclude
-Iextra/yassl/include
-Iextra/yassl/taocrypt/include
-Iextra/yassl/taocrypt/mySTL

/usr/bin/c++  -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-Dget_tty_password=yassl_mysql_get_tty_password
-Dget_tty_password_ext=yassl_mysql_get_tty_password_ext
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/mySTL
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing
-std=gnu++03 -DDBUG_OFF   -DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL
-DMULTI_THREADED -fPIC -o CMakeFiles/yassl.dir/src/timer.cpp.o
-c /home/karen/mysql-connector-c-6.1.11-src/extra/yassl/src/timer.cpp


/usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-Dget_tty_password=yassl_mysql_get_tty_password
-Dget_tty_password_ext=yassl_mysql_get_tty_password_ext
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/mySTL
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing
-DDBUG_OFF   -DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED -fPIC
-o CMakeFiles/yassl.dir/__/__/client/get_password.c.o
-c /home/karen/mysql-connector-c-6.1.11-src/client/get_password.c

-------------

taocrypt:

/usr/bin/c++  -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/mySTL
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing
-std=gnu++03 -DDBUG_OFF   -DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL
-DMULTI_THREADED -fPIC

-------

strings:

/usr/bin/cc -DDISABLE_MYSQL_THREAD_H
-DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-Wall -Wextra -Wformat-security -Wvla -Wwrite-strings
-Wdeclaration-after-statement -Wno-unused-parameter
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF
-fPIC
-Wno-unused-variable -o CMakeFiles/strings.dir/my_stpmov.c.o
-c /home/karen/mysql-connector-c-6.1.11-src/strings/my_stpmov.c

-------

mysys:

/usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/zlib
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/mysys
-Wall -Wextra -Wformat-security -Wvla -Wwrite-strings
-Wdeclaration-after-statement -Wno-unused-parameter
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing
-DDBUG_OFF   -fPIC -Wno-unused-function -Wno-unused-variable
-o CMakeFiles/mysys.dir/mf_getdate.c.o
-c /home/karen/mysql-connector-c-6.1.11-src/mysys/mf_getdate.c

------------

dbug:

/usr/bin/cc
-DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/dbug
-I/home/karen/mysql-connector-c-6.1.11-src/include
-Wall -Wextra -Wformat-security -Wvla -Wwrite-strings
-Wdeclaration-after-statement -Wno-unused-parameter
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing
-DDBUG_OFF   -fPIC
-o CMakeFiles/dbug.dir/dbug.c.o
-c /home/karen/mysql-connector-c-6.1.11-src/dbug/dbug.c

------------

vio:

/usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/include
-Wall -Wextra -Wformat-security -Wvla -Wwrite-strings
-Wdeclaration-after-statement -Wno-unused-parameter
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF
-DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED
-fPIC -Wno-unused-but-set-variable -o CMakeFiles/vio.dir/viossl.c.o
-c /home/karen/mysql-connector-c-6.1.11-src/vio/viossl.c

------------

/usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-Wall -Wextra -Wformat-security -Wvla -Wwrite-strings
-Wdeclaration-after-statement -Wno-unused-parameter
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF
-fPIC -o CMakeFiles/regex.dir/regexec.c.o
-c /home/karen/mysql-connector-c-6.1.11-src/regex/regexec.c

--------

/usr/bin/c++  -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/mysys_ssl
-I/home/karen/mysql-connector-c-6.1.11-src/mysys
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/include
-Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual
-Wno-unused-parameter
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing
-std=gnu++03 -DDBUG_OFF
-DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED
-fPIC -o CMakeFiles/mysys_ssl.dir/my_sha2.cc.o
-c /home/karen/mysql-connector-c-6.1.11-src/mysys_ssl/my_sha2.cc

----------

/usr/bin/cc -DHAVE_CONFIG_H -DMUTEX_EVENT -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/zlib
-Wall -Wextra -Wformat-security -Wvla -Wwrite-strings
-Wdeclaration-after-statement -Wno-unused-parameter
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF
-o CMakeFiles/comp_err.dir/comp_err.c.o
-c /home/karen/mysql-connector-c-6.1.11-src/extra/comp_err.c

comp_err --charset=/home/karen/mysql-connector-c-6.1.11-src/sql/share/charsets
--out-dir=/home/karen/mysql-connector-c-6.1.11-src/build/sql/share/
--header_file=/home/karen/mysql-connector-c-6.1.11-src/build/include/mysqld_error.h
--name_file=/home/karen/mysql-connector-c-6.1.11-src/build/include/mysqld_ername.h
--state_file=/home/karen/mysql-connector-c-6.1.11-src/build/include/sql_state.h
--in_file=/home/karen/mysql-connector-c-6.1.11-src/sql/share/errmsg-utf8.txt

----------

/usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/libmysql
-I/home/karen/mysql-connector-c-6.1.11-src/regex
-I/home/karen/mysql-connector-c-6.1.11-src/sql
-I/home/karen/mysql-connector-c-6.1.11-src/strings
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/mySTL
-I/home/karen/mysql-connector-c-6.1.11-src/zlib
-Wall -Wextra -Wformat-security -Wvla -Wwrite-strings
-Wdeclaration-after-statement -Wno-unused-parameter
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF
-DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED
-D CLIENT_PROTOCOL_TRACING -fPIC -Wno-unused-variable
-o CMakeFiles/clientlib.dir/libmysql.c.o
-c /home/karen/mysql-connector-c-6.1.11-src/libmysql/libmysql.c



cd /home/karen/mysql-connector-c-6.1.11-src/build/libmysql &&
/usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/libmysql
-I/home/karen/mysql-connector-c-6.1.11-src/regex
-I/home/karen/mysql-connector-c-6.1.11-src/sql
-I/home/karen/mysql-connector-c-6.1.11-src/strings
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/mySTL
-I/home/karen/mysql-connector-c-6.1.11-src/zlib
-Wall -Wextra -Wformat-security -Wvla -Wwrite-strings
-Wdeclaration-after-statement -Wno-unused-parameter
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF
-DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED
-D CLIENT_PROTOCOL_TRACING -fPIC -Wno-unused-variable
-o CMakeFiles/clientlib.dir/get_password.c.o
-c /home/karen/mysql-connector-c-6.1.11-src/libmysql/get_password.c

cd /home/karen/mysql-connector-c-6.1.11-src/build/libmysql && /usr/bin/cc
-DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/libmysql
-I/home/karen/mysql-connector-c-6.1.11-src/regex
-I/home/karen/mysql-connector-c-6.1.11-src/sql
-I/home/karen/mysql-connector-c-6.1.11-src/strings
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/mySTL
-I/home/karen/mysql-connector-c-6.1.11-src/zlib
-Wall -Wextra -Wformat-security -Wvla -Wwrite-strings
-Wdeclaration-after-statement -Wno-unused-parameter
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF
-DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED
-D CLIENT_PROTOCOL_TRACING -fPIC -Wno-unused-variable
-o CMakeFiles/clientlib.dir/__/sql-common/client.c.o
 -c /home/karen/mysql-connector-c-6.1.11-src/sql-common/client.c


cd /home/karen/mysql-connector-c-6.1.11-src/build/libmysql && /usr/bin/c++
-DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/libmysql
-I/home/karen/mysql-connector-c-6.1.11-src/regex
-I/home/karen/mysql-connector-c-6.1.11-src/sql
-I/home/karen/mysql-connector-c-6.1.11-src/strings
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/mySTL
-I/home/karen/mysql-connector-c-6.1.11-src/zlib
-Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual
-Wno-unused-parameter -O3 -g -fabi-version=2 -fno-omit-frame-pointer
-fno-strict-aliasing -std=gnu++03 -DDBUG_OFF
-DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED
-D CLIENT_PROTOCOL_TRACING -fPIC -Wno-unused-variable
-o CMakeFiles/clientlib.dir/__/sql/net_serv.cc.o
-c /home/karen/mysql-connector-c-6.1.11-src/sql/net_serv.cc

cd /home/karen/mysql-connector-c-6.1.11-src/build/libmysql && /usr/bin/c++
-DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/libmysql
-I/home/karen/mysql-connector-c-6.1.11-src/regex
-I/home/karen/mysql-connector-c-6.1.11-src/sql
-I/home/karen/mysql-connector-c-6.1.11-src/strings
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/mySTL
-I/home/karen/mysql-connector-c-6.1.11-src/zlib
-Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing
-std=gnu++03 -DDBUG_OFF
-DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED
-D CLIENT_PROTOCOL_TRACING -fPIC -Wno-unused-variable
-o CMakeFiles/clientlib.dir/__/sql/net_serv.cc.o
-c /home/karen/mysql-connector-c-6.1.11-src/sql/net_serv.cc

cd /home/karen/mysql-connector-c-6.1.11-src/build/libmysql && /usr/bin/cc
-DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/libmysql
-I/home/karen/mysql-connector-c-6.1.11-src/regex
-I/home/karen/mysql-connector-c-6.1.11-src/sql
-I/home/karen/mysql-connector-c-6.1.11-src/strings
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/mySTL
-I/home/karen/mysql-connector-c-6.1.11-src/zlib
-Wall -Wextra -Wformat-security -Wvla -Wwrite-strings
-Wdeclaration-after-statement -Wno-unused-parameter
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF
-DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED
-D CLIENT_PROTOCOL_TRACING -fPIC -Wno-unused-variable
-o CMakeFiles/clientlib.dir/__/sql/auth/password.c.o
-c /home/karen/mysql-connector-c-6.1.11-src/sql/auth/password.c

cd /home/karen/mysql-connector-c-6.1.11-src/build/libmysql && /usr/bin/c++
-DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Dlibmysql_EXPORTS
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/libmysql
-I/home/karen/mysql-connector-c-6.1.11-src/regex
-I/home/karen/mysql-connector-c-6.1.11-src/sql
-I/home/karen/mysql-connector-c-6.1.11-src/strings
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/mySTL
-I/home/karen/mysql-connector-c-6.1.11-src/zlib
-Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual
-Wno-unused-parameter -O3 -g -fabi-version=2 -fno-omit-frame-pointer
-fno-strict-aliasing -std=gnu++03 -DDBUG_OFF -fPIC
-DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED
-D CLIENT_PROTOCOL_TRACING
-o CMakeFiles/libmysql.dir/libmysql_exports_file.cc.o
-c /home/karen/mysql-connector-c-6.1.11-src/build/libmysql/libmysql_exports_file.cc


-------------

/usr/bin/c++ -fPIC  -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual
-Wno-unused-parameter -O3 -g -fabi-version=2 -fno-omit-frame-pointer
-fno-strict-aliasing -std=gnu++03 -DDBUG_OFF -fPIC  -Wl,--no-undefined
-Wl,--version-script=/home/karen/mysql-connector-c-6.1.11-src/build/libmysql/libmysql.ver
-shared -Wl,-soname,libmysqlclient.so.18 -o libmysqlclient.so.18.4.
CMakeFiles/libmysql.dir/libmysql_exports_file.cc.o -lpthread
libclientlib.a ../dbug/libdbug.a ../strings/libstrings.a ../vio/libvio.a
../mysys/libmysys.a ../mysys_ssl/libmysys_ssl.a ../zlib/libzlib.a
../extra/yassl/libyassl.a ../extra/yassl/taocrypt/libtaocrypt.a -ldl
../dbug/libdbug.a ../mysys/libmysys.a ../dbug/libdbug.a ../mysys/libmysys.a -lm
-lrt ../strings/libstrings.a ../zlib/libzlib.a -lpthread

------------


cd /home/karen/mysql-connector-c-6.1.11-src/build/libmysql &&
/usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/home/karen/mysql-connector-c-6.1.11-src/build/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/rapidjson/include
-I/home/karen/mysql-connector-c-6.1.11-src/include
-I/home/karen/mysql-connector-c-6.1.11-src/libmysql
-I/home/karen/mysql-connector-c-6.1.11-src/regex
-I/home/karen/mysql-connector-c-6.1.11-src/sql
-I/home/karen/mysql-connector-c-6.1.11-src/strings
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/include
-I/home/karen/mysql-connector-c-6.1.11-src/extra/yassl/taocrypt/mySTL
-I/home/karen/mysql-connector-c-6.1.11-src/zlib
-Wall -Wextra -Wformat-security -Wvla -Wwrite-strings
-Wdeclaration-after-statement -Wno-unused-parameter
-O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing
-DDBUG_OFF   -DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED
-D CLIENT_PROTOCOL_TRACING -o CMakeFiles/libmysql_api_test.dir/api_test.c.o
-c /home/karen/mysql-connector-c-6.1.11-src/build/libmysql/api_test.c




------------

/usr/bin/c++   -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual
-Wno-unused-parameter -O3 -g -fabi-version=2 -fno-omit-frame-pointer
-fno-strict-aliasing -std=gnu++03 -DDBUG_OFF
CMakeFiles/comp_err.dir/comp_err.c.o  -o comp_err -lpthread
../mysys/libmysys.a ../mysys_ssl/libmysys_ssl.a ../mysys/libmysys.a
../dbug/libdbug.a ../mysys/libmysys.a ../dbug/libdbug.a -lm -lrt
../strings/libstrings.a ../zlib/libzlib.a yassl/libyassl.a
yassl/taocrypt/libtaocrypt.a -lpthread


/usr/bin/c++ -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual
-Wno-unused-parameter -O3 -g -fabi-version=2 -fno-omit-frame-pointer
-fno-strict-aliasing -std=gnu++03 -DDBUG_OFF
CMakeFiles/libmysql_api_test.dir/api_test.c.o  -o libmysql_api_test
-Wl,-rpath,/home/karen/mysql-connector-c-6.1.11-src/build/libmysql -lpthread
-lrt libmysqlclient.so.18.4.

--------------------


/usr/bin/CC  -DHAVE_CONFIG_H -DHAVE_LIBEVENT1
-I/home/karen/projects/mysql-5.7.20/build/include
-I/home/karen/projects/mysql-5.7.20/extra/rapidjson/include
-I/home/karen/projects/mysql-5.7.20/build/libbinlogevents/include
-I/home/karen/projects/mysql-5.7.20/libbinlogevents/export
-I/home/karen/projects/mysql-5.7.20/include
-I/home/karen/projects/mysql-5.7.20/mysys_ssl
-I/home/karen/projects/mysql-5.7.20/mysys
-I/home/karen/projects/mysql-5.7.20/extra/yassl/include
-I/home/karen/projects/mysql-5.7.20/extra/yassl/taocrypt/include
-Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual
-Wno-unused-parameter -Wno-null-conversion -Wno-unused-private-field
-O3 -g -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF
-DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED
-fPIC -o CMakeFiles/mysys_ssl.dir/crypt_genhash_impl.cc.o
-c /home/karen/projects/mysql-5.7.20/mysys_ssl/crypt_genhash_impl.cc

clang++  -DHAVE_CONFIG_H -DHAVE_LIBEVENT1 -I/home/karen/projects/mysql-5.7.20/build/include -I/home/karen/projects/mysql-5.7.20/extra/rapidjson/include -I/home/karen/projects/mysql-5.7.20/build/libbinlogevents/include -I/home/karen/projects/mysql-5.7.20/libbinlogevents/export -I/home/karen/projects/mysql-5.7.20/include -I/home/karen/projects/mysql-5.7.20/mysys_ssl -I/home/karen/projects/mysql-5.7.20/mysys -I/home/karen/projects/mysql-5.7.20/extra/yassl/include -I/home/karen/projects/mysql-5.7.20/extra/yassl/taocrypt/include -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter -Wno-null-conversion -Wno-unused-private-field -O3 -g -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF   -DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED -fPIC -o libmysqlclient/mysql/mysys_ssl/crypt_genhash_impl.a.o -c /usr/home/karen/projects/libmysqlclient/mysql/mysys_ssl/crypt_genhash_impl.cpp
clang++ -I/usr/home/karen/projects/libmysqlclient -I/usr/home/karen/projects/libmysqlclient -I/usr/home/karen/projects/libmysqlclient/mysql -DHAVE_CONFIG_H -DDBUG_OFF -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/home/karen/projects/libmysqlclient/mysql/mysys_ssl -I/usr/home/karen/projects/libmysqlclient/mysql/extra/yassl/include -I/usr/home/karen/projects/libmysqlclient/mysql/extra/yassl/taocrypt/include -I/usr/home/karen/projects/libmysqlclient/mysql/extra/yassl/taocrypt/mySTL -DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED -I/usr/home/karen/projects/libmysqlclient/mysql/mysys -I /usr/local/include -fno-omit-frame-pointer -fno-strict-aliasing -Wno-unused-parameter -Wno-unused-variable -Wno-unused-const-variable -std=c++03 -o libmysqlclient/mysql/mysys_ssl/crypt_genhash_impl.a.o -c -x c++ /usr/home/karen/projects/libmysqlclient/mysql/mysys_ssl/crypt_genhash_impl.cpp

clang++ -DHAVE_CONFIG_H -DHAVE_LIBEVENT1 -I/usr/home/karen/projects/libmysqlclient -I/usr/home/karen/projects/libmysqlclient -I/usr/home/karen/projects/libmysqlclient/mysql -DDBUG_OFF -I/usr/home/karen/projects/libmysqlclient/mysql/mysys_ssl -I/usr/home/karen/projects/libmysqlclient/mysql/extra/yassl/include -I/usr/home/karen/projects/libmysqlclient/mysql/extra/yassl/taocrypt/include -I/usr/home/karen/projects/libmysqlclient/mysql/extra/yassl/taocrypt/mySTL -DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED -I/usr/home/karen/projects/libmysqlclient/mysql/mysys -I /usr/local/include -fno-omit-frame-pointer -fno-strict-aliasing -Wno-unused-parameter -Wno-unused-variable -Wno-unused-const-variable -o libmysqlclient/mysql/mysys_ssl/crypt_genhash_impl.a.o -c -x c++ /usr/home/karen/projects/libmysqlclient/mysql/mysys_ssl/crypt_genhash_impl.cpp


clang++  -DHAVE_CONFIG_H -DHAVE_LIBEVENT1 -I/usr/home/karen/projects/libmysqlclient -I/usr/home/karen/projects/libmysqlclient -I/usr/home/karen/projects/libmysqlclient/mysql -I/usr/home/karen/projects/libmysqlclient/mysql/mysys_ssl -I/usr/home/karen/projects/libmysqlclient/mysql/extra/yassl/include -I/usr/home/karen/projects/libmysqlclient/mysql/extra/yassl/taocrypt/include -I/usr/home/karen/projects/libmysqlclient/mysql/extra/yassl/taocrypt/mySTL -I/usr/home/karen/projects/libmysqlclient/mysql/mysys -I /usr/local/include        -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter -Wno-null-conversion -Wno-unused-private-field -O3 -g -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF   -DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED -fPIC -o libmysqlclient/mysql/mysys_ssl/crypt_genhash_impl.a.o -c /usr/home/karen/projects/libmysqlclient/mysql/mysys_ssl/crypt_genhash_impl.cpp

=================================================================

 /machine:X86 C:/projects/mysql-connector-c-6.1.11-src/out/libmysql/Debug/clientlib.lib
 C:/projects/mysql-connector-c-6.1.11-src/out/dbug/Debug/dbug.lib
 C:/projects/mysql-connector-c-6.1.11-src/out/strings/Debug/strings.lib
 C:/projects/mysql-connector-c-6.1.11-src/out/vio/Debug/vio.lib C:/projects/mysql-connector-c-6.1.11-src/out/mysys/Debug/mysys.lib C:/projects/mysql-connector-c-6.1.11-src/out/mysys_ssl/Debug/mysys_ssl.lib C:/projects/mysql-connector-c-6.1.11-src/out/zlib/Debug/zlib.lib C:/projects/mysql-connector-c-6.1.11-src/out/extra/yassl/Debug/yassl.lib C:/projects/mysql-connector-c-6.1.11-src/out/extra/yassl/taocrypt/Debug/taocrypt.lib C:/projects/mysql-connector-c-6.1.11-src/out/libmysql/authentication_win/Debug/auth_win_client.lib



==================================================================

cmake -DCMAKE_INSTALL_PREFIX=c:/install/mysql -DDOWNLOAD_BOOST=1 \
  -DWITH_BOOST=../boost -DWITHOUT_SERVER=ON ..

devenv MySQL.sln /build

===========================================================