Description: |
I got the following compile errors while trying to
build on LynxOS 3.1.0 071000-F PowerPC.
./../generic/tclClock.c: In function `FormatClock':
./../generic/tclClock.c(314) : warning: assignment
makes integer from pointer without a cast
./../generic/tclClock.c(315) : error: invalid lvalue in
assignment
./../generic/tclClock.c(360) : error: invalid lvalue in
assignment
./../generic/tclPosixStr.c: In function `Tcl_ErrnoId':
./../generic/tclPosixStr.c(328) : error: duplicate case
value
./../generic/tclPosixStr.c(79) : error: this is the
first entry for that value
./../generic/tclPosixStr.c: In function `Tcl_ErrnoMsg':
./../generic/tclPosixStr.c(778) : error: duplicate case
value
./../generic/tclPosixStr.c(528) : error: this is the
first entry for that value
I fixed those compile errors and then had problems
linking tclsh because of undefined references to
inet_ntoa, mkstemp, gethostbyaddr, inet_addr, and
getservbyname.
Doing a "LIBS=-lbsd ./configure" worked around that
problem.
Also, there were a number of warnings about using
<foo.h> instead of <sys/foo.h> (I think this is a
problem with the LynxOS header files).
I've attached a patch file that corrects these
problems (for me at least). (Affects
generic/tclClock.c, generic/tclPosixStr.c, and
unix/tcl.m4.)
|