Overview
| Artifact ID: | ef609afee9befbcf82dcef1ed6a43e7e2e63c0ff |
|---|---|
| Ticket: | 651811ffffffffffffffffffffffffffffffffff
Fix broken sockets on HPUX 64-bit |
| User & Date: | jdmartin on 2002-12-11 03:26:22 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- comment changed to:
The socket tests on Tcl/Tk 8.4.1 HPUX 11.00 64-bit were blowing up due to broken 'socket' and 'fconfigure' commands. First, the XOPEN sources were being used, but the xnet lib was never included, causing the wrong system functions to be called. A patch was made to unix/tcl.m4 to fix this problem. Second, the inet_ntoa() c function called by 'fconfigure' on sockets was always returning "0.0.0.0" for the network address. I never figured out why, so I wrote a function which duplicates inet_ntoa() and wrapped a macro around it. A patch was made to unix/tclUnixChan.c to fix this problem. Note that while this patch fixes the problem within the intended file scope, it is not very platform specific, and a more elegant solution may be desired. Note that after applying these patches on my HPUX 11.00 64-bit system all the tests involving the 'socket' command stopped failing.
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "jdmartin"
- subsystem changed to: "24. Channel Commands"
- title changed to: "Fix broken sockets on HPUX 64-bit"
- type changed to: "Patch"