Tcl Source Code

View Ticket
Login
Ticket UUID: 922766
Title: compile errors on LynxOS 3.1.0
Type: Bug Version: obsolete: 8.4.6
Submitter: david_glessner Created on: 2004-03-24 22:10:17
Subsystem: 53. Configuration and Build Tools Assigned To: stwo
Priority: 5 Medium Severity:
Status: Open Last Modified: 2004-03-30 04:27:17
Resolution: None Closed By:
    Closed on:
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.)
User Comments: david_glessner added on 2004-03-25 05:10:18:

File Added - 81251: tcl8.4.6-local.patch-01

Attachments: