I am trying to compile some extensions to the Tcl language. These
extensions include Tcl-DP
and Scotty. I am not that familiar with make unfortunately and am having
difficulties. I was able
to get Tcl and Tk compiled easily however. I am using a SUN with Solaris
2.4.
When I perform a 'make' on the Tcl-DP software I get the following output at
the end:
=============================================================
cc -c -O -I. -I/home/mikem/tcl/tcl-dp3.2/../tcl7.3
-I/home/mikem/tcl/tcl-dp3.2 -
DHAVE_STDLIB_H=1 -DUNIX_SOCKET=1 -DHAVE_ERRNO_H=1 -DHAVE_SYS_TIME_H=1 -
DHAVE_MALLOC_H=1 -DHAVE_TOLOWER=1 -DHAVE_NTOHL=1 -DHAVE_STRING_H=1 -
DDP_LIBRARY=\"/home/mikem/tcl/tcl-dp3.2/lib/dp\" -DNO_X11 dpnetwork.c
In file included from /usr/include/netinet/in.h:29,
from dpnetwork.c:55:
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/sys/byteorder.h:27:
conflicting types for `htonl'
dpInt.h:49: previous declaration of `htonl'
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/sys/byteorder.h:28:
conflicting types for
`htons'
dpInt.h:47: previous declaration of `htons'
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/sys/byteorder.h:29:
conflicting types for `ntohl'
dpInt.h:50: previous declaration of `ntohl'
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/sys/byteorder.h:30:
conflicting types for
`ntohs'
dpInt.h:48: previous declaration of `ntohs'
*** Error code 1
make: Fatal error: Command failed for target `dpnetwork.o'
========================================================================
After a configure on Scotty; running a make gets the following output:
====================================================
cc -c -O -I. -I/home/mikem/tcl/tcl7.3 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -
DHAVE_MALLOC_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SOCKETPAIR=1 -
DHAVE_SELECT=1 -DNEED_USLEEP=1 -DNO_RPCENT=1 -DWORDS_BIGENDIAN=1 -
DHAVE_GETMNTENT=1 -DSCOTTYLIB=\"/usr/local/lib/scotty\" init.c
(cd snmp; make)
cc -c -O -I. -I/home/mikem/tcl/tcl7.3 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -
DHAVE_MALLOC_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SOCKETPAIR=1 -
DHAVE_SELECT=1 -DNEED_USLEEP=1 -DNO_RPCENT=1 -DWORDS_BIGENDIAN=1 -
DHAVE_GETMNTENT=1 straps.c
cc -o straps straps.o
Undefined first referenced
symbol in file
socket straps.o
recv straps.o
accept straps.o
bind straps.o
getservbyname straps.o
listen straps.o
ld: fatal: Symbol referencing errors. No output written to straps
*** Error code 1
make: Fatal error: Command failed for target `straps'
Current working directory /home/mikem/tcl/scotty-1.2.0/snmp
*** Error code 1
make: Fatal error: Command failed for target `snmp/libsnmp.a'
=====================================================
If anyone can tell anything from this and give me some possible suggestions,
I would be much in
debt. Thanks! :-))