samba4: bind error #define DLZ_DLOPEN_VERSION 1

steve steve at steve-ss.com
Thu Apr 19 03:32:49 MDT 2012


On 19/04/12 10:39, Kev Latimer wrote:
> On 19/04/2012 09:38, Kev Latimer wrote:
>> On 18/04/2012 16:04, Amitay Isaacs wrote:
>>> Hi Steve,
>>>
>>> On Wed, Apr 18, 2012 at 11:34 PM, steve<steve at steve-ss.com>  wrote:
>>>> 4.0.0alpha20-GIT-c69c07e openSUSE 12.1 bind 9.8
>>>>
>>>> Hi. A strange problem with bind not starting after overwriting a 
>>>> git from 2
>>>> weeks ago. Something like 'should be version 1 not version 2'
>>>>
>>>> It seems to default to the new bind unless we add:
>>>> #define BIND_VERSION_9_8    1
>>>> to:
>>>> source4/dns_server/dlz_minimal.h
>>>>
>>>> to get this bit right:
>>>> #ifdef BIND_VERSION_9_8
>>>> #define DLZ_DLOPEN_VERSION 1
>>>> #else
>>>> #define DLZ_DLOPEN_VERSION 2
>>>> #endif
>>>>
>>
>> This is BIND 9.8.1-P1, same BIND as I've been using throughout.
>>
>> My C isn't good enough to figure out why it isn't making two files, 
>> I'm afraid :-P
>> -- 
>> Kev
>
>
Hi
Me neither but I see it as:

if BIND_VERSION_9_8 is defined somewhere (I defined it before hitting 
that bit of the header, in the same file) then it will build the so for 
9.8. Otherwise it will build the so for 9.9. Because it's an if-else it 
does one thing or the other. If you don't have 9.8, it does the other.

Should there be 2 files or just one?

Cheers,
Steve



More information about the samba-technical mailing list