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 ?