Re: Tcl 8.5 HP/UX Compiler warnings
From: Donal K. Fellows (donal.k.fellows_at_man.ac.uk)
Date: 01/13/04
- Next message: Zurab Mamasakhlisi: "right syntax for a file path in tcl"
- Previous message: David Gravereaux: "Re: Tcl poetry?"
- In reply to: R. T. Wurth: "Re: Tcl 8.5 HP/UX Compiler warnings"
- Next in thread: Bob Techentin: "Re: Tcl 8.5 HP/UX Compiler warnings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 13 Jan 2004 02:12:03 -0800
R. T. Wurth wrote:
> 1.) After all the substitutions, stat64 struct pointers are being
> supplied to the stat and lstat system calls that should take regular
> stat struct pointers. The elementary types of the structure
> elements match, but there is one instance where the declared types
> differ (but they both eventually resolve through typedefs to the
> same elementary type), and there's another place where both declared
> type and name differ, but the eventual base type (after resolving
> all the typedefs) is the same.
Just commenting here that there is something deeply bizarre going on.
I have checked the core sources and tcl either uses 'struct
stat'/'stat()' or 'struct stat64'/'stat64'; they're controlled by the
same #def. That the compiler is complaining about feeding the
structure to the corresponding function is deeply lame, and indicates
a fault somewhere outside our control (probably in either the HP-UX
headers or the compiler itself. Or both.)
> 2.) Tcl, trying to be portable makes a TclFd (storage for a file
> pointer/descriptor) the biggest thing it could think of, a pointer.
[...]
Actually, that's because file descriptors really are pointers on some
OSes.
> I think I've come up with similarly reasonable arguments that the
> other warnings I cited are similarly harmless. Still, I'd think the
> fewer compiler warnings, the better off, so that new bugs don't get
> hidden amidst all the clutter of warnings.
I agree with the general principle of reducing error messages. One of
the most annoying things about building Tcl on Linux is that the
networking code *always* generates a few warnings because of an
idiotic compiler "feature". (Either you have those warnings which are
due to a function having the *correct* type signature (!) or you turn
down the warning level and might miss out on a whole set of other
potentially important ways in which things can go wrong.) OTOH, I'd
also like sometime to get Tcl's config output passed to the compiler
other than on the command-line; the invocation lines are so long that
they'd obscure warnings early in the build process due to running out
of lines of scrollback...
Anyway, enough gripeing... ;^)
Donal.
- Next message: Zurab Mamasakhlisi: "right syntax for a file path in tcl"
- Previous message: David Gravereaux: "Re: Tcl poetry?"
- In reply to: R. T. Wurth: "Re: Tcl 8.5 HP/UX Compiler warnings"
- Next in thread: Bob Techentin: "Re: Tcl 8.5 HP/UX Compiler warnings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|