ndrdump portability requirements

Jelmer Vernooij jelmer at vernstok.nl
Wed Feb 28 19:00:45 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi metze,

thanks for commenting

Stefan (metze) Metzmacher wrote:
> Jelmer Vernooij schrieb: 
>> At the moment, ndrdump links against all available NDR interfaces.
> 
>> I'd like to modify ndrdump to instead use dlopen() and dlsym() to get to
>> the required functions. This has the following advantages:
> 
>>  * Much easier to port ndrdump to Samba 3 (my main reason for proposing
>> this)
>>  * Significantly smaller ndrdump binary
>>  * Quicker to recompile (less objects to link in)
> 
>> Since the use case for ndrdump is working on the correct IDL, and all of
>> the developers have sane systems that support dlopen(), I think that
>> should be ok.
> 
>> Any objections?
> 
> Only if this still works, when I use automatic make dependencies:
> 
> vi librpc/idl/foo.idl
> make bin/ndrdump && bin/ndrdump foo decode_foo in /tmp/foo.dat

Would this also be acceptable:
$ vi librpc/idl/foo.idl
$ make bin/libndr_foo.so && bin/ndrdump bin/libndr_foo.so decode_foo in
/tmp/foo.dat

?

Cheers,

Jelmer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBReXRWQy0JeEGD2blAQKbwwP/SGRjT15LCkOjQBiaQynQF9ajJUaJ8Sle
Nv9sMQkWjMLcGvIqNWJtg7HYXnHK0wIan1BafUlGQJkq0W1b3GLeHI34AmCbC66a
NYEqwhY418w+XJxGnYm4fgRas/J49FJARRCLfZY+mubT4KbhIBTpz/+kh6chrkXM
2+86EsALbxk=
=vS6V
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list