You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Joe Orton <jo...@manyfish.co.uk> on 2003/06/04 21:42:33 UTC

Re: [PATCH] Be verbose during shl_load on HP-UX

On Fri, May 30, 2003 at 01:54:21PM -0400, MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1) wrote:
...
> Now, what should be the behaviour under the following scenarios :
> 
> - everything is fine : program runs fine. No problems.
> - Unresolved symbols and stderr is open   : program will report the
> unresolved symbols on stderr
> - Unresolved symbols and stderr is closed : program will exit with a -1,
> with the error "Bad file number".
> 
> Question : Are you telling me that you don't like to see "Bad file number"
> as the error message ?

Yup, I don't like that.  If you hadn't passed BIND_VERBOSE, the error
message would have been the correct "Unresolved symbols" string.

Yes, I agree it is a shame that not using BIND_VERBOSE loses the more
descriptive error information, but as has been covered several times,
using BIND_VERBOSE is not the correct default for APR.

> If that is the case, can we can put a specific case for HPUX, for 
> 1. when BIND_VERBOSE is enabled, and
> 2. stderr is closed, and
> 3. you get this message, 
> we can print a particular error message (because we know whatz happening)..

I don't really understand these questions.

1. there is no "when BIND_VERBOSE is enabled" case, APR does not use
this flag
2. how do you tell reliably whether stderr is closed?
3. how do you find out the real error message?

Regards,

joe