dshahin has asked for the wisdom of the Perl Monks concerning the following question:

This function returns correct values, but then core dumps on me. We built this perl ourselves, and the one that ships with HP seems to work without core dumping. Anyone have experience with peculiar problems with the XS bindings on HP_UX?

dshahin

Replies are listed 'Best First'.
Re: getpwent() dumps core on hp-ux
by MZSanford (Curate) on Aug 28, 2001 at 17:11 UTC
    I recall reading that the HP Trusted System could cause problems, so i would imagine if this were true, the getpwent() call would be effected. Once again, were this the case, i would think the HP provided perl would be pathed for this. Do you, by chance, use the Trused System Authentication ?
    See also page 10 of this|search for getpwent ... someone else with a problem
    can't sleep clowns will eat me
    -- MZSanford
Re: getpwent() dumps core on hp-ux
by dshahin (Pilgrim) on Aug 29, 2001 at 21:18 UTC
    I actually found a fix. Turns out if you don't have a nsswitch.conf file, this funtion will dump core. just add one and it's ok. d$