Re: [Bacula-users] MySQL 8.0 mysql.c:201:4: error: unknown type name 'my_bool'

2019-05-03 Thread Dan Langille
> On Apr 27, 2019, at 4:03 PM, Carsten Leonhardt  wrote:
> 
> Hi Dan,
> 
>> I am setting up regression testing for MySQL 8.0 and getting this error on 
>> the build:
> 
>> /usr/home/dan/src/bacula/regress/build/libtool --silent --tag=CXX 
>> --mode=link /usr/bin/c++-o libbaccats.la cats_null.lo -export-dynamic 
>> -rpath /usr/home/dan/src/bacula/regress/bin -release 9.4.3
>> Compiling mysql.c
>> mysql.c:201:4: error: unknown type name 'my_bool'
>>   my_bool reconnect = 1;
>>   ^
>> 1 error generated.
>> *** Error code 1
> 
> MySQL removed "my_bool" in version 8, a patch is needed. For example:
> 
> see https://patches.ubuntu.com/b/bacula/bacula_9.4.2-2ubuntu1.patch
> 
> There might be cleverer approaches.
> 
> Regards,
> 
> Carsten

That got me farther into the compile.  Now it's:

cats_test.c:533:75: error: too many arguments provided to function-like macro 
invocation
   ok(db_get_file_list(jcr, jcr->db_batch, buf, false, false, list_files, ),
  ^
../cats/protos.h:224:9: note: macro 'db_get_file_list' defined here
#define db_get_file_list(jcr, mdb, jobids, opts, result_handler, ctx) \
^
1 error generated.
*** Error code 1

— 
Dan Langille
http://langille .org/





___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] MySQL 8.0 mysql.c:201:4: error: unknown type name 'my_bool'

2019-04-27 Thread Dan Langille
Thank you. 

With that patch, we have MySQL 8 covered via regression testing. 

http://regress.bacula.org/index.php?project=Bacula-9.4=2019-04-27

FYI I apply that patch during testing. It needs to get into the code. 

--
 Dan Langille
 d...@langille.org



On Sat, Apr 27, 2019, at 4:20 PM, Carsten Leonhardt wrote:
> Hi Dan,
> 
> > I am setting up regression testing for MySQL 8.0 and getting this error on 
> > the build:
> 
> > /usr/home/dan/src/bacula/regress/build/libtool --silent --tag=CXX 
> > --mode=link /usr/bin/c++ -o libbaccats.la cats_null.lo -export-dynamic 
> > -rpath /usr/home/dan/src/bacula/regress/bin -release 9.4.3
> > Compiling mysql.c
> > mysql.c:201:4: error: unknown type name 'my_bool'
> > my_bool reconnect = 1;
> > ^
> > 1 error generated.
> > *** Error code 1
> 
> MySQL removed "my_bool" in version 8, a patch is needed. For example:
> 
> see https://patches.ubuntu.com/b/bacula/bacula_9.4.2-2ubuntu1.patch
> 
> There might be cleverer approaches.
> 
> Regards,
> 
> Carsten
> 
> 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] MySQL 8.0 mysql.c:201:4: error: unknown type name 'my_bool'

2019-04-27 Thread Carsten Leonhardt
Hi Dan,

> I am setting up regression testing for MySQL 8.0 and getting this error on 
> the build:

> /usr/home/dan/src/bacula/regress/build/libtool --silent --tag=CXX --mode=link 
> /usr/bin/c++-o libbaccats.la cats_null.lo -export-dynamic -rpath 
> /usr/home/dan/src/bacula/regress/bin -release 9.4.3
> Compiling mysql.c
> mysql.c:201:4: error: unknown type name 'my_bool'
>my_bool reconnect = 1;
>^
> 1 error generated.
> *** Error code 1

MySQL removed "my_bool" in version 8, a patch is needed. For example:

see https://patches.ubuntu.com/b/bacula/bacula_9.4.2-2ubuntu1.patch

There might be cleverer approaches.

Regards,

Carsten


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] MySQL 8.0 mysql.c:201:4: error: unknown type name 'my_bool'

2019-04-14 Thread Dan Langille
I am setting up regression testing for MySQL 8.0 and getting this error on the 
build:

Making libbacsql.la ...
/usr/home/dan/src/bacula/regress/build/libtool --silent --tag=CXX --mode=link 
/usr/bin/c++-o libbacsql.la bvfs.lo cats.lo sql.lo sql_cmds.lo 
sql_create.lo sql_delete.lo sql_find.lo sql_get.lo sql_list.lo sql_update.lo 
-export-dynamic -rpath /usr/home/dan/src/bacula/regress/bin -release 9.4.3 
Compiling cats_null.c
Making libbaccats.la ...
/usr/home/dan/src/bacula/regress/build/libtool --silent --tag=CXX --mode=link 
/usr/bin/c++-o libbaccats.la cats_null.lo -export-dynamic -rpath 
/usr/home/dan/src/bacula/regress/bin -release 9.4.3
Compiling mysql.c
mysql.c:201:4: error: unknown type name 'my_bool'
   my_bool reconnect = 1;
   ^
1 error generated.
*** Error code 1

mysql80-client-8.0.15
mysql80-server-8.0.15

   C++ Compiler: /usr/bin/c++ version
   Compiler flags:-g -O2 -Wall -x c++ -fno-strict-aliasing 
-fno-exceptions -fno-rtti
   Linker flags:  
   Libraries:-lpthread 
   Statically Linked Tools:  no
   Statically Linked FD: no
   Statically Linked SD: no
   Statically Linked DIR:no
   Statically Linked CONS:   no
   Database backends:MySQL
   Database port: 
   Database name:regress
   Database user:regress
   Database SSL options: 

   SMTP Host Address:localhost

   Director Port:8101
   File daemon Port: 8102
   Storage daemon Port:  8103

   Director User:
   Director Group:   
   Storage Daemon User:  
   Storage DaemonGroup:  
   File Daemon User: 
   File Daemon Group:

   Large file support:   yes
   Bacula conio support: yes -ltinfo
   readline support: no 
   TCP Wrappers support: yes -lwrap
   TLS support:  yes
   Encryption support:   yes
   ZLIB support: yes
   LZO support:  no
   enable-smartalloc:yes
   enable-lockmgr:   yes
   bat support:  no
   client-only:  no
   build-dird:   yes
   build-stored: yes
   Plugin support:   yes
   AFS support:  no
   ACL support:  yes
   XATTR support:yes
   systemd support:  no 
   Batch insert enabled: MySQL

-- 
Dan Langille - BSDCan / PGCon
d...@langille.org


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users