• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems with netinfo/ni.h
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with netinfo/ni.h


  • Subject: Re: Problems with netinfo/ni.h
  • From: Kyle Moffett <email@hidden>
  • Date: Mon, 15 Jul 2002 18:39:08 -0400

On Monday, July 15, 2002, at 06:23 PM, Finlay Dobbie wrote:
> On Monday, July 15, 2002, at 11:17 PM, Kyle Moffett wrote:
>
>> I am writing a ni program to replace NetInfo Manager, and
>> I ran into a snag.
>
> I think you should probably be using the Directory Services API, not
> libinfo. Not sure, though.

Directory Services only handles databases that are above the
current computer, and does not do writing easily (at all?)
Both niutil and Netinfo Manager link into
/System/Library/PrivateFrameworks/NetInfo.framework
and NetInfo Manager links into a few other Private Frameworks
as well (I've tried linking them for the needed symbols too.)

>> If I write a simple C program using some
>> ni functions, like ni_free and ni_list I get link errors.
>
> Sure you're -linfo'ing? What errors exactly do you get?

oops! I thought I searched all over for the needed lib, but I must
have missed that one. But why did it only give me these errors:

/usr/bin/ld: Undefined symbols:
_nifree
_nilist

and not these:

_nifancyopen
_niroot

with nothing but standard includes.

BTW, I just tested, running 'gcc -linfo -o nitest nitest.c' doesn't fix
the problem either, so why does PB work.

> --
> Finlay Dobbie
> email@hidden

Thanks,
Kyle Moffett
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Problems with netinfo/ni.h
      • From: Finlay Dobbie <email@hidden>
References: 
 >Re: Problems with netinfo/ni.h (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: Problems with netinfo/ni.h
  • Next by Date: Re: Problems with netinfo/ni.h
  • Previous by thread: Re: Problems with netinfo/ni.h
  • Next by thread: Re: Problems with netinfo/ni.h
  • Index(es):
    • Date
    • Thread