cpp needed for samba compilation ?

Love Hörnquist Åstrand lha at kth.se
Sat Dec 4 17:47:14 MST 2010


4 dec 2010 kl. 14:32 skrev Michael Wood:

>>> On 4 December 2010 22:46, Matthieu Patou<mat at samba.org>  wrote:
>>>> 
>>>> Hi Metze,
>>>>> 
>>>>> Am 04.12.2010 14:04, schrieb Matthieu Patou:
>>>>>> 
>>>>>> Hello all,
>>>>>> 
>>>>>> Today I discovered that we need CPP for the compilation of pidl files.
>>>>>> 
>>>>>> My question: why ?
>>>>>> 
>>>>>> How can we avoid this dependency ?
>>>>> 
>>>>> we can't, but we should set a PIDL_CPP env var
>>>>> and waf magic should fill that in.
>>>>> I guess we can use "$compiler -E" or so
>>>> 
>>>> On sernet's aix it seems that c++ is not available ...
>>> 
>>> I believe pidl needs the C Preprocessor, not a C++ compiler.
>> 
>> Well I guess that we should have CC as a requirement rather than CPP I guess
>> that it has been done on purpose.
>> But maybe we can use something else ...
> 
> My point is that cpp is the C preprocessor and not a C++ compiler.
> But as metze says, you can probably use "cc -E" instead.

Make sure you force traditional usage unless pidl input is c-coe since c99 enforces that all code that is processed is c code if its processed by cpp.

Love




-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3815 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20101205/f8203430/attachment.bin>


More information about the samba-technical mailing list