List:Commits« Previous MessageNext Message »
From:Davi Arnaut Date:October 1 2010 5:58pm
Subject:Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)
Bug#56709
View as plain text  
On 10/1/10 2:47 PM, Alexey Kopytov wrote:
> On 01.10.10 20:49, Davi Arnaut wrote:
>> On 10/1/10 1:38 PM, Alexey Kopytov wrote:
>>> On 01.10.10 20:23, Davi Arnaut wrote:
>>>>>>> And yes, incorrectly defined HAVE_BZERO is a different
> issue.
>>>>>>
>>>>>> Not exactly incorrect. That's the way autoconf/cmake works.
>>>>>>
>>>>>
>>>>> I am well aware how autoconf works. From the autoconf docs:
>>>>>
>>>>> "For each FUNCTION enumerated in the blank-or-newline-separated
>>>>> argument
>>>>> list, define `HAVE_FUNCTION' (in all capitals) if it is available."
>>>>>
>>>>> I think the only practically usable definition of "available" is
> "you
>>>>> can use it in your code". Since we can't really use bzero() in C++
>>>>> code
>>>>
>>>> autoconf obviously disagrees with you.
>>>>
>>>
>>> Nice trolling, but it just how it works. It will obviously not detect
>>> problems with C++ when _you_ tell it to use C for its tests. So it's not
>>> about "disagreement", it's a matter of knowing how to use the tools.
>>
>> Hum, I think it stills links even if using C++. Could you test and get
>> back to me? I'll happily retract the above statement if it does not
>> detect it as available if the language is set to C++. Otherwise, I
>> assume linking is still possible.
>>
>> Regards,
>
> I'm neither the assignee nor a reviewer of the bug.
>
> So far in this discussion you have:
>
> 1) claimed that "we never actually use it [bzero] because it depends on
> some BSD defines that we never set." which is not true and takes a
> minute to verify;

It is true. Perhaps you did not verify in the same platforms and set of 
defines that I did.

> 2) pointed to another bug without any comments on how it is relevant to
> the discussion. It later turned out to be a completely different issue
> which answers none of my questions, nor does it contribute anything to
> the discussion.

You claimed that that bzero is mapped to memset when bzero() is 
unavailable. I pointed out that it no so black and white.

> 3) asked me to spend time proving your claims to make you retract your
> other claims in exchange.

Because you are wrong and I didn't want to say it explicitly. I also 
said it as one opportunity for you to apologize for accusing me of trolling.

> I don't think I have more time to waste on this discussion, sorry.

Good.

> Add a C++ test. If it still passes in autoconf/cmake, but breaks the
> actual build, look for differences in compiler flags, includes and
> defines between build and autoconf/cmake environments.

Again, the autoconf checks if the function is available via a link test.
Defines, includes do not change anything in the test. Please take a look 
at the ac_fn_cxx_check_func function that goes with any configure script.

Regards,

Davi
Thread
bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Alexey Kopytov22 Sep
  • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514) Bug#56709Tor Didriksen23 Sep
    • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Alexey Kopytov24 Sep
      • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514) Bug#56709Tor Didriksen30 Sep
        • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Davi Arnaut30 Sep
          • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Sergei Golubchik30 Sep
            • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Davi Arnaut30 Sep
              • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Davi Arnaut30 Sep
            • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514) Bug#56709Tor Didriksen1 Oct
              • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Alexey Kopytov1 Oct
                • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Davi Arnaut1 Oct
                  • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Alexey Kopytov2 Oct
                • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514) Bug#56709Tor Didriksen1 Oct
                  • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Alexey Kopytov1 Oct
Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Davi Arnaut1 Oct
  • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Alexey Kopytov1 Oct
Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Alexey Kopytov1 Oct
  • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Davi Arnaut1 Oct
    • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Alexey Kopytov1 Oct
      • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Davi Arnaut1 Oct
        • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Alexey Kopytov1 Oct
          • Re: bzr commit into mysql-5.1-bugteam branch (Alexey.Kopytov:3514)Bug#56709Davi Arnaut1 Oct