Circular dependency using lp_xxx() function from dbwrap

Andrew Bartlett abartlet at samba.org
Sat Aug 29 09:06:01 UTC 2015


On Thu, 2015-08-27 at 07:04 -0700, Richard Sharpe wrote:
> Hi folks,
> 
> I ran into a circular dependency yesterday when trying to use a new
> parameter from a dbwrap function. I had defined lp_new_parameter()
> and
> the definition turned up in param_proto.h and the compile stage went
> OK.
> 
> However, linking failed, so I added param as a dependency in the
> wscript_build and then got a circular dependency.
> 
> What should I use for deps in that case, or should I just not do
> that?

Look at how lpcfg_tdb_hash_size() is handled.  By converting the s3
lodaparm into a context, we can get around the build-time dep by using
the plugin pattern on the lib/param code, which isn't dependent on
dbwarp (as it misses registry backend support).

Andrew Bartlett

-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba






More information about the samba-technical mailing list