*BSD News Article 94293


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!news.radio.cz!newsbastard.radio.cz!news.radio.cz!CESspool!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!newsfeed.nacamar.de!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: xtacacsd failed to compile under freebsd?
Date: 23 Apr 1997 22:11:55 GMT
Organization: Private BSD site, Dresden
Lines: 38
Message-ID: <5jm1fb$4bf@uriah.heep.sax.de>
References: <33537706.1874550@netnews.hinet.net>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39630

vcba79@ms1.hinet.net (Vincent Chen) wrote:

> Yesterday, I tried to compile xtacacsd under freebsd 2.2 release.
> But it complained:
> 
> xtacacsd.c:202: Undefined symbol `_setpwfile' referenced from text segment
> xtacacsd.c:273: Undefined symbol `_setpwfile' referenced from text segment
> *** Error code 1
> 
> Which library I need to compile it?

You need to rewrite some code (or change some compile-time option).

How about RTFMing? :-)

j@uriah 949% man setpwfile
GETPWENT(3)            FreeBSD Library Functions Manual            GETPWENT(3)

NAME
     getpwent, getpwnam, getpwuid, setpassent, setpwent, endpwent - password
     database operations
...
COMPATIBILITY
     The historic function setpwfile(3),  which allowed the specification of
     alternate password databases, has been deprecated and is no longer avail-
     able.


(I have no idea why it has been deprecated, and i remember some
discussion that people found it useful.  Thus it's perhaps possible
that support for it will be added some day.)

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)