[MDEV-3765] LP:485443 - --with-fast-mutexes and without safe mutexes (debug build) maria do not builds Created: 2009-11-19  Updated: 2012-10-04  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Oleksandr Byelkin Assignee: Michael Widenius
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug485443.xml    

 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’



 Comments   
Comment by Hakan Küçükyılmaz (Inactive) [ 2009-11-19 ]

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,

Comment by Oleksandr Byelkin [ 2009-11-20 ]

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.

Comment by Hakan Küçükyılmaz (Inactive) [ 2009-11-20 ]

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

Comment by Hakan Küçükyılmaz (Inactive) [ 2009-11-20 ]

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'

Comment by Rasmus Johansson (Inactive) [ 2010-02-11 ]

Launchpad bug id: 485443

Generated at Thu Feb 08 06:51:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.