← Back to team overview

maria-discuss team mailing list archive

Re: [Pbxt-discuss] Compile failure on OS


Hi Sergey,

As Vlad mentioned the problem must be Mac OS X on PowerPC. We actually do not support that at the moment.

Otherwise, Mac OS X is my primary development environment, so is one of our best supported platforms (on x86 based Macs).

We will need find an alternative for the atomic ops on PPC...

On Aug 21, 2009, at 3:58 PM, Sergey Petrunya wrote:


We're getting a compile error when trying to compile PBXT+Maria on ppc MacOS X:


looking at the bottom there, one sees:

if ccache gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../ include -I../../../include -I../../../regex -I../../../storage/innobase/ include -I../../../sql -I. -g -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
 -g3 -gdwarf-2   -fno-implicit-templates -fno-exceptions -fno-rtti
libpbxt_a-datalog_xt.o -MD -MP -MF ".deps/libpbxt_a-datalog_xt.Tpo" -c -o libpbxt_a-datalog_xt.o `test -f 'datalog_xt.cc' || echo './'`datalog_xt.cc; \
   then mv -f ".deps/libpbxt_a-datalog_xt.Tpo"
   ".deps/libpbxt_a-datalog_xt.Po"; else rm -f
   ".deps/libpbxt_a-datalog_xt.Tpo"; exit 1; fi
lock_xt.h: In function 'void xt_atomic_inc2(volatile u_int16_t*)':
lock_xt.h:194: error: '__sync_fetch_and_add' was not declared in this scope
lock_xt.h: In function 'void xt_atomic_dec2(volatile u_int16_t*)':
lock_xt.h:209: error: '__sync_fetch_and_sub' was not declared in this scope
lock_xt.h: At global scope:
lock_xt.h:584: warning: 'struct XTRowLockList' only defines private
constructors and has no friends
lock_xt.h:640: warning: 'struct XTRowLocks' only defines private
constructors and has no friends

Is PBXT expected to work on MacOS X G5?

Sergey Petrunia, Software Developer
Monty Program AB, http://askmonty.org
Blog: http://s.petrunia.net/blog

Mailing list: https://launchpad.net/~pbxt-discuss
Post to     : pbxt-discuss@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~pbxt-discuss
More help   : https://help.launchpad.net/ListHelp

Paul McCullagh
PrimeBase Technologies