kerberos 1.2.3 compile problems on aix 4.3.3

Donn Cave donn at u.washington.edu
Wed Feb 27 14:46:34 EST 2002


Quoth generalyore at hotmail.com ("jesse raynor"):

| I had trouble compiling kerberos 1.2.3 on AIX 4.3.3.  I got it to build with
| cc, which doesn't define __STDC__, but not with xlc, which does.  I am using
| version 5 of the AIX C compiler.
|
| To build with cc, I cd'ed to the src directory and did:
|
| 	./configure --prefix=/opt/kerberos --without-krb4
| 	make
|
| By default, cc gets picked as the compiler to use.  Eventually the build 
| dies
| under the telnet directory.  Here's the last command make tried:
...
| To make the prototypes match, I changed lines 192-194 of ext.h from
|
| extern void netprintf P((const char *, ...));
| extern void netprintf_urg P((const char *fmt, ...));
| extern void netprintf_noflush P((const char *fmt, ...));
|
| to
|
| extern void netprintf (const char *, ...);
| extern void netprintf_urg (const char *fmt, ...);
| extern void netprintf_noflush (const char *fmt, ...);
|
| and then reran make.  It finished compiling.

That's the right fix.  Unless you want to add varargs support, you're
already limited to compilers that support stdarg.  They will all support
function prototypes, so __STDC__ as a test for function prototype support
is useless (as well as wrong.)

	Donn Cave, donn at u.washington.edu



More information about the Kerberos mailing list