1.3.x build on enterprise 3

Antón avelo at optaresolutions.com
Thu Feb 17 04:53:04 EST 2005


Hi,

As a way to solve a trouble with samba winbind,
I'm trying to build and install krb5 1.3.4 or 1.3.6.

Last official update from redhat to Entperprise 3 AS is 1.2.7
So I have used srpms from enterprise4 (1.3.4)
I've installed updates e2fsprogs (compiled and installed without trouble)

When I try to build krb5 with:
rpmbuild --rebuild krb5-1.3.4-7.src.rpm
I got the following error:
···
gcc -L../../lib  -O2 -g -pipe -march=i386 -mcpu=i686 -D_FILE_OFFSET_BITS=64 -I/usr/include/et -fPIC -pie -o rlogin krlogin.o kcmd.o forw
ard.o   -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err  -lutil  -lresolv
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_REALM=1 -DKRB5_DNS_LOOKUP=1 -DHAVE_LIB
UTIL=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_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKIN
G_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_ISATTY=1 -DHAVE_INET_ATON=1 -DHAVE_GETENV=1 -DHAVE_GETTOSBYNAME=1 -DHAVE_KILLPG=1 -DHAVE_INITGROU
PS=1 -DHAVE_SETPRIORITY=1 -DHAVE_SETREUID=1 -DHAVE_SETRESUID=1 -DHAVE_WAITPID=1 -DHAVE_SETSID=1 -DHAVE_PTSNAME=1 -DHAVE_TCGETPGRP=1 -DHA
VE_TCSETPGRP=1 -DHAVE_SETPGID=1 -DHAVE_STRSAVE=1 -DHAVE_UTIMES=1 -DHAVE_RMUFILE=1 -DHAVE_RRESVPORT_AF=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_
H=1 -DHAVE_STRING_H=1 -DHAVE_TTYENT_H=1 -DHAVE_LASTLOG_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_UTMP_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_PATHS_H=1 -D
HAVE_ARPA_NAMESER_H=1 -DHAVE_LONG_LONG=1 -DHAVE_STDARG_H=1 -DHAVE_GETDTABLESIZE=1 -DPOSIX_SIGTYPE=1 -Dkrb5_sigtype=void -DPOSIX_SIGNALS=
1 -DPOSIX_SETJMP=1 -DUSE_DIRENT_H=1 -DWAIT_USES_INT=1 -DPOSIX_TERMIOS=1 -DHAVE_SETUTENT=1 -DHAVE_SETUTXENT=1 -DHAVE_UPDWTMP=1 -DHAVE_UPD
WTMPX=1 -DGETSOCKNAME_ARG2_TYPE=struct\ sockaddr -DGETSOCKNAME_ARG3_TYPE=size_t -DHAVE_SETOWN=1 -DHAVE_SHADOW=1 -DHAVE_KRB_GET_ERR_TEXT=
1 -DHAVE_KRB_SAVE_CREDENTIALS=1 -DHAVE_REGCOMP=1  -DKRB5_PATH_RLOGIN=\"/usr/kerberos/bin/rlogin\" -DUCB_RLOGIN=\"/usr/bin/rlogin\" -DUCB
_RSH=\"/usr/bin/rsh\" -DUCB_RCP=\"/usr/bin/rcp\"  -DKERBEROS -DLOGIN_PROGRAM=\"/usr/kerberos/sbin/login.krb5\" -DKPROGDIR=\"/usr/kerbero
s/bin\" -DHEIMDAL_FRIENDLY -I../../include -I./../../include -I../../include/krb5 -I./../../include/krb5 -I./../../include/kerberosIV -I
../../include/kerberosIV -D_FILE_OFFSET_BITS=64 -I/usr/include/et -O2 -g -pipe -march=i386 -mcpu=i686 -D_FILE_OFFSET_BITS=64 -I/usr/incl
ude/et -fPIC -c krshd.c
krshd.c: In function `doit':
krshd.c:632: warning: assignment makes pointer from integer without a cast
krshd.c:633: dereferencing pointer to incomplete type
make[2]: *** [krshd.o] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/krb5-1.3.4/src/appl/bsd'
make[1]: *** [all-recurse] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/krb5-1.3.4/src/appl'
make: *** [all-recurse] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.97784 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.97784 (%build)


I've the same error with 1.3.6 rebuild.

And the error points to following lines of krshd.c
---
626|#ifdef IP_TOS
627|/* solaris has IP_TOS, but only IPTOS_* values */
628|#ifdef HAVE_GETTOSBYNAME
629|    struct tosent *tp;
630|
631|
632|    if ((tp = gettosbyname("interactive", "tcp")) &&
633|        (setsockopt(f, IPPROTO_IP, IP_TOS, &tp->t_tos, sizeof(int)) < 0))
634|#ifdef  TOS_WARN
635|      syslog(LOG_NOTICE, "setsockopt (IP_TOS): %m");
636|#else
637|    ;       /* silently ignore TOS errors in 6E */
638|#endif
639|#endif
640|#endif /* IP_TOS */
---

If I comment the lines (only to see if there is no more compilation errors), I override the error
but get another similar in commands.c

I've googled with no success...
Anyone could help me, please?

Thanks in advance,
Antón





More information about the Kerberos mailing list