GNU glibc mkstemp fails if no "replacable" pattern of XXes is in the template strings. The openbsd-compat one happily goes ahead. on RH7.2 configure finds a working mkstemp() and disables use of the openbsd-compat one. Problem shows up in the mkstemp() call in auth-krb4.c:70 , which gets passed a fixed string for the KRB4 TGT file and returns a runtime error
Have you filed a bug in the glibc bug tracking system? BTW, how did you compile with krb4 on Redhat 7.2 without running over libdes conflicts?
the "XXXX" for glibc mkstemp behaviour is as documented in their man page ("...The last six characters of template must be XXXXXX and these are replaced with a string that makes the filename unique..."). I see no "bug" in there, but if you think that this should get reported, I will. As to the libdes problem -- we have krb4 recompiled against openssl. Mail me directly if you need the spec file/SRPM.
Update: I have reported this to the glibc people, who say that they will not modify their mkstemp(). (http://bugs.gnu.org/cgi-bin/gnatsweb.pl?debug=&database=default&cmd=view+audit-trail&cmd=view&pr=3573) Attached is a patch to configure{ac,in} to detect this and force using the bsd_compat functions.
Created attachment 129 [details] patch to allow configure to detect an overly strict mkstemp()
Applied - thanks. I have no idea why it too me so long...
*** Bug 508 has been marked as a duplicate of this bug. ***
Mass change of RESOLVED bugs to CLOSED