Build AOO with mysql

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Build AOO with mysql

Mechtilde Stehmann-2
Hello,


I want to build AOO with mysql to get a recent mysql-connector.

I get the following error:

<start>
Compiling: mysqlc/source/mysqlc_types.cxx
/home/mechtilde/aoo42x/main/mysqlc/source/mysqlc_types.cxx:784:1: error:
narrowing conversion of '4294967295u' from 'unsigned int' to 'sal_Int32
{aka int}' inside { } [-Wnarrowing]
 };
 ^
dmake:  Error code 1, while making '../unxlngx6.pro/slo/mysqlc_types.obj'

</end>

What should I change to build it.

thanks and kind regards
--
Mechtilde Stehmann
## Apache OpenOffice
## Freie Office Suite für Linux, MacOSX, Windows
## Debian Developer
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Build AOO with mysql

Matthias Seidel
Hi Mechtilde,

Am 28.06.19 um 10:56 schrieb Mechtilde:

> Hello,
>
>
> I want to build AOO with mysql to get a recent mysql-connector.
>
> I get the following error:
>
> <start>
> Compiling: mysqlc/source/mysqlc_types.cxx
> /home/mechtilde/aoo42x/main/mysqlc/source/mysqlc_types.cxx:784:1: error:
> narrowing conversion of '4294967295u' from 'unsigned int' to 'sal_Int32
> {aka int}' inside { } [-Wnarrowing]
>  };
>  ^
> dmake:  Error code 1, while making '../unxlngx6.pro/slo/mysqlc_types.obj'
>
> </end>
>
> What should I change to build it.
I have no idea, but did you follow the instructions given here?

http://svn.apache.org/repos/asf/openoffice/branches/AOO42X/main/mysqlc/source/README

Regards,

   Matthias

>
> thanks and kind regards


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Build AOO with mysql

Mechtilde Stehmann-2
Hello,

Am 29.06.19 um 10:07 schrieb Matthias Seidel:

> Hi Mechtilde,
>
> Am 28.06.19 um 10:56 schrieb Mechtilde:
>> Hello,
>>
>>
>> I want to build AOO with mysql to get a recent mysql-connector.
>>
>> I get the following error:
>>
>> <start>
>> Compiling: mysqlc/source/mysqlc_types.cxx
>> /home/mechtilde/aoo42x/main/mysqlc/source/mysqlc_types.cxx:784:1: error:
>> narrowing conversion of '4294967295u' from 'unsigned int' to 'sal_Int32
>> {aka int}' inside { } [-Wnarrowing]
>>  };
>>  ^
>> dmake:  Error code 1, while making '../unxlngx6.pro/slo/mysqlc_types.obj'
>>
>> </end>
>>
>> What should I change to build it.
> I have no idea, but did you follow the instructions given here?
>
> http://svn.apache.org/repos/asf/openoffice/branches/AOO42X/main/mysqlc/source/README
Although I didn't know about that instruction I installed both packages.

In Debian they are named default-libmysqlclient-dev and libmysqlcppconn-dev.

>
> Regards,
>
>    Matthias
>
>>
>> thanks and kind regards
>

--
Mechtilde Stehmann
## Apache OpenOffice
## Freie Office Suite für Linux, MacOSX, Windows
## Debian Developer
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Build AOO with mysql

Jose R R
Niltze [Hello], Mech~

On Sat, Jun 29, 2019 at 1:17 AM Mechtilde <[hidden email]> wrote:

>
> Hello,
>
> Am 29.06.19 um 10:07 schrieb Matthias Seidel:
> > Hi Mechtilde,
> >
> > Am 28.06.19 um 10:56 schrieb Mechtilde:
> >> Hello,
> >>
> >>
> >> I want to build AOO with mysql to get a recent mysql-connector.
> >>
> >> I get the following error:
> >>
> >> <start>
> >> Compiling: mysqlc/source/mysqlc_types.cxx
> >> /home/mechtilde/aoo42x/main/mysqlc/source/mysqlc_types.cxx:784:1: error:
> >> narrowing conversion of '4294967295u' from 'unsigned int' to 'sal_Int32
> >> {aka int}' inside { } [-Wnarrowing]
> >>  };
> >>  ^
> >> dmake:  Error code 1, while making '../unxlngx6.pro/slo/mysqlc_types.obj'
> >>
> >> </end>
> >>
> >> What should I change to build it.
> > I have no idea, but did you follow the instructions given here?
> >
> > http://svn.apache.org/repos/asf/openoffice/branches/AOO42X/main/mysqlc/source/README
>
> Although I didn't know about that instruction I installed both packages.
>
> In Debian they are named default-libmysqlclient-dev and libmysqlcppconn-dev.
You might want to try MariaDB's
libmariadb-dev-compat ≈ libmysqlclient-dev

Either from Debian repositories or (by pinning)[1] from
https://downloads.mariadb.org/mariadb/repositories/#mirror=host-europe

>
> >
> > Regards,
> >
> >    Matthias
> >
> >>
> >> thanks and kind regards
> >
>
> --
> Mechtilde Stehmann
> ## Apache OpenOffice
> ## Freie Office Suite für Linux, MacOSX, Windows
> ## Debian Developer
> ## PGP encryption welcome
> ## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F
>
Best Professional Regards.

[1]
https://mariadb.com/kb/en/library/installing-mariadb-deb-files/#pinning-the-mariadb-repository-to-a-specific-minor-release

--
Jose R R
http://metztli.it
---------------------------------------------------------------------------------------------
Download Metztli Reiser4: Debian Stretch w/ Linux 5.0.15 AMD64
---------------------------------------------------------------------------------------------
feats ZSTD compression https://sf.net/projects/metztli-reiser4/
-------------------------------------------------------------------------------------------
Official current Reiser4 resources: https://reiser4.wiki.kernel.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Build AOO with mysql

Peter Kovacs-3
I would check the pathes first. Quote from the guide:

However, for the moment check the makefile.mk if the compilation fails
due to
"missing" libraries (= libraries not found). For example, check the
following
settings:

  MYSQL_INCDIR=/usr/local/include
  MYSQL_LIBDIR=/usr/local/lib
  [...]
  MYSQL_INCDIR=/usr/local/include
  MYSQL_LIBDIR=/usr/local/lib
  [...]
  MYSQL_INC=-I$(MYSQL_INCDIR)
  MYSQL_LIB=-L$(MYSQL_LIBDIR) -lmysqlclient -rdynamic -lz -lcrypt -lnsl -lm
  MYSQL_LIBFILE=$(MYSQL_LIBDIR)$/libmysqlclient.so.16
  MYSQL_CPPCONN_LIBFILE=$(MYSQL_LIBDIR)$/libmysqlcppconn.so
  [...]

If this does not help try to set the variable CFLAGS to -Wnonarrowing
and switching off the gcc check. (not a real solution)

The commands are:

export CFLAGS="-Wnonarrowing"

build all


I guess you missed the real error, since the narrowing is only a
warning, not an error. Can you post the complete output?


HTH

Peter

On 29.06.19 10:36, Jose R R wrote:

> Niltze [Hello], Mech~
>
> On Sat, Jun 29, 2019 at 1:17 AM Mechtilde <[hidden email]> wrote:
>> Hello,
>>
>> Am 29.06.19 um 10:07 schrieb Matthias Seidel:
>>> Hi Mechtilde,
>>>
>>> Am 28.06.19 um 10:56 schrieb Mechtilde:
>>>> Hello,
>>>>
>>>>
>>>> I want to build AOO with mysql to get a recent mysql-connector.
>>>>
>>>> I get the following error:
>>>>
>>>> <start>
>>>> Compiling: mysqlc/source/mysqlc_types.cxx
>>>> /home/mechtilde/aoo42x/main/mysqlc/source/mysqlc_types.cxx:784:1: error:
>>>> narrowing conversion of '4294967295u' from 'unsigned int' to 'sal_Int32
>>>> {aka int}' inside { } [-Wnarrowing]
>>>>  };
>>>>  ^
>>>> dmake:  Error code 1, while making '../unxlngx6.pro/slo/mysqlc_types.obj'
>>>>
>>>> </end>
>>>>
>>>> What should I change to build it.
>>> I have no idea, but did you follow the instructions given here?
>>>
>>> http://svn.apache.org/repos/asf/openoffice/branches/AOO42X/main/mysqlc/source/README
>> Although I didn't know about that instruction I installed both packages.
>>
>> In Debian they are named default-libmysqlclient-dev and libmysqlcppconn-dev.
> You might want to try MariaDB's
> libmariadb-dev-compat ≈ libmysqlclient-dev
>
> Either from Debian repositories or (by pinning)[1] from
> https://downloads.mariadb.org/mariadb/repositories/#mirror=host-europe
>
>>> Regards,
>>>
>>>    Matthias
>>>
>>>> thanks and kind regards
>> --
>> Mechtilde Stehmann
>> ## Apache OpenOffice
>> ## Freie Office Suite für Linux, MacOSX, Windows
>> ## Debian Developer
>> ## PGP encryption welcome
>> ## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F
>>
> Best Professional Regards.
>
> [1]
> https://mariadb.com/kb/en/library/installing-mariadb-deb-files/#pinning-the-mariadb-repository-to-a-specific-minor-release
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Build AOO with mysql

Mechtilde Stehmann-2
In reply to this post by Jose R R
Hello

Am 29.06.19 um 10:36 schrieb Jose R R:

> Niltze [Hello], Mech~
>
> On Sat, Jun 29, 2019 at 1:17 AM Mechtilde <[hidden email]> wrote:
>>
>> Hello,
>>
>> Am 29.06.19 um 10:07 schrieb Matthias Seidel:
>>> Hi Mechtilde,
>>>
>>> Am 28.06.19 um 10:56 schrieb Mechtilde:
>>>> Hello,
>>>>
>>>>
>>>> I want to build AOO with mysql to get a recent mysql-connector.
>>>>
>>>> I get the following error:
>>>>
>>>> <start>
>>>> Compiling: mysqlc/source/mysqlc_types.cxx
>>>> /home/mechtilde/aoo42x/main/mysqlc/source/mysqlc_types.cxx:784:1: error:
>>>> narrowing conversion of '4294967295u' from 'unsigned int' to 'sal_Int32
>>>> {aka int}' inside { } [-Wnarrowing]
>>>>  };
>>>>  ^
>>>> dmake:  Error code 1, while making '../unxlngx6.pro/slo/mysqlc_types.obj'
>>>>
>>>> </end>
>>>>
>>>> What should I change to build it.
>>> I have no idea, but did you follow the instructions given here?
>>>
>>> http://svn.apache.org/repos/asf/openoffice/branches/AOO42X/main/mysqlc/source/README
>>
>> Although I didn't know about that instruction I installed both packages.
>>
>> In Debian they are named default-libmysqlclient-dev and libmysqlcppconn-dev.
> You might want to try MariaDB's
> libmariadb-dev-compat ≈ libmysqlclient-dev
the mysql named packages link to the packages from mariadb

>
> Either from Debian repositories or (by pinning)[1] from
> https://downloads.mariadb.org/mariadb/repositories/#mirror=host-europe
>
>>
>>>
>>> Regards,
>>>
>>>    Matthias
>>>
>>>>
>>>> thanks and kind regards

> [1]
> https://mariadb.com/kb/en/library/installing-mariadb-deb-files/#pinning-the-mariadb-repository-to-a-specific-minor-release
>

--
Mechtilde Stehmann
## Apache OpenOffice
## Freie Office Suite für Linux, MacOSX, Windows
## Debian Developer
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F


signature.asc (849 bytes) Download Attachment