This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Weird linking-problem


Zack Weinberg <zack@rabi.phys.columbia.edu> writes:

|> The prototype of __errno_location in <errno.h> was parsed as a C++

It is in <errnos.h> (<bits/errno.h> in 2.1) which is included by
<errno.h>.

|> prototype, so gcc emitted the wrong symbol.  That indicates that
|> errno.h doesn't have the proper wrapper for its declarations.
|> 
|> Could you please try the latest glibc (2.0.7) and see if the problem
|> is still there?

Both 2.0 and 2.1 have __BEGIN_DECLS in <errno.h>.  I suspect that
<errnos.h> was used directly, which is a no-no.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"
schwab@gnu.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]