[884] in Kerberos-V5-bugs
Re: Build problem with krb5-B4-PL3 on Solaris (with fix)
daemon@ATHENA.MIT.EDU (Dan Nessett)
Wed Oct 19 22:05:50 1994
Date: Wed, 19 Oct 1994 18:01:57 -0700
From: Danny.Nessett@Eng.Sun.COM (Dan Nessett)
To: tytso@MIT.EDU
Cc: krb5-bugs@MIT.EDU
> Telnet shouldn't have been using index or rindex. I'm bit at a loss to
> figure out why it was trying to use them. If you could do a
>
> "nm -o *.o | grep index"
>
> in the telnet/telnet and telnet/libtelnet directories, and send me back
> the results, I'd be much obliged.
>
Well, the above produced exactly nothing. So I went back and untar'd the
sources, ran configure without the ccopts flag and then ran make. It appears
that "index" and "rindex" are being referenced in libtermcap, which is a
library included when linking telnet (the exact object file with these
references being termcap.o). Don't know enough about this stuff to know why
termcap.o does this, but the terminal I/O guy told me to include libucb.
However, if that is a bad idea, maybe there is another way around this.
I've included the relevant output from the make below.
Dan
=======
making in appl/telnet/telnet...
cc -DAUTHENTICATION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN -DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DRETSIGTYPE=void -Dvfork=fork -I./../../../include -I../../../include -DHAVE_UNISTD_H=1 -DHAVE_SYS_SELECT_H=1 -DTERMCAP=1 -DUSE_TERMIO=1 -DFILIO_H=1 -DSTREAMS=1 -DHAVE_LIBDBM=1 -DPOSIX_SIGNALS=1 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -I.. -I./.. -c authenc.c
cc -DAUTHENTICATION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN -DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DRETSIGTYPE=void -Dvfork=fork -I./../../../include -I../../../include -DHAVE_UNISTD_H=1 -DHAVE_SYS_SELECT_H=1 -DTERMCAP=1 -DUSE_TERMIO=1 -DFILIO_H=1 -DSTREAMS=1 -DHAVE_LIBDBM=1 -DPOSIX_SIGNALS=1 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -I.. -I./.. -c commands.c
"commands.c", line 1372: warning: trigraph sequence replaced
cc -DAUTHENTICATION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN -DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DRETSIGTYPE=void -Dvfork=fork -I./../../../include -I../../../include -DHAVE_UNISTD_H=1 -DHAVE_SYS_SELECT_H=1 -DTERMCAP=1 -DUSE_TERMIO=1 -DFILIO_H=1 -DSTREAMS=1 -DHAVE_LIBDBM=1 -DPOSIX_SIGNALS=1 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -I.. -I./.. -c main.c
cc -DAUTHENTICATION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN -DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DRETSIGTYPE=void -Dvfork=fork -I./../../../include -I../../../include -DHAVE_UNISTD_H=1 -DHAVE_SYS_SELECT_H=1 -DTERMCAP=1 -DUSE_TERMIO=1 -DFILIO_H=1 -DSTREAMS=1 -DHAVE_LIBDBM=1 -DPOSIX_SIGNALS=1 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -I.. -I./.. -c network.c
cc -DAUTHENTICATION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN -DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DRETSIGTYPE=void -Dvfork=fork -I./../../../include -I../../../include -DHAVE_UNISTD_H=1 -DHAVE_SYS_SELECT_H=1 -DTERMCAP=1 -DUSE_TERMIO=1 -DFILIO_H=1 -DSTREAMS=1 -DHAVE_LIBDBM=1 -DPOSIX_SIGNALS=1 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -I.. -I./.. -c ring.c
cc -DAUTHENTICATION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN -DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DRETSIGTYPE=void -Dvfork=fork -I./../../../include -I../../../include -DHAVE_UNISTD_H=1 -DHAVE_SYS_SELECT_H=1 -DTERMCAP=1 -DUSE_TERMIO=1 -DFILIO_H=1 -DSTREAMS=1 -DHAVE_LIBDBM=1 -DPOSIX_SIGNALS=1 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -I.. -I./.. -c sys_bsd.c
cc -DAUTHENTICATION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN -DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DRETSIGTYPE=void -Dvfork=fork -I./../../../include -I../../../include -DHAVE_UNISTD_H=1 -DHAVE_SYS_SELECT_H=1 -DTERMCAP=1 -DUSE_TERMIO=1 -DFILIO_H=1 -DSTREAMS=1 -DHAVE_LIBDBM=1 -DPOSIX_SIGNALS=1 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -I.. -I./.. -c telnet.c
"telnet.c", line 624: warning: semantics of ">" change in ANSI C; use explicit cast
"telnet.c", line 783: warning: semantics of "<=" change in ANSI C; use explicit cast
cc -DAUTHENTICATION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN -DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DRETSIGTYPE=void -Dvfork=fork -I./../../../include -I../../../include -DHAVE_UNISTD_H=1 -DHAVE_SYS_SELECT_H=1 -DTERMCAP=1 -DUSE_TERMIO=1 -DFILIO_H=1 -DSTREAMS=1 -DHAVE_LIBDBM=1 -DPOSIX_SIGNALS=1 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -I.. -I./.. -c terminal.c
cc -DAUTHENTICATION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN -DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DRETSIGTYPE=void -Dvfork=fork -I./../../../include -I../../../include -DHAVE_UNISTD_H=1 -DHAVE_SYS_SELECT_H=1 -DTERMCAP=1 -DUSE_TERMIO=1 -DFILIO_H=1 -DSTREAMS=1 -DHAVE_LIBDBM=1 -DPOSIX_SIGNALS=1 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -I.. -I./.. -c utilities.c
cc -o telnet -DAUTHENTICATION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN -DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DRETSIGTYPE=void -Dvfork=fork -I./../../../include -I../../../include -DHAVE_UNISTD_H=1 -DHAVE_SYS_SELECT_H=1 -DTERMCAP=1 -DUSE_TERMIO=1 -DFILIO_H=1 -DSTREAMS=1 -DHAVE_LIBDBM=1 -DPOSIX_SIGNALS=1 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -I.. -I./.. authenc.o commands.o main.o network.o ring.o sys_bsd.o telnet.o terminal.o utilities.o ../libtelnet/libtelnet.a ../../../lib/libkrb5.a ../../../lib/libcrypto.a ../../../util/et/libcom_err.a -ltermcap -ldbm -lsocket -lnsl
Undefined first referenced
symbol in file
index /usr/ucblib/libtermcap.a(termcap.o)
rindex /usr/ucblib/libtermcap.a(termcap.o)
ld: fatal: Symbol referencing errors. No output written to telnet
*** Error code 1
make: Fatal error: Command failed for target `telnet'
Current working directory /export/home/kerberosV5/krb5.B4-3/src/appl/telnet/telnet
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /export/home/kerberosV5/krb5.B4-3/src/appl/telnet
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /export/home/kerberosV5/krb5.B4-3/src/appl
*** Error code 1
make: Fatal error: Command failed for target `all'
user=424.0 sec, system=292.0 sec, elapsed=25:13 min, cpu use=47%, 0 swaps,
0 disk reads, 0 disk writes. Data+stack+text pages: 0 avg., 0 max.
elrond#