[krbdev.mit.edu #2170] Fixed problem with sig_t on krb5-1.3.1

Ken Raeburn via RT rt-comment at krbdev.mit.edu
Tue Jan 27 18:23:52 EST 2004


> The krb5-1.3.1 code wouldn't build on any of our Solaris machines,
> due to the sig_t type not being present on them. This is likely a
> problem with any SVR4 machine, though I'm not sure about that. At
> OpenPKG[0] we only tested on[1]:

We've got Solaris 9 here, and I just did a build from a source tree
unpacked from our distribution site, with no such problems.

> The first compile error looks like this:
> 
>   making all in appl/gssftp/ftp...
>   /openpkg/bin/cc -D<long list of defines and includes> -O2 -pipe -c
> cmds.c
>   cmds.c: In function `another':
>   cmds.c:141: error: syntax error before "intr"
>   cmds.c: In function `mput':
>   cmds.c:729: error: `sig_t' undeclared (first use in this function)
>   cmds.c:729: error: (Each undeclared identifier is reported only once
>   cmds.c:729: error: for each function it appears in.)

Now this gets interesting.  In the 1.3.1 release, lines 141 and 729 (and
the lines immediately around them) don't refer to sig_t.

The first reference to sig_t in that file is at line 116, a declaration
"extern sig_t intr();" in the function another().

In ftp_var.h, around line 60, there's code to define sig_t as a typedef
for a pointer to a function returning krb5_sigtype, where krb5_sigtype
is defined on the compilation command line (on UNIX).

Where did you get this supposed 1.3.1 distribution from, and did you
check the included PGP signature using Tom Yu's key from the PGP key
servers?  We've had some unconfirmed(?) indications before that hacked
versions of the MIT code may be out there, being presented as MIT's
distribution.

Ken


More information about the krb5-bugs mailing list