Bug #50405 mysqld embedded doesn't compile on MacOSX
Submitted: 18 Jan 2010 9:00 Modified: 21 Jan 2010 15:13
Reporter: Georgi Kodinov Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Embedded Library ( libmysqld ) Severity:S3 (Non-critical)
Version:5.1, 6.0-codebase OS:MacOS (Snow Leopard 10.6.2)
Assigned to: CPU Architecture:Any

[18 Jan 2010 9:00] Georgi Kodinov
Description:
Using the latest Xcode (3.2.1) I'm getting the following linking error when using BUILD/compile-pentium-debug-max:
libtool: link: g++ -g -DSAFE_MUTEX -DSAFEMALLOC -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -mtune=native -DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX -fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -o mysqltest_embedded mysqltest.o -Wl,-bind_at_load  ../libmysqld.a -ldl ../../regex/libregex.a -lm -lm ../../zlib/.libs/libzlt.a -lm ../../extra/yassl/src/.libs/libyassl.a -lm ../../extra/yassl/taocrypt/src/.libs/libtaocrypt.a -lm
ld: duplicate symbol _timed_mutexes in ../libmysqld.a(my_static.o) and ../libmysqld.a(my_static.o)
collect2: ld returned 1 exit status
ld: duplicate symbol _timed_mutexes in ../libmysqld.a(my_static.o) and ../libmysqld.a(my_static.o)
collect2: ld returned 1 exit status

How to repeat:
BUILD/compile-pentinum-debug-max

Suggested fix:
make sure the timed_mutexes is included only in the server code ?
[21 Jan 2010 15:06] Jon Olav Hauglid
Looks similar to Bug#47416
[21 Jan 2010 15:13] Valeriy Kravchuk
Duplicate of  Bug#47416.