[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: errno strageness (in lpr)



Paul.Emsley@chem.gla.ac.uk writes:

> printjob.o(.text+0x34ad): undefined reference to `__errno_location'
[...]
> 	Since it fails to compile I take it that this is an
>       unacceptable usage of errno as a modifiable lvalue.

Hmm, setting errno to zero before the call is the only way to check
for errors on some (arguably broken) libc functions. If this construct
were not supported, that would be bad.

I'm suspecting that another problem is at work here. My copy of
<bits/errno.h> says:

#define errno   (*__hurd_errno_location ())

Not '__errno_location'.

Seems like some #define is interfering?

-- 
Robbe

Attachment: signature.ng
Description: PGP signature


Reply to: