compile error on aix 5.1 with gcc
Breuer, Marcel
Marcel.Breuer at izb.de
Thu Mar 11 10:42:20 EST 2004
Hello *,
I tried to compile the MIT kerberos source and got the following error:
_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN -I../../../include
-I./../../../include -I../../../include/krb5 -I./../../../include/krb5 -I..
-I./.. -I./../../../include/kerberosIV -I../../../include/kerberosIV -g
-O2 -Wall -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion
-Wshadow -Wno-comment -pedantic -c forward.c
forward.c:39: error: conflicting types for `setenv'
/usr/local/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/stdlib.h:480:
error: previous declaration of `setenv'
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
The server OS : AIX 5.1
gcc 3.3.2
autoconf 2.59
m4 1.4
krb5-1.3.1
The error message
usr/local/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/include/stdlib.h:480:
error: previous declaration of `setenv' refers perhaps to:
.....
/* The following functions are required by the COSE (UU) API. */
#define ATEXIT_MAX 2048 /* Max Number of functions that can be
registered in the atexit() functions.
ATEXIT_MAX IS ALSO DEFINED IN
sys/limits.h */
#ifdef _NO_PROTO
extern float atoff();
extern float strtof();
extern int setenv();
extern void imul_dbl();
extern void umul_dbl();
extern int on_exit();
#else /* use prototypes */
extern float atoff(char *);
extern float strtof(const char *, char **);
extern int setenv(const char *, const char *, int);
extern void imul_dbl(long, long, long *);
extern void umul_dbl(unsigned long, unsigned long, unsigned long
*);
extern int on_exit(void (*)(int, void *), void *);
#endif /* ifdef _NO_PROTO */
........
I found no useful hint in the net. Are there any special
prerequisites(packages or something else) for compiling kerberos under AIX?
Thank you!
Sincerely,
Marcel Breuer
More information about the krbdev
mailing list