Skip Menu |
 

Date: Fri, 19 Nov 2004 12:12:00 -0800
From: sharma <sam.sharma@gat.com>
To: krb5-bugs@mit.edu
Subject: client kcpytkt kdeltkt compilation on wiondws 2000
Download (untitled) / with headers
text/plain 2.1KiB

Hi

 

I am trying to compile MIT Kerberos on Windows 2000. I followed the instruction given in README file. I get the following error while compiling the source code

 

NMAKE : fatal error U1064: MAKEFILE not found and no target specified

Stop.

NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~4\VC98\BIN\NMAKE.EXE' : return code '0x2'

Stop.

NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~4\VC98\BIN\NMAKE.EXE' : return code '0x2'

Stop.

 

I removed the following line from clients/Makefile.in and compilation was ok.

            @echo Making all in clients\kcpytkt

            cd ..\kcpytkt

            $(MAKE) -$(MFLAGS)

            @echo Making all in clients\kdeltkt

            cd ..\kdeltkt

            $(MAKE) -$(MFLAGS)

 

Finally I did some more research and found that kcpytkt/ kdeltkt directories does not have Makefile as shown below in kvno directory.

 

G:\home\srbpkg\srbpkg\kerberos\32\krb5-1.4-beta1\src\clients>ls -l kvno/ kcpytkt/ kdeltkt/

kcpytkt/:

total 14

-rwxrwxrwa   1 Administrators  None                 99 Aug 21 10:28 ChangeLog

-rwxrwxrwa   1 Administrators  None                695 Nov 19 11:19 Makefile.in

-rwxrwxrwa   1 Administrators  None               1039 Aug 21 10:28 kcpytkt.M

-rwxrwxrwa   1 Administrators  None               4050 Aug 21 10:28 kcpytkt.c

 

kdeltkt/:

total 13

-rwxrwxrwa   1 Administrators  None                 98 Aug 21 10:28 ChangeLog

-rwxrwxrwa   1 Administrators  None                659 Nov 19 11:19 Makefile.in

-rwxrwxrwa   1 Administrators  None                995 Aug 21 10:28 kdeltkt.M

-rwxrwxrwa   1 Administrators  None               3759 Aug 21 10:28 kdeltkt.c

 

kvno/:

total 43

-rwxrwxrwa   1 Administrators  None               2541 Aug 31 15:06 ChangeLog

-rwxrwxrwa   1 Administrators  None               8430 Nov 19 10:43 Makefile

-rwxrwxrwa   1 Administrators  None                659 Jun 16 18:56 Makefile.in

-rwxrwxrwa   1 Administrators  None               2619 Aug 31 15:06 kvno.M

-rwxrwxrwa   1 Administrators  None               6315 Aug 31 15:06 kvno.c

drwxrwxrwx   1 Administrators  None                  0 Nov 19 11:39 obj

 

Thanks

 

SAM

Looks like the top-level Makefile.in doesn't know about these
directories for Windows.
Subject: Fix Makefile generation for kcpytkt and kdeltkt
The Makefile in clients/kcpytkt and clients/kdeltkt are not generated
from Makefile.in
From: jaltman@mit.edu
Subject: CVS Commit
2004-12-15 Jeffrey Altman <jaltman@mit.edu>

* Makefile.in: build/clean/install/etc kcpytkt,kdeltkt,ms2mit


To generate a diff of this commit:



cvs diff -r5.481 -r5.482 krb5/src/ChangeLog
cvs diff -r1.148 -r1.149 krb5/src/Makefile.in
From: jaltman@mit.edu
Subject: CVS Commit
2004-12-15 Jeffrey Altman <jaltman@mit.edu>

* Makefile.in: build/clean/install/etc kcpytkt,kdeltkt,ms2mit


To generate a diff of this commit:



cvs diff -r5.25 -r5.26 krb5/src/clients/ChangeLog
cvs diff -r1.21 -r1.22 krb5/src/clients/Makefile.in
cvs diff -r1.1 -r1.2 krb5/src/clients/kdeltkt/ChangeLog
krb5/src/clients/kdeltkt/Makefile.in
From: tlyu@mit.edu
Subject: CVS Commit
pullup from trunk


To generate a diff of this commit:



cvs diff -r5.479.4.2 -r5.479.4.3 krb5/src/ChangeLog
cvs diff -r1.147.4.1 -r1.147.4.2 krb5/src/Makefile.in
cvs diff -r5.25 -r5.25.4.1 krb5/src/clients/ChangeLog
cvs diff -r1.21 -r1.21.4.1 krb5/src/clients/Makefile.in
cvs diff -r1.1 -r1.1.4.1 krb5/src/clients/kdeltkt/ChangeLog
krb5/src/clients/kdeltkt/Makefile.in
Date: Wed, 15 Dec 2004 16:05:49 -0800
From: sharma <sam.sharma@gat.com>
Subject: RE: [krbdev.mit.edu #2802] CVS Commit
To: rt-comment@krbdev.mit.edu
RT-Send-Cc:
Hi

I think necessary changes are in CVS to compile the krb5 on Windows
platform. I checkout the latest CVS source code, though is did not compile
as said on MIT web site, but the changes I made in 2-3 Makefile.in to
compile beta2 release were there in CVS. I hope in near future it will
compile fine on Windows.

This is just an cosmetic, I only see the all-mac:: tag only on these two
files.

krb5/src/clients/kcpytkt/Makefile.in all-mac::

krb5/src/clients/kdeltkt/Makefile.in all-mac::

Thanks

SAM

Show quoted text
-----Original Message-----
From: 0000-uucp [mailto:rtcvs@MIT.EDU] On Behalf Of Jeffrey Altman via RT
Sent: Wednesday, December 15, 2004 12:20 AM
To: sam.sharma@gat.com
Cc: krb5-prs@mit.edu
Subject: [krbdev.mit.edu #2802] CVS Commit

2004-12-15 Jeffrey Altman <jaltman@mit.edu>

* Makefile.in: build/clean/install/etc kcpytkt,kdeltkt,ms2mit


To generate a diff of this commit:



cvs diff -r5.25 -r5.26 krb5/src/clients/ChangeLog
cvs diff -r1.21 -r1.22 krb5/src/clients/Makefile.in
cvs diff -r1.1 -r1.2 krb5/src/clients/kdeltkt/ChangeLog
krb5/src/clients/kdeltkt/Makefile.in
To: rt@krbdev.mit.edu
Subject: Re: [krbdev.mit.edu #2802] CVS Commit
From: Tom Yu <tlyu@mit.edu>
Date: Wed, 15 Dec 2004 19:09:28 -0500
RT-Send-Cc:
Show quoted text
>>>>> "sharma" == sharma via RT <rt-comment@krbdev.mit.edu> writes:

Show quoted text
sharma> I think necessary changes are in CVS to compile the krb5 on
sharma> Windows platform. I checkout the latest CVS source code,
sharma> though is did not compile as said on MIT web site, but the
sharma> changes I made in 2-3 Makefile.in to compile beta2 release
sharma> were there in CVS. I hope in near future it will compile fine
sharma> on Windows.

The anonymous CVS server only updates once a day, early in the
morning, I think. The changes should have propagated by tomorrow.

---Tom
Date: Thu, 16 Dec 2004 18:36:51 -0800
From: sharma <sam.sharma@gat.com>
Subject: RE: [krbdev.mit.edu #2802] CVS Commit
To: rt-comment@krbdev.mit.edu
RT-Send-Cc:
Download (untitled) / with headers
text/plain 3.4KiB
Hi

I have a compilation error with setenv api redefinition in krb code and
system header files on AIX 5.1 with gcc 3.4.4 [2.95 also] compiler.

The message looks like this, for any other information I will happy to
provide you. I hope you are the right person to forward all errors in
future, otherwise let me know.

Anyway I was able to compile the beta2 release on
Linux [RedHat 32 Bit, Fedura 64 Bit],
SGI-IRIX 32/64 Bit,
AIX [32 Bit compilation error],
MAC-OSX [32 Bit],
HP-UX 11.11 [32/64 Bit]
SOALARIS SPARC [32/64 Bit]
SOLARIS INTEL [32 Bit]
Windows 2000 [32 Bit, after your Makefile modification]


making all in appl/telnet/libtelnet...
gmake[4]: Entering directory
`/home/srbpkg/srbpkg/kerberos/32/krb5-1.4-beta2/src/appl/telnet/libtelnet'
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DKRB5_KRB4_COMPAT=1
-DHAVE_BT_RSEQ=1 -DKRB5_PRIVATE=1 -DKRB5_DEPRECATED=1
-DKRB5_DNS_LOOKUP_KDC=1 -DKRB5_DNS_LOOKUP=1 -DHAVE_RES_NSEARCH=1
-DHAVE_RES_SEARCH=1 -DHAVE_NS_INITPARSE=1 -DHAVE_NS_NAME_UNCOMPRESS=1
-DHAVE_DN_SKIPNAME=1 -DDELAY_INITIALIZER=1 -DCONSTRUCTOR_ATTR_WORKS=1
-DDESTRUCTOR_ATTR_WORKS=1 -DUSE_LINKER_FINI_OPTION=1 -DENABLE_THREADS=1
-DHAVE_PTHREAD=1 -DHAVE_PTHREAD_ONCE=1 -DHAVE_PTHREAD_RWLOCK_INIT=1
-DHAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB=1 -DHAVE_STRCASECMP=1
-DHAVE_STRDUP=1 -DHAVE_SETSID=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1
-DHAVE_GETOPT=1 -DHAVE_HERROR=1 -DHAVE_SETENV=1 -DHAVE_GETENV=1
-DHAVE_VSNPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_UNISTD_H=1 -DHAVE_ARPA_NAMESER_H=1 -DHAVE_SYS_SELECT_H=1
-DHAVE_ARPA_INET_H=1 -DHAVE_CURSES_H=1 -DHAVE_UTMP_H=1 -DHAVE_SYS_TIME_H=1
-DHAVE_SYS_STREAM_H=1 -DHAVE_SYS_UTSNAME_H=1 -DHAVE_MEMORY_H=1
-DNEED_SETENV=1 -DKRB4=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1
-DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDARG_H=1
-DHAVE_TERM_H=1 -DHAVE_SA_LEN=1 -DHAVE_STRUCT_SOCKADDR_STORAGE=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_NETINET_IN_H=1
-DHAVE_NETDB_H=1 -DHAVE_INET_NTOP=1 -DHAVE_INET_PTON=1 -DHAVE_GETNAMEINFO=1
-DHAVE_GETADDRINFO=1 -DKRB5_USE_INET6=1 -DHAVE_SETUPTERM=1 -DUSE_TERMIO=1
-DNEED_PARSETOS_PROTO=1 -DNEED_HERROR_PROTO=1 -DPOSIX_SIGNALS=1 -DKRB4=1
-DHAVE_REGCOMP=1 -DTIME_WITH_SYS_TIME=1 -DSTREAMSPTY=1
-DNEED_UNSETENV_PROTO=1 -DAUTHENTICATION -DENCRYPTION -DDES_ENCRYPTION
-DKRB5 -DFORWARD -UNO_LOGIN_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 -D_THREAD_SAFE -c forward.c
forward.c:39: 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'
gmake[4]: *** [forward.o] Error 1
gmake[4]: Leaving directory
`/home/srbpkg/srbpkg/kerberos/32/krb5-1.4-beta2/src/appl/telnet/libtelnet'
gmake[3]: *** [all-recurse] Error 1
gmake[3]: Leaving directory
`/home/srbpkg/srbpkg/kerberos/32/krb5-1.4-beta2/src/appl/telnet'
gmake[2]: *** [all-recurse] Error 1
gmake[2]: Leaving directory
`/home/srbpkg/srbpkg/kerberos/32/krb5-1.4-beta2/src/appl'
gmake[1]: *** [all-recurse] Error 1
gmake[1]: Leaving directory
`/home/srbpkg/srbpkg/kerberos/32/krb5-1.4-beta2/src'
gmake: *** [krb32] Error 2
Date: Thu, 16 Dec 2004 18:45:40 -0800
From: sharma <sam.sharma@gat.com>
Subject: RE: [krbdev.mit.edu #2802] CVS Commit
To: rt-comment@krbdev.mit.edu
RT-Send-Cc:
Download (untitled) / with headers
text/plain 3.8KiB
Hi

I have a compilation error with setenv api redefinition in krb code and
system header files on AIX 5.1 with gcc 3.4.4 [2.95 also] compiler.

The message looks like this, for any other information I will happy to
provide you. I hope you are the right person to forward all errors in
future, otherwise let me know.

Anyway I was able to compile the beta2 release on
Linux [RedHat 32 Bit, Fedura 64 Bit],
SGI-IRIX 32/64 Bit,
AIX [32 Bit compilation error],
MAC-OSX [32 Bit],
HP-UX 11.11 [32/64 Bit]
SOALARIS SPARC [32/64 Bit]
SOLARIS INTEL [32 Bit]
Windows 2000 [32 Bit, after your Makefile modification]

I looked into the problem and found that in compilation the -DHAVE_SETENV=1
and -DNEED_SETENV=1 are going in and ./libtelnet/forward.c has code like

#include "krb5.h"
#include <errno.h>

#include "krb5forw.h"

#if defined(NEED_SETENV) || defined(NEED_SETENV_PROTO)
extern int setenv(char *, char *, int);
#endif

Redefines the system's prototype which is

extern int setenv(const char *, const char *, int);


COMPILATION ERROR MESSAGE:

making all in appl/telnet/libtelnet...
gmake[4]: Entering directory
`/home/srbpkg/srbpkg/kerberos/32/krb5-1.4-beta2/src/appl/telnet/libtelnet'
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DKRB5_KRB4_COMPAT=1
-DHAVE_BT_RSEQ=1 -DKRB5_PRIVATE=1 -DKRB5_DEPRECATED=1
-DKRB5_DNS_LOOKUP_KDC=1 -DKRB5_DNS_LOOKUP=1 -DHAVE_RES_NSEARCH=1
-DHAVE_RES_SEARCH=1 -DHAVE_NS_INITPARSE=1 -DHAVE_NS_NAME_UNCOMPRESS=1
-DHAVE_DN_SKIPNAME=1 -DDELAY_INITIALIZER=1 -DCONSTRUCTOR_ATTR_WORKS=1
-DDESTRUCTOR_ATTR_WORKS=1 -DUSE_LINKER_FINI_OPTION=1 -DENABLE_THREADS=1
-DHAVE_PTHREAD=1 -DHAVE_PTHREAD_ONCE=1 -DHAVE_PTHREAD_RWLOCK_INIT=1
-DHAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB=1 -DHAVE_STRCASECMP=1
-DHAVE_STRDUP=1 -DHAVE_SETSID=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1
-DHAVE_GETOPT=1 -DHAVE_HERROR=1 -DHAVE_SETENV=1 -DHAVE_GETENV=1
-DHAVE_VSNPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_UNISTD_H=1 -DHAVE_ARPA_NAMESER_H=1 -DHAVE_SYS_SELECT_H=1
-DHAVE_ARPA_INET_H=1 -DHAVE_CURSES_H=1 -DHAVE_UTMP_H=1 -DHAVE_SYS_TIME_H=1
-DHAVE_SYS_STREAM_H=1 -DHAVE_SYS_UTSNAME_H=1 -DHAVE_MEMORY_H=1
-DNEED_SETENV=1 -DKRB4=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1
-DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDARG_H=1
-DHAVE_TERM_H=1 -DHAVE_SA_LEN=1 -DHAVE_STRUCT_SOCKADDR_STORAGE=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_NETINET_IN_H=1
-DHAVE_NETDB_H=1 -DHAVE_INET_NTOP=1 -DHAVE_INET_PTON=1 -DHAVE_GETNAMEINFO=1
-DHAVE_GETADDRINFO=1 -DKRB5_USE_INET6=1 -DHAVE_SETUPTERM=1 -DUSE_TERMIO=1
-DNEED_PARSETOS_PROTO=1 -DNEED_HERROR_PROTO=1 -DPOSIX_SIGNALS=1 -DKRB4=1
-DHAVE_REGCOMP=1 -DTIME_WITH_SYS_TIME=1 -DSTREAMSPTY=1
-DNEED_UNSETENV_PROTO=1 -DAUTHENTICATION -DENCRYPTION -DDES_ENCRYPTION
-DKRB5 -DFORWARD -UNO_LOGIN_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 -D_THREAD_SAFE -c forward.c
forward.c:39: 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'
gmake[4]: *** [forward.o] Error 1
gmake[4]: Leaving directory
`/home/srbpkg/srbpkg/kerberos/32/krb5-1.4-beta2/src/appl/telnet/libtelnet'
gmake[3]: *** [all-recurse] Error 1
gmake[3]: Leaving directory
`/home/srbpkg/srbpkg/kerberos/32/krb5-1.4-beta2/src/appl/telnet'
gmake[2]: *** [all-recurse] Error 1
gmake[2]: Leaving directory
`/home/srbpkg/srbpkg/kerberos/32/krb5-1.4-beta2/src/appl'
gmake[1]: *** [all-recurse] Error 1
gmake[1]: Leaving directory
`/home/srbpkg/srbpkg/kerberos/32/krb5-1.4-beta2/src'
gmake: *** [krb32] Error 2
To: rt@krbdev.mit.edu
Subject: Re: [krbdev.mit.edu #2802] CVS Commit
From: Tom Yu <tlyu@mit.edu>
Date: Fri, 17 Dec 2004 16:44:01 -0500
RT-Send-Cc:
Show quoted text
>>>>> "sharma" == sharma via RT <rt-comment@krbdev.mit.edu> writes:

Show quoted text
sharma> I have a compilation error with setenv api redefinition in krb code and
sharma> system header files on AIX 5.1 with gcc 3.4.4 [2.95 also] compiler.

Please open this as a separate bug. (Email to krb5-bugs@mit.edu with
the ticket number removed from the subject line.) Thanks.

---Tom