[tkined] Unable to build scotty 2.1.10 on Solaris Sparc v2.6 and GCC v2.7.2.3

Cameron Lemon (lemon@nbnet.nb.ca)
Mon, 29 Nov 1999 15:43:11 -0400

Here's the scoop. I downloaded TCL v8.0p2 and Tk v8.0p2 from
sunfreeware.sun.com and added them. Now, I downloaded scotty and am now
attempting to build it. The 'configure' works easy enough, but the 'make'
bombs out as I am missing an X include file. I'm running Solaris Sparc v2.6
[ full install ] with GCC v2.7.2.3 and the 'stock [/usr/ccs/bin/make]' make.

# configure --enable-gcc
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for flex... lex
checking for yywrap in -ll... yes
checking for bison... bison -y
checking for a BSD compatible install... /local/bin/install -c
checking for prefix by checking for scotty... no
checking for prefix by checking for tclsh... /local/bin/tclsh
checking size of long... 4
checking whether byte ordering is bigendian... yes
checking for rpcgen... rpcgen
checking for tclsh... /local/bin/tclsh
checking for tclConfig.sh in /local/lib... yes
checking for tcl version... 8.0
checking for wish... /local/bin/wish
checking for tkConfig.sh in /local/lib... yes
checking for tk version... 8.0
checking for connect... no
checking for gethostbyname... no
checking for main in -lnsl... yes
need -lsocket and -lnsl together
checking for main in -lieee... no
checking for main in -lrpc... no
checking for main in -lrpcsvc... yes
checking for res_mkquery... no
checking for res_mkquery in -lresolv... yes
checking for stdlib.h... yes
checking for unistd.h... yes
checking for malloc.h... yes
checking for sys/select.h... yes
checking for gethostent... no
checking for getnetent... no
checking for getprotoent... no
checking for getservent... no
checking for getrpcent... no
checking for struct rpcent... no
checking for getmntent in -lsun... no
checking for getmntent in -lseq... no
checking for getmntent in -lgen... yes
checking for getmntent... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged

This runs fine....

Now I run 'make' with CC set to /local/bin/gcc, which is GCC2723.

make CC=/local/bin/gcc

/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -DT
NMLIB=\"/local/lib/tnm2.1.10\" ./../tnm/generic/tnmInit.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
./../tnm/generic/tnmUtil.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
./../tnm/generic/tnmJob.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -DT
KINEDLIB=\"/local/lib/tkined1.4.10\" ./../tnm/generic/tnmIned.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
./../tnm/generic/tnmSyslog.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
./../tnm/generic/tnmIcmp.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
./../tnm/generic/tnmDns.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
./../tnm/generic/tnmEvent.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
./../tnm/generic/tnmUdp.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
./../tnm/generic/tnmSunRpc.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
./../tnm/generic/tnmNtp.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
./../tnm/generic/tnmRpc.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
./../tnm/generic/tnmHttp.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
./../tnm/generic/tnmNetdb.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
./../unix/tnmUnixInit.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
./../unix/tnmUnixLog.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
./../unix/tnmUnixSocket.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -DN
TPING=\"/local/bin/ntping\" ./../unix/tnmUnixIcmp.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
mount_clnt.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
mount_xdr.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
ether_clnt.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
ether_xdr.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
rstat_clnt.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
rstat_xdr.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
pcnfsd_clnt.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include
pcnfsd_xdr.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -I.
/../tnm/snmp ./../tnm/snmp/tnmAsn1.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -I.
/../tnm/snmp ./../tnm/snmp/tnmMD5.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -I.
/../tnm/snmp -DSTRAPS=\"/local/bin/straps\" ./../tnm/snmp/tnmSnmpNet.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -I.
/../tnm/snmp ./../tnm/snmp/tnmSnmpUtil.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -I.
/../tnm/snmp ./../tnm/snmp/tnmSnmpInst.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -I.
/../tnm/snmp ./../tnm/snmp/tnmSnmpSend.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -I.
/../tnm/snmp ./../tnm/snmp/tnmSnmpRecv.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -I.
/../tnm/snmp ./../tnm/snmp/tnmSnmpAgent.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -I.
/../tnm/snmp ./../tnm/snmp/tnmSnmpTcl.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -I.
/../tnm/snmp ./../tnm/snmp/tnmMibQuery.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -I.
/../tnm/snmp ./../tnm/snmp/tnmMibParser.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -I.
/../tnm/snmp ./../tnm/snmp/tnmMibTree.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -I.
/../tnm/snmp ./../tnm/snmp/tnmMibFrozen.c
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -I.
/../tnm/snmp ./../tnm/snmp/tnmMibTcl.c
/usr/ccs/bin/ld -G -z text tnmInit.o tnmUtil.o tnmJob.o tnmIned.o
tnmSyslog.o tnmIcmp.o tnmDns.o tnmEvent.o tnmUdp.o tnmSunRpc.o tnmNtp.o
tnmRpc.o tnmHttp.o tnmNetdb.o tnmUnixInit.o tnmUnixLog.o tnmUnixSocket.o
tnmUnixIcmp.o mount_clnt.o mount_xdr.o ether_clnt.o ether_xdr.o
rstat_clnt.o rstat_xdr.o pcnfsd_clnt.o pcnfsd_xdr.o tnmAsn1.o tnmMD5.o
tnmSnmpNet.o tnmSnmpUtil.o tnmSnmpInst.o tnmSnmpSend.o tnmSnmpRecv.o
tnmSnmpAgent.o tnmSnmpTcl.o tnmMibQuery.o tnmMibParser.o tnmMibTree.o
tnmMibFrozen.o tnmMibTcl.o -o
m.so -lgen -lsocket -lnsl -lrpcsvc -lresolv -ll
/local/bin/gcc -c -O -I. -DHAVE_CONFIG_H ./../tnm/ntping/ntping.c
gcc -o ntping ntping.o -lgen -lsocket -lnsl -lrpcsvc -lresolv
/local/bin/gcc -c -O -I. ./../tnm/snmp/straps.c
gcc -o straps straps.o -lgen -lsocket -lnsl -lrpcsvc -lresolv
/local/bin/gcc -c -O -fPIC -I. -I./../tnm/generic -I/usr/local/include -I.
-I./../tnm/generic -I/usr/local/include ./../unix/scotty.c
gcc -o scotty
scotty.o -L/usr/local/lib -ltcl8.0 -lgen -lsocket -lnsl -lrpcsvc -lresolv -
ldl -lm
/local/bin/gcc -c -O -fPIC -I. -I./../tkined/generic -I/usr/local/include
-I/usr/openwin/share/include ./../tkined/generic/tkiEditor.c
In file include from ../tkined/generic/tkined.h:35,
from ./../tkined/generic/tkiEditor.c:141:
/usr/local/include/tk.h:74: X11/Xlib.h No such file or directory
make: Fatal error: Command filed for tager 'tkiEditor.o'
*** Error code 1

So, the file Xlib.h doesn't exist... this is true enough. Question is...
where is it. I seem to be missing alot/some X includes as there is only 1
olcursor.h ] in /usr/openwin/share/include, but I have the full OS
installed. All 550+ megs of it. So... my question is.. how do I fix this
thing? In /usr/dt/include/Xm, there a 50 or thereabout *.h files, with one
being named Xm.h, but I don't know which one to include???? X and Solaris
don't appear to be a very good mix...

Thanks..

Cameron

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.