[krbdev.mit.edu #2839] compilation error on AIX 5.1 and gcc 3.4.4

sharma via RT rt-comment at krbdev.mit.edu
Tue Jan 18 13:11:57 EST 2005


Hi

I generated a config.txt file using the following command as you requested.

./configure --prefix=/home/srbpkg/srbpkg/kerberos/32/install
--exec-prefix=/home/srbpkg/srbpkg/kerberos/32/install --enable-shared=no
--enable-static=yes  CC="gcc " CXX="g++ " CFLAGS="" LDFLAGS="-lm" >
config.txt

Also attaching the following files where this problem happens:

./appl/telnet/config.log
./appl/telnet/config.status
/usr/local/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.4/include/stdlib.h

My observation is that the setting in appl/telnet/configure file generates
this program for testing the existence of setenv api, where the setenv
prototype in stdlib.h 
	extern int  setenv(const char *, const char *, int);
is different from the program as shown below.

configure: In function `main':
configure:5376: error: conflicting types for `setenv'
/usr/local/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.4/include/stdlib.h:480:
error: previous declaration of `setenv'
configure:5376: warning: extern declaration of `setenv' doesn't match global
one
configure:5389: $? = 1
configure: failed program was:
#line 5364 "configure"
#include "confdefs.h"
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
struct k5foo {int foo; } xx;
extern int setenv (struct k5foo*);
setenv(&xx);

  ;
  return 0;
}

I hope this will help you to locate the problem. The same setenv definitions
in other directories were right. I greped the setenv keyword in the
following files:

find . -name "config.*" -exec grep -il SETENV {} \;

./appl/bsd/config.log
./appl/bsd/config.status
./appl/gssftp/config.log
./appl/gssftp/config.status
./appl/telnet/config.log
./appl/telnet/config.status
./appl/config.log
./clients/config.log
./clients/config.status
./include/config.log
./include/config.status
./kadmin/config.log
./lib/apputils/config.log
./lib/crypto/config.log
./lib/des425/config.log
./lib/gssapi/config.log
./lib/kadm5/config.log
./lib/kdb/config.log
./lib/krb4/config.log
./lib/krb5/config.log
./lib/rpc/unit-test/config.log
./lib/rpc/config.log
./tests/config.log
./config.cache

Thanks

SAM


-----Original Message-----
From: 0000-Admin [mailto:daemon at MIT.EDU] On Behalf Of Tom Yu via RT
Sent: Wednesday, January 05, 2005 2:59 PM
To: sam.sharma at gat.com
Cc: krb5-prs at mit.edu
Subject: Re: [krbdev.mit.edu #2839] compilation error on AIX 5.1 and gcc
3.4.4

>>>>> "sharma" == sharma via RT <rt-comment at krbdev.mit.edu> writes:

sharma> I am attaching config.log and config.status file from
sharma> krb5-1.4-beta2/src/appl/telnet directory. I hope config.log
sharma> will be able to help you.

Unfortunately, that's not really enough.  I would need to see the
output that the configure script writes to the terminal, between the
lines "configuring in telnet" and "configuring in tests".  Also, do
you know whether setenv is subject to symbol renaming on AIX 5?

---Tom



More information about the krb5-bugs mailing list