I wanted to build scutil so I can modify it and look at it in the debugger.

Seems there are a lot of "header" files which I don't have -- and I don't
see instructions or "download a build system" and build in pieces (i.e.
kde/gnome)

When I try to build launchd I get the undefined TargetConfig.h

When I try to build configd I get an undefined ne_session.h (is this in
neon?)

When I make an "empty" ne_session.h I need: vproc_priv.h (which is in
launchd)
Are there instructions missing for "how to build" these programs (I've only
been building unix code for 30+ years) [I haven't seen it]

marty



On Mon, Mar 30, 2015 at 4:05 AM, Quinn "The Eskimo!" <[email protected]>
wrote:

>
> On 27 Mar 2015, at 20:44, marty leisner <[email protected]> wrote:
>
> > I want to understand more about what scutil --dns does.
> >
> > Since I have the source, I thought I could easily build it (my mistake).
>
> Yeah, my experience is that Darwin source rarely builds easily.
>
> It's still a useful tool though.  In this case of --dns, it calls an
> internal routine, dns_configuration_copy:
>
> <
> http://www.opensource.apple.com/source/configd/configd-699.1.5/dnsinfo/dnsinfo_copy.c
> >
>
> which XPCs over to a configd-side routine, _dnsinfo_copy:
>
> <
> http://www.opensource.apple.com/source/configd/configd-699.1.5/dnsinfo/dnsinfo_server.c
> >
>
> which calls _libSC_info_server_get_data to get the data:
>
> <
> http://www.opensource.apple.com/source/configd/configd-699.1.5/libSystemConfiguration/libSystemConfiguration_server.c
> >
>
> It seems that the DNS data is set by a call to _libSC_info_server_set_data
> in _dns_configuration_store:
>
> <
> http://www.opensource.apple.com/source/configd/configd-699.1.5/dnsinfo/dnsinfo_server.c
> >
>
> which, in turn, is called by dns_configuration_set in the IPMonitor
> plug-in, where the actual logic lies.
>
> <
> http://www.opensource.apple.com/source/configd/configd-699.1.5/Plugins/IPMonitor/dns-configuration.c
> >
>
> Have fun (-:
>
> Share and Enjoy
> --
> Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
>
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Macnetworkprog mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
>
> https://lists.apple.com/mailman/options/macnetworkprog/maleisner%40gmail.com
>
> This email sent to [email protected]
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to