make proto issue

Cam Macdonell cam at cs.ualberta.ca
Fri Nov 28 22:26:29 GMT 2008


Volker Lendecke wrote:
> On Thu, Nov 27, 2008 at 10:17:35PM -0700, Cameron Macdonell wrote:
>> I added some code to samba 3 for a project I'm working on.  This code  
>> is in its own directory under 'source' and consists of a header file  
>> and C file.  When I run make, the "make proto" target grabs the  
>> function definitions and adds them to "include/proto.h".  The problem  
>> is that the function headers contain typedef parameters that are in  
>> the header file and they are not included in the generated proto.h  
>> header and so cause the compile to fail.
>>
>> So, my question is what am I doing wrong in regards to the way "make  
>> proto" works?  Why does "make proto" grab definitions from the C file,  
>> but ignore the header files?  Am I structuring my code wrong or at  
>> least not in the Samba way?
>>
>> I can provide more details if necessary,
> 
> You should work with the Samba master branch, there we don't
> autogenerate proto.h anymore :-)

Part of my system is using fusesmb to connect to this server.  I did 
some quick tests and fusesmb isn't finding my server when I use the 
master branch.  I'm not sure if this is a limitation of fusesmb or a 
config issue with 3.4.  I realize fusesmb is not samba's responsibility, 
but has anyone used fusesmb witha a server beyond a 3.0.x version?

Thanks,
Cam


More information about the samba-technical mailing list