On 05/20/2010 08:04 AM, Paul McCullagh wrote:
> Hi Brian, Monty,
>
> Thanks for the input. But, I am still a bit stuck on this one.
>
> What would make thing easier is if there was some kind of configure
> options (maybe they exist - but I am autoconf illiterate) that would:
>
> 1. Use -g instead of -gdbd3
Yes. I can add a check into pandora_optimize to use -g if we're on OSX.
> 2. Build PBXT static instead of dynamic
I've been thinking about an option for this... so yes, lemme see what I
can do for you here.
> Then I could just solve my problems, without having to hack anything.
> Currently I am using the following hack to get things to work on Mac:
>
> === modified file 'm4/pandora_optimize.m4'
> --- m4/pandora_optimize.m4 2009-12-23 19:45:30 +0000
> +++ m4/pandora_optimize.m4 2010-05-19 14:28:09 +0000
> @@ -22,7 +22,7 @@
> dnl with using AC_CC_STD_C99 above
> CC="${CC} -std=gnu99"
>
> - AM_CPPFLAGS="-ggdb3 ${AM_CPPFLAGS}"
> + AM_CPPFLAGS="-g ${AM_CPPFLAGS}"
>
> DEBUG_CFLAGS="-O0"
> DEBUG_CXXFLAGS="-O0"
>
> === modified file 'plugin/pbxt/plugin.ini'
> --- plugin/pbxt/plugin.ini 2010-04-14 17:24:09 +0000
> +++ plugin/pbxt/plugin.ini 2010-05-19 15:47:12 +0000
> @@ -19,8 +19,8 @@
> title=PBXT Storage Engine
> description=MVCC-based transactional engine
> sources=src/ha_pbxt.cc
> -load_by_default=no
> +load_by_default=yes
> libs=plugin/pbxt/libpbxt.la
> cflags=-DDRIZZLED
> cxxflags=-DDRIZZLED ${PBXT_EXTRA_CXXFLAGS}
> -disabled=yes
> +static=yes
>
> On May 20, 2010, at 4:54 PM, Monty Taylor wrote:
>
>> On 05/20/2010 03:10 AM, Paul McCullagh wrote:
>>> Strange thing is, it works fine when debugging PBXT as a dynamic loaded
>>> plug-in with MySQL.
>>>
>>> Is Drizzle using CFM instead of dyld?
>>
>> We're just using normal dlopen calls. Whatever OSX oddness that gets
>> translated to is beyond me.
>>
>> However, a difference between us and MySQL is that we don't take the
>> library name, we take the plugin name, and then we create the library
>> name from that. In the case of OSX, we append .dylib rather than .so.
>>
>>> On May 20, 2010, at 4:01 AM, Brian Aker wrote:
>>>
>>>> Hi!
>>>>
>>>> On May 19, 2010, at 9:14 AM, Paul McCullagh wrote:
>>>>
>>>>> * I have to link PBXT statically or the line numbering in the
>>>>> debugger are all wrong.
>>>>
>>>> I have to do this as well for any piece of the code I am debugging on
>>>> OSX. Here is something that you might find helpful (search for the
>>>> word GDB in the document).
>>>>
>>>> http://osxbook.com/book/bonus/ancient/whatismacosx//programming.html
>>>>
>>>> Cheers,
>>>> -Brian
>>>
>>>
>>>
>>> --
>>> Paul McCullagh
>>> PrimeBase Technologies
>>> www.primebase.org
>>> www.blobstreaming.org
>>> pbxt.blogspot.com
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~drizzle-discuss
>>> Post to : [email protected]
>>> Unsubscribe : https://launchpad.net/~drizzle-discuss
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~drizzle-discuss
>> Post to : [email protected]
>> Unsubscribe : https://launchpad.net/~drizzle-discuss
>> More help : https://help.launchpad.net/ListHelp
>
>
>
> --
> Paul McCullagh
> PrimeBase Technologies
> www.primebase.org
> www.blobstreaming.org
> pbxt.blogspot.com
>
>
>
>
_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help : https://help.launchpad.net/ListHelp