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

Bug #485443 reported by Oleksandr "Sanja" Byelkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MariaDB
Fix Released
High
Michael Widenius

Bug 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’

Tags: 5.1 compile
Revision history for this message
Hakan Küçükyılmaz (hakan-askmonty) wrote :

Sanja,

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

Thanks,

Changed in maria:
status: New → Incomplete
Revision history for this message
Oleksandr "Sanja" Byelkin (sanja-byelkin) wrote : 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.

Changed in maria:
status: Incomplete → Confirmed
Revision history for this message
Hakan Küçükyılmaz (hakan-askmonty) wrote :

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

Revision history for this message
Hakan Küçükyılmaz (hakan-askmonty) wrote :

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'

tags: added: compile
tags: added: 5.1
Changed in maria:
assignee: nobody → Michael Widenius (monty)
importance: Undecided → High
Michael Widenius (monty)
Changed in maria:
status: Confirmed → Fix Committed
Changed in maria:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.