Lowell Gilbert
2003-Dec-08 10:43 UTC
Re2: 'long long' warning while compiling mit-kerberos on 4.9-stable
Illia Baidakov <illich@newchem.ru> writes:> > Those messages are not a problem. It's true that ANSI C doesn't > > support 'long long', but GCC does as an extension. In fact, GCC > > supports quite a few extensions to the C standard. Did some kind of > > error actually stop the build? If so, you need to show what the > > precise errors right at and just before the point where the build > > stopped. > I'm not sure but if it could shed light to the problem solving, > this is the it: > > gcc -L../../lib -Wl,-rpath -Wl,/usr/local/lib -g -O2 -Wall > -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow > -Wno-comment -pedantic -o kshd krshd.o kcmd.o forward.o compat_recv.o > -lcrypt -lpty -ldes425 -lkrb5 -lk5crypto -lcom_err -lutil > ../../lib/libkrb5.so: warning: mktemp() possibly used unsafely; > consider using mkstemp() > gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" > -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BT_RSEQ=1 > -DKRB5_PRIVATE=1 -DKRB5_DEPRECATED=1 -DKRB5_DNS_LOOKUP_KDC=1 > -DKRB5_DNS_LOOKUP_REALM=1 -DKRB5_DNS_LOOKUP=1 -DHAVE_LIBUTIL=1 > -DHAVE_LIBCRYPT=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_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 > -DHAVE_WORKING_FORK=1 -DHAVE_ISATTY=1 -DHAVE_INET_ATON=1 > -DHAVE_GETENV=1 -DHAVE_KILLPG=1 -DHAVE_INITGROUPS=1 -DHAVE_SETPRIORITY=1 > -DHAVE_SETREUID=1 -DHAVE_SETRESUID=1 -DHAVE_WAITPID=1 -DHAVE_SETSID=1 > -DHAVE_SETLOGIN=1 -DHAVE_TCGETPGRP=1 -DHAVE_TCSETPGRP=1 > -DHAVE_SETPGID=1 -DHAVE_UTIMES=1 -DHAVE_RRESVPORT_AF=1 > -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_FILIO_H=1 > -DHAVE_SYS_SOCKIO_H=1 -DHAVE_SYS_TTY_H=1 -DHAVE_TTYENT_H=1 > -DHAVE_SYS_SELECT_H=1 -DHAVE_UTMP_H=1 -DHAVE_SYS_TIME_H=1 > -DHAVE_SYS_IOCTL_COMPAT_H=1 -DHAVE_PATHS_H=1 -DHAVE_ARPA_NAMESER_H=1 > -DHAVE_STDARG_H=1 -DHAVE_GETDTABLESIZE=1 -DNEED_DAEMON_PROTO=1 > -DPOSIX_SIGTYPE=1 -Dkrb5_sigtype=void -DPOSIX_SIGNALS=1 > -DPOSIX_SETJMP=1 -DUSE_DIRENT_H=1 -DWAIT_USES_INT=1 -DPOSIX_TERMIOS=1 > -DNO_UT_PID=1 -DNO_UT_TYPE=1 -DNO_UT_EXIT=1 > -DGETSOCKNAME_ARG2_TYPE=struct\ sockaddr > -DGETSOCKNAME_ARG3_TYPE=size_t -DHAVE_SETOWN=1 -DSETPGRP_TWOARG=1 > -DHAVE_REGCOMP=1 -DKRB5_PATH_RLOGIN=\"/usr/local/bin/rlogin\" > -DUCB_RLOGIN=\"/usr/bin/rlogin\" -DUCB_RSH=\"/usr/bin/rsh\" > -DUCB_RCP=\"/bin/rcp\" -DKERBEROS > -DLOGIN_PROGRAM=\"/usr/local/sbin/login.krb5\" > -DKPROGDIR=\"/usr/local/bin\" -DHEIMDAL_FRIENDLY -I../../include > -I./../../include -I../../include/krb5 -I./../../include/krb5 -g > -O2 -Wall -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion > -Wshadow -Wno-comment -pedantic -c krlogind.c > In file included from krlogind.c:128: > /usr/include/stdlib.h:111: warning: ANSI C does not support `long long' > /usr/include/stdlib.h:117: warning: ANSI C does not support `long long' > krlogind.c: In function `protocol': > krlogind.c:1055: warning: pointer targets in passing arg 2 of > `rcmd_stream_read' differ in signedness > krlogind.c:1085: warning: passing arg 3 of `write' as unsigned due to > prototype > krlogind.c:1125: warning: negative integer implicitly converted to > unsigned type > krlogind.c:1126: warning: negative integer implicitly converted to > unsigned type > krlogind.c:1144: warning: pointer targets in passing arg 2 of > `rcmd_stream_write' differ in signedness > krlogind.c:1144: warning: passing arg 3 of `rcmd_stream_write' as > unsigned due to prototype > gcc -L../../lib -Wl,-rpath -Wl,/usr/local/lib -g -O2 -Wall > -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow > -Wno-comment -pedantic -o klogind krlogind.o kcmd.o forward.o > compat_recv.o -lpty -ldes425 -lkrb5 -lk5crypto -lcom_err -lutil > ../../lib/libkrb5.so: warning: mktemp() possibly used unsafely; > consider using mkstemp() > gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" > -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BT_RSEQ=1 > -DKRB5_PRIVATE=1 -DKRB5_DEPRECATED=1 -DKRB5_DNS_LOOKUP_KDC=1 > -DKRB5_DNS_LOOKUP_REALM=1 -DKRB5_DNS_LOOKUP=1 -DHAVE_LIBUTIL=1 > -DHAVE_LIBCRYPT=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_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 > -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_ISATTY=1 > -DHAVE_INET_ATON=1 -DHAVE_GETENV=1 -DHAVE_KILLPG=1 -DHAVE_INITGROUPS=1 > -DHAVE_SETPRIORITY=1 -DHAVE_SETREUID=1 -DHAVE_SETRESUID=1 > -DHAVE_WAITPID=1 -DHAVE_SETSID=1 -DHAVE_SETLOGIN=1 -DHAVE_TCGETPGRP=1 > -DHAVE_TCSETPGRP=1 -DHAVE_SETPGID=1 -DHAVE_UTIMES=1 > -DHAVE_RRESVPORT_AF=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 > -DHAVE_STRING_H=1 -DHAVE_SYS_FILIO_H=1 -DHAVE_SYS_SOCKIO_H=1 > -DHAVE_SYS_TTY_H=1 -DHAVE_TTYENT_H=1 -DHAVE_SYS_SELECT_H=1 > -DHAVE_UTMP_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_IOCTL_COMPAT_H=1 > -DHAVE_PATHS_H=1 -DHAVE_ARPA_NAMESER_H=1 -DHAVE_STDARG_H=1 > -DHAVE_GETDTABLESIZE=1 -DNEED_DAEMON_PROTO=1 -DPOSIX_SIGTYPE=1 > -Dkrb5_sigtype=void -DPOSIX_SIGNALS=1 -DPOSIX_SETJMP=1 > -DUSE_DIRENT_H=1 -DWAIT_USES_INT=1 -DPOSIX_TERMIOS=1 -DNO_UT_PID=1 > -DNO_UT_TYPE=1 -DNO_UT_EXIT=1 -DGETSOCKNAME_ARG2_TYPE=struct\ sockaddr > -DGETSOCKNAME_ARG3_TYPE=size_t -DHAVE_SETOWN=1 -DSETPGRP_TWOARG=1 > -DHAVE_REGCOMP=1 -DKRB5_PATH_RLOGIN=\"/usr/local/bin/rlogin\" > -DUCB_RLOGIN=\"/usr/bin/rlogin\" -DUCB_RSH=\"/usr/bin/rsh\" > -DUCB_RCP=\"/bin/rcp\" -DKERBEROS > -DLOGIN_PROGRAM=\"/usr/local/sbin/login.krb5\" > -DKPROGDIR=\"/usr/local/bin\" -DHEIMDAL_FRIENDLY -I../../include > -I./../../include -I../../include/krb5 -I./../../include/krb5 -g > -O2 -Wall -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion > -Wshadow -Wno-comment -pedantic -c login.c > In file included from login.c:85: > /usr/include/stdlib.h:111: warning: ANSI C does not support `long long' > /usr/include/stdlib.h:117: warning: ANSI C does not support `long long' > login.c:516: warning: no previous prototype for `k_init' > login.c: In function `main': > login.c:1475: warning: passing arg 2 of `chmod' with different width > due to prototype > login.c:1551: warning: passing arg 2 of `initgroups' as signed due to > prototype > login.c: In function `motd': > login.c:2089: warning: passing arg 3 of `write' as unsigned due to > prototype > gcc -L../../lib -Wl,-rpath -Wl,/usr/local/lib -g -O2 -Wall > -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow > -Wno-comment -pedantic -o login.krb5 login.o -lcrypt -lpty > -ldes425 -lkrb5 -lk5crypto -lcom_err -lutil ../../lib/libkrb5.so: > warning: mktemp() possibly used unsafely; consider using mkstemp() > making all in appl/gss-sample... > gcc -L../../lib -Wl,-rpath -Wl,/usr/local/lib -g -O2 -Wall > -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow > -Wno-comment -pedantic -o gss-server gss-server.o gss-misc.o > -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ../../lib/libkrb5.so: > warning: mktemp() possibly used unsafely; consider using mkstemp() > gcc -L../../lib -Wl,-rpath -Wl,/usr/local/lib -g -O2 -Wall > -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow > -Wno-comment -pedantic -o gss-client gss-client.o gss-misc.o > -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ../../lib/libkrb5.so: > warning: mktemp() possibly used unsafely; consider using mkstemp() > making all in appl/gssftp... > making all in appl/gssftp/ftp... > gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" > -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BT_RSEQ=1 > -DKRB5_PRIVATE=1 -DKRB5_DEPRECATED=1 -DKRB5_DNS_LOOKUP_KDC=1 > -DKRB5_DNS_LOOKUP_REALM=1 -DKRB5_DNS_LOOKUP=1 -DPOSIX_SIGTYPE=1 > -Dkrb5_sigtype=void -DPOSIX_SIGNALS=1 -DUSE_SIGPROCMASK=1 > -DPOSIX_SETJMP=1 -DWAIT_USES_INT=1 -DSYS_ERRLIST_DECLARED=1 > -DHAVE_SYS_ERRLIST=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 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 > -DHAVE_STDARG_H=1 -DPOSIX_TERMIOS=1 -DHAVE_UNISTD_H=1 > -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SELECT_H=1 > -DHAVE_SYS_SOCKIO_H=1 -DHAVE_PATHS_H=1 -DNO_UT_PID=1 -DNO_UT_TYPE=1 > -DNO_UT_EXIT=1 -DSYS_ERRLIST_DECLARED=1 -DHAVE_SYS_ERRLIST=1 > -DHAVE_GETDTABLESIZE=1 -DHAVE_GETCWD=1 -DHAVE_GETDTABLESIZE=1 > -DHAVE_GETUSERSHELL=1 -DHAVE_SETEUID=1 -DHAVE_SETREUID=1 > -DHAVE_SETRESUID=1 -DHAVE_STRERROR=1 -DHAVE_GETENV=1 -DHAVE_LIBCRYPT=1 > -DHAVE_LIBUTIL=1 -DHAVE_REGCOMP=1 -DGSSAPI -DFTP_BUFSIZ=10240 > -I../../../include -I./../../../include -I../../../include/krb5 > -I./../../../include/krb5 -I./.. -I. -g -O2 -Wall > -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow > -Wno-comment -pedantic -c ./cmdtab.c > In file included from /usr/include/sys/param.h:98, > from ftp_var.h:111, > from ./cmdtab.c:39: > /usr/include/sys/signal.h:230: redefinition of `my_sig_t' > ftp_var.h:62: `my_sig_t' previously declared here > ./cmdtab.c:35: warning: `sccsid' defined but not used > *** Error code 1 > > Stop in > /usr/ports/distfiles/PKI/MIT-Kerberos/krb5-1.3.1/src/appl/gssftp/ftp. > *** Error code 1 > > Stop in > /usr/ports/distfiles/PKI/MIT-Kerberos/krb5-1.3.1/src/appl/gssftp. > *** Error code 1 > > Stop in /usr/ports/distfiles/PKI/MIT-Kerberos/krb5-1.3.1/src/appl. > *** Error code 1 > > Stop in /usr/ports/distfiles/PKI/MIT-Kerberos/krb5-1.3.1/src. > > > Please see the notes on installing and using Kerberos from the FreeBSD > > Handbook: > > http://www.ru.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kerberos5.html > Already I did. And not just it. An attempt to build MIT Kerberos is my > own curiosity. > Is it a best practise to use Heimdal Kerberos on FreeBSD? If it's so I > think I have no limits to orientate myself to use it.That is a very complicated piece of software to try to port on your own as a first effort. It should be quite possible to get it running, but it will require some understanding of programming and the use of compilers.
Illia Baidakov
2003-Dec-09 02:22 UTC
Re2: 'long long' warning while compiling mit-kerberos on 4.9-stable
Hello Lowell,>> In file included from /usr/include/sys/param.h:98, >> from ftp_var.h:111, >> from ./cmdtab.c:39: >> /usr/include/sys/signal.h:230: redefinition of `my_sig_t' >> ftp_var.h:62: `my_sig_t' previously declared here >> ./cmdtab.c:35: warning: `sccsid' defined but not used >> *** Error code 1LG> That is a very complicated piece of software to try to port on your LG> own as a first effort. It should be quite possible to get it running, LG> but it will require some understanding of programming and the use of LG> compilers. There are a lot of documentation about this technology such as RFCs, user's and administrator's guides, papers over the net and guru advises. All that I did was commnted the string 230 in /usr/include/sys/signal.h After that the building process has complited succesfully. Equally as installing and checking ones. I hope this change will not cause any serious problems with running kerberos applications and will not open security breachs. At the end I have turned the changes back. So I trying to ask you ones again: Is it a best practise to use Heimdal Kerberos on FreeBSD? If it's so I think I have no limits to orientate myself to use it. -- Best regards, a mailto:a@newchem.ru