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 <o...@mechtilde.de> 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: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to