In message <[EMAIL PROTECTED]> (on 16 November 2002
12:33:06 +0100), [EMAIL PROTECTED] (Alain BARBET) wrote:
>Ed Allen Smith wrote:
>> In message <[EMAIL PROTECTED]> (on 15 November
>> 2002 21:36:30 +0100), [EMAIL PROTECTED] (Alian - CPANPLUS/auto) wrote:
>>>Below is the error stack during 'make test':
>>>
>>>PERL_DL_NONLAZY=1 /usr/local/perl-5.8.0/bin/perl "-Iblib/lib"
>>>"-Iblib/arch" test.pl
>>>1..1
>>>Uncaught exception from user code:
>>>     Can't load 'blib/arch/auto/File/LckPwdF/LckPwdF.so' for module
>>>     File::LckPwdF: blib/arch/auto/File/LckPwdF/LckPwdF.so: Undefined
>>>     symbol "ulckpwdf" at
>>>     /usr/local/perl-5.8.0/lib/5.8.0/i386-freebsd/DynaLoader.pm line 229.
>> 
>> 
>> Ah. Does FreeBSD 4.6.2-release have the lckpwdf and ulckpwdf functions? If
>> it's got only lckpwdf, how does one unlock the password file on FreeBSD
>> 4.6.2? Also, what library are the functions in? If it's that these functions
>> don't exist on FreeBSD (in which case I'd have thought that the prototypes
>> wouldn't have existed in header files, and that lckpwdf would have been
>> the one not to be loadable), how should one let CPANPLUS on auto-testing
>> mode know this?
>> 
>>     -Allen
>
>I do a grep lckpwdf on /usr/include/* /usr/include/*/* and didn't find 
>any declaration of this 2 functions on Net/Free/Open|BSD.
>There is no shadow.h on these systems.
>(On linux/solaris, I find it in /usr/include/shadow.h)
>Do you need something else ?

Can't think of anything...

>(I/you must take a look in bsd source of adduser & co for see if they 
>lock file,

flock.

>and may be put your own lock on bsd os)

Yes. Umm... it's been quite a while since I worked with FreeBSD &
related. Should it be /etc/passwd or /etc/master.passwd that's locked, or
both (trying for an exclusive lock?)? I'm thinking the appropriate place to
find the filename(s) is in pwd.ph if it exists, and /usr/include/pwd.h if it
doesn't:

#define _PATH_PWD               "/etc"
#define _PATH_PASSWD            "/etc/passwd"
#define _PASSWD                 "passwd"
#define _PATH_MASTERPASSWD      "/etc/master.passwd"  
#define _MASTERPASSWD           "master.passwd"

        Thanks,

        -Allen

-- 
Allen Smith                     http://cesario.rutgers.edu/easmith/
September 11, 2001              A Day That Shall Live In Infamy II
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." - Benjamin Franklin

Reply via email to