Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3765

LP:485443 - --with-fast-mutexes and without safe mutexes (debug build) maria do not builds

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      above casues errors like this:
      mysys_priv.h:29: error: conflicting types for ‘THR_LOCK_malloc’
      mysys_priv.h:29: error: previous declaration of ‘THR_LOCK_malloc’ was here
      mysys_priv.h:29: error: conflicting types for ‘THR_LOCK_open’
      mysys_priv.h:29: error: previous declaration of ‘THR_LOCK_open’ was here
      mysys_priv.h:29: error: conflicting types for ‘THR_LOCK_keycache’

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            hakanküçükyılmaz Hakan Küçükyılmaz added a comment -

            Re: --with-fast-mutexes and without safe mutexes (debug build) maria do not builds
            Sanja,

            can you please provide a description how to reproduce this bug.

            Thanks,

            Show
            hakanküçükyılmaz Hakan Küçükyılmaz added a comment - Re: --with-fast-mutexes and without safe mutexes (debug build) maria do not builds Sanja, can you please provide a description how to reproduce this bug. Thanks,
            Hide
            sanja Oleksandr Byelkin added a comment -

            Re: [Bug 485443] Re: --with-fast-mutexes and without safe mutexes (debug build) maria do not builds

            19 нояб. 2009, в 22:19, Hakan Küçükyılmaz написал(а):

            > Sanja,
            >
            > can you please provide a description how to reproduce this bug.

            configure --with-fast-mutexes but without debug. Then try to build.

            Easiest way is to put --with-fast-mutexes in BUILD/SETUP.sh in
            base_configs variable, then use non-debug compile script.

            Show
            sanja Oleksandr Byelkin added a comment - Re: [Bug 485443] Re: --with-fast-mutexes and without safe mutexes (debug build) maria do not builds 19 нояб. 2009, в 22:19, Hakan Küçükyılmaz написал(а): > Sanja, > > can you please provide a description how to reproduce this bug. configure --with-fast-mutexes but without debug. Then try to build. Easiest way is to put --with-fast-mutexes in BUILD/SETUP.sh in base_configs variable, then use non-debug compile script.
            Hide
            hakanküçükyılmaz Hakan Küçükyılmaz added a comment -

            Re: --with-fast-mutexes and without safe mutexes (debug build) maria do not builds
            I could also reproduce it with our lp:maria branch

            BUILD/autorun.sh
            ./configure --with-fast-mutexes
            make -j2

            ...
            ...
            ...
            gcc -DDEFAULT_BASEDIR=\"/usr/local\" -DMYSQL_DATADIR="\"/usr/local/var\"" -DDEFAULT_CHARSET_HOME="\"/usr/local\"" -DSHAREDIR="\"/usr/local/share/mysql\"" -DDEFAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX -DDEFAULT_SYSCONFDIR="\"/usr/local/etc\"" -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -I. -O3 -DUNIV_LINUX -MT thr_rwlock.o -MD -MP -MF .deps/thr_rwlock.Tpo -c -o thr_rwlock.o thr_rwlock.c
            In file included from thr_mutex.c:846:
            mysys_priv.h:29: error: conflicting types for ‘THR_LOCK_malloc’
            mysys_priv.h:29: error: previous declaration of ‘THR_LOCK_malloc’ was here
            mysys_priv.h:29: error: conflicting types for ‘THR_LOCK_open’
            mysys_priv.h:29: error: previous declaration of ‘THR_LOCK_open’ was here
            mysys_priv.h:29: error: conflicting types for ‘THR_LOCK_keycache’
            mysys_priv.h:29: error: previous declaration of ‘THR_LOCK_keycache’ was here
            mysys_priv.h:30: error: conflicting types for ‘THR_LOCK_lock’
            mysys_priv.h:30: error: previous declaration of ‘THR_LOCK_lock’ was here
            mysys_priv.h:30: error: conflicting types for ‘THR_LOCK_isam’
            mysys_priv.h:30: error: previous declaration of ‘THR_LOCK_isam’ was here
            mysys_priv.h:30: error: conflicting types for ‘THR_LOCK_net’
            mysys_priv.h:30: error: previous declaration of ‘THR_LOCK_net’ was here
            mysys_priv.h:31: error: conflicting types for ‘THR_LOCK_charset’
            mysys_priv.h:31: error: previous declaration of ‘THR_LOCK_charset’ was here
            mysys_priv.h:31: error: conflicting types for ‘THR_LOCK_time’
            mysys_priv.h:31: error: previous declaration of ‘THR_LOCK_time’ was here
            In file included from thr_mutex.c:847:
            my_static.h:29: error: redefinition of ‘struct st_remember’
            my_static.h:43: error: redefinition of ‘struct st_irem’
            make[1]: *** [thr_mutex.o] Error 1

            Show
            hakanküçükyılmaz Hakan Küçükyılmaz added a comment - Re: --with-fast-mutexes and without safe mutexes (debug build) maria do not builds I could also reproduce it with our lp:maria branch BUILD/autorun.sh ./configure --with-fast-mutexes make -j2 ... ... ... gcc -DDEFAULT_BASEDIR=\"/usr/local\" -DMYSQL_DATADIR="\"/usr/local/var\"" -DDEFAULT_CHARSET_HOME="\"/usr/local\"" -DSHAREDIR="\"/usr/local/share/mysql\"" -DDEFAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX -DDEFAULT_SYSCONFDIR="\"/usr/local/etc\"" -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -I. -O3 -DUNIV_LINUX -MT thr_rwlock.o -MD -MP -MF .deps/thr_rwlock.Tpo -c -o thr_rwlock.o thr_rwlock.c In file included from thr_mutex.c:846: mysys_priv.h:29: error: conflicting types for ‘THR_LOCK_malloc’ mysys_priv.h:29: error: previous declaration of ‘THR_LOCK_malloc’ was here mysys_priv.h:29: error: conflicting types for ‘THR_LOCK_open’ mysys_priv.h:29: error: previous declaration of ‘THR_LOCK_open’ was here mysys_priv.h:29: error: conflicting types for ‘THR_LOCK_keycache’ mysys_priv.h:29: error: previous declaration of ‘THR_LOCK_keycache’ was here mysys_priv.h:30: error: conflicting types for ‘THR_LOCK_lock’ mysys_priv.h:30: error: previous declaration of ‘THR_LOCK_lock’ was here mysys_priv.h:30: error: conflicting types for ‘THR_LOCK_isam’ mysys_priv.h:30: error: previous declaration of ‘THR_LOCK_isam’ was here mysys_priv.h:30: error: conflicting types for ‘THR_LOCK_net’ mysys_priv.h:30: error: previous declaration of ‘THR_LOCK_net’ was here mysys_priv.h:31: error: conflicting types for ‘THR_LOCK_charset’ mysys_priv.h:31: error: previous declaration of ‘THR_LOCK_charset’ was here mysys_priv.h:31: error: conflicting types for ‘THR_LOCK_time’ mysys_priv.h:31: error: previous declaration of ‘THR_LOCK_time’ was here In file included from thr_mutex.c:847: my_static.h:29: error: redefinition of ‘struct st_remember’ my_static.h:43: error: redefinition of ‘struct st_irem’ make [1] : *** [thr_mutex.o] Error 1
            Hide
            hakanküçükyılmaz Hakan Küçükyılmaz added a comment -

            Re: --with-fast-mutexes and without safe mutexes (debug build) maria do not builds
            Just tried with lp:mysql-server and it builds fine:

            BUILD/autorun.sh
            ./configure --with-fast-mutexes
            make -j2
            ...
            ...
            ...
            libtool: link: g++ -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o mysqlmanager mysqlmanager-command.o mysqlmanager-mysqlmanager.o mysqlmanager-manager.o mysqlmanager-log.o mysqlmanager-thread_registry.o mysqlmanager-listener.o mysqlmanager-protocol.o mysqlmanager-mysql_connection.o mysqlmanager-user_map.o mysqlmanager-messages.o mysqlmanager-commands.o mysqlmanager-instance.o mysqlmanager-instance_map.o mysqlmanager-instance_options.o mysqlmanager-buffer.o mysqlmanager-parse.o mysqlmanager-guardian.o mysqlmanager-parse_output.o mysqlmanager-user_management_commands.o mysqlmanager-angel.o ./.libs/liboptions.a -lpthread -lpthread -lpthread -lpthread libnet.a ../../vio/libvio.a ../../mysys/libmysys.a ../../strings/libmystrings.a ../../dbug/libdbug.a -lz -lpthread -lcrypt -lnsl -lm -lpthread
            make[2]: Leaving directory `/home/hakan/work/mysql/mysql-server-fast-mutex/server-tools/instance-manager'
            make[1]: Leaving directory `/home/hakan/work/mysql/mysql-server-fast-mutex/server-tools'
            Making all in win
            make[1]: Entering directory `/home/hakan/work/mysql/mysql-server-fast-mutex/win'
            make[1]: Nothing to be done for `all'.
            make[1]: Leaving directory `/home/hakan/work/mysql/mysql-server-fast-mutex/win'

            Show
            hakanküçükyılmaz Hakan Küçükyılmaz added a comment - Re: --with-fast-mutexes and without safe mutexes (debug build) maria do not builds Just tried with lp:mysql-server and it builds fine: BUILD/autorun.sh ./configure --with-fast-mutexes make -j2 ... ... ... libtool: link: g++ -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o mysqlmanager mysqlmanager-command.o mysqlmanager-mysqlmanager.o mysqlmanager-manager.o mysqlmanager-log.o mysqlmanager-thread_registry.o mysqlmanager-listener.o mysqlmanager-protocol.o mysqlmanager-mysql_connection.o mysqlmanager-user_map.o mysqlmanager-messages.o mysqlmanager-commands.o mysqlmanager-instance.o mysqlmanager-instance_map.o mysqlmanager-instance_options.o mysqlmanager-buffer.o mysqlmanager-parse.o mysqlmanager-guardian.o mysqlmanager-parse_output.o mysqlmanager-user_management_commands.o mysqlmanager-angel.o ./.libs/liboptions.a -lpthread -lpthread -lpthread -lpthread libnet.a ../../vio/libvio.a ../../mysys/libmysys.a ../../strings/libmystrings.a ../../dbug/libdbug.a -lz -lpthread -lcrypt -lnsl -lm -lpthread make [2] : Leaving directory `/home/hakan/work/mysql/mysql-server-fast-mutex/server-tools/instance-manager' make [1] : Leaving directory `/home/hakan/work/mysql/mysql-server-fast-mutex/server-tools' Making all in win make [1] : Entering directory `/home/hakan/work/mysql/mysql-server-fast-mutex/win' make [1] : Nothing to be done for `all'. make [1] : Leaving directory `/home/hakan/work/mysql/mysql-server-fast-mutex/win'
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 485443

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 485443

              People

              • Assignee:
                monty Michael Widenius
                Reporter:
                sanja Oleksandr Byelkin
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: