From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Tue, 14 Apr 1998 18:57:14 +0200 (MEST) From: Thorsten Kukuk Reply-To: hurricane-list@redhat.com To: hurricane-list@redhat.com Cc: gafton@redhat.com, J.S.Peatfield@damtp.cam.ac.uk Subject: Re: glibc 2.0.7-6 and yp on alpha Resent-Date: 14 Apr 1998 16:57:38 -0000 Resent-From: hurricane-list@redhat.com Resent-cc: recipient list not shown: ; Hello, > > > portmap is not running > > Oh yes it is (and so is ypbind before you ask): > > [root@impact Config]# ps auxww|egrep 'portmap|ypbind' > bin 473 0.0 0.2 2120 744 ? S Apr 13 0:01 portmap > root 730 0.0 0.3 4272 824 ? S Apr 13 0:00 ypbind (master) > root 731 0.0 0.3 4312 920 ? S Apr 13 0:00 ypbind (slave) > root 1042 0.0 0.2 2216 648 p0 S 14:16 0:00 egrep portmap|ypbind > [root@impact Config]# rpcinfo -p > program vers proto port > 100000 2 tcp 111 rpcbind > 100000 2 udp 111 rpcbind > 100005 1 udp 635 mountd > 100005 2 udp 635 mountd > 100005 1 tcp 635 mountd > 100005 2 tcp 635 mountd > 100003 2 udp 2049 nfs > 100003 2 tcp 2049 nfs > 100007 2 udp 907 ypbind > 100007 2 tcp 909 ypbind > [root@impact Config]# ./a.out > do_ypcall: clnt_call: RPC: Unable to receive; errno = Connection refused > do_ypcall: clnt_call: RPC: Unable to receive; errno = Connection refused > do_ypcall: clnt_call: RPC: Unable to receive; errno = Connection refused > do_ypcall: clnt_call: RPC: Unable to receive; errno = Connection refused > do_ypcall: clnt_call: RPC: Unable to receive; errno = Connection refused > > The problem seems to be in glibc parsing of the yp binding file, it ends up > doing: > > open("/var/yp/binding/nis.damtp.cam.ac.uk.2", O_RDONLY) = 3 > readv(3, [{"\213\3", 2}, {"\1\0\0\0\0\0\0\0\203o\0217", 12}], 2) = 14 > close(3) = 0 > gettimeofday({892559984, 182563}, NULL) = 0 > getxpid() = 1046 > socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 3 > bind(3, {sin_family=AF_INET, sin_port=htons(801), sin_addr=inet_addr("0.0.0.0") > }, 16) = 0 > ioctl(3, FIONBIO, [1]) = 0 > fcntl(3, F_SETFD, FD_CLOEXEC) = 0 > sendto(3, "61\257E\0\0\0\0\0\0\0\2\0\1\206\244"..., 96, 0, > {sin_family=AF_INET, sin_port=htons(33647), sin_addr=inet_addr("0.0.0.0")}, > 16) = 96 > select(256, [3], NULL, NULL, {5, 0}) = 1 (in [3], left {5, 0}) > recvfrom(3, 0x12010252c, 8800, 0, 0x11ffffae0, 0x11ffffba0) = -1 ECONNREFUSED > (Connection refused) > write(2, "do_ypcall: clnt_call: RPC: Unabl"..., 73do_ypcall: clnt_call: RPC: > Unable to receive; errno = Connection refused > > Note that the sendto() is to 0.0.0.0 port 33647 which is what you get if you > take the top half of the IP address listed in the binding file and treat it as > a short. > > Is there anyone on this list who understands what I'm talking about or should > I just go off to the glibc maintainers? I understand your problem (I'm the author of the glibc yp stuff). ypbind 3.3 isn't 64 bit clean, this was the reason why glibc prior 2.0.7pre doesn't use the binding files. But that solution needs to much sockets. You could get the clean ypbind 3.3 sources and my ypbind-3.3-glibc3.diff file from ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ . This fixes the problem for Debian 2.0. Please try it out and tell me, if it works for you, too. There should be a FAQ entry in glibc about this problem, I will check if it is in the current glibc 2.0.7 snapshot. Thorsten -- Thorsten Kukuk kukuk@vt.uni-paderborn.de http://www-vt.uni-paderborn.de/~kukuk Linux is like a Vorlon. It is incredibly powerful, gives terse, cryptic answers and has a lot of things going on in the background. -- PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES! http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists To unsubscribe: mail hurricane-list-request@redhat.com with "unsubscribe" as the Subject.