Article View: gnu.gcc.help
Article #42514glibc 1.09: getpwuid () fails on Sparc with NIS
From: Nicholas R LeRoy
Date: Thu, 30 Nov 1995 00:00
Date: Thu, 30 Nov 1995 00:00
47 lines
2798 bytes
2798 bytes
The summary just about sums it all up.
I'm trying to build glibc (1.09) on our Sparc (using gcc 2.5.8), and it
all builds fine. Then, I tried the magic incantation 'gmake tests',
and testgrp returned an error.
With a bit of investigation, I found that the pwd stuff as distributed
in glibc 1.09 does not appear to support YP.
So, being a Linux person of heart, I compiled the testgrp.c program
under Linux, and, lo and behold, it worked!
I then looked through source to libc (Linux) 4.6.27 and found that
the pwd stuff is vastly different (shadow and YP stuff has been added
to it). Tried using the source for the Linux version of pwd in place
of the standard glibc, and then it had problems with pwd:
In file included from getpwent.c:29:
/usr/include/rpcsvc/yp_prot.h:209: field `dom_server_addr' has incomplete type
/usr/include/rpcsvc/yp_prot.h:212: parse error before `CLIENT'
/usr/include/rpcsvc/yp_prot.h:212: warning: no semicolon at end of struct or union
/usr/include/rpcsvc/yp_prot.h:215: parse error before `}'
/usr/include/rpcsvc/yp_prot.h:252: field `ypbind_binding_addr' has incomplete type
and clearly was unhappy. The rpcsvc stuff is also not in the standard
glibc 1.09 sources, but is in the Linux version.
I, unfortunately, know very little about RPCs and / or RPCSVC, and am
starting to feel like this could become a huge black hole with my
knowledge of this stuff.
Is there any kind soul out there who has encounterred this problem and
perseverred (sp?)? I'm really not sure what else to do.
Thanks in advance for *any* suggestions.
-Nick
--
+--------------------------------------+-------------------------------------+
| /`-_ Nicholas R LeRoy | Linux -- What *nix was meant to be. |
|{ }/ nleroy@norland.idcnet.com | gcc -- What C was meant to be. |
| \ * / Norland Corp +-------------------------------------+
| |___| W6340 Hackbarth Rd | Escape the Gates of Hell with |
| Fort Atkinson, WI 53530 | The choice of a GNU generation... |
+--------------------------------------+-------------------------------------+
| Hey -- These are my own ideas, not my employer's. Don't blame them... |
+--------------------------------------+-------------------------------------+
Technical Details
Message-ID:
<49l14r$hgq@norgate.norland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,c207ead05e2b3fee,start X-Google-Attributes: gid11318c,public From: nleroy@norland.idcnet.com (Nicholas R LeRoy) Subject: glibc 1.09: getpwuid () fails on Sparc with NIS Date: 1995/11/30 Message-ID: <49l14r$hgq@norgate.norland.com> X-Deja-AN: 120512445 organization: Norland Corp, Fort Atkinson, WI keywords: glibc yp getpwuid newsgroups: gnu.gcc.help summary: make tests / testgrp fails