|Date:||Tue, 27 Jan 2004 18:44:09 +0100|
|From:||Michael Schloh von Bennewitz <firstname.lastname@example.org>|
|Subject:||Fixed problem with sig_t on krb5-1.3.1|
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 we only tested on:
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.)
The idiot fix is to put 'typedef void (*sig_t) (int);', but I chose
a more portable solution by patching configure and making the
typedef conditional. I did this by putting a AC_CHECK_TYPE(sig_t)
in krb5-1.3.1/src/appl/gssftp/configure.in and running autoconf. The
results are in a larger patch in CVS, although I can send a
minimal one if somebody wants this.
I hope you find this helpful, and please excuse me if the problem
was already noticed and fixed. I didn't see any relevant changes in
krb5-1.3.2-beta1 or krb5-current.
Show quoted text
---- References ----
Message body not shown because it is not plain text.