[3138] in Kerberos-V5-bugs
pending/775: make check failed
daemon@ATHENA.MIT.EDU (Alvin Wong)
Sun Oct 24 16:49:19 1999
Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: gnats-admin@rt-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, Alvin Wong <akw@slpmbo.ed.ray.com>
Message-Id: <199910242048.QAA20145@slpmbo.ed.ray.com>
Date: Sun, 24 Oct 1999 16:48:23 -0400 (EDT)
From: Alvin Wong <akw@slpmbo.ed.ray.com>
Reply-To: Alvin Wong <akw@slpmbo.ed.ray.com>
To: krb5-bugs@MIT.EDU
Cc: akw@slpmbo.ed.ray.com
>Number: 775
>Category: pending
>Synopsis: make check failed
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Sun Oct 24 16:49:00 EDT 1999
>Last-Modified:
>Originator:
>Organization:
>Release:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
Hello,
This is the first time I write to a Freeware organization.
If this is not the right way to report a problem or communicate,
please let me know how.
I was compiling on Solaris 5.7 Generic_106541-07 sun4m sparc SUNW,SPARCstation-20.
I used gcc version 2.95.1 19990816 (release)
Well, I encountered an error while doing "make check".
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Here is the error:
==================
# make check
gcc -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DSTDC_HEADERS=1 -DHAVE_STRCHR=1 -DHAVE_SYS_PARAM_H=1
-DHAVE_SYS_SOCKET_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 -DKRB5_KRB4_COMPAT -I./../../include -I../../include
-I./../../include/krb5 -I../../include/krb5 -DKRB5_KRB4_COMPAT -I./../../include -I../../include
-I./../../include/krb5 -I../../include/krb5 -c resolve.c -o resolve.o
gcc -L./../../lib -L./../../lib -o resolve resolve.o -lkrb5 -lcrypto -lcom_err -lnsl -lsocket
-lgen
./resolve
Hostname: slpmbu.ed.ray.com
Host address: 138.125.33.128
FQDN: slpmbu
Resolve library did not return a fully qualified domain name
You may have to reconfigure the kerberos distribution to select a
different set of libraries using --with-netlib[=libs]
make: *** [check] Error 3
The related section of code in krb5-1.0.6/src/tests/resolve/resolve.c:
======================================================================
122 if (quiet)
123 printf("%s\n", host->h_name);
124 else
125 printf("FQDN: %s\n", host->h_name);
126
127 if(strchr(host->h_name, '.') == NULL) {
128 fprintf(stderr, "\nResolve library did not return a fully qualified domain name\n");
129 fprintf(stderr, "You may have to reconfigure the kerberos distribution to select
a\ndifferent set of libraries using --with-netlib[=libs]\n");
130 exit(3);
131 }
My suggestion
=============
Modify line 127:
From: if(strchr(host->h_name, '.') == NULL) {
To : if(strchr(myname, '.') == NULL) {
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Hope to get an answer soon. Please reply.
Alvin Wong